File:
[DVB] /
dietlibc /
lib /
semctl.c
Revision
1.5:
download - view:
text,
annotated -
select for diffs
Sat Feb 23 22:18:42 2002 UTC (22 years, 3 months ago) by
fefe
Branches:
MAIN
CVS tags:
finnland_test_200301,
branch_rc14_fieldtest_finnland,
branch_rc13_fieldtest_finnland,
branch_rc12_fieldtest_finnland,
branch_rc10_fieldtest_finnland,
RELEASE_finnland_200301_1,
RC12_FIELDTEST_FINNLAND,
RC10_FIELDTEST_FINNLAND,
HEAD
lots of warnings removed
#include <sys/types.h>
#include <sys/ipc.h>
extern int __ipc(int,int,int,int,void*);
union semun {
int val; /* value for SETVAL */
struct semid_ds *buf; /* buffer for IPC_STAT & IPC_SET */
unsigned short *array; /* array for GETALL & SETALL */
struct seminfo *__buf; /* buffer for IPC_INFO */
void *__pad;
};
int semctl(int semid, int semnum, int cmd, union semun arg);
int semctl(int semid, int semnum, int cmd, union semun arg) {
return __ipc(SEMCTL,semid,semnum,cmd,&arg);
}
LinuxTV legacy CVS <linuxtv.org/cvs>