aboutsummaryrefslogtreecommitdiffstats
path: root/man2/mlock.2
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2021-01-07 09:22:57 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2021-01-07 14:27:51 +0100
commitc112329ffea6c3ba5be9fc9bb47f285672d582e9 (patch)
treef60425c467c87f92b75cb4ab8850ef53f138d244 /man2/mlock.2
parentf6a4078be5cf1248a561e89b1fb1f1fb61515f41 (diff)
downloadman-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/mlock.2')
-rw-r--r--man2/mlock.23
1 files changed, 2 insertions, 1 deletions
diff --git a/man2/mlock.2 b/man2/mlock.2
index c020ab7359..95bf500ed8 100644
--- a/man2/mlock.2
+++ b/man2/mlock.2
@@ -178,7 +178,8 @@ calling process.
On success, these system calls return 0.
On error, \-1 is returned,
.I errno
-is set appropriately, and no changes are made to any locks in the
+is set to indicate the error,
+and no changes are made to any locks in the
address space of the process.
.SH ERRORS
.TP