Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Sep 1995 23:41:33 -0700 (PDT)
From:      -Vince- <vince@apollo.COSC.GOV>
To:        Jake Hamby <jehamby@lightside.com>
Cc:        FreeBSD-hackers@freefall.FreeBSD.org
Subject:   RE: Masterplan 1.00 (fwd)
Message-ID:  <Pine.BSF.3.91.950921233433.19640N-100000@apollo.COSC.GOV>
In-Reply-To: <Pine.AUX.3.91.950914145007.5623A-100000@covina.lightside.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 14 Sep 1995, Jake Hamby wrote:

> On Thu, 14 Sep 1995, -Vince- wrote:
> 
> > Hi 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..
> 
> FreeBSD does allow named pipes, but NOT with the mknod() function.  What you
> will need to do is change all references of mknod() to the mkfifo() command,
> which, unlike mknod(), doesn't require root privileges.  The problem is that
> many other operating systems support BOTH mknod() and mkfifo() for named
> pipes, but FreeBSD only supports mkfifo() for this purpose.  What you'll 
> need to do is change all references of: 
> 
> mknod( foo, S_IFIFO | permission, ignored)
> 
> to
> 
> mkfifo( foo, permission)

	I tried that already by changing all references of mknod to mkfifo
and somehow it runs but it will say broken pipe when someone tries to finger
me and won't display my plan as well and the program won't exit.  I tried 
removing the S_IFIFO and the same thing happens.

> ...Just remove the middle S_IFIFO constant and leave off the last argument. 
> The last argument to mknod is ignored (and will probably be 0), but the
> second argument in both cases specifies the access permissions.  The 
> first argument is going to be the path of the fifo to create (e.g. 
> "/tmp/myfifo" or a variable name). Hope this helps..

	Any ideas what else I can do?

Cheers,
-Vince- vince@apollo.COSC.GOV - GUS Mailing Lists Admin
UC Berkeley AstroPhysics - Electrical Engineering (Honorary B.S.)
Chabot Observatory & Science Center
Running FreeBSD - Real UN*X for Free!




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.950921233433.19640N-100000>