aboutsummaryrefslogtreecommitdiffstats
path: root/man3
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2020-04-08 10:28:45 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2020-04-10 09:41:55 +0200
commited09120acd9027de514d8baf004f8604f7d7452b (patch)
tree984b03cdcdd86595ce09a9019bd479200b978969 /man3
parent96ef1406349cf02615b3e34a04b3a3860c13f4fa (diff)
downloadman-pages-ed09120acd9027de514d8baf004f8604f7d7452b.tar.gz
accept.2, epoll_create.2, inotify_add_watch.2, open.2, open_by_handle_at.2, pidfd_open.2, dirfd.3, posix_openpt.3, shm_open.3: Fix clumsy wording around "nonnegative file descriptors"
Reported-by: Christian Brauner <christian@brauner.io> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man3')
-rw-r--r--man3/dirfd.34
-rw-r--r--man3/posix_openpt.32
-rw-r--r--man3/shm_open.32
3 files changed, 5 insertions, 3 deletions
diff --git a/man3/dirfd.3 b/man3/dirfd.3
index e75fd272ae..7df36ae4bb 100644
--- a/man3/dirfd.3
+++ b/man3/dirfd.3
@@ -63,7 +63,9 @@ It will be automatically closed when
.BR closedir (3)
is called.
.SH RETURN VALUE
-On success, a nonnegative file descriptor is returned.
+On success,
+.BR dirfd ()
+returns a file descriptor (a nonnegative integer).
On error, \-1 is returned, and
.I errno
is set to indicate the cause of the error.
diff --git a/man3/posix_openpt.3 b/man3/posix_openpt.3
index 8b5176bcdd..7eb7acaff1 100644
--- a/man3/posix_openpt.3
+++ b/man3/posix_openpt.3
@@ -62,7 +62,7 @@ Do not make this device the controlling terminal for the process.
.SH RETURN VALUE
On success,
.BR posix_openpt ()
-returns a nonnegative file descriptor which is the lowest
+returns a file descriptor (a nonnegative integer) which is the lowest
numbered unused file descriptor.
On failure, \-1 is returned, and
.I errno
diff --git a/man3/shm_open.3 b/man3/shm_open.3
index 675d44df96..2be0209f46 100644
--- a/man3/shm_open.3
+++ b/man3/shm_open.3
@@ -170,7 +170,7 @@ was specified, in which case a new, distinct object is created).
.SH RETURN VALUE
On success,
.BR shm_open ()
-returns a nonnegative file descriptor.
+returns a file descriptor (a nonnegative integer).
On failure,
.BR shm_open ()
returns \-1.