Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/linux/arch regen:



details:   https://anonhg.NetBSD.org/src/rev/f7191e7580a8
branches:  trunk
changeset: 568807:f7191e7580a8
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Sun Aug 01 10:38:38 2004 +0000

description:
regen:

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:

 sys/compat/linux/arch/alpha/linux_syscall.h       |   22 ++-
 sys/compat/linux/arch/alpha/linux_syscallargs.h   |  196 +++++++++++++++++++++-
 sys/compat/linux/arch/alpha/linux_syscalls.c      |   10 +-
 sys/compat/linux/arch/alpha/linux_sysent.c        |   14 +-
 sys/compat/linux/arch/arm/linux_syscall.h         |   13 +-
 sys/compat/linux/arch/arm/linux_syscallargs.h     |  190 +++++++++++++++++++--
 sys/compat/linux/arch/arm/linux_syscalls.c        |   10 +-
 sys/compat/linux/arch/arm/linux_sysent.c          |   14 +-
 sys/compat/linux/arch/i386/linux_syscall.h        |    4 +-
 sys/compat/linux/arch/i386/linux_syscallargs.h    |    4 +-
 sys/compat/linux/arch/i386/linux_syscalls.c       |    6 +-
 sys/compat/linux/arch/i386/linux_sysent.c         |    6 +-
 sys/compat/linux/arch/mips/linux_syscall.h        |   10 +-
 sys/compat/linux/arch/mips/linux_syscallargs.h    |  181 ++++++++++++++++++++-
 sys/compat/linux/arch/mips/linux_syscalls.c       |   10 +-
 sys/compat/linux/arch/mips/linux_sysent.c         |   14 +-
 sys/compat/linux/arch/powerpc/linux_syscall.h     |   10 +-
 sys/compat/linux/arch/powerpc/linux_syscallargs.h |  168 ++++++++++++++++++-
 sys/compat/linux/arch/powerpc/linux_syscalls.c    |   10 +-
 sys/compat/linux/arch/powerpc/linux_sysent.c      |   14 +-
 20 files changed, 816 insertions(+), 90 deletions(-)

diffs (truncated from 2069 to 300 lines):

diff -r 9553c66a3033 -r f7191e7580a8 sys/compat/linux/arch/alpha/linux_syscall.h
--- a/sys/compat/linux/arch/alpha/linux_syscall.h       Sun Aug 01 10:32:40 2004 +0000
+++ b/sys/compat/linux/arch/alpha/linux_syscall.h       Sun Aug 01 10:38:38 2004 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscall.h,v 1.48 2003/01/18 23:34:01 thorpej Exp $ */
+/* $NetBSD: linux_syscall.h,v 1.49 2004/08/01 10:38:38 jdolecek Exp $ */
 
 /*
  * System call numbers.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.42 2003/01/18 08:02:46 thorpej Exp 
+ * created from        NetBSD: syscalls.master,v 1.43 2004/08/01 10:36:35 jdolecek Exp 
  */
 
 /* syscall: "syscall" ret: "int" args: */
@@ -142,6 +142,9 @@
 /* syscall: "mprotect" ret: "int" args: "const void *" "unsigned long" "int" */
 #define        LINUX_SYS_mprotect      74
 
+/* syscall: "madvise" ret: "int" args: "void *" "size_t" "int" */
+#define        LINUX_SYS_madvise       75
+
 /* syscall: "getgroups" ret: "int" args: "int" "gid_t *" */
 #define        LINUX_SYS_getgroups     79
 
@@ -298,6 +301,7 @@
 /* syscall: "ugetrlimit" ret: "int" args: "int" "struct rlimit *" */
 #define        LINUX_SYS_ugetrlimit    191
 
+#ifdef SYSVMSG
 /* syscall: "msgctl" ret: "int" args: "int" "int" "struct linux_msqid_ds *" */
 #define        LINUX_SYS_msgctl        200
 
@@ -310,6 +314,9 @@
 /* syscall: "msgsnd" ret: "int" args: "int" "void *" "size_t" "int" */
 #define        LINUX_SYS_msgsnd        203
 
+#else
+#endif
+#ifdef SYSVSEM
 /* syscall: "semctl" ret: "int" args: "int" "int" "int" "union linux_semun" */
 #define        LINUX_SYS_semctl        204
 
@@ -319,12 +326,15 @@
 /* syscall: "semop" ret: "int" args: "int" "struct sembuf *" "size_t" */
 #define        LINUX_SYS_semop 206
 
+#else
+#endif
 /* syscall: "olduname" ret: "int" args: "struct linux_old_utsname *" */
 #define        LINUX_SYS_olduname      207
 
 /* syscall: "__posix_lchown" ret: "int" args: "const char *" "int" "int" */
 #define        LINUX_SYS___posix_lchown        208
 
+#ifdef SYSVSHM
 /* syscall: "shmat" ret: "int" args: "int" "void *" "int" "u_long *" */
 #define        LINUX_SYS_shmat 209
 
@@ -337,6 +347,8 @@
 /* syscall: "shmget" ret: "int" args: "key_t" "size_t" "int" */
 #define        LINUX_SYS_shmget        212
 
+#else
+#endif
 /* syscall: "msync" ret: "int" args: "caddr_t" "int" "int" */
 #define        LINUX_SYS_msync 217
 
@@ -361,9 +373,12 @@
 /* syscall: "clone" ret: "int" args: "int" "void *" */
 #define        LINUX_SYS_clone 312
 
+#ifdef EXEC_AOUT
 /* syscall: "uselib" ret: "int" args: "const char *" */
 #define        LINUX_SYS_uselib        313
 
+#else
+#endif
 /* syscall: "mlock" ret: "int" args: "const void *" "size_t" */
 #define        LINUX_SYS_mlock 314
 
@@ -487,6 +502,9 @@
 /* syscall: "__getcwd" ret: "int" args: "char *" "size_t" */
 #define        LINUX_SYS___getcwd      367
 
+/* syscall: "mincore" ret: "int" args: "void *" "size_t" "char *" */
+#define        LINUX_SYS_mincore       375
+
 /* syscall: "getdents64" ret: "int" args: "int" "struct linux_dirent64 *" "unsigned int" */
 #define        LINUX_SYS_getdents64    377
 
diff -r 9553c66a3033 -r f7191e7580a8 sys/compat/linux/arch/alpha/linux_syscallargs.h
--- a/sys/compat/linux/arch/alpha/linux_syscallargs.h   Sun Aug 01 10:32:40 2004 +0000
+++ b/sys/compat/linux/arch/alpha/linux_syscallargs.h   Sun Aug 01 10:38:38 2004 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscallargs.h,v 1.47 2003/01/18 23:34:01 thorpej Exp $ */
+/* $NetBSD: linux_syscallargs.h,v 1.48 2004/08/01 10:38:38 jdolecek Exp $ */
 
 /*
  * System call argument lists.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.42 2003/01/18 08:02:46 thorpej Exp 
+ * created from        NetBSD: syscalls.master,v 1.43 2004/08/01 10:36:35 jdolecek Exp 
  */
 
 #ifndef _LINUX_SYS__SYSCALLARGS_H_
@@ -361,10 +361,19 @@
        syscallarg(int) which;
        syscallarg(struct rlimit *) rlp;
 };
+#ifdef SYSVMSG
+#else
+#endif
+#ifdef SYSVSEM
+#else
+#endif
 
 struct linux_sys_olduname_args {
        syscallarg(struct linux_old_utsname *) up;
 };
+#ifdef SYSVSHM
+#else
+#endif
 
 struct linux_sys_msync_args {
        syscallarg(caddr_t) addr;
@@ -428,10 +437,13 @@
        syscallarg(int) flags;
        syscallarg(void *) stack;
 };
+#ifdef EXEC_AOUT
 
 struct linux_sys_uselib_args {
        syscallarg(const char *) path;
 };
+#else
+#endif
 
 struct linux_sys_sysinfo_args {
        syscallarg(struct linux_sysinfo *) arg;
@@ -592,191 +604,371 @@
  */
 
 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    sys_close(struct lwp *, void *, register_t *);
+
 int    osf1_sys_wait4(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_chdir(struct lwp *, void *, register_t *);
+
 int    sys_fchdir(struct lwp *, void *, register_t *);
+
 int    linux_sys_mknod(struct lwp *, void *, register_t *);
+
 int    linux_sys_chmod(struct lwp *, void *, register_t *);
+
 int    sys___posix_chown(struct lwp *, void *, register_t *);
+
 int    linux_sys_brk(struct lwp *, void *, register_t *);
+
 int    compat_43_sys_lseek(struct lwp *, void *, register_t *);
+
 int    sys_getpid_with_ppid(struct lwp *, void *, register_t *);
+
 int    osf1_sys_mount(struct lwp *, void *, register_t *);
+
 int    sys_setuid(struct lwp *, void *, register_t *);
+
 int    sys_getuid_with_euid(struct lwp *, void *, register_t *);
+
 int    linux_sys_ptrace(struct lwp *, void *, register_t *);
+
 int    linux_sys_access(struct lwp *, void *, register_t *);
+
 int    sys_sync(struct lwp *, void *, register_t *);
+
 int    linux_sys_kill(struct lwp *, void *, register_t *);
+
 int    sys_setpgid(struct lwp *, void *, register_t *);
+
 int    sys_dup(struct lwp *, void *, register_t *);
+
 int    linux_sys_pipe(struct lwp *, void *, register_t *);
+
 int    osf1_sys_set_program_attributes(struct lwp *, void *, register_t *);
+
 int    linux_sys_open(struct lwp *, void *, register_t *);
+
 int    sys_getgid_with_egid(struct lwp *, void *, register_t *);
+
 int    compat_13_sys_sigprocmask(struct lwp *, void *, register_t *);
+
 int    sys_acct(struct lwp *, void *, register_t *);
+
 int    linux_sys_sigpending(struct lwp *, void *, register_t *);
+
 int    linux_sys_ioctl(struct lwp *, void *, register_t *);
+
 int    linux_sys_symlink(struct lwp *, void *, register_t *);
+
 int    linux_sys_readlink(struct lwp *, void *, register_t *);
+
 int    linux_sys_execve(struct lwp *, void *, register_t *);
+
 int    sys_umask(struct lwp *, void *, register_t *);
+
 int    sys_chroot(struct lwp *, void *, register_t *);
+
 int    sys_getpgrp(struct lwp *, void *, register_t *);
+
 int    compat_43_sys_getpagesize(struct lwp *, void *, register_t *);
+
 int    sys___vfork14(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_mmap(struct lwp *, void *, register_t *);
+
 int    sys_munmap(struct lwp *, void *, register_t *);
+
 int    linux_sys_mprotect(struct lwp *, void *, register_t *);
+
+int    sys_madvise(struct lwp *, void *, register_t *);
+
 int    sys_getgroups(struct lwp *, void *, register_t *);
+
 int    sys_setgroups(struct lwp *, void *, register_t *);
+
 int    osf1_sys_setitimer(struct lwp *, void *, register_t *);
+
 int    compat_43_sys_gethostname(struct lwp *, void *, register_t *);
+
 int    compat_43_sys_sethostname(struct lwp *, void *, register_t *);
+
 int    sys_dup2(struct lwp *, void *, register_t *);
+
 int    linux_sys_fstat(struct lwp *, void *, register_t *);
+
 int    linux_sys_fcntl(struct lwp *, void *, register_t *);
+
 int    osf1_sys_select(struct lwp *, void *, register_t *);
+
 int    sys_poll(struct lwp *, void *, register_t *);
+
 int    sys_fsync(struct lwp *, void *, register_t *);
+
 int    sys_setpriority(struct lwp *, void *, register_t *);
+
 int    linux_sys_socket(struct lwp *, void *, register_t *);
+
 int    linux_sys_connect(struct lwp *, void *, register_t *);
+
 int    linux_sys_accept(struct lwp *, void *, register_t *);
+
 int    sys_getpriority(struct lwp *, void *, register_t *);
+
 int    linux_sys_send(struct lwp *, void *, register_t *);
+
 int    linux_sys_recv(struct lwp *, void *, register_t *);
+
 int    linux_sys_sigreturn(struct lwp *, void *, register_t *);
+
 int    linux_sys_bind(struct lwp *, void *, register_t *);
+
 int    linux_sys_setsockopt(struct lwp *, void *, register_t *);
+
 int    sys_listen(struct lwp *, void *, register_t *);
+
 int    linux_sys_sigsuspend(struct lwp *, void *, register_t *);
+
 int    compat_43_sys_sigstack(struct lwp *, void *, register_t *);
+
 int    linux_sys_recvmsg(struct lwp *, void *, register_t *);
+
 int    linux_sys_sendmsg(struct lwp *, void *, register_t *);
+
 int    osf1_sys_gettimeofday(struct lwp *, void *, register_t *);
+
 int    osf1_sys_getrusage(struct lwp *, void *, register_t *);
+
 int    linux_sys_getsockopt(struct lwp *, void *, register_t *);



Home | Main Index | Thread Index | Old Index