]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
semctl.2: 'sem_nsems' is 'unsigned long' since Linux 2.4
authorMichael Kerrisk <mtk.manpages@gmail.com>
Mon, 3 Jun 2013 16:44:45 +0000 (18:44 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Mon, 3 Jun 2013 16:44:45 +0000 (18:44 +0200)
Reported-by: Simone Piccardi <piccardi@truelite.it>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/semctl.2

index d1bc542a9f475d7ad476696aebba60809811b988..c9124d7bf071c35b1a6aedb89f2674986b0896f7 100644 (file)
@@ -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>