News for hackers. Stuff that matters.
Re:Logs Are Streams, Not Files by jrockway on Friday April 01, 2011 @06:10PM (#2398298)
"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.

Re:Logs Are Streams, Not Files by burgerbrain on Friday April 01, 2011 @06:27PM (#2398366)
Those 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.