From owner-freebsd-questions Fri Jul 21 05:15:55 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.11/8.6.6) id FAA26195 for questions-outgoing; Fri, 21 Jul 1995 05:15:55 -0700 Received: from sun001.sil.com (sun001.sil.com [193.195.22.1]) by freefall.cdrom.com (8.6.11/8.6.6) with SMTP id FAA26186 for ; Fri, 21 Jul 1995 05:15:47 -0700 Received: by sun001.sil.com (4.1/SMI-4.1) id AA24690; Fri, 21 Jul 95 13:14:19 GMT Date: Fri, 21 Jul 95 13:14:19 GMT From: perryman@sun001.sil.com (Barry Perryman) Message-Id: <9507211314.AA24690@sun001.sil.com> To: Marino.Ladavac@aut.alcatel.at, freebsd-questions@freebsd.org Subject: Re: named pipes In-Reply-To: <9507211146.AA16364@atuhc16.aut.alcatel.at> X-Mailer: [XMailTool v3.1.2b] Sender: questions-owner@freebsd.org Precedence: bulk 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. | +-------------------------------+--------------------------------------+