mirror of https://github.com/mkerrisk/man-pages
minor wording/formatting fixes
This commit is contained in:
parent
30ca894053
commit
540036b2fd
|
@ -47,7 +47,7 @@ msgctl \- message control operations
|
||||||
.BI "int " cmd ,
|
.BI "int " cmd ,
|
||||||
.BI "struct msqid_ds *" buf );
|
.BI "struct msqid_ds *" buf );
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
.B msgctl
|
.BR msgctl ()
|
||||||
performs the control operation specified by
|
performs the control operation specified by
|
||||||
.I cmd
|
.I cmd
|
||||||
on the message queue with identifier
|
on the message queue with identifier
|
||||||
|
|
|
@ -46,7 +46,7 @@ semctl \- semaphore control operations
|
||||||
.BI "int semctl(int " semid ", int " semnum ", int " cmd ", ...);"
|
.BI "int semctl(int " semid ", int " semnum ", int " cmd ", ...);"
|
||||||
.fi
|
.fi
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
.B semctl
|
.BR semctl ()
|
||||||
performs the control operation specified by
|
performs the control operation specified by
|
||||||
.I cmd
|
.I cmd
|
||||||
on the semaphore set identified by
|
on the semaphore set identified by
|
||||||
|
@ -156,8 +156,9 @@ calls on the set (with an error return and
|
||||||
.I errno
|
.I errno
|
||||||
set to
|
set to
|
||||||
.BR EIDRM ).
|
.BR EIDRM ).
|
||||||
The effective user\-ID of the calling process must be that of the
|
The effective user\-ID of the calling process must
|
||||||
superuser, or match the creator or owner of the semaphore set.
|
match the creator or owner of the semaphore set,
|
||||||
|
or the caller must be privileged.
|
||||||
The argument
|
The argument
|
||||||
.I semnum
|
.I semnum
|
||||||
is ignored.
|
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.
|
The calling process must have alter permission on the semaphore set.
|
||||||
.SH "RETURN VALUE"
|
.SH "RETURN VALUE"
|
||||||
On failure
|
On failure
|
||||||
.B semctl
|
.BR semctl ()
|
||||||
returns \-1
|
returns \-1
|
||||||
with
|
with
|
||||||
.I errno
|
.I errno
|
||||||
|
@ -389,7 +390,7 @@ the macro
|
||||||
is defined in <sys/sem.h>.
|
is defined in <sys/sem.h>.
|
||||||
.PP
|
.PP
|
||||||
The following system limit on semaphore sets affects a
|
The following system limit on semaphore sets affects a
|
||||||
.B semctl
|
.BR semctl ()
|
||||||
call:
|
call:
|
||||||
.TP 11
|
.TP 11
|
||||||
.B SEMVMX
|
.B SEMVMX
|
||||||
|
@ -398,11 +399,11 @@ Maximum value for
|
||||||
implementation dependent (32767).
|
implementation dependent (32767).
|
||||||
.LP
|
.LP
|
||||||
For greater portability it is best to always call
|
For greater portability it is best to always call
|
||||||
.B semctl
|
.BR semctl ()
|
||||||
with four arguments.
|
with four arguments.
|
||||||
.LP
|
.LP
|
||||||
Under Linux,
|
Under Linux,
|
||||||
.B semctl
|
.BR semctl ()
|
||||||
is not a system call, but is implemented via the system call
|
is not a system call, but is implemented via the system call
|
||||||
.BR ipc (2).
|
.BR ipc (2).
|
||||||
.SH "CONFORMING TO"
|
.SH "CONFORMING TO"
|
||||||
|
|
|
@ -59,7 +59,7 @@ semaphores is created if
|
||||||
.I key
|
.I key
|
||||||
has the value
|
has the value
|
||||||
.B IPC_PRIVATE
|
.B IPC_PRIVATE
|
||||||
or if no existing semaphore set is associated to
|
or if no existing semaphore set is associated with
|
||||||
.I key
|
.I key
|
||||||
and
|
and
|
||||||
.B IPC_CREAT
|
.B IPC_CREAT
|
||||||
|
@ -218,7 +218,7 @@ the system call ignores everything but the least significant 9 bits of
|
||||||
.I semflg
|
.I semflg
|
||||||
and creates a new semaphore set (on success).
|
and creates a new semaphore set (on success).
|
||||||
.PP
|
.PP
|
||||||
The followings are limits on semaphore set resources affecting a
|
The following limits on semaphore set resources affect the
|
||||||
.BR semget ()
|
.BR semget ()
|
||||||
call:
|
call:
|
||||||
.TP 11
|
.TP 11
|
||||||
|
|
|
@ -416,7 +416,7 @@ for a semaphore can all be retrieved using appropriate
|
||||||
.BR semctl (2)
|
.BR semctl (2)
|
||||||
calls.
|
calls.
|
||||||
.PP
|
.PP
|
||||||
The followings are limits on semaphore set resources affecting a
|
The following limits on semaphore set resources affect the
|
||||||
.BR semop ()
|
.BR semop ()
|
||||||
call:
|
call:
|
||||||
.TP
|
.TP
|
||||||
|
|
|
@ -48,7 +48,7 @@ shmctl \- shared memory control
|
||||||
.BI "int shmctl(int " shmid ", int " cmd ", struct shmid_ds *" buf );
|
.BI "int shmctl(int " shmid ", int " cmd ", struct shmid_ds *" buf );
|
||||||
.ad b
|
.ad b
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
\fBshmctl()\fP
|
.BR shmctl ()
|
||||||
allows the caller to obtain information about a shared memory segment,
|
allows the caller to obtain information about a shared memory segment,
|
||||||
set the owner, group, and permissions of a segment,
|
set the owner, group, and permissions of a segment,
|
||||||
or destroy a segment.
|
or destroy a segment.
|
||||||
|
|
|
@ -223,7 +223,7 @@ the system call ignores everything but the least significant 9 bits of
|
||||||
.I shmflg
|
.I shmflg
|
||||||
and creates a new shared memory segment (on success).
|
and creates a new shared memory segment (on success).
|
||||||
.PP
|
.PP
|
||||||
The followings are limits on shared memory segment resources affecting a
|
The following limits on shared memory segment resources affect the
|
||||||
.BR shmget ()
|
.BR shmget ()
|
||||||
call:
|
call:
|
||||||
.TP 11
|
.TP 11
|
||||||
|
|
|
@ -99,8 +99,8 @@ All times reported are in clock ticks.
|
||||||
returns the number of clock ticks that have elapsed since
|
returns the number of clock ticks that have elapsed since
|
||||||
an arbitrary point in the past.
|
an arbitrary point in the past.
|
||||||
For Linux 2.4 and earlier this point is the moment the system was booted.
|
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)
|
Since Linux 2.6, this point is \fI(2^32/HZ) - 300\fP
|
||||||
seconds before system boot time.
|
(i.e., about 429 million) seconds before system boot time.
|
||||||
The return value may overflow the possible range of type
|
The return value may overflow the possible range of type
|
||||||
.I clock_t.
|
.I clock_t.
|
||||||
On error, \fI(clock_t) \-1\fP is returned, and
|
On error, \fI(clock_t) \-1\fP is returned, and
|
||||||
|
|
|
@ -110,14 +110,10 @@ See
|
||||||
for details.
|
for details.
|
||||||
.SH "RETURN VALUE"
|
.SH "RETURN VALUE"
|
||||||
As for
|
As for
|
||||||
.BR waitpid (2);
|
.BR waitpid (2).
|
||||||
see
|
|
||||||
.BR wait (2).
|
|
||||||
.SH ERRORS
|
.SH ERRORS
|
||||||
As for
|
As for
|
||||||
.BR waitpid (2);
|
.BR waitpid (2).
|
||||||
see
|
|
||||||
.BR wait (2).
|
|
||||||
.SH NOTES
|
.SH NOTES
|
||||||
Including
|
Including
|
||||||
.I <sys/time.h>
|
.I <sys/time.h>
|
||||||
|
|
Loading…
Reference in New Issue