3 ms·
Which is the point. Files may be synthetic references to resources and not actual on-disk files, it's a general abstraction.
by vezzy-fnord 11y ago
Which is the point. Files may be synthetic references to resources and not actual on-disk files, it's a general abstraction.
- agumonkey 11y agoIt's just a vocabulary thing, `file` is not that generic.
- vezzy-fnord 11y agoYes, it is. A file is just a representation of resources, nothing more. You can have files as a user convenience without even having a file system, but rather a persistent object store.
- typedweb 11y agoA file is an object that supports the methods open(), read(), write(), and a few others. That's about a generic as you can get.
- agumonkey 11y agoIf I write <data> /dev/net/tcp can I read and get <data> back ? Can I append <data> /dev/mouse ? Sharing {open,read,write,close} interface, but with exception and different semantics leads to a weird flavour of genericity.