mirror of https://github.com/mkerrisk/man-pages
semop.2: Fix prototypes for semop() and semtimedop()
The nsops arguments have type size_t, not unsigned, and the timeout argument of semtimedop() is const. Signed-off-by: Rasmus Villemoes <rv@rasmusvillemoes.dk> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
cecb112e8e
commit
4a60035c89
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue