Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!unido!marco!leo From: leo@marco.UUCP (Matthias Pfaller) Newsgroups: comp.os.minix Subject: read/writes to pipes with O_NDELAY set Keywords: O_NDELAY pipes Message-ID: <478@alice.marco.UUCP> Date: 14 Sep 90 11:31:07 GMT Organization: marco GmbH, 8047 Karlsfeld, West-Germany Lines: 20 according to the manuals of our Unix-box reads and writes to a pipe with O_NDELAY set should behave as follows: > > If the file being written is a pipe (or FIFO) and the > O_NDELAY flag of the file flag word is set, then write to a > full pipe (or FIFO) will return a count of 0. Otherwise > (O_NDELAY clear), writes to a full pipe (or FIFO) will block > until space becomes available. > > > When attempting to read from an empty pipe (or FIFO): > > If O_NDELAY is set, the read will return a 0. > > If O_NDELAY is clear, the read will block until data is > written to the file or the file is no longer open for > writing. > Minix returns EAGAIN; what is correct, what says Posix? Matthias Pfaller