Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Jul 95 13:14:19 GMT
From:      perryman@sun001.sil.com (Barry Perryman)
To:        Marino.Ladavac@aut.alcatel.at, freebsd-questions@freebsd.org
Subject:   Re: named pipes
Message-ID:  <9507211314.AA24690@sun001.sil.com>
In-Reply-To: <9507211146.AA16364@atuhc16.aut.alcatel.at>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

> What is the proper BSD way in dealing with named pipes?
> (on HP-UX I normally create them with mknod name p, which does
> not appear to be supported under FreeBSD.)

I use the posix(?) function mkfifo to make my named pipes.

The only problem I had was opening the fifo with O_RDWR, as it returns
-1 with errno set to EINVAL. It seems that you have to open the FIFO
twice, once for writting and once for reading.

Wierd seeing as you can do it like this on sunos4.1.2, solaris2+ and
linux.

Barry

+-------------------------------+--------------------------------------+
|perryman@sun001.sil.com        |                                      |
|Barry Perryman                 |                                      |
|Satelites Internation Ltd      |                                      |
|Newbury                        | These views are, mostly, my own, but |
|ENGLAND                        | they aren't those of my employer.    |
+-------------------------------+--------------------------------------+



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9507211314.AA24690>