Module Name: src
Committed By: rillig
Date: Sun Apr 28 22:43:30 UTC 2024
Modified Files:
src/lib/libc/gen: setmode.3
Log Message:
setmode.3: fix typos
To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/lib/libc/gen/setmode.3
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/gen/setmode.3
diff -u src/lib/libc/gen/setmode.3:1.23 src/lib/libc/gen/setmode.3:1.24
--- src/lib/libc/gen/setmode.3:1.23 Sat Mar 12 17:31:39 2022
+++ src/lib/libc/gen/setmode.3 Sun Apr 28 22:43:30 2024
@@ -1,4 +1,4 @@
-.\" $NetBSD: setmode.3,v 1.23 2022/03/12 17:31:39 christos Exp $
+.\" $NetBSD: setmode.3,v 1.24 2024/04/28 22:43:30 rillig Exp $
.\"
.\" Copyright (c) 1989, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -51,16 +51,15 @@ function accepts a string representation
compiles it to binary form, and returns an abstract representation
that may be passed to
.Fn getmode .
-The string may be an numeric (octal) or symbolic string of the form
+The string may be a numeric (octal) or symbolic string of the form
accepted by
.Xr chmod 1 ,
and may represent either an exact mode to set or a change to make to
-the existing mode.
+an existing mode.
.Pp
The
.Fn getmode
-function
-adjusts the file permission bits given by
+function adjusts the file permission bits given by
.Fa mode
according to the compiled change representation
.Fa set ,
@@ -116,7 +115,7 @@ or
.Xr strtol 3 .
In addition,
.Fn setmode
-will fail and set
+may fail and set
.Va errno
to:
.Bl -tag -width Er