diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2009-06-24 13:35:38 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2009-06-24 13:35:38 +0000 |
| commit | 71361470b16f78435dce112baf4bec8d365d21e7 (patch) | |
| tree | dab6afdada8ed55619fbd6a89d21c77ea0848507 /sys/kern | |
| parent | 63d9261ab25ad0ea9117771e87b9a00bfcf8c298 (diff) | |
Notes
Diffstat (limited to 'sys/kern')
| -rw-r--r-- | sys/kern/sysv_msg.c | 3 | ||||
| -rw-r--r-- | sys/kern/sysv_sem.c | 3 | ||||
| -rw-r--r-- | sys/kern/sysv_shm.c | 31 |
3 files changed, 17 insertions, 20 deletions
diff --git a/sys/kern/sysv_msg.c b/sys/kern/sysv_msg.c index 150d9bdf4915..3a05a347bd5b 100644 --- a/sys/kern/sysv_msg.c +++ b/sys/kern/sysv_msg.c @@ -314,8 +314,7 @@ SYSCALL_MODULE_HELPER(msgget); SYSCALL_MODULE_HELPER(msgsnd); SYSCALL_MODULE_HELPER(msgrcv); -DECLARE_MODULE(sysvmsg, sysvmsg_mod, - SI_SUB_SYSV_MSG, SI_ORDER_FIRST); +DECLARE_MODULE(sysvmsg, sysvmsg_mod, SI_SUB_SYSV_MSG, SI_ORDER_FIRST); MODULE_VERSION(sysvmsg, 1); /* diff --git a/sys/kern/sysv_sem.c b/sys/kern/sysv_sem.c index fa60acfbb179..70373d4af0e3 100644 --- a/sys/kern/sysv_sem.c +++ b/sys/kern/sysv_sem.c @@ -322,8 +322,7 @@ SYSCALL_MODULE_HELPER(__semctl); SYSCALL_MODULE_HELPER(semget); SYSCALL_MODULE_HELPER(semop); -DECLARE_MODULE(sysvsem, sysvsem_mod, - SI_SUB_SYSV_SEM, SI_ORDER_FIRST); +DECLARE_MODULE(sysvsem, sysvsem_mod, SI_SUB_SYSV_SEM, SI_ORDER_FIRST); MODULE_VERSION(sysvsem, 1); /* diff --git a/sys/kern/sysv_shm.c b/sys/kern/sysv_shm.c index 16316b4558e6..880a2a4a6529 100644 --- a/sys/kern/sysv_shm.c +++ b/sys/kern/sysv_shm.c @@ -519,13 +519,6 @@ done2: } #endif -#ifndef _SYS_SYSPROTO_H_ -struct shmctl_args { - int shmid; - int cmd; - struct shmid_ds *buf; -}; -#endif int kern_shmctl(td, shmid, cmd, buf, bufsz) struct thread *td; @@ -636,6 +629,13 @@ done2: return (error); } +#ifndef _SYS_SYSPROTO_H_ +struct shmctl_args { + int shmid; + int cmd; + struct shmid_ds *buf; +}; +#endif int shmctl(td, uap) struct thread *td; @@ -680,13 +680,6 @@ done: } -#ifndef _SYS_SYSPROTO_H_ -struct shmget_args { - key_t key; - size_t size; - int shmflg; -}; -#endif static int shmget_existing(td, uap, mode, segnum) struct thread *td; @@ -807,6 +800,13 @@ shmget_allocate_segment(td, uap, mode) return (0); } +#ifndef _SYS_SYSPROTO_H_ +struct shmget_args { + key_t key; + size_t size; + int shmflg; +}; +#endif int shmget(td, uap) struct thread *td; @@ -1024,6 +1024,5 @@ SYSCALL_MODULE_HELPER(shmctl); SYSCALL_MODULE_HELPER(shmdt); SYSCALL_MODULE_HELPER(shmget); -DECLARE_MODULE(sysvshm, sysvshm_mod, - SI_SUB_SYSV_SHM, SI_ORDER_FIRST); +DECLARE_MODULE(sysvshm, sysvshm_mod, SI_SUB_SYSV_SHM, SI_ORDER_FIRST); MODULE_VERSION(sysvshm, 1); |
