tags 455825 fixed-upstream
thanks

Fixed for upstream 2.73.

Reuben Thomas wrote:
> Package: manpages-dev
> Version: 2.67-1
> Severity: normal
> 
> "One should make directories with mkdir(2), and FIFOs with mkfifo(3)."
> 
> The first part of this is fine, but I don't understand the second
> part. Just above, it says: "The only portable use of mknod() is to
> create a FIFO-special file."
> 
> Hence, it seems that not only can mknod be used to create FIFOs on
> Linux, but it can be used on any POSIX 2001 system!
> 
> If there's some reason why mkfifo should be used nonetheless, it
> should be explained here.

I agree that the text can be better ordered, and worded.  I've changed
these paras to read:

       POSIX.1-2001  says:  "The only portable use of mknod() is
       to create a FIFO-special file.  If mode is not S_IFIFO or
       dev  is  not  0, the behavior of mknod() is unspecified."
       However, nowadays one should never use mknod()  for  this
       purpose;  one should use mkfifo(3), a function especially
       defined for this purpose.

       Under Linux, this call cannot be used to create  directo-
       ries.  One should make directories with mkdir(2).

Cheers,

Michael

-- 
Michael Kerrisk
Maintainer of the Linux man-pages project
http://www.kernel.org/doc/man-pages/
Want to report a man-pages bug?  Look here:
http://www.kernel.org/doc/man-pages/reporting_bugs.html





-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to