1 /* $DragonFly: src/lib/libc/gen/semctl.c,v 1.3 2005/04/26 06:08:42 joerg Exp $ */
10 semctl(int semid
, int semnum
, int cmd
, ...)
14 union semun
*semun_ptr
;
16 if (cmd
== IPC_SET
|| cmd
== IPC_STAT
|| cmd
== GETALL
17 || cmd
== SETVAL
|| cmd
== SETALL
) {
18 semun
= va_arg(ap
, union semun
);
25 return (semsys(0, semid
, semnum
, cmd
, semun_ptr
));