aboutsummaryrefslogtreecommitdiffstats
path: root/man2
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2004-12-13 08:39:28 +0000
committerMichael Kerrisk <mtk.manpages@gmail.com>2004-12-13 08:39:28 +0000
commit540036b2fd7fe90714d9c961132dba78c5ce7a1c (patch)
treec883f87db63663a01f8e616b8f6494e1c93669ed /man2
parent30ca894053477911ab060fa2a5ca7474d0414c21 (diff)
downloadman-pages-540036b2fd7fe90714d9c961132dba78c5ce7a1c.tar.gz
minor wording/formatting fixes
Diffstat (limited to 'man2')
-rw-r--r--man2/msgctl.22
-rw-r--r--man2/semctl.215
-rw-r--r--man2/semget.24
-rw-r--r--man2/semop.22
-rw-r--r--man2/shmctl.22
-rw-r--r--man2/shmget.22
-rw-r--r--man2/times.24
-rw-r--r--man2/wait4.28
8 files changed, 18 insertions, 21 deletions
diff --git a/man2/msgctl.2 b/man2/msgctl.2
index 85abcc520c..5c2ddf23f0 100644
--- a/man2/msgctl.2
+++ b/man2/msgctl.2
@@ -47,7 +47,7 @@ msgctl \- message control operations
.BI "int " cmd ,
.BI "struct msqid_ds *" buf );
.SH DESCRIPTION
-.B msgctl
+.BR msgctl ()
performs the control operation specified by
.I cmd
on the message queue with identifier
diff --git a/man2/semctl.2 b/man2/semctl.2
index 5bb5fdbe36..9d69dcb3f6 100644
--- a/man2/semctl.2
+++ b/man2/semctl.2
@@ -46,7 +46,7 @@ semctl \- semaphore control operations
.BI "int semctl(int " semid ", int " semnum ", int " cmd ", ...);"
.fi
.SH DESCRIPTION
-.B semctl
+.BR semctl ()
performs the control operation specified by
.I cmd
on the semaphore set identified by
@@ -156,8 +156,9 @@ calls on the set (with an error return and
.I errno
set to
.BR EIDRM ).
-The effective user\-ID of the calling process must be that of the
-superuser, or match the creator or owner of the semaphore set.
+The effective user\-ID of the calling process must
+match the creator or owner of the semaphore set,
+or the caller must be privileged.
The argument
.I semnum
is ignored.
@@ -263,7 +264,7 @@ calls in other processes to proceed, then those processes are woken up.
The calling process must have alter permission on the semaphore set.
.SH "RETURN VALUE"
On failure
-.B semctl
+.BR semctl ()
returns \-1
with
.I errno
@@ -389,7 +390,7 @@ the macro
is defined in <sys/sem.h>.
.PP
The following system limit on semaphore sets affects a
-.B semctl
+.BR semctl ()
call:
.TP 11
.B SEMVMX
@@ -398,11 +399,11 @@ Maximum value for
implementation dependent (32767).
.LP
For greater portability it is best to always call
-.B semctl
+.BR semctl ()
with four arguments.
.LP
Under Linux,
-.B semctl
+.BR semctl ()
is not a system call, but is implemented via the system call
.BR ipc (2).
.SH "CONFORMING TO"
diff --git a/man2/semget.2 b/man2/semget.2
index 4b9ad5fe47..0d91fc4db4 100644
--- a/man2/semget.2
+++ b/man2/semget.2
@@ -59,7 +59,7 @@ semaphores is created if
.I key
has the value
.B IPC_PRIVATE
-or if no existing semaphore set is associated to
+or if no existing semaphore set is associated with
.I key
and
.B IPC_CREAT
@@ -218,7 +218,7 @@ the system call ignores everything but the least significant 9 bits of
.I semflg
and creates a new semaphore set (on success).
.PP
-The followings are limits on semaphore set resources affecting a
+The following limits on semaphore set resources affect the
.BR semget ()
call:
.TP 11
diff --git a/man2/semop.2 b/man2/semop.2
index 02e7206777..9a3c398fef 100644
--- a/man2/semop.2
+++ b/man2/semop.2
@@ -416,7 +416,7 @@ for a semaphore can all be retrieved using appropriate
.BR semctl (2)
calls.
.PP
-The followings are limits on semaphore set resources affecting a
+The following limits on semaphore set resources affect the
.BR semop ()
call:
.TP
diff --git a/man2/shmctl.2 b/man2/shmctl.2
index daf16fef62..9770130beb 100644
--- a/man2/shmctl.2
+++ b/man2/shmctl.2
@@ -48,7 +48,7 @@ shmctl \- shared memory control
.BI "int shmctl(int " shmid ", int " cmd ", struct shmid_ds *" buf );
.ad b
.SH DESCRIPTION
-\fBshmctl()\fP
+.BR shmctl ()
allows the caller to obtain information about a shared memory segment,
set the owner, group, and permissions of a segment,
or destroy a segment.
diff --git a/man2/shmget.2 b/man2/shmget.2
index e75bf28944..511e261fe5 100644
--- a/man2/shmget.2
+++ b/man2/shmget.2
@@ -223,7 +223,7 @@ the system call ignores everything but the least significant 9 bits of
.I shmflg
and creates a new shared memory segment (on success).
.PP
-The followings are limits on shared memory segment resources affecting a
+The following limits on shared memory segment resources affect the
.BR shmget ()
call:
.TP 11
diff --git a/man2/times.2 b/man2/times.2
index 0d5e92c603..57112a8ed5 100644
--- a/man2/times.2
+++ b/man2/times.2
@@ -99,8 +99,8 @@ All times reported are in clock ticks.
returns the number of clock ticks that have elapsed since
an arbitrary point in the past.
For Linux 2.4 and earlier this point is the moment the system was booted.
-Since Linux 2.6, this point is (2^32/HZ) - 300 (i.e., about 429 million)
-seconds before system boot time.
+Since Linux 2.6, this point is \fI(2^32/HZ) - 300\fP
+(i.e., about 429 million) seconds before system boot time.
The return value may overflow the possible range of type
.I clock_t.
On error, \fI(clock_t) \-1\fP is returned, and
diff --git a/man2/wait4.2 b/man2/wait4.2
index 9a03c6ae38..ead2e0f6d6 100644
--- a/man2/wait4.2
+++ b/man2/wait4.2
@@ -110,14 +110,10 @@ See
for details.
.SH "RETURN VALUE"
As for
-.BR waitpid (2);
-see
-.BR wait (2).
+.BR waitpid (2).
.SH ERRORS
As for
-.BR waitpid (2);
-see
-.BR wait (2).
+.BR waitpid (2).
.SH NOTES
Including
.I <sys/time.h>