summaryrefslogtreecommitdiffstats
path: root/sys/vm
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/vm
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/vm')
-rw-r--r--sys/vm/swap_pager.c4
-rw-r--r--sys/vm/vm_mmap.c30
-rw-r--r--sys/vm/vm_unix.c4
3 files changed, 19 insertions, 19 deletions
diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c
index d7da4f9..058c155 100644
--- a/sys/vm/swap_pager.c
+++ b/sys/vm/swap_pager.c
@@ -2057,7 +2057,7 @@ struct swapon_args {
*/
/* ARGSUSED */
int
-swapon(struct thread *td, struct swapon_args *uap)
+sys_swapon(struct thread *td, struct swapon_args *uap)
{
struct vattr attr;
struct vnode *vp;
@@ -2199,7 +2199,7 @@ struct swapoff_args {
*/
/* ARGSUSED */
int
-swapoff(struct thread *td, struct swapoff_args *uap)
+sys_swapoff(struct thread *td, struct swapoff_args *uap)
{
struct vnode *vp;
struct nameidata nd;
diff --git a/sys/vm/vm_mmap.c b/sys/vm/vm_mmap.c
index ce899e9..e85b681 100644
--- a/sys/vm/vm_mmap.c
+++ b/sys/vm/vm_mmap.c
@@ -104,7 +104,7 @@ static int vm_mmap_shm(struct thread *, vm_size_t, vm_prot_t, vm_prot_t *,
*/
/* ARGSUSED */
int
-sbrk(td, uap)
+sys_sbrk(td, uap)
struct thread *td;
struct sbrk_args *uap;
{
@@ -123,7 +123,7 @@ struct sstk_args {
*/
/* ARGSUSED */
int
-sstk(td, uap)
+sys_sstk(td, uap)
struct thread *td;
struct sstk_args *uap;
{
@@ -180,7 +180,7 @@ struct mmap_args {
* MPSAFE
*/
int
-mmap(td, uap)
+sys_mmap(td, uap)
struct thread *td;
struct mmap_args *uap;
{
@@ -402,7 +402,7 @@ freebsd6_mmap(struct thread *td, struct freebsd6_mmap_args *uap)
oargs.flags = uap->flags;
oargs.fd = uap->fd;
oargs.pos = uap->pos;
- return (mmap(td, &oargs));
+ return (sys_mmap(td, &oargs));
}
#ifdef COMPAT_43
@@ -454,7 +454,7 @@ ommap(td, uap)
nargs.flags |= MAP_FIXED;
nargs.fd = uap->fd;
nargs.pos = uap->pos;
- return (mmap(td, &nargs));
+ return (sys_mmap(td, &nargs));
}
#endif /* COMPAT_43 */
@@ -470,7 +470,7 @@ struct msync_args {
* MPSAFE
*/
int
-msync(td, uap)
+sys_msync(td, uap)
struct thread *td;
struct msync_args *uap;
{
@@ -523,7 +523,7 @@ struct munmap_args {
* MPSAFE
*/
int
-munmap(td, uap)
+sys_munmap(td, uap)
struct thread *td;
struct munmap_args *uap;
{
@@ -599,7 +599,7 @@ struct mprotect_args {
* MPSAFE
*/
int
-mprotect(td, uap)
+sys_mprotect(td, uap)
struct thread *td;
struct mprotect_args *uap;
{
@@ -641,7 +641,7 @@ struct minherit_args {
* MPSAFE
*/
int
-minherit(td, uap)
+sys_minherit(td, uap)
struct thread *td;
struct minherit_args *uap;
{
@@ -683,7 +683,7 @@ struct madvise_args {
*/
/* ARGSUSED */
int
-madvise(td, uap)
+sys_madvise(td, uap)
struct thread *td;
struct madvise_args *uap;
{
@@ -747,7 +747,7 @@ struct mincore_args {
*/
/* ARGSUSED */
int
-mincore(td, uap)
+sys_mincore(td, uap)
struct thread *td;
struct mincore_args *uap;
{
@@ -1003,7 +1003,7 @@ struct mlock_args {
* MPSAFE
*/
int
-mlock(td, uap)
+sys_mlock(td, uap)
struct thread *td;
struct mlock_args *uap;
{
@@ -1067,7 +1067,7 @@ struct mlockall_args {
* MPSAFE
*/
int
-mlockall(td, uap)
+sys_mlockall(td, uap)
struct thread *td;
struct mlockall_args *uap;
{
@@ -1144,7 +1144,7 @@ struct munlockall_args {
* MPSAFE
*/
int
-munlockall(td, uap)
+sys_munlockall(td, uap)
struct thread *td;
struct munlockall_args *uap;
{
@@ -1185,7 +1185,7 @@ struct munlock_args {
* MPSAFE
*/
int
-munlock(td, uap)
+sys_munlock(td, uap)
struct thread *td;
struct munlock_args *uap;
{
diff --git a/sys/vm/vm_unix.c b/sys/vm/vm_unix.c
index 6f8e7c8..e08aa6a 100644
--- a/sys/vm/vm_unix.c
+++ b/sys/vm/vm_unix.c
@@ -68,7 +68,7 @@ struct obreak_args {
*/
/* ARGSUSED */
int
-obreak(td, uap)
+sys_obreak(td, uap)
struct thread *td;
struct obreak_args *uap;
{
@@ -197,7 +197,7 @@ struct ovadvise_args {
*/
/* ARGSUSED */
int
-ovadvise(td, uap)
+sys_ovadvise(td, uap)
struct thread *td;
struct ovadvise_args *uap;
{
OpenPOWER on IntegriCloud