Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern regen
details: https://anonhg.NetBSD.org/src/rev/9cbf04375712
branches: trunk
changeset: 336613:9cbf04375712
user: christos <christos%NetBSD.org@localhost>
date: Sat Mar 07 20:40:00 2015 +0000
description:
regen
diffstat:
sys/kern/init_sysent.c | 3112 +++++++++++++++++++++++++++++++----------------
1 files changed, 2039 insertions(+), 1073 deletions(-)
diffs (truncated from 3175 to 300 lines):
diff -r bd5697295b43 -r 9cbf04375712 sys/kern/init_sysent.c
--- a/sys/kern/init_sysent.c Sat Mar 07 20:39:11 2015 +0000
+++ b/sys/kern/init_sysent.c Sat Mar 07 20:40:00 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: init_sysent.c,v 1.290 2015/03/07 16:38:49 christos Exp $ */
+/* $NetBSD: init_sysent.c,v 1.291 2015/03/07 20:40:00 christos Exp $ */
/*
* System call switch table.
@@ -8,7 +8,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: init_sysent.c,v 1.290 2015/03/07 16:38:49 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: init_sysent.c,v 1.291 2015/03/07 20:40:00 christos Exp $");
#include "opt_modular.h"
#include "opt_ntp.h"
@@ -113,1119 +113,2085 @@
#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 sysent[] = {
- { ns(struct sys_syscall_args), SYCALL_INDIRECT,
- (sy_call_t *)sys_syscall, 0, 0 }, /* 0 = syscall */
- { ns(struct sys_exit_args), 0,
- (sy_call_t *)sys_exit, 0, 0 }, /* 1 = exit */
- { 0, 0, 0,
- (sy_call_t *)sys_fork, 0, 0 }, /* 2 = fork */
- { ns(struct sys_read_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_read, 0, 0 }, /* 3 = read */
- { ns(struct sys_write_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_write, 0, 0 }, /* 4 = write */
- { ns(struct sys_open_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_open, 0, 0 }, /* 5 = open */
- { ns(struct sys_close_args), 0,
- (sy_call_t *)sys_close, 0, 0 }, /* 6 = close */
- { ns(struct compat_50_sys_wait4_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_nomodule, 0, 0 }, /* 7 = compat_50_wait4 */
- { ns(struct compat_43_sys_creat_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_nomodule, 0, 0 }, /* 8 = compat_43_ocreat */
- { ns(struct sys_link_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_link, 0, 0 }, /* 9 = link */
- { ns(struct sys_unlink_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_unlink, 0, 0 }, /* 10 = unlink */
- { 0, 0, 0,
- sys_nosys, 0, 0 }, /* 11 = obsolete execv */
- { ns(struct sys_chdir_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_chdir, 0, 0 }, /* 12 = chdir */
- { ns(struct sys_fchdir_args), 0,
- (sy_call_t *)sys_fchdir, 0, 0 }, /* 13 = fchdir */
- { ns(struct compat_50_sys_mknod_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_nomodule, 0, 0 }, /* 14 = compat_50_mknod */
- { ns(struct sys_chmod_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_chmod, 0, 0 }, /* 15 = chmod */
- { ns(struct sys_chown_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_chown, 0, 0 }, /* 16 = chown */
- { ns(struct sys_obreak_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_obreak, 0, 0 }, /* 17 = break */
- { ns(struct compat_20_sys_getfsstat_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_nomodule, 0, 0 }, /* 18 = compat_20_getfsstat */
- { ns(struct compat_43_sys_lseek_args), 0,
- (sy_call_t *)sys_nomodule, 0, 0 }, /* 19 = compat_43_olseek */
- { 0, 0, 0,
- (sy_call_t *)sys_getpid_with_ppid, 0, 0 },/* 20 = getpid */
- { ns(struct compat_40_sys_mount_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_nomodule, 0, 0 }, /* 21 = compat_40_mount */
- { ns(struct sys_unmount_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_unmount, 0, 0 }, /* 22 = unmount */
- { ns(struct sys_setuid_args), 0,
- (sy_call_t *)sys_setuid, 0, 0 }, /* 23 = setuid */
- { 0, 0, 0,
- (sy_call_t *)sys_getuid_with_euid, 0, 0 },/* 24 = getuid */
- { 0, 0, 0,
- (sy_call_t *)sys_geteuid, 0, 0 }, /* 25 = geteuid */
- { ns(struct sys_ptrace_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_ptrace, 0, 0 }, /* 26 = ptrace */
- { ns(struct sys_recvmsg_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_recvmsg, 0, 0 }, /* 27 = recvmsg */
- { ns(struct sys_sendmsg_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_sendmsg, 0, 0 }, /* 28 = sendmsg */
- { ns(struct sys_recvfrom_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_recvfrom, 0, 0 }, /* 29 = recvfrom */
- { ns(struct sys_accept_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_accept, 0, 0 }, /* 30 = accept */
- { ns(struct sys_getpeername_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_getpeername, 0, 0 }, /* 31 = getpeername */
- { ns(struct sys_getsockname_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_getsockname, 0, 0 }, /* 32 = getsockname */
- { ns(struct sys_access_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_access, 0, 0 }, /* 33 = access */
- { ns(struct sys_chflags_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_chflags, 0, 0 }, /* 34 = chflags */
- { ns(struct sys_fchflags_args), 0,
- (sy_call_t *)sys_fchflags, 0, 0 }, /* 35 = fchflags */
- { 0, 0, 0,
- (sy_call_t *)sys_sync, 0, 0 }, /* 36 = sync */
- { ns(struct sys_kill_args), 0,
- (sy_call_t *)sys_kill, 0, 0 }, /* 37 = kill */
- { ns(struct compat_43_sys_stat_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_nomodule, 0, 0 }, /* 38 = compat_43_stat43 */
- { 0, 0, 0,
- (sy_call_t *)sys_getppid, 0, 0 }, /* 39 = getppid */
- { ns(struct compat_43_sys_lstat_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_nomodule, 0, 0 }, /* 40 = compat_43_lstat43 */
- { ns(struct sys_dup_args), 0,
- (sy_call_t *)sys_dup, 0, 0 }, /* 41 = dup */
- { 0, 0, 0,
- (sy_call_t *)sys_pipe, 0, 0 }, /* 42 = pipe */
- { 0, 0, 0,
- (sy_call_t *)sys_getegid, 0, 0 }, /* 43 = getegid */
- { ns(struct sys_profil_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_profil, 0, 0 }, /* 44 = profil */
- { ns(struct sys_ktrace_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_ktrace, 0, 0 }, /* 45 = ktrace */
- { ns(struct compat_13_sys_sigaction_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_nomodule, 0, 0 }, /* 46 = compat_13_sigaction13 */
- { 0, 0, 0,
- (sy_call_t *)sys_getgid_with_egid, 0, 0 },/* 47 = getgid */
- { ns(struct compat_13_sys_sigprocmask_args), 0,
- (sy_call_t *)sys_nomodule, 0, 0 }, /* 48 = compat_13_sigprocmask13 */
- { ns(struct sys___getlogin_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys___getlogin, 0, 0 }, /* 49 = __getlogin */
- { ns(struct sys___setlogin_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys___setlogin, 0, 0 }, /* 50 = __setlogin */
- { ns(struct sys_acct_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_acct, 0, 0 }, /* 51 = acct */
- { 0, 0, 0,
- (sy_call_t *)sys_nomodule, 0, 0 }, /* 52 = compat_13_sigpending13 */
- { ns(struct compat_13_sys_sigaltstack_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_nomodule, 0, 0 }, /* 53 = compat_13_sigaltstack13 */
- { ns(struct sys_ioctl_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_ioctl, 0, 0 }, /* 54 = ioctl */
- { ns(struct compat_12_sys_reboot_args), 0,
- (sy_call_t *)sys_nomodule, 0, 0 }, /* 55 = compat_12_oreboot */
- { ns(struct sys_revoke_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_revoke, 0, 0 }, /* 56 = revoke */
- { ns(struct sys_symlink_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_symlink, 0, 0 }, /* 57 = symlink */
- { ns(struct sys_readlink_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_readlink, 0, 0 }, /* 58 = readlink */
- { ns(struct sys_execve_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_execve, 0, 0 }, /* 59 = execve */
- { ns(struct sys_umask_args), 0,
- (sy_call_t *)sys_umask, 0, 0 }, /* 60 = umask */
- { ns(struct sys_chroot_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_chroot, 0, 0 }, /* 61 = chroot */
- { ns(struct compat_43_sys_fstat_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_nomodule, 0, 0 }, /* 62 = compat_43_fstat43 */
- { ns(struct compat_43_sys_getkerninfo_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_nomodule, 0, 0 }, /* 63 = compat_43_ogetkerninfo */
- { 0, 0, 0,
- (sy_call_t *)sys_nomodule, 0, 0 }, /* 64 = compat_43_ogetpagesize */
- { ns(struct compat_12_sys_msync_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_nomodule, 0, 0 }, /* 65 = compat_12_msync */
- { 0, 0, 0,
- (sy_call_t *)sys_vfork, 0, 0 }, /* 66 = vfork */
- { 0, 0, 0,
- sys_nosys, 0, 0 }, /* 67 = obsolete vread */
- { 0, 0, 0,
- sys_nosys, 0, 0 }, /* 68 = obsolete vwrite */
- { ns(struct sys_sbrk_args), 0,
- (sy_call_t *)sys_sbrk, 0, 0 }, /* 69 = sbrk */
- { ns(struct sys_sstk_args), 0,
- (sy_call_t *)sys_sstk, 0, 0 }, /* 70 = sstk */
- { ns(struct compat_43_sys_mmap_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_nomodule, 0, 0 }, /* 71 = compat_43_ommap */
- { ns(struct sys_ovadvise_args), 0,
- (sy_call_t *)sys_ovadvise, 0, 0 }, /* 72 = vadvise */
- { ns(struct sys_munmap_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_munmap, 0, 0 }, /* 73 = munmap */
- { ns(struct sys_mprotect_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_mprotect, 0, 0 }, /* 74 = mprotect */
- { ns(struct sys_madvise_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_madvise, 0, 0 }, /* 75 = madvise */
- { 0, 0, 0,
- sys_nosys, 0, 0 }, /* 76 = obsolete vhangup */
- { 0, 0, 0,
- sys_nosys, 0, 0 }, /* 77 = obsolete vlimit */
- { ns(struct sys_mincore_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_mincore, 0, 0 }, /* 78 = mincore */
- { ns(struct sys_getgroups_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_getgroups, 0, 0 }, /* 79 = getgroups */
- { ns(struct sys_setgroups_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_setgroups, 0, 0 }, /* 80 = setgroups */
- { 0, 0, 0,
- (sy_call_t *)sys_getpgrp, 0, 0 }, /* 81 = getpgrp */
- { ns(struct sys_setpgid_args), 0,
- (sy_call_t *)sys_setpgid, 0, 0 }, /* 82 = setpgid */
- { ns(struct compat_50_sys_setitimer_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_nomodule, 0, 0 }, /* 83 = compat_50_setitimer */
- { 0, 0, 0,
- (sy_call_t *)sys_nomodule, 0, 0 }, /* 84 = compat_43_owait */
- { ns(struct compat_12_sys_swapon_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_nomodule, 0, 0 }, /* 85 = compat_12_oswapon */
- { ns(struct compat_50_sys_getitimer_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_nomodule, 0, 0 }, /* 86 = compat_50_getitimer */
- { ns(struct compat_43_sys_gethostname_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_nomodule, 0, 0 }, /* 87 = compat_43_ogethostname */
- { ns(struct compat_43_sys_sethostname_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_nomodule, 0, 0 }, /* 88 = compat_43_osethostname */
- { 0, 0, 0,
- (sy_call_t *)sys_nomodule, 0, 0 }, /* 89 = compat_43_ogetdtablesize */
- { ns(struct sys_dup2_args), 0,
- (sy_call_t *)sys_dup2, 0, 0 }, /* 90 = dup2 */
- { 0, 0, 0,
- sys_nosys, 0, 0 }, /* 91 = unimplemented getdopt */
- { ns(struct sys_fcntl_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_fcntl, 0, 0 }, /* 92 = fcntl */
- { ns(struct compat_50_sys_select_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_nomodule, 0, 0 }, /* 93 = compat_50_select */
- { 0, 0, 0,
- sys_nosys, 0, 0 }, /* 94 = unimplemented setdopt */
- { ns(struct sys_fsync_args), 0,
- (sy_call_t *)sys_fsync, 0, 0 }, /* 95 = fsync */
- { ns(struct sys_setpriority_args), 0,
- (sy_call_t *)sys_setpriority, 0, 0 }, /* 96 = setpriority */
- { ns(struct compat_30_sys_socket_args), 0,
- (sy_call_t *)sys_nomodule, 0, 0 }, /* 97 = compat_30_socket */
- { ns(struct sys_connect_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_connect, 0, 0 }, /* 98 = connect */
- { ns(struct compat_43_sys_accept_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_nomodule, 0, 0 }, /* 99 = compat_43_oaccept */
- { ns(struct sys_getpriority_args), 0,
- (sy_call_t *)sys_getpriority, 0, 0 }, /* 100 = getpriority */
- { ns(struct compat_43_sys_send_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_nomodule, 0, 0 }, /* 101 = compat_43_osend */
- { ns(struct compat_43_sys_recv_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_nomodule, 0, 0 }, /* 102 = compat_43_orecv */
- { ns(struct compat_13_sys_sigreturn_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_nomodule, 0, 0 }, /* 103 = compat_13_sigreturn13 */
- { ns(struct sys_bind_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_bind, 0, 0 }, /* 104 = bind */
- { ns(struct sys_setsockopt_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_setsockopt, 0, 0 }, /* 105 = setsockopt */
- { ns(struct sys_listen_args), 0,
- (sy_call_t *)sys_listen, 0, 0 }, /* 106 = listen */
- { 0, 0, 0,
- sys_nosys, 0, 0 }, /* 107 = obsolete vtimes */
- { ns(struct compat_43_sys_sigvec_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_nomodule, 0, 0 }, /* 108 = compat_43_osigvec */
- { ns(struct compat_43_sys_sigblock_args), 0,
- (sy_call_t *)sys_nomodule, 0, 0 }, /* 109 = compat_43_osigblock */
- { ns(struct compat_43_sys_sigsetmask_args), 0,
- (sy_call_t *)sys_nomodule, 0, 0 }, /* 110 = compat_43_osigsetmask */
- { ns(struct compat_13_sys_sigsuspend_args), 0,
- (sy_call_t *)sys_nomodule, 0, 0 }, /* 111 = compat_13_sigsuspend13 */
- { ns(struct compat_43_sys_sigstack_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_nomodule, 0, 0 }, /* 112 = compat_43_osigstack */
- { ns(struct compat_43_sys_recvmsg_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_nomodule, 0, 0 }, /* 113 = compat_43_orecvmsg */
- { ns(struct compat_43_sys_sendmsg_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_nomodule, 0, 0 }, /* 114 = compat_43_osendmsg */
- { 0, 0, 0,
- sys_nosys, 0, 0 }, /* 115 = obsolete vtrace */
- { ns(struct compat_50_sys_gettimeofday_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_nomodule, 0, 0 }, /* 116 = compat_50_gettimeofday */
- { ns(struct compat_50_sys_getrusage_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_nomodule, 0, 0 }, /* 117 = compat_50_getrusage */
- { ns(struct sys_getsockopt_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_getsockopt, 0, 0 }, /* 118 = getsockopt */
- { 0, 0, 0,
- sys_nosys, 0, 0 }, /* 119 = obsolete resuba */
- { ns(struct sys_readv_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_readv, 0, 0 }, /* 120 = readv */
- { ns(struct sys_writev_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_writev, 0, 0 }, /* 121 = writev */
- { ns(struct compat_50_sys_settimeofday_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_nomodule, 0, 0 }, /* 122 = compat_50_settimeofday */
- { ns(struct sys_fchown_args), 0,
- (sy_call_t *)sys_fchown, 0, 0 }, /* 123 = fchown */
- { ns(struct sys_fchmod_args), 0,
- (sy_call_t *)sys_fchmod, 0, 0 }, /* 124 = fchmod */
- { ns(struct compat_43_sys_recvfrom_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_nomodule, 0, 0 }, /* 125 = compat_43_orecvfrom */
- { ns(struct sys_setreuid_args), 0,
- (sy_call_t *)sys_setreuid, 0, 0 }, /* 126 = setreuid */
- { ns(struct sys_setregid_args), 0,
- (sy_call_t *)sys_setregid, 0, 0 }, /* 127 = setregid */
- { ns(struct sys_rename_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_rename, 0, 0 }, /* 128 = rename */
- { ns(struct compat_43_sys_truncate_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_nomodule, 0, 0 }, /* 129 = compat_43_otruncate */
- { ns(struct compat_43_sys_ftruncate_args), 0,
- (sy_call_t *)sys_nomodule, 0, 0 }, /* 130 = compat_43_oftruncate */
- { ns(struct sys_flock_args), 0,
- (sy_call_t *)sys_flock, 0, 0 }, /* 131 = flock */
- { ns(struct sys_mkfifo_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_mkfifo, 0, 0 }, /* 132 = mkfifo */
- { ns(struct sys_sendto_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_sendto, 0, 0 }, /* 133 = sendto */
- { ns(struct sys_shutdown_args), 0,
- (sy_call_t *)sys_shutdown, 0, 0 }, /* 134 = shutdown */
- { ns(struct sys_socketpair_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_socketpair, 0, 0 }, /* 135 = socketpair */
- { ns(struct sys_mkdir_args), SYCALL_ARG_PTR,
- (sy_call_t *)sys_mkdir, 0, 0 }, /* 136 = mkdir */
Home |
Main Index |
Thread Index |
Old Index