News for hackers. Stuff that matters.
Re:Dd is not a disk writing tool (2015) by deathanatos on Sunday January 08, 2017 @03:18PM (#13351733)
You can read(2) and write(2) to a socket, although it is more normal to recv and send on it. On Linux, you can also (and pretty much MUST) read(2) and write(2) to an eventfd; you can read(2) from a timerfd. That said, the semantics of the latter are considerably different from that of fifos or sockets.
Re:Dd is not a disk writing tool (2015) by sh_tinh_hair on Sunday January 08, 2017 @04:35PM (#13352162)
You are right. I've long forgotten about read() and write() compat with sockets for very good reason. I don't lump an eventfd into the same IPC category as those mentioned in parent for the semantic(s) reason you mention and also for it's intended usage.