I heard that FIFOs are named pipes. And they have exactly the same semantics. On the other hand, I think Unix domain socket is quite similar to pipe (although I’ve never made use of it). So I wonder if they all refer to the same implementation in Linux kernel. Any idea?
Asks the kernel for an anonymous pipe. There is no name, so this can’t be done with
open like for a normal file — instead it’s done with
pipe2, which returns two file descriptors.⁴