minor wording/formatting fixes

This commit is contained in:
Michael Kerrisk 2004-12-13 08:39:28 +00:00
parent 30ca894053
commit 540036b2fd
8 changed files with 18 additions and 21 deletions

View File

@ -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

View File

@ -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"

View File

@ -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

View File

@ -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

View File

@ -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.

View File

@ -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

View File

@ -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

View File

@ -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>