Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/sys Add mkfifoat(2) specific errors.
details: https://anonhg.NetBSD.org/src/rev/6bcaf6bfb23b
branches: trunk
changeset: 788942:6bcaf6bfb23b
user: njoly <njoly%NetBSD.org@localhost>
date: Tue Jul 30 13:15:07 2013 +0000
description:
Add mkfifoat(2) specific errors.
diffstat:
lib/libc/sys/mkfifo.2 | 28 +++++++++++++++++++++++-----
1 files changed, 23 insertions(+), 5 deletions(-)
diffs (58 lines):
diff -r 56c7d2ed8859 -r 6bcaf6bfb23b lib/libc/sys/mkfifo.2
--- a/lib/libc/sys/mkfifo.2 Tue Jul 30 13:14:30 2013 +0000
+++ b/lib/libc/sys/mkfifo.2 Tue Jul 30 13:15:07 2013 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: mkfifo.2,v 1.25 2013/01/13 08:15:02 dholland Exp $
+.\" $NetBSD: mkfifo.2,v 1.26 2013/07/30 13:15:07 njoly Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -29,7 +29,7 @@
.\"
.\" @(#)mkfifo.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd November 18, 2012
+.Dd July 29, 2013
.Dt MKFIFO 2
.Os
.Sh NAME
@@ -85,11 +85,11 @@
The fifo's group ID is set to that of the parent directory in
which it is created.
.Sh RETURN VALUES
-A 0 return value indicates success.
-A \-1 return value indicates an error, and an error code is stored in
-.Va errno .
+.Rv -std mkfifo mkfifoat
.Sh ERRORS
.Fn mkfifo
+and
+.Fn mkfifoat
will fail and no fifo will be created if:
.Bl -tag -width Er
.It Bq Er EACCES
@@ -136,6 +136,24 @@
.It Bq Er EROFS
The named file resides on a read-only file system.
.El
+.Pp
+In addition,
+.Fn mkfifoat
+will fail if:
+.Bl -tag -width Er
+.It Bq Er EBADF
+.Fa path
+does not specify an absolute path and
+.Fa fd
+is neither
+.Dv AT_FDCWD
+nor a valid file descriptor open for reading or searching.
+.It Bq Er ENOTDIR
+.Fa path
+is not an absolute path and
+.Fa fd
+is a file descriptor associated with a non-directory file.
+.El
.Sh SEE ALSO
.Xr chmod 2 ,
.Xr stat 2 ,
Home |
Main Index |
Thread Index |
Old Index