From owner-freebsd-hackers Fri Sep 22 00:21:49 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id AAA18168 for hackers-outgoing; Fri, 22 Sep 1995 00:21:49 -0700 Received: from zibbi.mikom.csir.co.za (zibbi.mikom.csir.co.za [146.64.24.58]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id AAA18077 for ; Fri, 22 Sep 1995 00:18:50 -0700 Received: (from jhay@localhost) by zibbi.mikom.csir.co.za (8.6.11/8.6.9) id JAA10372; Fri, 22 Sep 1995 09:10:22 +0200 From: John Hay Message-Id: <199509220710.JAA10372@zibbi.mikom.csir.co.za> Subject: Re: Masterplan 1.00 (fwd) To: vince@apollo.COSC.GOV (-Vince-) Date: Fri, 22 Sep 1995 09:10:21 +0200 (SAT) Cc: FreeBSD-hackers@freefall.freebsd.org In-Reply-To: from "-Vince-" at Sep 21, 95 11:53:59 pm X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 1353 Sender: owner-hackers@FreeBSD.org Precedence: bulk > > On Thu, 14 Sep 1995, John Hay wrote: > > Hi John and everyone, > > > > I am attempting to get masterplan working under FreeBSD but have > > > been unsuccessful so I emailed the author and was told that FreeBSD > > > doesn't allow named pipes to be created. Can anyone confirm this and > > > know what I can do to get masterplan working? Thanks.. > > > > > It is just called something else. mkfifo > > Oh okay but is there really anything different about mknod and mkfifo? > Well I'm not sure, not having used it on other machines that have mknod. Here is a piece of a program that create the fifo and open the read side. if (mkfifo(pipe_pathname, (mode_t)(S_IREAD | S_IWRITE)) == -1) if (errno != EEXIST) return errno; /* * Open `read' end of the pipe. * (The probe daemon will open the `write' end shortly.) */ if ((probe_rdport = open(pipe_pathname, O_RDONLY | O_NDELAY)) == -1) return errno; And here is the piece that open it for writing: /* open `write' end of pipe */ if ((pipe_wrport = open(argv[1], O_WRONLY | O_NDELAY)) == -1) { syslog(LOG_CRIT, "Cannot open write end of pipe: %m"); terminate(); } I hope this helps. John -- John Hay -- John.Hay@csir.co.za