summaryrefslogtreecommitdiffstats
path: root/sys/kern/sysv_shm.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2009-06-24 13:35:38 +0000
committerjhb <jhb@FreeBSD.org>2009-06-24 13:35:38 +0000
commitd8d39adf3c7c0448b34e3fba24490d16359543e1 (patch)
treedab6afdada8ed55619fbd6a89d21c77ea0848507 /sys/kern/sysv_shm.c
parent16999e2591702092178599c1e68b322400007520 (diff)
downloadFreeBSD-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/sysv_shm.c')
-rw-r--r--sys/kern/sysv_shm.c31
1 files changed, 15 insertions, 16 deletions
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);
OpenPOWER on IntegriCloud