3 ms·
>>The beneficial aspect of "everything is a File" is the uniform interface: you can read a file, write to a file, seek My C days weren't in this millenium, but
by berntb 17y ago
>>The beneficial aspect of "everything is a File" is the uniform interface: you can read a file, write to a file, seek
My C days weren't in this millenium, but ever tried this? :-)
man ioctl
(A quick check shows that you get the real info in man ioct_list. Even fcntl() has some extra, like locking parts of files.)
- uriel 17y agoioctl was a mistake by people that didn't understand the "everything is a file principle" (a huge mistake I might add). The original Unix from Bell Labs had no ioctl, Plan 9 has no ioctl, and the Linux people have been claiming to want to eventually get rid of all ioctls due to all the problems they cause, but the inertia and all the people that seem incapable of writing interfaces without ioctl means it will be ages before they get there.
- berntb 17y agoSo locking parts of files will be a file-based api? Do sound weird.