00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef MOD_DB4_SEM_UTILS_H
00011 #define MOD_DB4_SEM_UTILS_H
00012
00013 extern int md4_sem_create(int semnum, unsigned short *start);
00014 extern void md4_sem_destroy(int semid);
00015 extern void md4_sem_lock(int semid, int semnum);
00016 extern void md4_sem_unlock(int semid, int semnum);
00017 extern void md4_sem_wait_for_zero(int semid, int semnum);
00018 extern void md4_sem_set(int semid, int semnum, int value);
00019 extern int md4_sem_get(int semid, int semnum);
00020
00021
00022 #endif