logoalt Hacker News

netbsdusersyesterday at 11:09 AM1 replyview on HN

Plan 9 implements some sort of "everything has a directory entry" concept. Sockets are files already in Unix. "Everything is a file" in Unix means they have a uniform treatment as file descriptors. Its perfection is probably in Capsicum where when you create a new process, you get a process file descriptor referring to it instead of a PID.


Replies

cenamusyesterday at 12:08 PM

Sockets really aren't files im Unix though, you don't create them with (f)open, and you don't read/write with (f)read/(f)write

show 1 reply