summaryrefslogtreecommitdiffstats
path: root/sys/i386/ibcs2/ibcs2_ipc.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/i386/ibcs2/ibcs2_ipc.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/i386/ibcs2/ibcs2_ipc.c')
-rw-r--r--sys/i386/ibcs2/ibcs2_ipc.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/i386/ibcs2/ibcs2_ipc.c b/sys/i386/ibcs2/ibcs2_ipc.c
index c76c0e4..4bf3dd1 100644
--- a/sys/i386/ibcs2/ibcs2_ipc.c
+++ b/sys/i386/ibcs2/ibcs2_ipc.c
@@ -118,7 +118,7 @@ ibcs2_msgget(struct thread *td, void *v)
ap.key = uap->key;
ap.msgflg = uap->msgflg;
- return msgget(td, &ap);
+ return sys_msgget(td, &ap);
}
struct ibcs2_msgctl_args {
@@ -176,7 +176,7 @@ ibcs2_msgrcv(struct thread *td, void *v)
ap.msgsz = uap->msgsz;
ap.msgtyp = uap->msgtyp;
ap.msgflg = uap->msgflg;
- return (msgrcv(td, &ap));
+ return (sys_msgrcv(td, &ap));
}
struct ibcs2_msgsnd_args {
@@ -197,7 +197,7 @@ ibcs2_msgsnd(struct thread *td, void *v)
ap.msgp = uap->msgp;
ap.msgsz = uap->msgsz;
ap.msgflg = uap->msgflg;
- return (msgsnd(td, &ap));
+ return (sys_msgsnd(td, &ap));
}
int
@@ -363,7 +363,7 @@ ibcs2_semget(struct thread *td, void *v)
ap.key = uap->key;
ap.nsems = uap->nsems;
ap.semflg = uap->semflg;
- return (semget(td, &ap));
+ return (sys_semget(td, &ap));
}
struct ibcs2_semop_args {
@@ -382,7 +382,7 @@ ibcs2_semop(struct thread *td, void *v)
ap.semid = uap->semid;
ap.sops = uap->sops;
ap.nsops = uap->nsops;
- return (semop(td, &ap));
+ return (sys_semop(td, &ap));
}
int
@@ -459,7 +459,7 @@ ibcs2_shmat(struct thread *td, void *v)
ap.shmid = uap->shmid;
ap.shmaddr = uap->shmaddr;
ap.shmflg = uap->shmflg;
- return (shmat(td, &ap));
+ return (sys_shmat(td, &ap));
}
struct ibcs2_shmctl_args {
@@ -514,7 +514,7 @@ ibcs2_shmdt(struct thread *td, void *v)
struct shmdt_args ap;
ap.shmaddr = uap->shmaddr;
- return (shmdt(td, &ap));
+ return (sys_shmdt(td, &ap));
}
struct ibcs2_shmget_args {
@@ -533,7 +533,7 @@ ibcs2_shmget(struct thread *td, void *v)
ap.key = uap->key;
ap.size = uap->size;
ap.shmflg = uap->shmflg;
- return (shmget(td, &ap));
+ return (sys_shmget(td, &ap));
}
int
OpenPOWER on IntegriCloud