summaryrefslogtreecommitdiff
path: root/sys/compat/linux
diff options
context:
space:
mode:
authorjdolecek <jdolecek@NetBSD.org>2004-08-01 10:32:40 +0000
committerjdolecek <jdolecek@NetBSD.org>2004-08-01 10:32:40 +0000
commitae85fa27f71f190ef15a75e10307e7e76e46ecb9 (patch)
tree1bd38e7e97edd9e90c610350416324483022e938 /sys/compat/linux
parentd8b993b9d6f978fe96b13905c288508922ab1ce6 (diff)
connect madvise(2) and mincore(2) - apparently the newer Linux libs
don't stub it anymore, so allow the application to take advantage of them the Linux calls appear to be compatible in the flag values and semantics, so a wrapper is not necessary
Diffstat (limited to 'sys/compat/linux')
-rw-r--r--sys/compat/linux/arch/alpha/syscalls.master7
-rw-r--r--sys/compat/linux/arch/arm/syscalls.master6
-rw-r--r--sys/compat/linux/arch/i386/linux_syscall.h8
-rw-r--r--sys/compat/linux/arch/i386/linux_syscallargs.h188
-rw-r--r--sys/compat/linux/arch/i386/linux_syscalls.c8
-rw-r--r--sys/compat/linux/arch/i386/linux_sysent.c12
-rw-r--r--sys/compat/linux/arch/i386/syscalls.master6
-rw-r--r--sys/compat/linux/arch/mips/syscalls.master6
-rw-r--r--sys/compat/linux/arch/powerpc/syscalls.master6
9 files changed, 209 insertions, 38 deletions
diff --git a/sys/compat/linux/arch/alpha/syscalls.master b/sys/compat/linux/arch/alpha/syscalls.master
index 7f616b89177..f3d4bd97d2d 100644
--- a/sys/compat/linux/arch/alpha/syscalls.master
+++ b/sys/compat/linux/arch/alpha/syscalls.master
@@ -1,4 +1,4 @@
- $NetBSD: syscalls.master,v 1.42 2003/01/18 08:02:46 thorpej Exp $
+ $NetBSD: syscalls.master,v 1.43 2004/08/01 10:36:35 jdolecek Exp $
;
; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
@@ -179,8 +179,7 @@
73 NOARGS { int sys_munmap(void *addr, size_t len); }
74 STD { int linux_sys_mprotect(const void *start, \
unsigned long len, int prot); }
-; Linux sys_madvise just returns 0.
-75 UNIMPL madvise
+75 NOARGS { int sys_madvise(void *addr, size_t len, int behav); }
76 UNIMPL vhangup
77 UNIMPL
78 UNIMPL
@@ -601,7 +600,7 @@
372 UNIMPL getresgid
373 UNIMPL sys_dipc
374 UNIMPL pivot_root
-375 UNIMPL mincore
+375 NOARGS { int sys_mincore(void *addr, size_t len, char *vec); }
376 UNIMPL pciconfig_iobase
377 STD { int linux_sys_getdents64(int fd, \
struct linux_dirent64 *dent, unsigned int count); }
diff --git a/sys/compat/linux/arch/arm/syscalls.master b/sys/compat/linux/arch/arm/syscalls.master
index cae9daa6371..9a94b2b7ae2 100644
--- a/sys/compat/linux/arch/arm/syscalls.master
+++ b/sys/compat/linux/arch/arm/syscalls.master
@@ -1,4 +1,4 @@
- $NetBSD: syscalls.master,v 1.15 2003/08/10 20:16:20 jdolecek Exp $
+ $NetBSD: syscalls.master,v 1.16 2004/08/01 10:32:40 jdolecek Exp $
; Derived from sys/compat/linux/arch/*/syscalls.master
; and from Linux 2.4.12 arch/arm/kernel/calls.S
@@ -373,8 +373,8 @@
217 STD { int linux_sys_getdents64(int fd, \
struct linux_dirent64 *dent, unsigned int count); }
218 UNIMPL pivot_root
-219 UNIMPL mincore
-220 UNIMPL madvise
+219 NOARGS { int sys_mincore(void *addr, size_t len, char *vec); }
+220 NOARGS { int sys_madvise(void *addr, size_t len, int behav); }
221 STD { int linux_sys_fcntl64(int fd, int cmd, void *arg); }
; Fill until 256
222 UNIMPL
diff --git a/sys/compat/linux/arch/i386/linux_syscall.h b/sys/compat/linux/arch/i386/linux_syscall.h
index 9f9f5aa1521..d402f8e3471 100644
--- a/sys/compat/linux/arch/i386/linux_syscall.h
+++ b/sys/compat/linux/arch/i386/linux_syscall.h
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_syscall.h,v 1.49 2003/08/10 20:17:23 jdolecek Exp $ */
+/* $NetBSD: linux_syscall.h,v 1.50 2004/08/01 10:32:40 jdolecek Exp $ */
/*
* System call numbers.
@@ -557,6 +557,12 @@
/* syscall: "getfsuid" ret: "int" args: */
#define LINUX_SYS_getfsuid 216
+/* syscall: "mincore" ret: "int" args: "void *" "size_t" "char *" */
+#define LINUX_SYS_mincore 218
+
+/* syscall: "madvise" ret: "int" args: "void *" "size_t" "int" */
+#define LINUX_SYS_madvise 219
+
/* syscall: "getdents64" ret: "int" args: "int" "struct linux_dirent64 *" "unsigned int" */
#define LINUX_SYS_getdents64 220
diff --git a/sys/compat/linux/arch/i386/linux_syscallargs.h b/sys/compat/linux/arch/i386/linux_syscallargs.h
index 351b841979d..d4b459c96d1 100644
--- a/sys/compat/linux/arch/i386/linux_syscallargs.h
+++ b/sys/compat/linux/arch/i386/linux_syscallargs.h
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_syscallargs.h,v 1.49 2003/08/10 20:17:23 jdolecek Exp $ */
+/* $NetBSD: linux_syscallargs.h,v 1.50 2004/08/01 10:32:40 jdolecek Exp $ */
/*
* System call argument lists.
@@ -620,185 +620,351 @@ struct linux_sys_fcntl64_args {
*/
int linux_sys_nosys(struct lwp *, void *, register_t *);
+
int sys_exit(struct lwp *, void *, register_t *);
+
int sys_fork(struct lwp *, void *, register_t *);
+
int sys_read(struct lwp *, void *, register_t *);
+
int sys_write(struct lwp *, void *, register_t *);
+
int linux_sys_open(struct lwp *, void *, register_t *);
+
int sys_close(struct lwp *, void *, register_t *);
+
int linux_sys_waitpid(struct lwp *, void *, register_t *);
+
int linux_sys_creat(struct lwp *, void *, register_t *);
+
int linux_sys_link(struct lwp *, void *, register_t *);
+
int linux_sys_unlink(struct lwp *, void *, register_t *);
+
int linux_sys_execve(struct lwp *, void *, register_t *);
+
int linux_sys_chdir(struct lwp *, void *, register_t *);
+
int linux_sys_time(struct lwp *, void *, register_t *);
+
int linux_sys_mknod(struct lwp *, void *, register_t *);
+
int linux_sys_chmod(struct lwp *, void *, register_t *);
+
int linux_sys_lchown16(struct lwp *, void *, register_t *);
+
int linux_sys_break(struct lwp *, void *, register_t *);
+
int compat_43_sys_lseek(struct lwp *, void *, register_t *);
+
int sys_getpid(struct lwp *, void *, register_t *);
+
int sys_setuid(struct lwp *, void *, register_t *);
+
int sys_getuid(struct lwp *, void *, register_t *);
+
int linux_sys_stime(struct lwp *, void *, register_t *);
+
int linux_sys_ptrace(struct lwp *, void *, register_t *);
+
int linux_sys_alarm(struct lwp *, void *, register_t *);
+
int linux_sys_pause(struct lwp *, void *, register_t *);
+
int linux_sys_utime(struct lwp *, void *, register_t *);
+
int linux_sys_access(struct lwp *, void *, register_t *);
+
int linux_sys_nice(struct lwp *, void *, register_t *);
+
int sys_sync(struct lwp *, void *, register_t *);
+
int linux_sys_kill(struct lwp *, void *, register_t *);
+
int linux_sys_rename(struct lwp *, void *, register_t *);
+
int linux_sys_mkdir(struct lwp *, void *, register_t *);
+
int linux_sys_rmdir(struct lwp *, void *, register_t *);
+
int sys_dup(struct lwp *, void *, register_t *);
+
int linux_sys_pipe(struct lwp *, void *, register_t *);
+
int linux_sys_times(struct lwp *, void *, register_t *);
+
int linux_sys_brk(struct lwp *, void *, register_t *);
+
int sys_setgid(struct lwp *, void *, register_t *);
+
int sys_getgid(struct lwp *, void *, register_t *);
+
int linux_sys_signal(struct lwp *, void *, register_t *);
+
int sys_geteuid(struct lwp *, void *, register_t *);
+
int sys_getegid(struct lwp *, void *, register_t *);
+
int sys_acct(struct lwp *, void *, register_t *);
+
int linux_sys_ioctl(struct lwp *, void *, register_t *);
+
int linux_sys_fcntl(struct lwp *, void *, register_t *);
+
int sys_setpgid(struct lwp *, void *, register_t *);
+
int linux_sys_oldolduname(struct lwp *, void *, register_t *);
+
int sys_umask(struct lwp *, void *, register_t *);
+
int sys_chroot(struct lwp *, void *, register_t *);
+
int sys_dup2(struct lwp *, void *, register_t *);
+
int sys_getppid(struct lwp *, void *, register_t *);
+
int sys_getpgrp(struct lwp *, void *, register_t *);
+
int sys_setsid(struct lwp *, void *, register_t *);
+
int linux_sys_sigaction(struct lwp *, void *, register_t *);
+
int linux_sys_siggetmask(struct lwp *, void *, register_t *);
+
int linux_sys_sigsetmask(struct lwp *, void *, register_t *);
+
int linux_sys_setreuid16(struct lwp *, void *, register_t *);
+
int linux_sys_setregid16(struct lwp *, void *, register_t *);
+
int linux_sys_sigsuspend(struct lwp *, void *, register_t *);
+
int linux_sys_sigpending(struct lwp *, void *, register_t *);
+
int compat_43_sys_sethostname(struct lwp *, void *, register_t *);
+
int linux_sys_setrlimit(struct lwp *, void *, register_t *);
+
int linux_sys_getrlimit(struct lwp *, void *, register_t *);
+
int sys_getrusage(struct lwp *, void *, register_t *);
+
int linux_sys_gettimeofday(struct lwp *, void *, register_t *);
+
int linux_sys_settimeofday(struct lwp *, void *, register_t *);
+
int linux_sys_getgroups16(struct lwp *, void *, register_t *);
+
int linux_sys_setgroups16(struct lwp *, void *, register_t *);
+
int linux_sys_oldselect(struct lwp *, void *, register_t *);
+
int linux_sys_symlink(struct lwp *, void *, register_t *);
+
int compat_43_sys_lstat(struct lwp *, void *, register_t *);
+
int linux_sys_readlink(struct lwp *, void *, register_t *);
+
int linux_sys_uselib(struct lwp *, void *, register_t *);
+
int linux_sys_swapon(struct lwp *, void *, register_t *);
+
int linux_sys_reboot(struct lwp *, void *, register_t *);
+
int linux_sys_readdir(struct lwp *, void *, register_t *);
+
int linux_sys_old_mmap(struct lwp *, void *, register_t *);
+
int sys_munmap(struct lwp *, void *, register_t *);
+
int linux_sys_truncate(struct lwp *, void *, register_t *);
+
int compat_43_sys_ftruncate(struct lwp *, void *, register_t *);
+
int sys_fchmod(struct lwp *, void *, register_t *);
+
int linux_sys_fchown16(struct lwp *, void *, register_t *);
+
int sys_getpriority(struct lwp *, void *, register_t *);
+
int sys_setpriority(struct lwp *, void *, register_t *);
+
int sys_profil(struct lwp *, void *, register_t *);
+
int linux_sys_statfs(struct lwp *, void *, register_t *);
+
int linux_sys_fstatfs(struct lwp *, void *, register_t *);
+
int linux_sys_ioperm(struct lwp *, void *, register_t *);
+
int linux_sys_socketcall(struct lwp *, void *, register_t *);
+
int sys_setitimer(struct lwp *, void *, register_t *);
+
int sys_getitimer(struct lwp *, void *, register_t *);
+
int linux_sys_stat(struct lwp *, void *, register_t *);
+
int linux_sys_lstat(struct lwp *, void *, register_t *);
+
int linux_sys_fstat(struct lwp *, void *, register_t *);
+
int linux_sys_olduname(struct lwp *, void *, register_t *);
+
int linux_sys_iopl(struct lwp *, void *, register_t *);
+
int linux_sys_wait4(struct lwp *, void *, register_t *);
+
int linux_sys_swapoff(struct lwp *, void *, register_t *);
+
int linux_sys_sysinfo(struct lwp *, void *, register_t *);
+
int linux_sys_ipc(struct lwp *, void *, register_t *);
+
int sys_fsync(struct lwp *, void *, register_t *);
+
int linux_sys_sigreturn(struct lwp *, void *, register_t *);
+
int linux_sys_clone(struct lwp *, void *, register_t *);
+
int linux_sys_setdomainname(struct lwp *, void *, register_t *);
+
int linux_sys_uname(struct lwp *, void *, register_t *);
+
int linux_sys_modify_ldt(struct lwp *, void *, register_t *);
+
int linux_sys_mprotect(struct lwp *, void *, register_t *);
+
int linux_sys_sigprocmask(struct lwp *, void *, register_t *);
+
int linux_sys_getpgid(struct lwp *, void *, register_t *);
+
int sys_fchdir(struct lwp *, void *, register_t *);
+
int linux_sys_personality(struct lwp *, void *, register_t *);
+
int linux_sys_setfsuid(struct lwp *, void *, register_t *);
+
int linux_sys_getfsuid(struct lwp *, void *, register_t *);
+
int linux_sys_llseek(struct lwp *, void *, register_t *);
+
int linux_sys_getdents(struct lwp *, void *, register_t *);
+
int linux_sys_select(struct lwp *, void *, register_t *);
+
int sys_flock(struct lwp *, void *, register_t *);
+
int linux_sys_msync(struct lwp *, void *, register_t *);
+
int sys_readv(struct lwp *, void *, register_t *);
+
int sys_writev(struct lwp *, void *, register_t *);
+
int sys_getsid(struct lwp *, void *, register_t *);
+
int linux_sys_fdatasync(struct lwp *, void *, register_t *);
+
int linux_sys___sysctl(struct lwp *, void *, register_t *);
+
int sys_mlock(struct lwp *, void *, register_t *);
+
int sys_munlock(struct lwp *, void *, register_t *);
+
int sys_mlockall(struct lwp *, void *, register_t *);
+
int sys_munlockall(struct lwp *, void *, register_t *);
+
int linux_sys_sched_setparam(struct lwp *, void *, register_t *);
+
int linux_sys_sched_getparam(struct lwp *, void *, register_t *);
+
int linux_sys_sched_setscheduler(struct lwp *, void *, register_t *);
+
int linux_sys_sched_getscheduler(struct lwp *, void *, register_t *);
+
int linux_sys_sched_yield(struct lwp *, void *, register_t *);
+
int linux_sys_sched_get_priority_max(struct lwp *, void *, register_t *);
+
int linux_sys_sched_get_priority_min(struct lwp *, void *, register_t *);
+
int sys_nanosleep(struct lwp *, void *, register_t *);
+
int linux_sys_mremap(struct lwp *, void *, register_t *);
+
int linux_sys_setresuid16(struct lwp *, void *, register_t *);
+
int linux_sys_getresuid(struct lwp *, void *, register_t *);
+
int sys_poll(struct lwp *, void *, register_t *);
+
int linux_sys_setresgid16(struct lwp *, void *, register_t *);
+
int linux_sys_getresgid(struct lwp *, void *, register_t *);
+
int linux_sys_rt_sigreturn(struct lwp *, void *, register_t *);
+
int linux_sys_rt_sigaction(struct lwp *, void *, register_t *);
+
int linux_sys_rt_sigprocmask(struct lwp *, void *, register_t *);
+
int linux_sys_rt_sigpending(struct lwp *, void *, register_t *);
+
int linux_sys_rt_queueinfo(struct lwp *, void *, register_t *);
+
int linux_sys_rt_sigsuspend(struct lwp *, void *, register_t *);
+
int linux_sys_pread(struct lwp *, void *, register_t *);
+
int linux_sys_pwrite(struct lwp *, void *, register_t *);
+
int linux_sys_chown16(struct lwp *, void *, register_t *);
+
int sys___getcwd(struct lwp *, void *, register_t *);
+
int linux_sys_sigaltstack(struct lwp *, void *, register_t *);
+
int sys___vfork14(struct lwp *, void *, register_t *);
+
int linux_sys_ugetrlimit(struct lwp *, void *, register_t *);
+
int linux_sys_mmap2(struct lwp *, void *, register_t *);
+
int linux_sys_truncate64(struct lwp *, void *, register_t *);
+
int linux_sys_ftruncate64(struct lwp *, void *, register_t *);
+
int linux_sys_stat64(struct lwp *, void *, register_t *);
+
int linux_sys_lstat64(struct lwp *, void *, register_t *);
+
int linux_sys_fstat64(struct lwp *, void *, register_t *);
+
int linux_sys_lchown(struct lwp *, void *, register_t *);
-int sys_getuid(struct lwp *, void *, register_t *);
-int sys_getgid(struct lwp *, void *, register_t *);
-int sys_geteuid(struct lwp *, void *, register_t *);
-int sys_getegid(struct lwp *, void *, register_t *);
+
int sys_setreuid(struct lwp *, void *, register_t *);
+
int sys_setregid(struct lwp *, void *, register_t *);
+
int sys_getgroups(struct lwp *, void *, register_t *);
+
int sys_setgroups(struct lwp *, void *, register_t *);
+
int sys___posix_fchown(struct lwp *, void *, register_t *);
+
int linux_sys_setresuid(struct lwp *, void *, register_t *);
-int linux_sys_getresuid(struct lwp *, void *, register_t *);
+
int linux_sys_setresgid(struct lwp *, void *, register_t *);
-int linux_sys_getresgid(struct lwp *, void *, register_t *);
+
int linux_sys_chown(struct lwp *, void *, register_t *);
-int sys_setuid(struct lwp *, void *, register_t *);
-int sys_setgid(struct lwp *, void *, register_t *);
-int linux_sys_setfsuid(struct lwp *, void *, register_t *);
-int linux_sys_getfsuid(struct lwp *, void *, register_t *);
+
+int sys_mincore(struct lwp *, void *, register_t *);
+
+int sys_madvise(struct lwp *, void *, register_t *);
+
int linux_sys_getdents64(struct lwp *, void *, register_t *);
+
int linux_sys_fcntl64(struct lwp *, void *, register_t *);
+
#endif /* _LINUX_SYS__SYSCALLARGS_H_ */
diff --git a/sys/compat/linux/arch/i386/linux_syscalls.c b/sys/compat/linux/arch/i386/linux_syscalls.c
index cfbcc5b3a9e..8b38e7c4823 100644
--- a/sys/compat/linux/arch/i386/linux_syscalls.c
+++ b/sys/compat/linux/arch/i386/linux_syscalls.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_syscalls.c,v 1.50 2003/08/10 20:17:23 jdolecek Exp $ */
+/* $NetBSD: linux_syscalls.c,v 1.51 2004/08/01 10:32:40 jdolecek Exp $ */
/*
* System call names.
@@ -8,7 +8,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.50 2003/08/10 20:17:23 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.51 2004/08/01 10:32:40 jdolecek Exp $");
#if defined(_KERNEL_OPT)
#if defined(_KERNEL_OPT)
@@ -248,8 +248,8 @@ const char *const linux_syscallnames[] = {
"setfsuid", /* 215 = setfsuid */
"getfsuid", /* 216 = getfsuid */
"#217 (unimplemented pivot_root)", /* 217 = unimplemented pivot_root */
- "#218 (unimplemented mincore)", /* 218 = unimplemented mincore */
- "#219 (unimplemented madvise)", /* 219 = unimplemented madvise */
+ "mincore", /* 218 = mincore */
+ "madvise", /* 219 = madvise */
"getdents64", /* 220 = getdents64 */
"fcntl64", /* 221 = fcntl64 */
};
diff --git a/sys/compat/linux/arch/i386/linux_sysent.c b/sys/compat/linux/arch/i386/linux_sysent.c
index 085507cb75f..4b733addf72 100644
--- a/sys/compat/linux/arch/i386/linux_sysent.c
+++ b/sys/compat/linux/arch/i386/linux_sysent.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_sysent.c,v 1.49 2003/08/10 20:17:23 jdolecek Exp $ */
+/* $NetBSD: linux_sysent.c,v 1.50 2004/08/01 10:32:40 jdolecek Exp $ */
/*
* System call switch table.
@@ -8,7 +8,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.49 2003/08/10 20:17:23 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.50 2004/08/01 10:32:40 jdolecek Exp $");
#if defined(_KERNEL_OPT)
#include "opt_compat_43.h"
@@ -466,10 +466,10 @@ struct sysent linux_sysent[] = {
linux_sys_getfsuid }, /* 216 = getfsuid */
{ 0, 0, 0,
linux_sys_nosys }, /* 217 = unimplemented pivot_root */
- { 0, 0, 0,
- linux_sys_nosys }, /* 218 = unimplemented mincore */
- { 0, 0, 0,
- linux_sys_nosys }, /* 219 = unimplemented madvise */
+ { 3, s(struct sys_mincore_args), 0,
+ sys_mincore }, /* 218 = mincore */
+ { 3, s(struct sys_madvise_args), 0,
+ sys_madvise }, /* 219 = madvise */
{ 3, s(struct linux_sys_getdents64_args), 0,
linux_sys_getdents64 }, /* 220 = getdents64 */
{ 3, s(struct linux_sys_fcntl64_args), 0,
diff --git a/sys/compat/linux/arch/i386/syscalls.master b/sys/compat/linux/arch/i386/syscalls.master
index 8e031e8fc5c..d7368d38c4c 100644
--- a/sys/compat/linux/arch/i386/syscalls.master
+++ b/sys/compat/linux/arch/i386/syscalls.master
@@ -1,4 +1,4 @@
- $NetBSD: syscalls.master,v 1.67 2003/08/10 20:16:22 jdolecek Exp $
+ $NetBSD: syscalls.master,v 1.68 2004/08/01 10:32:40 jdolecek Exp $
; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
@@ -365,8 +365,8 @@
215 STD { int linux_sys_setfsuid(uid_t uid); }
216 NOARGS { int linux_sys_getfsuid(void); }
217 UNIMPL pivot_root
-218 UNIMPL mincore
-219 UNIMPL madvise
+218 NOARGS { int sys_mincore(void *addr, size_t len, char *vec); }
+219 NOARGS { int sys_madvise(void *addr, size_t len, int behav); }
220 STD { int linux_sys_getdents64(int fd, \
struct linux_dirent64 *dent, unsigned int count); }
221 STD { int linux_sys_fcntl64(int fd, int cmd, void *arg); }
diff --git a/sys/compat/linux/arch/mips/syscalls.master b/sys/compat/linux/arch/mips/syscalls.master
index f00ef175c06..7eedbfd1ce3 100644
--- a/sys/compat/linux/arch/mips/syscalls.master
+++ b/sys/compat/linux/arch/mips/syscalls.master
@@ -1,4 +1,4 @@
- $NetBSD: syscalls.master,v 1.12 2003/08/10 20:16:25 jdolecek Exp $
+ $NetBSD: syscalls.master,v 1.13 2004/08/01 10:32:40 jdolecek Exp $
; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
@@ -380,8 +380,8 @@
215 STD { int linux_sys_fstat64(int fd, \
struct linux_stat64 *sp); }
216 UNIMPL pivot_root
-217 UNIMPL mincore
-218 UNIMPL modvise
+217 NOARGS { int sys_mincore(void *addr, size_t len, char *vec); }
+218 NOARGS { int sys_madvise(void *addr, size_t len, int behav); }
219 STD { int linux_sys_getdents64(int fd, \
struct linux_dirent64 *dent, unsigned int count); }
220 STD { int linux_sys_fcntl64(int fd, \
diff --git a/sys/compat/linux/arch/powerpc/syscalls.master b/sys/compat/linux/arch/powerpc/syscalls.master
index 6a6d5040fc9..15120c988ca 100644
--- a/sys/compat/linux/arch/powerpc/syscalls.master
+++ b/sys/compat/linux/arch/powerpc/syscalls.master
@@ -1,4 +1,4 @@
- $NetBSD: syscalls.master,v 1.16 2003/08/10 20:16:26 jdolecek Exp $
+ $NetBSD: syscalls.master,v 1.17 2004/08/01 10:32:40 jdolecek Exp $
; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
@@ -374,5 +374,5 @@
struct linux_dirent64 *dent, unsigned int count); }
203 UNIMPL pivot_root
204 STD { int linux_sys_fcntl64(int fd, int cmd, void *arg); }
-205 UNIMPL madvise
-206 UNIMPL mincore
+205 NOARGS { int sys_mincore(void *addr, size_t len, char *vec); }
+206 NOARGS { int sys_madvise(void *addr, size_t len, int behav); }