/netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/db-4.7.25.NC/mod_db4/ |
H A D | sem_utils.h | 13 extern void md4_sem_destroy(int semid); 14 extern void md4_sem_lock(int semid, int semnum); 15 extern void md4_sem_unlock(int semid, int semnum); 16 extern void md4_sem_wait_for_zero(int semid, int semnum); 17 extern void md4_sem_set(int semid, int semnum, int value); 18 extern int md4_sem_get(int semid, int semnum);
|
H A D | sem_utils.c | 45 int semid; local 50 while((semid = semget(key, semnum, IPC_CREAT | IPC_EXCL | perms)) == -1) { 55 semid = semget(key, 1, perms); 56 md4_sem_destroy(semid); 60 if(semctl(semid, 0, SETALL, arg) < 0) { 62 md4_sem_destroy(semid); 65 return semid; 68 void md4_sem_destroy(int semid) argument 71 /* semid should always be 0, this clobbers the whole set */ 72 semctl(semid, 75 md4_sem_lock(int semid, int semnum) argument 84 md4_sem_unlock(int semid, int semnum) argument 93 md4_sem_wait_for_zero(int semid, int semnum) argument 102 md4_sem_set(int semid, int semnum, int value) argument 109 md4_sem_get(int semid, int semnum) argument [all...] |
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/ipc/ |
H A D | sem.c | 94 #define sem_checkid(ns, sma, semid) \ 95 ipc_checkid(&sem_ids(ns),&sma->sem_perm,semid) 173 " key semid perms nsems uid gid cuid cgid otime ctime\n", 289 int semid = sem_buildid(ns, id, sma->sem_perm.seq); local 292 err = semid; 507 un->semid = -1; 555 static int semctl_nolock(struct ipc_namespace *ns, int semid, int semnum, argument 600 if(semid >= sem_ids(ns).entries->size) 605 sma = sem_lock(ns, semid); 617 id = sem_buildid(ns, semid, sm 637 semctl_main(struct ipc_namespace *ns, int semid, int semnum, int cmd, int version, union semun arg) argument 856 semctl_down(struct ipc_namespace *ns, int semid, int semnum, int cmd, int version, union semun arg) argument 923 sys_semctl(int semid, int semnum, int cmd, union semun arg) argument 1020 lookup_undo(struct sem_undo_list *ulp, int semid) argument 1040 find_undo(struct ipc_namespace *ns, int semid) argument 1112 sys_semtimedop(int semid, struct sembuf __user *tsops, unsigned nsops, const struct timespec __user *timeout) argument 1277 sys_semop(int semid, struct sembuf __user *tsops, unsigned nsops) argument 1340 int semid; local [all...] |
H A D | compat.c | 669 long compat_sys_semtimedop(int semid, struct sembuf __user *tsems, argument 681 return sys_semtimedop(semid, tsems, nsops, ts64);
|
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/router/busybox-1.x/util-linux/ |
H A D | ipcs.c | 251 int maxid, semid, id; local 291 "semid", "perms", "cuid", "cgid", "uid", "gid"); 306 "key", "semid", "owner", "perms", "nsems"); 312 semid = semctl(id, 0, SEM_STAT, arg); 313 if (semid < 0) 316 print_perms(semid, ipcp); 323 printf("%-8d %-10.10s", semid, pw->pw_name); 325 printf("%-8d %-10d", semid, ipcp->uid); 338 printf("%-10d %-10.9s", semid, pw->pw_name); 340 printf("%-10d %-9d", semid, ipc 521 print_sem(int semid) argument [all...] |
/netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/samba-3.0.13/source/smbd/ |
H A D | conn.c | 33 int binary_semaphore_deallocate (int semid) argument 36 return semctl (semid, 1, IPC_RMID, ignored_argument); 40 int binary_semaphore_initialize (int semid) argument 46 return semctl (semid, 0, SETALL, argument); 50 int binary_semaphore_wait (int semid) argument 59 return semop (semid, operations, 1); 64 int binary_semaphore_post (int semid) argument 73 return semop (semid, operations, 1);
|
H A D | connection.c | 27 extern int binary_semaphore_post (int semid); 28 extern int binary_semaphore_wait (int semid);
|
H A D | vfs-wrap.c | 35 extern int binary_semaphore_post (int semid); 36 extern int binary_semaphore_wait (int semid);
|
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/router/nvram/ |
H A D | nvram_linux.c | 49 int semid; local 55 if ((semid = semget (semkey, 1, IPC_CREAT | IPC_EXCL | 0666)) >= 0) 58 if (semctl (semid, 0, SETVAL, 1) < 0) 65 /* sem maybe has createdAget the semid */ 66 if ((semid = semget (semkey, 1, 0666)) < 0) 73 if (semop (semid, &lockop, 1) < 0)
|
/netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/bftpd-1.6.6/ |
H A D | main.c | 109 int binary_semaphore_deallocate (int semid) argument 112 return semctl (semid, 1, IPC_RMID, ignored_argument); 116 int binary_semaphore_initialize (int semid) argument 122 return semctl (semid, 0, SETALL, argument); 126 int binary_semaphore_wait (int semid) argument 135 return semop (semid, operations, 1); 140 int binary_semaphore_post (int semid) argument 149 return semop (semid, operations, 1);
|
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/router/busybox-1.x/sysklogd/ |
H A D | logread.c | 43 static void sem_up(int semid) argument 45 if (semop(semid, SMrup, 1) == -1)
|
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/router/rc/ |
H A D | hotplug_usb2.c | 64 int semid; local 67 if ((semid = semget (USB_SEM_KEY, 1, IPC_CREAT | IPC_EXCL | 0666)) >= 0) 70 if (semctl (semid, 0, SETVAL, 1) < 0) 83 int semid; local 85 /* sem already created. get the semid */ 86 if ((semid = semget (USB_SEM_KEY, 1, 0666)) < 0) 93 if (semop (semid, &lockop, 1) < 0)
|
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/include/linux/ |
H A D | sem.h | 124 int semid; /* semaphore set identifier */ member in struct:sem_undo
|
H A D | compat.h | 177 long compat_sys_semtimedop(int semid, struct sembuf __user *tsems,
|
H A D | syscalls.h | 462 asmlinkage long sys_semop(int semid, struct sembuf __user *sops, 464 asmlinkage long sys_semctl(int semid, int semnum, int cmd, union semun arg); 465 asmlinkage long sys_semtimedop(int semid, struct sembuf __user *sops,
|
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/arch/arm/kernel/ |
H A D | sys_oabi-compat.c | 288 asmlinkage long sys_oabi_semtimedop(int semid, argument 320 err = sys_semtimedop(semid, sops, nsops, timeout); 327 asmlinkage long sys_oabi_semop(int semid, struct oabi_sembuf __user *tsops, argument 330 return sys_oabi_semtimedop(semid, tsops, nsops, NULL);
|
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/arch/parisc/kernel/ |
H A D | sys_parisc32.c | 596 asmlinkage long sys32_semctl(int semid, int semnum, int cmd, union semun arg) argument 606 return sys_semctl (semid, semnum, cmd, u); 608 return sys_semctl (semid, semnum, cmd, arg);
|
/netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/samba-3.0.13/source/include/ |
H A D | smb.h | 193 int binary_semaphore_deallocate (int semid); 194 int binary_semaphore_initialize (int semid); 195 int binary_semaphore_wait (int semid); 196 int binary_semaphore_post (int semid);
|
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/arch/mips/kernel/ |
H A D | linux32.c | 384 asmlinkage long sysn32_semctl(int semid, int semnum, int cmd, u32 arg) argument 390 return compat_sys_semctl(semid, semnum, cmd, uptr);
|