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:
Rasmus Villemoes 2014-04-30 21:42:35 +02:00 committed by Michael Kerrisk
parent cecb112e8e
commit 4a60035c89
1 changed files with 3 additions and 3 deletions

View File

@ -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