sysv_sem.c (69449) | sysv_sem.c (71038) |
---|---|
1/* $FreeBSD: head/sys/kern/sysv_sem.c 69449 2000-12-01 08:57:47Z alfred $ */ | 1/* $FreeBSD: head/sys/kern/sysv_sem.c 71038 2001-01-14 18:04:30Z des $ */ |
2 3/* 4 * Implementation of SVID semaphores 5 * 6 * Author: Daniel Boulet 7 * 8 * This software is provided ``AS IS'' without any warranties of any kind. 9 */ --- 209 unchanged lines hidden (view full) --- 219 break; 220 default: 221 error = EINVAL; 222 break; 223 } 224 return (error); 225} 226 | 2 3/* 4 * Implementation of SVID semaphores 5 * 6 * Author: Daniel Boulet 7 * 8 * This software is provided ``AS IS'' without any warranties of any kind. 9 */ --- 209 unchanged lines hidden (view full) --- 219 break; 220 default: 221 error = EINVAL; 222 break; 223 } 224 return (error); 225} 226 |
227static moduledata_t sysvsem_moduledata = { 228 "sysvsem_mod", | 227static moduledata_t sysvsem_mod = { 228 "sysvsem", |
229 &sysvsem_modload, 230 NULL 231}; 232 233SYSCALL_MODULE_HELPER(semsys, 5); 234SYSCALL_MODULE_HELPER(__semctl, 4); 235SYSCALL_MODULE_HELPER(semget, 3); 236SYSCALL_MODULE_HELPER(semop, 3); 237 | 229 &sysvsem_modload, 230 NULL 231}; 232 233SYSCALL_MODULE_HELPER(semsys, 5); 234SYSCALL_MODULE_HELPER(__semctl, 4); 235SYSCALL_MODULE_HELPER(semget, 3); 236SYSCALL_MODULE_HELPER(semop, 3); 237 |
238DECLARE_MODULE(sysvsem_mod, sysvsem_moduledata, | 238DECLARE_MODULE(sysvsem, sysvsem_mod, |
239 SI_SUB_SYSV_SEM, SI_ORDER_FIRST); | 239 SI_SUB_SYSV_SEM, SI_ORDER_FIRST); |
240MODULE_VERSION(sysvsem, 1); |
|
240 241/* 242 * Entry point for all SEM calls 243 */ 244int 245semsys(p, uap) 246 struct proc *p; 247 /* XXX actually varargs. */ --- 820 unchanged lines hidden --- | 241 242/* 243 * Entry point for all SEM calls 244 */ 245int 246semsys(p, uap) 247 struct proc *p; 248 /* XXX actually varargs. */ --- 820 unchanged lines hidden --- |