diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2021-01-07 09:22:57 +0100 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2021-01-07 14:27:51 +0100 |
| commit | c112329ffea6c3ba5be9fc9bb47f285672d582e9 (patch) | |
| tree | f60425c467c87f92b75cb4ab8850ef53f138d244 /man2/open.2 | |
| parent | f6a4078be5cf1248a561e89b1fb1f1fb61515f41 (diff) | |
| download | man-pages-c112329ffea6c3ba5be9fc9bb47f285672d582e9.tar.gz | |
Various pages: Standardize wording around setting of 'errno' on error
In the RETURN VALUE sections, a number of different wordings
are used in to describe the fact that 'errno' is set on error.
There's no reason for the difference in wordings, since the same
thing is being described in each case. Switch to a standard
wording that is the same as FreeBSD and similar to the wording
used in POSIX.1.
In this change, reword various cases saying that 'errno' is set
"appropriately" to "is set to indicate the error".
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man2/open.2')
| -rw-r--r-- | man2/open.2 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/man2/open.2 b/man2/open.2 index 781e3aedec..df3a8175d4 100644 --- a/man2/open.2 +++ b/man2/open.2 @@ -964,15 +964,15 @@ and provides a superset of the features of It is documented separately, in .BR openat2 (2). .SH RETURN VALUE +On success, .BR open (), .BR openat (), and .BR creat () -return the new file descriptor (a nonnegative integer), -or \-1 if an error occurred -(in which case, +return the new file descriptor (a nonnegative integer). +On error, \-1 is returned and .I errno -is set appropriately). +is set to indicate the error. .SH ERRORS .BR open (), .BR openat (), |
