diff options
author | jhb <jhb@FreeBSD.org> | 2009-06-24 13:35:38 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2009-06-24 13:35:38 +0000 |
commit | d8d39adf3c7c0448b34e3fba24490d16359543e1 (patch) | |
tree | dab6afdada8ed55619fbd6a89d21c77ea0848507 /sys/kern | |
parent | 16999e2591702092178599c1e68b322400007520 (diff) | |
download | FreeBSD-src-d8d39adf3c7c0448b34e3fba24490d16359543e1.zip FreeBSD-src-d8d39adf3c7c0448b34e3fba24490d16359543e1.tar.gz |
- Move syscall function argument structure types to be just above the
relevenat system call function.
- Whitespace fixes.
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 150d9bd..3a05a34 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 fa60acf..70373d4 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 16316b4..880a2a4 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); |