diff options
Diffstat (limited to 'sys/compat/linux/linux_misc.c')
-rw-r--r-- | sys/compat/linux/linux_misc.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index bbc805d..e7e0525 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -209,7 +209,7 @@ linux_brk(struct thread *td, struct linux_brk_args *args) old = (vm_offset_t)vm->vm_daddr + ctob(vm->vm_dsize); new = (vm_offset_t)args->dsend; tmp.nsize = (char *)new; - if (((caddr_t)new > vm->vm_daddr) && !obreak(td, &tmp)) + if (((caddr_t)new > vm->vm_daddr) && !sys_obreak(td, &tmp)) td->td_retval[0] = (long)new; else td->td_retval[0] = (long)old; @@ -609,7 +609,7 @@ linux_mremap(struct thread *td, struct linux_mremap_args *args) bsd_args.addr = (caddr_t)((uintptr_t)args->addr + args->new_len); bsd_args.len = args->old_len - args->new_len; - error = munmap(td, &bsd_args); + error = sys_munmap(td, &bsd_args); } td->td_retval[0] = error ? 0 : (uintptr_t)args->addr; @@ -629,7 +629,7 @@ linux_msync(struct thread *td, struct linux_msync_args *args) bsd_args.len = (uintptr_t)args->len; bsd_args.flags = args->fl & ~LINUX_MS_SYNC; - return (msync(td, &bsd_args)); + return (sys_msync(td, &bsd_args)); } int @@ -1085,7 +1085,7 @@ linux_nice(struct thread *td, struct linux_nice_args *args) bsd_args.which = PRIO_PROCESS; bsd_args.who = 0; /* current process */ bsd_args.prio = args->inc; - return (setpriority(td, &bsd_args)); + return (sys_setpriority(td, &bsd_args)); } int @@ -1317,7 +1317,7 @@ linux_sched_setscheduler(struct thread *td, bsd.pid = args->pid; bsd.param = (struct sched_param *)args->param; - return (sched_setscheduler(td, &bsd)); + return (sys_sched_setscheduler(td, &bsd)); } int @@ -1333,7 +1333,7 @@ linux_sched_getscheduler(struct thread *td, #endif bsd.pid = args->pid; - error = sched_getscheduler(td, &bsd); + error = sys_sched_getscheduler(td, &bsd); switch (td->td_retval[0]) { case SCHED_OTHER: @@ -1374,7 +1374,7 @@ linux_sched_get_priority_max(struct thread *td, default: return (EINVAL); } - return (sched_get_priority_max(td, &bsd)); + return (sys_sched_get_priority_max(td, &bsd)); } int @@ -1401,7 +1401,7 @@ linux_sched_get_priority_min(struct thread *td, default: return (EINVAL); } - return (sched_get_priority_min(td, &bsd)); + return (sys_sched_get_priority_min(td, &bsd)); } #define REBOOT_CAD_ON 0x89abcdef @@ -1454,7 +1454,7 @@ linux_reboot(struct thread *td, struct linux_reboot_args *args) default: return (EINVAL); } - return (reboot(td, &bsd_args)); + return (sys_reboot(td, &bsd_args)); } @@ -1592,7 +1592,7 @@ linux_getsid(struct thread *td, struct linux_getsid_args *args) #endif bsd.pid = args->pid; - return (getsid(td, &bsd)); + return (sys_getsid(td, &bsd)); } int @@ -1615,7 +1615,7 @@ linux_getpriority(struct thread *td, struct linux_getpriority_args *args) bsd_args.which = args->which; bsd_args.who = args->who; - error = getpriority(td, &bsd_args); + error = sys_getpriority(td, &bsd_args); td->td_retval[0] = 20 - td->td_retval[0]; return (error); } @@ -1893,7 +1893,7 @@ linux_sched_getaffinity(struct thread *td, cga.cpusetsize = sizeof(cpuset_t); cga.mask = (cpuset_t *) args->user_mask_ptr; - if ((error = cpuset_getaffinity(td, &cga)) == 0) + if ((error = sys_cpuset_getaffinity(td, &cga)) == 0) td->td_retval[0] = sizeof(cpuset_t); return (error); @@ -1922,5 +1922,5 @@ linux_sched_setaffinity(struct thread *td, csa.cpusetsize = sizeof(cpuset_t); csa.mask = (cpuset_t *) args->user_mask_ptr; - return (cpuset_setaffinity(td, &csa)); + return (sys_cpuset_setaffinity(td, &csa)); } |