Clarify use of mkfifo() versus mknod().

as per http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=455825
This commit is contained in:
Michael Kerrisk 2007-12-14 07:04:07 +00:00
parent f16c6510df
commit 3920c8caf6
1 changed files with 7 additions and 4 deletions

View File

@ -175,13 +175,16 @@ or
is not 0, the behavior of is not 0, the behavior of
.BR mknod () .BR mknod ()
is unspecified." is unspecified."
However, nowadays one should never use
.BR mknod ()
for this purpose; one should use
.BR mkfifo (3),
a function especially defined for this purpose.
Under Linux, this call cannot be used to create directories. Under Linux, this call cannot be used to create directories.
One should make directories with One should make directories with
.BR mkdir (2), .BR mkdir (2).
and FIFOs with .\" and one should make Unix domain sockets with socket(2) and bind(2).
.BR mkfifo (3).
.\" Unix domain sockets with .BR socket " (and " bind ),
There are many infelicities in the protocol underlying NFS. There are many infelicities in the protocol underlying NFS.
Some of these affect Some of these affect