*BSD News Article 26994


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!bunyip.cc.uq.oz.au!harbinger.cc.monash.edu.au!yeshua.marcam.com!news.kei.com!eff!news.umbc.edu!haven.umd.edu!umd5.umd.edu!mark
From: mark@elea.umd.edu (Mark Sienkiewicz)
Newsgroups: comp.os.386bsd.questions
Subject: Re: Named Pipes in NetBSD 0.9
Date: 6 Feb 1994 21:58:29 GMT
Organization: Zeno, IPST, University of Maryland
Lines: 26
Message-ID: <2j3p65$297@hecate.umd.edu>
References: <David.Chappell.1.000C0E76@Mail.Trincoll.Edu> <MYCROFT.94Feb4162130@duality.gnu.ai.mit.edu>
NNTP-Posting-Host: elea.umd.edu

In article <MYCROFT.94Feb4162130@duality.gnu.ai.mit.edu>,
Charles Hannum <mycroft@duality.gnu.ai.mit.edu> wrote:
>
>In article <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.
>
>You don't use mknod() to make fifos; you use mkfifo().  mknod() is
>(usually) used to make device nodes, and thus only root can use it.

It might be useful to point out that this is POSIX behaviour-- once
upon a time, SYSV systems used mknod to make FIFOs.  e.g.

mark elea 9% /etc/mknod file p
mark elea 10% ls -l file
prw-r--r--   1 mark     users          0 Feb  6 16:57 file
mark elea 11% rm file
mark elea 12% mkfifo file p
mark elea 13% ls -l file
prw-r--r--   1 mark     users          0 Feb  6 16:57 file
mark elea 14% rm file
mark elea 15% /etc/mknod file c 1 1
mknod: must be super-user