summaryrefslogtreecommitdiffstats
path: root/sys/kern/sysv_shm.c
diff options
context:
space:
mode:
authorkmacy <kmacy@FreeBSD.org>2011-09-16 13:58:51 +0000
committerkmacy <kmacy@FreeBSD.org>2011-09-16 13:58:51 +0000
commit99851f359e6f006b3223bb37dbc49e751ca8c13a (patch)
tree2ed8c1cfa9e408c1c66c2cde0823123897e0306e /sys/kern/sysv_shm.c
parentbf8fedabcd023c90bb2ee4ce0e5d6d8c2b927714 (diff)
downloadFreeBSD-src-99851f359e6f006b3223bb37dbc49e751ca8c13a.zip
FreeBSD-src-99851f359e6f006b3223bb37dbc49e751ca8c13a.tar.gz
In order to maximize the re-usability of kernel code in user space this
patch modifies makesyscalls.sh to prefix all of the non-compatibility calls (e.g. not linux_, freebsd32_) with sys_ and updates the kernel entry points and all places in the code that use them. It also fixes an additional name space collision between the kernel function psignal and the libc function of the same name by renaming the kernel psignal kern_psignal(). By introducing this change now we will ease future MFCs that change syscalls. Reviewed by: rwatson Approved by: re (bz)
Diffstat (limited to 'sys/kern/sysv_shm.c')
-rw-r--r--sys/kern/sysv_shm.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/sys/kern/sysv_shm.c b/sys/kern/sysv_shm.c
index 1741a21..2bad484 100644
--- a/sys/kern/sysv_shm.c
+++ b/sys/kern/sysv_shm.c
@@ -284,7 +284,7 @@ struct shmdt_args {
};
#endif
int
-shmdt(td, uap)
+sys_shmdt(td, uap)
struct thread *td;
struct shmdt_args *uap;
{
@@ -434,7 +434,7 @@ done2:
}
int
-shmat(td, uap)
+sys_shmat(td, uap)
struct thread *td;
struct shmat_args *uap;
{
@@ -559,7 +559,7 @@ struct shmctl_args {
};
#endif
int
-shmctl(td, uap)
+sys_shmctl(td, uap)
struct thread *td;
struct shmctl_args *uap;
{
@@ -750,7 +750,7 @@ struct shmget_args {
};
#endif
int
-shmget(td, uap)
+sys_shmget(td, uap)
struct thread *td;
struct shmget_args *uap;
{
@@ -851,7 +851,7 @@ static struct syscall_helper_data shm_syscalls[] = {
SYSCALL_INIT_HELPER(shmget),
#if defined(COMPAT_FREEBSD4) || defined(COMPAT_FREEBSD5) || \
defined(COMPAT_FREEBSD6) || defined(COMPAT_FREEBSD7)
- SYSCALL_INIT_HELPER(freebsd7_shmctl),
+ SYSCALL_INIT_HELPER_COMPAT(freebsd7_shmctl),
#endif
#if defined(__i386__) && (defined(COMPAT_FREEBSD4) || defined(COMPAT_43))
SYSCALL_INIT_HELPER(shmsys),
@@ -868,9 +868,9 @@ static struct syscall_helper_data shm_syscalls[] = {
#include <compat/freebsd32/freebsd32_util.h>
static struct syscall_helper_data shm32_syscalls[] = {
- SYSCALL32_INIT_HELPER(shmat),
- SYSCALL32_INIT_HELPER(shmdt),
- SYSCALL32_INIT_HELPER(shmget),
+ SYSCALL32_INIT_HELPER_COMPAT(shmat),
+ SYSCALL32_INIT_HELPER_COMPAT(shmdt),
+ SYSCALL32_INIT_HELPER_COMPAT(shmget),
SYSCALL32_INIT_HELPER(freebsd32_shmsys),
SYSCALL32_INIT_HELPER(freebsd32_shmctl),
#if defined(COMPAT_FREEBSD4) || defined(COMPAT_FREEBSD5) || \
@@ -1040,13 +1040,13 @@ done2:
/* XXX casting to (sy_call_t *) is bogus, as usual. */
static sy_call_t *shmcalls[] = {
- (sy_call_t *)shmat, (sy_call_t *)oshmctl,
- (sy_call_t *)shmdt, (sy_call_t *)shmget,
+ (sy_call_t *)sys_shmat, (sy_call_t *)oshmctl,
+ (sy_call_t *)sys_shmdt, (sy_call_t *)sys_shmget,
(sy_call_t *)freebsd7_shmctl
};
int
-shmsys(td, uap)
+sys_shmsys(td, uap)
struct thread *td;
/* XXX actually varargs. */
struct shmsys_args /* {
OpenPOWER on IntegriCloud