title: Named pipes in c
body: <p>I am trying to use named pipes in C and am running into some difficulty. In terms of anonymous pipes, I just create the pipe with the r/w descriptors and then close the opposite end every time I want to do a read or write. This is easy to do since I can just open() and close() the other end every time.</p>
  
  <p>With named pipes, I am a bit confused, I found the instruction <code>mkfifo()</code> which creates the named pipe but don't understand how to read and write to it properly.</p>
  
  <p>Thanks</p>