mirror of https://github.com/mkerrisk/man-pages
semctl.2: 'sem_nsems' is 'unsigned long' since Linux 2.4
Reported-by: Simone Piccardi <piccardi@truelite.it> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
751c0f1a66
commit
32398a624c
|
@ -38,7 +38,7 @@
|
|||
.\" Added semid_ds and ipc_perm structure definitions
|
||||
.\" 2005-08-02, mtk: Added IPC_INFO, SEM_INFO, SEM_STAT descriptions.
|
||||
.\"
|
||||
.TH SEMCTL 2 2012-05-31 "Linux" "Linux Programmer's Manual"
|
||||
.TH SEMCTL 2 2013-06-03 "Linux" "Linux Programmer's Manual"
|
||||
.SH NAME
|
||||
semctl \- System V semaphore control operations
|
||||
.SH SYNOPSIS
|
||||
|
@ -88,7 +88,7 @@ struct semid_ds {
|
|||
struct ipc_perm sem_perm; /* Ownership and permissions */
|
||||
time_t sem_otime; /* Last semop time */
|
||||
time_t sem_ctime; /* Last change time */
|
||||
unsigned short sem_nsems; /* No. of semaphores in set */
|
||||
unsigned long sem_nsems; /* No. of semaphores in set */
|
||||
};
|
||||
.in
|
||||
.fi
|
||||
|
@ -462,6 +462,17 @@ or greater than the implementation limit
|
|||
.SH CONFORMING TO
|
||||
SVr4, POSIX.1-2001.
|
||||
.\" SVr4 documents more error conditions EINVAL and EOVERFLOW.
|
||||
|
||||
POSIX.1-2001 specifies the
|
||||
.I sem_nsems
|
||||
field of the
|
||||
.I semid_ds
|
||||
structure as having the type
|
||||
.IR "unsigned\ short" ,
|
||||
and the field is so defined on most other systems.
|
||||
It was also so defined on Linux 2.2 and earlier,
|
||||
but, since Linux 2.4, the field has the type
|
||||
.IR "unsigned\ long" .
|
||||
.SH NOTES
|
||||
The inclusion of
|
||||
.I <sys/types.h>
|
||||
|
|
Loading…
Reference in New Issue