Source-Changes-HG archive

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

[src/trunk]: src/sys/rump/kern/lib/libsys_linux regen and add a build target.



details:   https://anonhg.NetBSD.org/src/rev/502bc9fb60fa
branches:  trunk
changeset: 336638:502bc9fb60fa
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Mar 08 15:07:33 2015 +0000

description:
regen and add a build target.

diffstat:

 sys/rump/kern/lib/libsys_linux/Makefile                 |    10 +-
 sys/rump/kern/lib/libsys_linux/rump_linux_syscall.h     |     2 +-
 sys/rump/kern/lib/libsys_linux/rump_linux_syscallargs.h |     2 +-
 sys/rump/kern/lib/libsys_linux/rump_linux_syscalls.c    |     4 +-
 sys/rump/kern/lib/libsys_linux/rump_linux_sysent.c      |  2747 +++++++++-----
 5 files changed, 1733 insertions(+), 1032 deletions(-)

diffs (truncated from 2825 to 300 lines):

diff -r 2ba7935be4f0 -r 502bc9fb60fa sys/rump/kern/lib/libsys_linux/Makefile
--- a/sys/rump/kern/lib/libsys_linux/Makefile   Sun Mar 08 15:07:05 2015 +0000
+++ b/sys/rump/kern/lib/libsys_linux/Makefile   Sun Mar 08 15:07:33 2015 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.6 2014/03/13 02:03:47 pooka Exp $
+#      $NetBSD: Makefile,v 1.7 2015/03/08 15:07:33 christos Exp $
 #
 
 .PATH: ${.CURDIR}/../../../../compat/linux/common
@@ -20,3 +20,11 @@
 
 .include <bsd.lib.mk>
 .include <bsd.klinks.mk>
+
+SYS_P=rump_linux_sys
+SYS_MKSYSCALLS=${.CURDIR}/../../../../kern/makesyscalls.sh
+SYS_DST=${SYS_P}calls.c ${SYS_P}ent.c ${SYS_P}callargs.h ${SYS_P}call.h: 
+SYS_SRC=${SYS_MKSYSCALLS} syscalls.conf syscalls.master
+
+${SYS_DST}: ${SYS_SRC}
+       ${HOST_SH} ${.ALLSRC}
diff -r 2ba7935be4f0 -r 502bc9fb60fa sys/rump/kern/lib/libsys_linux/rump_linux_syscall.h
--- a/sys/rump/kern/lib/libsys_linux/rump_linux_syscall.h       Sun Mar 08 15:07:05 2015 +0000
+++ b/sys/rump/kern/lib/libsys_linux/rump_linux_syscall.h       Sun Mar 08 15:07:33 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rump_linux_syscall.h,v 1.14 2014/05/29 10:42:23 njoly Exp $ */
+/* $NetBSD: rump_linux_syscall.h,v 1.15 2015/03/08 15:07:33 christos Exp $ */
 
 /*
  * System call numbers.
diff -r 2ba7935be4f0 -r 502bc9fb60fa sys/rump/kern/lib/libsys_linux/rump_linux_syscallargs.h
--- a/sys/rump/kern/lib/libsys_linux/rump_linux_syscallargs.h   Sun Mar 08 15:07:05 2015 +0000
+++ b/sys/rump/kern/lib/libsys_linux/rump_linux_syscallargs.h   Sun Mar 08 15:07:33 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rump_linux_syscallargs.h,v 1.17 2014/05/29 10:42:23 njoly Exp $ */
+/* $NetBSD: rump_linux_syscallargs.h,v 1.18 2015/03/08 15:07:33 christos Exp $ */
 
 /*
  * System call argument lists.
diff -r 2ba7935be4f0 -r 502bc9fb60fa sys/rump/kern/lib/libsys_linux/rump_linux_syscalls.c
--- a/sys/rump/kern/lib/libsys_linux/rump_linux_syscalls.c      Sun Mar 08 15:07:05 2015 +0000
+++ b/sys/rump/kern/lib/libsys_linux/rump_linux_syscalls.c      Sun Mar 08 15:07:33 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rump_linux_syscalls.c,v 1.17 2014/05/29 10:42:23 njoly Exp $ */
+/* $NetBSD: rump_linux_syscalls.c,v 1.18 2015/03/08 15:07:33 christos Exp $ */
 
 /*
  * System call names.
@@ -8,7 +8,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rump_linux_syscalls.c,v 1.17 2014/05/29 10:42:23 njoly Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rump_linux_syscalls.c,v 1.18 2015/03/08 15:07:33 christos Exp $");
 
 #if defined(_KERNEL_OPT)
 #include <sys/param.h>
diff -r 2ba7935be4f0 -r 502bc9fb60fa sys/rump/kern/lib/libsys_linux/rump_linux_sysent.c
--- a/sys/rump/kern/lib/libsys_linux/rump_linux_sysent.c        Sun Mar 08 15:07:05 2015 +0000
+++ b/sys/rump/kern/lib/libsys_linux/rump_linux_sysent.c        Sun Mar 08 15:07:33 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rump_linux_sysent.c,v 1.17 2014/05/29 10:42:23 njoly Exp $ */
+/* $NetBSD: rump_linux_sysent.c,v 1.18 2015/03/08 15:07:33 christos Exp $ */
 
 /*
  * System call switch table.
@@ -8,7 +8,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rump_linux_sysent.c,v 1.17 2014/05/29 10:42:23 njoly Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rump_linux_sysent.c,v 1.18 2015/03/08 15:07:33 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -28,1031 +28,1724 @@
 
 #define        s(type) sizeof(type)
 #define        n(type) (sizeof(type)/sizeof (register_t))
-#define        ns(type)        n(type), s(type)
+#define        ns(type)        .sy_narg = n(type), .sy_argsize = s(type)
 
 struct sysent rump_linux_sysent[] = {
-       { 0, 0, 0,
-           (sy_call_t *)linux_sys_nosys },     /* 0 = nosys */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 1 = unimplemented exit */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 2 = unimplemented fork */
-       { ns(struct sys_read_args), SYCALL_ARG_PTR,
-           (sy_call_t *)sys_read },            /* 3 = read */
-       { ns(struct sys_write_args), SYCALL_ARG_PTR,
-           (sy_call_t *)sys_write },           /* 4 = write */
-       { ns(struct linux_sys_open_args), SYCALL_ARG_PTR,
-           (sy_call_t *)linux_sys_open },      /* 5 = open */
-       { ns(struct sys_close_args), 0,
-           (sy_call_t *)sys_close },           /* 6 = close */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 7 = unimplemented wait4 */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 8 = unimplemented creat */
-       { ns(struct sys_link_args), SYCALL_ARG_PTR,
-           (sy_call_t *)sys_link },            /* 9 = link */
-       { ns(struct linux_sys_unlink_args), SYCALL_ARG_PTR,
-           (sy_call_t *)linux_sys_unlink },    /* 10 = unlink */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 11 = unimplemented execv */
-       { ns(struct sys_chdir_args), SYCALL_ARG_PTR,
-           (sy_call_t *)sys_chdir },           /* 12 = chdir */
-       { ns(struct sys_fchdir_args), 0,
-           (sy_call_t *)sys_fchdir },          /* 13 = fchdir */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 14 = unimplemented mknod */
-       { ns(struct sys_chmod_args), SYCALL_ARG_PTR,
-           (sy_call_t *)sys_chmod },           /* 15 = chmod */
-       { ns(struct sys___posix_chown_args), SYCALL_ARG_PTR,
-           (sy_call_t *)sys___posix_chown },   /* 16 = __posix_chown */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 17 = unimplemented obreak */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 18 = unimplemented getfsstat */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 19 = unimplemented lseek */
-       { 0, 0, 0,
-           (sy_call_t *)sys_getpid_with_ppid },/* 20 = getpid */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 21 = unimplemented mount */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 22 = unimplemented unmount */
-       { ns(struct sys_setuid_args), 0,
-           (sy_call_t *)sys_setuid },          /* 23 = setuid */
-       { 0, 0, 0,
-           (sy_call_t *)sys_getuid_with_euid },/* 24 = getuid */
-       { 0, 0, 0,
-           (sy_call_t *)sys_geteuid },         /* 25 = geteuid */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 26 = unimplemented ptrace */
-       { ns(struct linux_sys_recvmsg_args), SYCALL_ARG_PTR,
-           (sy_call_t *)linux_sys_recvmsg },   /* 27 = recvmsg */
-       { ns(struct linux_sys_sendmsg_args), SYCALL_ARG_PTR,
-           (sy_call_t *)linux_sys_sendmsg },   /* 28 = sendmsg */
-       { ns(struct linux_sys_recvfrom_args), SYCALL_ARG_PTR,
-           (sy_call_t *)linux_sys_recvfrom },  /* 29 = recvfrom */
-       { ns(struct linux_sys_accept_args), SYCALL_ARG_PTR,
-           (sy_call_t *)linux_sys_accept },    /* 30 = accept */
-       { ns(struct linux_sys_getpeername_args), SYCALL_ARG_PTR,
-           (sy_call_t *)linux_sys_getpeername },/* 31 = getpeername */
-       { ns(struct linux_sys_getsockname_args), SYCALL_ARG_PTR,
-           (sy_call_t *)linux_sys_getsockname },/* 32 = getsockname */
-       { ns(struct sys_access_args), SYCALL_ARG_PTR,
-           (sy_call_t *)sys_access },          /* 33 = access */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 34 = unimplemented chflags */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 35 = unimplemented fchflags */
-       { 0, 0, 0,
-           (sy_call_t *)sys_sync },            /* 36 = sync */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 37 = unimplemented kill */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 38 = unimplemented stat */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 39 = unimplemented getppid */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 40 = unimplemented lstat */
-       { ns(struct sys_dup_args), 0,
-           (sy_call_t *)sys_dup },             /* 41 = dup */
-       { 0, 0, 0,
-           (sy_call_t *)sys_pipe },            /* 42 = pipe */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 43 = unimplemented getegid */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 44 = unimplemented profil */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 45 = unimplemented ktrace */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 46 = unimplemented sigaction */
-       { 0, 0, 0,
-           (sy_call_t *)sys_getgid_with_egid },/* 47 = getgid */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 48 = unimplemented sigprocmask */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 49 = unimplemented __getlogin */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 50 = unimplemented __setlogin */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 51 = unimplemented acct */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 52 = unimplemented sigpending */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 53 = unimplemented sigaltstack */
-       { ns(struct linux_sys_ioctl_args), SYCALL_ARG_PTR,
-           (sy_call_t *)linux_sys_ioctl },     /* 54 = ioctl */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 55 = unimplemented reboot */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 56 = unimplemented revoke */
-       { ns(struct sys_symlink_args), SYCALL_ARG_PTR,
-           (sy_call_t *)sys_symlink },         /* 57 = symlink */
-       { ns(struct sys_readlink_args), SYCALL_ARG_PTR,
-           (sy_call_t *)sys_readlink },        /* 58 = readlink */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 59 = unimplemented execve */
-       { ns(struct sys_umask_args), 0,
-           (sy_call_t *)sys_umask },           /* 60 = umask */
-       { ns(struct sys_chroot_args), SYCALL_ARG_PTR,
-           (sy_call_t *)sys_chroot },          /* 61 = chroot */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 62 = unimplemented fstat43 */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 63 = unimplemented getkerninfo */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 64 = unimplemented getpagesize */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 65 = unimplemented msync */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 66 = unimplemented vfork */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 67 = unimplemented vread */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 68 = unimplemented vwrite */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 69 = unimplemented sbrk */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 70 = unimplemented sstk */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 71 = unimplemented mmap */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 72 = unimplemented ovadvise */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 73 = unimplemented munmap */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 74 = unimplemented mprotect */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 75 = unimplemented madvise */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 76 = unimplemented vhangup */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 77 = unimplemented vlimit */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 78 = unimplemented mincore */
-       { ns(struct sys_getgroups_args), SYCALL_ARG_PTR,
-           (sy_call_t *)sys_getgroups },       /* 79 = getgroups */
-       { ns(struct sys_setgroups_args), SYCALL_ARG_PTR,
-           (sy_call_t *)sys_setgroups },       /* 80 = setgroups */
-       { 0, 0, 0,
-           (sy_call_t *)sys_getpgrp },         /* 81 = getpgrp */
-       { ns(struct sys_setpgid_args), 0,
-           (sy_call_t *)sys_setpgid },         /* 82 = setpgid */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 83 = unimplemented setitimer */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 84 = unimplemented wait */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 85 = unimplemented swapon */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 86 = unimplemented getitimer */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 87 = unimplemented gethostname */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 88 = unimplemented sethostname */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 89 = unimplemented getdtablesize */
-       { ns(struct sys_dup2_args), 0,
-           (sy_call_t *)sys_dup2 },            /* 90 = dup2 */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 91 = unimplemented getdopt */
-       { ns(struct linux_sys_fcntl_args), SYCALL_ARG_PTR,
-           (sy_call_t *)linux_sys_fcntl },     /* 92 = fcntl */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 93 = unimplemented select */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 94 = unimplemented setdopt */
-       { ns(struct sys_fsync_args), 0,
-           (sy_call_t *)sys_fsync },           /* 95 = fsync */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 96 = unimplemented setpriority */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 97 = unimplemented socket */
-       { ns(struct linux_sys_connect_args), SYCALL_ARG_PTR,
-           (sy_call_t *)linux_sys_connect },   /* 98 = connect */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 99 = unimplemented accept */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 100 = unimplemented getpriority */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 101 = unimplemented send */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 102 = unimplemented recv */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 103 = unimplemented sigreturn */
-       { ns(struct linux_sys_bind_args), SYCALL_ARG_PTR,
-           (sy_call_t *)linux_sys_bind },      /* 104 = bind */
-       { ns(struct linux_sys_setsockopt_args), SYCALL_ARG_PTR,
-           (sy_call_t *)linux_sys_setsockopt },/* 105 = setsockopt */
-       { ns(struct sys_listen_args), 0,
-           (sy_call_t *)sys_listen },          /* 106 = listen */
-       { 0, 0, 0,
-           linux_sys_nosys },                  /* 107 = unimplemented vtimes */
-       { 0, 0, 0,



Home | Main Index | Thread Index | Old Index