*BSD News Article 27098


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!metro!ultima!kralizec.zeta.org.au!not-for-mail
From: bde@kralizec.zeta.org.au (Bruce Evans)
Newsgroups: comp.os.386bsd.questions
Subject: Re: Named Pipes in NetBSD 0.9
Date: 7 Feb 1994 16:32:51 +1100
Organization: Kralizec Dialup Unix Sydney: +61-2-837-1183 V.32bis
Lines: 12
Message-ID: <2j4jq3$gmp@kralizec.zeta.org.au>
References: <David.Chappell.1.000C0E76@Mail.Trincoll.Edu>
NNTP-Posting-Host: kralizec.zeta.org.au
Keywords: named pipes FIFO

In <David.Chappell.1.000C0E76@Mail.Trincoll.Edu> David.Chappell@Mail.Trincoll.Edu (David Chappell) writes:

>I have compiled the NetBSD kernal with "option FIFO" in the config file, but 
>mknod() return errno=1.  Do named pipes work?

Named pipes must be created using mkfifo().  Under 386BSD-0.1 and its
derivatives, mknod() can only be used to create block special files,
char special files, and pre-bad-sector files.  Other types of files
must be created using the appropriate syscall for the type.  This has
the advantage that you don't have to be root to create them.
-- 
Bruce Evans  bde@kralizec.zeta.org.au