2 ms·
"Everything is a file" is the biggest myth of UNIX. Everthing is represented by an integer that we call a "file descriptor", that's true. But try calling "acc
by jrockway 16y ago
"Everything is a file" is the biggest myth of UNIX. Everthing is represented by an integer that we call a "file descriptor", that's true. But try calling "accept" on a file descriptor you made with "open", or try calling "sendfile" on a pipe instead of a socket. Doesn't work.
Everything is an integer.
- burgerbrain 16y agoThose integers don't mean anything unless they are actually file descriptors, so the statement "Everything is an integer." is inaccurate. And of course there are different sorts of files... everybody knows that.