summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorŠtěpán Němec <stepnem@smrk.net>2022-10-08 16:05:13 +0200
committerAlejandro Colomar <alx@kernel.org>2022-10-08 22:39:53 +0200
commit845b3463e978a2918557ac87b34afa94681c6fc8 (patch)
tree7bdd9167d849c7ed52b486cc3c91f08a949740cb
parenta4a073ae7737fb8f20c390a60b8555a7cfdace98 (diff)
memfd_create.2, mlock.2, poll.2, select.2, fopen.3, capabilities.7: tfix
Signed-off-by: Štěpán Němec <stepnem@smrk.net> Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r--man2/memfd_create.22
-rw-r--r--man2/mlock.22
-rw-r--r--man2/poll.22
-rw-r--r--man2/select.22
-rw-r--r--man3/fopen.32
-rw-r--r--man7/capabilities.74
6 files changed, 7 insertions, 7 deletions
diff --git a/man2/memfd_create.2 b/man2/memfd_create.2
index 2668a79d8..d672a2051 100644
--- a/man2/memfd_create.2
+++ b/man2/memfd_create.2
@@ -360,7 +360,7 @@ of which the first two are required.
The first argument is the name to associate with the file,
the second argument is the size to be set for the file,
and the optional third argument is a string of characters that specify
-seals to be set on file.
+seals to be set on the file.
.PP
The second program,
.IR t_get_seals.c ,
diff --git a/man2/mlock.2 b/man2/mlock.2
index fc138f6fd..da1ff6976 100644
--- a/man2/mlock.2
+++ b/man2/mlock.2
@@ -36,7 +36,7 @@ and
perform the converse operation,
unlocking part or all of the calling process's virtual
address space, so that pages in the specified virtual address range may
-once more to be swapped out if required by the kernel memory manager.
+once more be swapped out if required by the kernel memory manager.
.PP
Memory locking and unlocking are performed in units of whole pages.
.SS mlock(), mlock2(), and munlock()
diff --git a/man2/poll.2 b/man2/poll.2
index 8d2b08d63..459cb383a 100644
--- a/man2/poll.2
+++ b/man2/poll.2
@@ -577,7 +577,7 @@ main(int argc, char *argv[])
if (pfds == NULL)
errExit("malloc");
- /* Open each file on command line, and add it \(aqpfds\(aq array. */
+ /* Open each file on command line, and add it to \(aqpfds\(aq array. */
for (nfds_t j = 0; j < nfds; j++) {
pfds[j].fd = open(argv[j + 1], O_RDONLY);
diff --git a/man2/select.2 b/man2/select.2
index 0fc075d48..413baf3d6 100644
--- a/man2/select.2
+++ b/man2/select.2
@@ -547,7 +547,7 @@ On some UNIX systems,
.BR select ()
unblocks and returns, with an indication that the file descriptor is ready
(a subsequent I/O operation will likely fail with an error,
-unless another process reopens file descriptor between the time
+unless another process reopens the file descriptor between the time
.BR select ()
returned and the I/O operation is performed).
On Linux (and some other systems),
diff --git a/man3/fopen.3 b/man3/fopen.3
index d2fb6abea..a2d3b5ab4 100644
--- a/man3/fopen.3
+++ b/man3/fopen.3
@@ -123,7 +123,7 @@ called for its synchronizing side effect).
Opening a file in append mode (\fBa\fP as the first character of
.IR mode )
causes all subsequent write operations to this stream to occur
-at end-of-file, as if preceded the call:
+at end-of-file, as if preceded by the call:
.PP
.in +4n
.EX
diff --git a/man7/capabilities.7 b/man7/capabilities.7
index ef56c63f9..c991b17b5 100644
--- a/man7/capabilities.7
+++ b/man7/capabilities.7
@@ -1040,7 +1040,7 @@ Therefore, when assigning capabilities to a file
if we specify the effective flag as being enabled for any capability,
then the effective flag must also be specified as enabled
for all other capabilities for which the corresponding permitted or
-inheritable flags is enabled.
+inheritable flag is enabled.
.\"
.SS File capability extended attribute versioning
To allow extensibility,
@@ -1271,7 +1271,7 @@ file permitted capabilities, then
fails with the error
.BR EPERM .
This prevents possible security risks that could arise when
-a capability-dumb application is executed with less privilege that it needs.
+a capability-dumb application is executed with less privilege than it needs.
Note that, by definition,
the application could not itself recognize this problem,
since it does not employ the