OSDN Git Service

LDP: Update original to LDP v3.67
[linuxjm/LDP_man-pages.git] / original / man2 / semop.2
index 9a1d06e..105890b 100644 (file)
@@ -32,7 +32,7 @@
 .\" 2005-04-08, mtk, Noted kernel version numbers for semtimedop()
 .\" 2007-07-09, mtk, Added an EXAMPLE code segment.
 .\"
-.TH SEMOP 2 2013-04-17 "Linux" "Linux Programmer's Manual"
+.TH SEMOP 2 2014-05-10 "Linux" "Linux Programmer's Manual"
 .SH NAME
 semop, semtimedop \- System V semaphore operations
 .SH SYNOPSIS
@@ -41,10 +41,10 @@ semop, semtimedop \- System V semaphore operations
 .B #include <sys/ipc.h>
 .B #include <sys/sem.h>
 .sp
-.BI "int semop(int " semid ", struct sembuf *" sops ", unsigned " nsops );
+.BI "int semop(int " semid ", struct sembuf *" sops ", size_t " nsops );
 .sp
-.BI "int semtimedop(int " semid ", struct sembuf *" sops ", unsigned " nsops ,
-.BI "               struct timespec *" timeout );
+.BI "int semtimedop(int " semid ", struct sembuf *" sops ", size_t " nsops ,
+.BI "               const struct timespec *" timeout );
 .fi
 .sp
 .in -4n
@@ -55,7 +55,7 @@ Feature Test Macro Requirements for glibc (see
 .BR semtimedop ():
 _GNU_SOURCE
 .SH DESCRIPTION
-Each semaphore in a System V semaphore set
+Each semaphore in a System\ V semaphore set
 has the following associated values:
 .sp
 .in +4n
@@ -153,7 +153,7 @@ set to
 (and none of the operations in
 .I sops
 is performed).
-Otherwise
+Otherwise,
 .I semzcnt
 (the count of threads waiting until this semaphore's value becomes zero)
 is incremented by one and the thread sleeps until
@@ -229,7 +229,7 @@ set to
 (and none of the operations in
 .I sops
 is performed).
-Otherwise
+Otherwise,
 .I semncnt
 (the counter of threads waiting for this semaphore's value to increase)
 is incremented by one and the thread sleeps until
@@ -307,7 +307,7 @@ then
 behaves exactly like
 .BR semop ().
 .SH RETURN VALUE
-If successful
+If successful,
 .BR semop ()
 and
 .BR semtimedop ()
@@ -454,7 +454,7 @@ The \fIsemval\fP, \fIsempid\fP, \fIsemzcnt\fP, and \fIsemnct\fP values
 for a semaphore can all be retrieved using appropriate
 .BR semctl (2)
 calls.
-.PP
+.SS Semaphore limits
 The following limits on semaphore set resources affect the
 .BR semop ()
 call:
@@ -542,3 +542,12 @@ and then increment the semaphore value by one.
 .BR sem_overview (7),
 .BR svipc (7),
 .BR time (7)
+.SH COLOPHON
+This page is part of release 3.67 of the Linux
+.I man-pages
+project.
+A description of the project,
+information about reporting bugs,
+and the latest version of this page,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.