CVS commit: src/sys/compat/linux/arch/alpha
Module Name:src Committed By: christos Date: Tue Oct 6 13:38:50 UTC 2020 Modified Files: src/sys/compat/linux/arch/alpha: linux_osf1.c Log Message: make MAXTSIZ optional To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/compat/linux/arch/alpha/linux_osf1.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/alpha/linux_osf1.c diff -u src/sys/compat/linux/arch/alpha/linux_osf1.c:1.3 src/sys/compat/linux/arch/alpha/linux_osf1.c:1.4 --- src/sys/compat/linux/arch/alpha/linux_osf1.c:1.3 Fri Apr 5 23:06:28 2019 +++ src/sys/compat/linux/arch/alpha/linux_osf1.c Tue Oct 6 09:38:49 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_osf1.c,v 1.3 2019/04/06 03:06:28 thorpej Exp $ */ +/* $NetBSD: linux_osf1.c,v 1.4 2020/10/06 13:38:49 christos Exp $ */ /* * Copyright (c) 1999 Christopher G. Demetriou. All rights reserved. @@ -31,7 +31,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_osf1.c,v 1.3 2019/04/06 03:06:28 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_osf1.c,v 1.4 2020/10/06 13:38:49 christos Exp $"); #include #include @@ -314,8 +314,10 @@ linux_sys_osf1_set_program_attributes(st if (dsize > p->p_rlimit[RLIMIT_DATA].rlim_cur) return (ENOMEM); +#ifdef MAXTSIZ if (tsize > MAXTSIZ) return (ENOMEM); +#endif /* XXXSMP unlocked */ p->p_vmspace->vm_taddr = SCARG(uap, taddr);
CVS commit: src/sys/compat/linux/arch/alpha
Module Name:src Committed By: thorpej Date: Thu Sep 3 14:26:31 UTC 2020 Modified Files: src/sys/compat/linux/arch/alpha: linux_machdep.c Log Message: The conversion of FPU tracking to PCU rendered the fpcurlwp variable unmaintained, which broke FP status info in the COMPAT_LINUX sigcontext. Use the new API, which will at least be closer to correct. To generate a diff of this commit: cvs rdiff -u -r1.50 -r1.51 src/sys/compat/linux/arch/alpha/linux_machdep.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/alpha/linux_machdep.c diff -u src/sys/compat/linux/arch/alpha/linux_machdep.c:1.50 src/sys/compat/linux/arch/alpha/linux_machdep.c:1.51 --- src/sys/compat/linux/arch/alpha/linux_machdep.c:1.50 Sun Nov 9 17:48:07 2014 +++ src/sys/compat/linux/arch/alpha/linux_machdep.c Thu Sep 3 14:26:31 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_machdep.c,v 1.50 2014/11/09 17:48:07 maxv Exp $ */ +/* $NetBSD: linux_machdep.c,v 1.51 2020/09/03 14:26:31 thorpej Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -35,7 +35,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.50 2014/11/09 17:48:07 maxv Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.51 2020/09/03 14:26:31 thorpej Exp $"); #include #include @@ -243,14 +243,11 @@ void setup_linux_sigframe(struct trapfra frametoreg(tf, (struct reg *)sigframe.sf_sc.sc_regs); sigframe.sf_sc.sc_regs[R_SP] = alpha_pal_rdusp(); - if (l == fpcurlwp) { + if (fpu_valid_p(l)) { struct pcb *pcb = lwp_getpcb(l); - alpha_pal_wrfen(1); - savefpstate(>pcb_fp); - alpha_pal_wrfen(0); + fpu_save(l); sigframe.sf_sc.sc_fpcr = pcb->pcb_fp.fpr_cr; - fpcurlwp = NULL; } /* XXX ownedfp ? etc...? */ @@ -394,9 +391,6 @@ linux_restore_sigcontext(struct lwp *l, regtoframe((struct reg *)context.sc_regs, l->l_md.md_tf); alpha_pal_wrusp(context.sc_regs[R_SP]); - if (l == fpcurlwp) - fpcurlwp = NULL; - /* Restore fp regs and fpr_cr */ pcb = lwp_getpcb(l); memcpy(>pcb_fp, (struct fpreg *)context.sc_fpregs,
CVS commit: src/sys/compat/linux/arch
Module Name:src Committed By: thorpej Date: Sun Apr 26 19:20:19 UTC 2020 Modified Files: src/sys/compat/linux/arch/alpha: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/amd64: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c linux_systrace_args.c src/sys/compat/linux/arch/arm: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c linux_systrace_args.c src/sys/compat/linux/arch/i386: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c linux_systrace_args.c src/sys/compat/linux/arch/m68k: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/mips: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/powerpc: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c Log Message: Regen for native futex calls. To generate a diff of this commit: cvs rdiff -u -r1.109 -r1.110 src/sys/compat/linux/arch/alpha/linux_syscall.h \ src/sys/compat/linux/arch/alpha/linux_sysent.c cvs rdiff -u -r1.108 -r1.109 \ src/sys/compat/linux/arch/alpha/linux_syscallargs.h cvs rdiff -u -r1.110 -r1.111 src/sys/compat/linux/arch/alpha/linux_syscalls.c cvs rdiff -u -r1.70 -r1.71 src/sys/compat/linux/arch/amd64/linux_syscall.h \ src/sys/compat/linux/arch/amd64/linux_syscallargs.h \ src/sys/compat/linux/arch/amd64/linux_syscalls.c \ src/sys/compat/linux/arch/amd64/linux_sysent.c cvs rdiff -u -r1.14 -r1.15 \ src/sys/compat/linux/arch/amd64/linux_systrace_args.c cvs rdiff -u -r1.81 -r1.82 src/sys/compat/linux/arch/arm/linux_syscall.h \ src/sys/compat/linux/arch/arm/linux_syscallargs.h \ src/sys/compat/linux/arch/arm/linux_syscalls.c \ src/sys/compat/linux/arch/arm/linux_sysent.c cvs rdiff -u -r1.14 -r1.15 \ src/sys/compat/linux/arch/arm/linux_systrace_args.c cvs rdiff -u -r1.115 -r1.116 src/sys/compat/linux/arch/i386/linux_syscall.h \ src/sys/compat/linux/arch/i386/linux_syscallargs.h \ src/sys/compat/linux/arch/i386/linux_sysent.c cvs rdiff -u -r1.116 -r1.117 src/sys/compat/linux/arch/i386/linux_syscalls.c cvs rdiff -u -r1.10 -r1.11 \ src/sys/compat/linux/arch/i386/linux_systrace_args.c cvs rdiff -u -r1.107 -r1.108 src/sys/compat/linux/arch/m68k/linux_syscall.h \ src/sys/compat/linux/arch/m68k/linux_syscalls.c \ src/sys/compat/linux/arch/m68k/linux_sysent.c cvs rdiff -u -r1.106 -r1.107 \ src/sys/compat/linux/arch/m68k/linux_syscallargs.h cvs rdiff -u -r1.79 -r1.80 src/sys/compat/linux/arch/mips/linux_syscall.h cvs rdiff -u -r1.78 -r1.79 src/sys/compat/linux/arch/mips/linux_syscallargs.h \ src/sys/compat/linux/arch/mips/linux_syscalls.c \ src/sys/compat/linux/arch/mips/linux_sysent.c cvs rdiff -u -r1.85 -r1.86 src/sys/compat/linux/arch/powerpc/linux_syscall.h \ src/sys/compat/linux/arch/powerpc/linux_sysent.c cvs rdiff -u -r1.84 -r1.85 \ src/sys/compat/linux/arch/powerpc/linux_syscallargs.h \ src/sys/compat/linux/arch/powerpc/linux_syscalls.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/alpha/linux_syscall.h diff -u src/sys/compat/linux/arch/alpha/linux_syscall.h:1.109 src/sys/compat/linux/arch/alpha/linux_syscall.h:1.110 --- src/sys/compat/linux/arch/alpha/linux_syscall.h:1.109 Sat Nov 9 23:45:07 2019 +++ src/sys/compat/linux/arch/alpha/linux_syscall.h Sun Apr 26 19:20:18 2020 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.109 2019/11/09 23:45:07 jdolecek Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.110 2020/04/26 19:20:18 thorpej Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.96 2019/11/09 23:44:31 jdolecek Exp + * created from NetBSD: syscalls.master,v 1.97 2020/04/26 18:53:32 thorpej Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -690,11 +690,11 @@ /* syscall: "ppoll" ret: "int" args: "struct pollfd *" "u_int" "struct linux_timespec *" "linux_sigset_t *" */ #define LINUX_SYS_ppoll 464 -/* syscall: "set_robust_list" ret: "int" args: "struct linux_robust_list_head *" "size_t" */ -#define LINUX_SYS_set_robust_list 466 +/* syscall: "__futex_set_robust_list" ret: "int" args: "void *" "size_t" */ +#define LINUX_SYS___futex_set_robust_list 466 -/* syscall: "get_robust_list" ret: "int" args: "int" "struct linux_robust_list_head **" "size_t *" */ -#define LINUX_SYS_get_robust_list 467 +/* syscall: "__futex_get_robust_list" ret: "int" args: "lwpid_t" "void **" "size_t *" */ +#define LINUX_SYS___futex_get_robust_list 467 /* syscall: "utimensat" ret: "int" args: "int" "const char *" "struct linux_timespec *" "int" */ #define LINUX_SYS_utimensat 475 Index: src/sys/compat/linux/arch/alpha/linux_sysent.c
CVS commit: src/sys/compat/linux/arch/alpha
Module Name:src Committed By: christos Date: Tue Mar 26 02:05:28 UTC 2019 Modified Files: src/sys/compat/linux/arch/alpha: linux_osf1.c Log Message: make this compile again. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/compat/linux/arch/alpha/linux_osf1.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/alpha/linux_osf1.c diff -u src/sys/compat/linux/arch/alpha/linux_osf1.c:1.1 src/sys/compat/linux/arch/alpha/linux_osf1.c:1.2 --- src/sys/compat/linux/arch/alpha/linux_osf1.c:1.1 Sun Mar 24 12:24:19 2019 +++ src/sys/compat/linux/arch/alpha/linux_osf1.c Mon Mar 25 22:05:28 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_osf1.c,v 1.1 2019/03/24 16:24:19 maxv Exp $ */ +/* $NetBSD: linux_osf1.c,v 1.2 2019/03/26 02:05:28 christos Exp $ */ /* * Copyright (c) 1999 Christopher G. Demetriou. All rights reserved. @@ -31,7 +31,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_osf1.c,v 1.1 2019/03/24 16:24:19 maxv Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_osf1.c,v 1.2 2019/03/26 02:05:28 christos Exp $"); #include #include @@ -419,7 +419,7 @@ linux_sys_osf1_gettimeofday(struct lwp * memset(, 0, sizeof otv); otv.tv_sec = tv.tv_sec; otv.tv_usec = tv.tv_usec; - error = copyout(, SCARG(uap, tp), sizeof otv); + error = copyout(, SCARG(uap, tv), sizeof otv); if (error == 0 && SCARG(uap, tzp) != NULL) { memset(, 0, sizeof otz);
CVS commit: src/sys/compat/linux/arch/alpha
Module Name:src Committed By: maxv Date: Sun Mar 24 16:39:47 UTC 2019 Modified Files: src/sys/compat/linux/arch/alpha: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c Log Message: regen To generate a diff of this commit: cvs rdiff -u -r1.107 -r1.108 src/sys/compat/linux/arch/alpha/linux_syscall.h \ src/sys/compat/linux/arch/alpha/linux_sysent.c cvs rdiff -u -r1.106 -r1.107 \ src/sys/compat/linux/arch/alpha/linux_syscallargs.h cvs rdiff -u -r1.108 -r1.109 src/sys/compat/linux/arch/alpha/linux_syscalls.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/alpha/linux_syscall.h diff -u src/sys/compat/linux/arch/alpha/linux_syscall.h:1.107 src/sys/compat/linux/arch/alpha/linux_syscall.h:1.108 --- src/sys/compat/linux/arch/alpha/linux_syscall.h:1.107 Fri Aug 10 21:47:14 2018 +++ src/sys/compat/linux/arch/alpha/linux_syscall.h Sun Mar 24 16:39:46 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_syscall.h,v 1.107 2018/08/10 21:47:14 pgoyette Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.108 2019/03/24 16:39:46 maxv Exp $ */ /* * System call numbers. @@ -30,6 +30,9 @@ /* syscall: "close" ret: "int" args: "int" */ #define LINUX_SYS_close 6 +/* syscall: "osf1_wait4" ret: "int" args: "int" "int *" "int" "struct osf1_rusage *" */ +#define LINUX_SYS_osf1_wait4 7 + /* syscall: "creat" ret: "int" args: "const char *" "linux_umode_t" */ #define LINUX_SYS_creat 8 @@ -63,6 +66,9 @@ /* syscall: "getpid_with_ppid" ret: "pid_t" args: */ #define LINUX_SYS_getpid_with_ppid 20 +/* syscall: "osf1_mount" ret: "int" args: "int" "const char *" "int" "void *" */ +#define LINUX_SYS_osf1_mount 21 + /* syscall: "setuid" ret: "int" args: "uid_t" */ #define LINUX_SYS_setuid 23 @@ -90,6 +96,9 @@ /* syscall: "pipe" ret: "int" args: */ #define LINUX_SYS_pipe 42 +/* syscall: "osf1_set_program_attributes" ret: "int" args: "void *" "unsigned long" "void *" "unsigned long" */ +#define LINUX_SYS_osf1_set_program_attributes 43 + /* syscall: "open" ret: "int" args: "const char *" "int" "linux_umode_t" */ #define LINUX_SYS_open 45 @@ -156,6 +165,9 @@ /* syscall: "setgroups" ret: "int" args: "int" "const gid_t *" */ #define LINUX_SYS_setgroups 80 +/* syscall: "osf1_setitimer" ret: "int" args: "int" "struct osf1_itimerval *" "struct osf1_itimerval *" */ +#define LINUX_SYS_osf1_setitimer 83 + /* syscall: "gethostname" ret: "int" args: "char *" "u_int" */ #define LINUX_SYS_gethostname 87 @@ -171,6 +183,9 @@ /* syscall: "fcntl" ret: "int" args: "int" "int" "void *" */ #define LINUX_SYS_fcntl 92 +/* syscall: "osf1_select" ret: "int" args: "u_int" "fd_set *" "fd_set *" "fd_set *" "struct osf1_timeval *" */ +#define LINUX_SYS_osf1_select 93 + /* syscall: "poll" ret: "int" args: "struct pollfd *" "u_int" "int" */ #define LINUX_SYS_poll 94 @@ -222,6 +237,12 @@ /* syscall: "sendmsg" ret: "ssize_t" args: "int" "const struct linux_msghdr *" "int" */ #define LINUX_SYS_sendmsg 114 +/* syscall: "osf1_gettimeofday" ret: "int" args: "struct osf1_timeval *" "struct osf1_timezone *" */ +#define LINUX_SYS_osf1_gettimeofday 116 + +/* syscall: "osf1_getrusage" ret: "int" args: "int" "struct osf1_rusage *" */ +#define LINUX_SYS_osf1_getrusage 117 + /* syscall: "getsockopt" ret: "int" args: "int" "int" "int" "void *" "int *" */ #define LINUX_SYS_getsockopt 118 @@ -231,6 +252,9 @@ /* syscall: "writev" ret: "ssize_t" args: "int" "const struct iovec *" "int" */ #define LINUX_SYS_writev 121 +/* syscall: "osf1_settimeofday" ret: "int" args: "struct osf1_timeval *" "struct osf1_timezone *" */ +#define LINUX_SYS_osf1_settimeofday 122 + /* syscall: "__posix_fchown" ret: "int" args: "int" "uid_t" "gid_t" */ #define LINUX_SYS___posix_fchown 123 @@ -276,6 +300,9 @@ /* syscall: "rmdir" ret: "int" args: "const char *" */ #define LINUX_SYS_rmdir 137 +/* syscall: "osf1_utimes" ret: "int" args: "const char *" "const struct osf1_timeval *" */ +#define LINUX_SYS_osf1_utimes 138 + /* syscall: "getpeername" ret: "int" args: "int" "void *" "int *" */ #define LINUX_SYS_getpeername 141 @@ -297,6 +324,12 @@ /* syscall: "getdirentries" ret: "int" args: "int" "char *" "u_int" "long *" */ #define LINUX_SYS_getdirentries 159 +/* syscall: "osf1_statfs" ret: "int" args: "const char *" "struct osf1_statfs *" "int" */ +#define LINUX_SYS_osf1_statfs 160 + +/* syscall: "osf1_fstatfs" ret: "int" args: "int" "struct osf1_statfs *" "int" */ +#define LINUX_SYS_osf1_fstatfs 161 + /* syscall: "getdomainname" ret: "int" args: "char *" "int" */ #define LINUX_SYS_getdomainname 165 @@ -363,6 +396,18 @@ /* syscall: "getsid" ret: "pid_t" args: "pid_t" */ #define LINUX_SYS_getsid 234 +/* syscall: "osf1_sysinfo" ret: "int" args: "int" "char *" "long" */ +#define LINUX_SYS_osf1_sysinfo 241 + +/* syscall: "osf1_usleep_thread" ret: "int" args: "struct osf1_timeval *" "struct
CVS commit: src/sys/compat/linux/arch/arm
Module Name:src Committed By: christos Date: Fri Jan 26 09:29:15 UTC 2018 Modified Files: src/sys/compat/linux/arch/arm: linux_ptrace.c Log Message: union was removed To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/sys/compat/linux/arch/arm/linux_ptrace.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/arm/linux_ptrace.c diff -u src/sys/compat/linux/arch/arm/linux_ptrace.c:1.20 src/sys/compat/linux/arch/arm/linux_ptrace.c:1.21 --- src/sys/compat/linux/arch/arm/linux_ptrace.c:1.20 Sun Aug 27 20:46:07 2017 +++ src/sys/compat/linux/arch/arm/linux_ptrace.c Fri Jan 26 04:29:15 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_ptrace.c,v 1.20 2017/08/28 00:46:07 kamil Exp $ */ +/* $NetBSD: linux_ptrace.c,v 1.21 2018/01/26 09:29:15 christos Exp $ */ /*- * Copyright (c) 1999 The NetBSD Foundation, Inc. @@ -31,7 +31,7 @@ #include -__KERNEL_RCSID(0, "$NetBSD: linux_ptrace.c,v 1.20 2017/08/28 00:46:07 kamil Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_ptrace.c,v 1.21 2018/01/26 09:29:15 christos Exp $"); #include #include @@ -206,7 +206,7 @@ linux_sys_ptrace_arch(struct lwp *l, con case LINUX_PTRACE_GET_THREAD_AREA: mutex_exit(t->p_lock); pcb = lwp_getpcb(l); - val = (void *)pcb->pcb_un.un_32.pcb32_user_pid_ro; + val = (void *)pcb->pcb_user_pid_ro; error = copyout(, (void *)SCARG(uap, data), sizeof(val)); break; #endif
CVS commit: src/sys/compat/linux/arch/amd64
Module Name:src Committed By: maxv Date: Mon Jan 1 08:03:43 UTC 2018 Modified Files: src/sys/compat/linux/arch/amd64: linux_machdep.c Log Message: Use the default %cs, and mask the other segregs. To generate a diff of this commit: cvs rdiff -u -r1.55 -r1.56 src/sys/compat/linux/arch/amd64/linux_machdep.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/amd64/linux_machdep.c diff -u src/sys/compat/linux/arch/amd64/linux_machdep.c:1.55 src/sys/compat/linux/arch/amd64/linux_machdep.c:1.56 --- src/sys/compat/linux/arch/amd64/linux_machdep.c:1.55 Sat Oct 21 07:24:26 2017 +++ src/sys/compat/linux/arch/amd64/linux_machdep.c Mon Jan 1 08:03:43 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_machdep.c,v 1.55 2017/10/21 07:24:26 maxv Exp $ */ +/* $NetBSD: linux_machdep.c,v 1.56 2018/01/01 08:03:43 maxv Exp $ */ /*- * Copyright (c) 2005 Emmanuel Dreyfus, all rights reserved. @@ -33,7 +33,7 @@ #include -__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.55 2017/10/21 07:24:26 maxv Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.56 2018/01/01 08:03:43 maxv Exp $"); #include #include @@ -205,9 +205,9 @@ linux_sendsig(const ksiginfo_t *ksi, con sigframe.uc.luc_mcontext.rsp = tf->tf_rsp; sigframe.uc.luc_mcontext.rip = tf->tf_rip; sigframe.uc.luc_mcontext.eflags = tf->tf_rflags; - sigframe.uc.luc_mcontext.cs = tf->tf_cs; - sigframe.uc.luc_mcontext.gs = tf->tf_gs; - sigframe.uc.luc_mcontext.fs = tf->tf_fs; + sigframe.uc.luc_mcontext.cs = GSEL(GUCODE_SEL, SEL_UPL); + sigframe.uc.luc_mcontext.gs = tf->tf_gs & 0x; + sigframe.uc.luc_mcontext.fs = tf->tf_fs & 0x; sigframe.uc.luc_mcontext.err = tf->tf_err; sigframe.uc.luc_mcontext.trapno = tf->tf_trapno; native_to_linux_sigset(, mask);
CVS commit: src/sys/compat/linux/arch/powerpc
Module Name:src Committed By: chs Date: Wed May 3 00:23:42 UTC 2017 Modified Files: src/sys/compat/linux/arch/powerpc: linux_machdep.c Log Message: add missing arg to fpu_discard(). To generate a diff of this commit: cvs rdiff -u -r1.49 -r1.50 src/sys/compat/linux/arch/powerpc/linux_machdep.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/powerpc/linux_machdep.c diff -u src/sys/compat/linux/arch/powerpc/linux_machdep.c:1.49 src/sys/compat/linux/arch/powerpc/linux_machdep.c:1.50 --- src/sys/compat/linux/arch/powerpc/linux_machdep.c:1.49 Thu Mar 16 16:13:21 2017 +++ src/sys/compat/linux/arch/powerpc/linux_machdep.c Wed May 3 00:23:42 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_machdep.c,v 1.49 2017/03/16 16:13:21 chs Exp $ */ +/* $NetBSD: linux_machdep.c,v 1.50 2017/05/03 00:23:42 chs Exp $ */ /*- * Copyright (c) 1995, 2000, 2001 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.49 2017/03/16 16:13:21 chs Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.50 2017/05/03 00:23:42 chs Exp $"); #include #include @@ -321,13 +321,13 @@ linux_sys_rt_sigreturn(struct lwp *l, co * Make sure the fpu state is discarded */ #ifdef PPC_HAVE_FPU - fpu_discard(); + fpu_discard(l); #endif memcpy(curpcb->pcb_fpu.fpreg, (void *)_regs, sizeof(curpcb->pcb_fpu.fpreg)); - fpu_mark_used(curlwp); + fpu_mark_used(l); mutex_enter(p->p_lock); @@ -415,13 +415,13 @@ linux_sys_sigreturn(struct lwp *l, const * Make sure the fpu state is discarded */ #ifdef PPC_HAVE_FPU - fpu_discard(); + fpu_discard(l); #endif memcpy(curpcb->pcb_fpu.fpreg, (void *)_regs, sizeof(curpcb->pcb_fpu.fpreg)); - fpu_mark_used(curlwp); + fpu_mark_used(l); mutex_enter(p->p_lock);
CVS commit: src/sys/compat/linux/arch/amd64
Module Name:src Committed By: maxv Date: Mon Feb 13 15:03:18 UTC 2017 Modified Files: src/sys/compat/linux/arch/amd64: linux_machdep.c Log Message: Make sure %rip is in userland. This is harmless, since the return to userland is made with iret instead of sysret in this path. While here, use size_t. To generate a diff of this commit: cvs rdiff -u -r1.50 -r1.51 src/sys/compat/linux/arch/amd64/linux_machdep.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/amd64/linux_machdep.c diff -u src/sys/compat/linux/arch/amd64/linux_machdep.c:1.50 src/sys/compat/linux/arch/amd64/linux_machdep.c:1.51 --- src/sys/compat/linux/arch/amd64/linux_machdep.c:1.50 Mon Feb 13 14:54:11 2017 +++ src/sys/compat/linux/arch/amd64/linux_machdep.c Mon Feb 13 15:03:18 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_machdep.c,v 1.50 2017/02/13 14:54:11 maxv Exp $ */ +/* $NetBSD: linux_machdep.c,v 1.51 2017/02/13 15:03:18 maxv Exp $ */ /*- * Copyright (c) 2005 Emmanuel Dreyfus, all rights reserved. @@ -33,7 +33,7 @@ #include -__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.50 2017/02/13 14:54:11 maxv Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.51 2017/02/13 15:03:18 maxv Exp $"); #include #include @@ -457,7 +457,7 @@ linux_usertrap(struct lwp *l, vaddr_t tr { struct trapframe *tf = arg; uint64_t retaddr; - int vsyscallnr; + size_t vsyscallnr; /* * Check for a vsyscall. %rip must be the fault address, @@ -487,6 +487,8 @@ linux_usertrap(struct lwp *l, vaddr_t tr */ if (copyin((void *)tf->tf_rsp, , sizeof retaddr) != 0) return 0; + if ((vaddr_t)retaddr >= VM_MAXUSER_ADDRESS) + return 0; tf->tf_rip = retaddr; tf->tf_rax = linux_vsyscall_to_syscall[vsyscallnr]; tf->tf_rsp += 8; /* "pop" the return address */
CVS commit: src/sys/compat/linux/arch/amd64
Module Name:src Committed By: maxv Date: Mon Feb 13 14:54:11 UTC 2017 Modified Files: src/sys/compat/linux/arch/amd64: linux_machdep.c Log Message: Don't let userland choose %rip. This is the Intel Sysret vulnerability again. To generate a diff of this commit: cvs rdiff -u -r1.49 -r1.50 src/sys/compat/linux/arch/amd64/linux_machdep.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/amd64/linux_machdep.c diff -u src/sys/compat/linux/arch/amd64/linux_machdep.c:1.49 src/sys/compat/linux/arch/amd64/linux_machdep.c:1.50 --- src/sys/compat/linux/arch/amd64/linux_machdep.c:1.49 Sun Feb 5 08:42:49 2017 +++ src/sys/compat/linux/arch/amd64/linux_machdep.c Mon Feb 13 14:54:11 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_machdep.c,v 1.49 2017/02/05 08:42:49 maxv Exp $ */ +/* $NetBSD: linux_machdep.c,v 1.50 2017/02/13 14:54:11 maxv Exp $ */ /*- * Copyright (c) 2005 Emmanuel Dreyfus, all rights reserved. @@ -33,7 +33,7 @@ #include -__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.49 2017/02/05 08:42:49 maxv Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.50 2017/02/13 14:54:11 maxv Exp $"); #include #include @@ -234,7 +234,12 @@ linux_sendsig(const ksiginfo_t *ksi, con if (error != 0) { sigexit(l, SIGILL); return; - } + } + + if ((vaddr_t)catcher >= VM_MAXUSER_ADDRESS) { + sigexit(l, SIGILL); + return; + } linux_buildcontext(l, catcher, sp); tf->tf_rdi = sigframe.info.lsi_signo;
CVS commit: src/sys/compat/linux/arch/mips
Module Name:src Committed By: christos Date: Thu Feb 9 22:02:05 UTC 2017 Modified Files: src/sys/compat/linux/arch/mips: syscalls.master Log Message: revert listen To generate a diff of this commit: cvs rdiff -u -r1.65 -r1.66 src/sys/compat/linux/arch/mips/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/mips/syscalls.master diff -u src/sys/compat/linux/arch/mips/syscalls.master:1.65 src/sys/compat/linux/arch/mips/syscalls.master:1.66 --- src/sys/compat/linux/arch/mips/syscalls.master:1.65 Wed Feb 8 22:23:59 2017 +++ src/sys/compat/linux/arch/mips/syscalls.master Thu Feb 9 17:02:05 2017 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.65 2017/02/09 03:23:59 christos Exp $ + $NetBSD: syscalls.master,v 1.66 2017/02/09 22:02:05 christos Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -295,7 +295,7 @@ int *alen); } 173 STD { int|linux_sys||getsockopt(int s, int level, \ int optname, void *optval, int *optlen); } -174 STD { int|linux_sys||listen(int s, int backlog); } +174 NOARGS { int|sys||listen(int s, int backlog); } 175 STD { int|linux_sys||recv(int s, void *buf, int len, \ int flags); } 176 STD { int|linux_sys||recvfrom(int s, void *buf, int len, \
CVS commit: src/sys/compat/linux/arch/mips
Module Name:src Committed By: christos Date: Thu Feb 9 22:02:14 UTC 2017 Modified Files: src/sys/compat/linux/arch/mips: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c Log Message: regen To generate a diff of this commit: cvs rdiff -u -r1.75 -r1.76 src/sys/compat/linux/arch/mips/linux_syscall.h cvs rdiff -u -r1.74 -r1.75 src/sys/compat/linux/arch/mips/linux_syscallargs.h \ src/sys/compat/linux/arch/mips/linux_syscalls.c \ src/sys/compat/linux/arch/mips/linux_sysent.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/mips/linux_syscall.h diff -u src/sys/compat/linux/arch/mips/linux_syscall.h:1.75 src/sys/compat/linux/arch/mips/linux_syscall.h:1.76 --- src/sys/compat/linux/arch/mips/linux_syscall.h:1.75 Wed Feb 8 22:24:05 2017 +++ src/sys/compat/linux/arch/mips/linux_syscall.h Thu Feb 9 17:02:13 2017 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.75 2017/02/09 03:24:05 christos Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.76 2017/02/09 22:02:13 christos Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.65 2017/02/09 03:23:59 christos Exp + * created from NetBSD: syscalls.master,v 1.66 2017/02/09 22:02:05 christos Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ Index: src/sys/compat/linux/arch/mips/linux_syscallargs.h diff -u src/sys/compat/linux/arch/mips/linux_syscallargs.h:1.74 src/sys/compat/linux/arch/mips/linux_syscallargs.h:1.75 --- src/sys/compat/linux/arch/mips/linux_syscallargs.h:1.74 Wed Feb 8 22:24:05 2017 +++ src/sys/compat/linux/arch/mips/linux_syscallargs.h Thu Feb 9 17:02:13 2017 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscallargs.h,v 1.74 2017/02/09 03:24:05 christos Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.75 2017/02/09 22:02:13 christos Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.65 2017/02/09 03:23:59 christos Exp + * created from NetBSD: syscalls.master,v 1.66 2017/02/09 22:02:05 christos Exp */ #ifndef _LINUX_SYS_SYSCALLARGS_H_ @@ -593,11 +593,7 @@ struct linux_sys_getsockopt_args { }; check_syscall_args(linux_sys_getsockopt) -struct linux_sys_listen_args { - syscallarg(int) s; - syscallarg(int) backlog; -}; -check_syscall_args(linux_sys_listen) +struct sys_listen_args; struct linux_sys_recv_args { syscallarg(int) s; @@ -1448,7 +1444,7 @@ int linux_sys_getsockname(struct lwp *, int linux_sys_getsockopt(struct lwp *, const struct linux_sys_getsockopt_args *, register_t *); -int linux_sys_listen(struct lwp *, const struct linux_sys_listen_args *, register_t *); +int sys_listen(struct lwp *, const struct sys_listen_args *, register_t *); int linux_sys_recv(struct lwp *, const struct linux_sys_recv_args *, register_t *); Index: src/sys/compat/linux/arch/mips/linux_syscalls.c diff -u src/sys/compat/linux/arch/mips/linux_syscalls.c:1.74 src/sys/compat/linux/arch/mips/linux_syscalls.c:1.75 --- src/sys/compat/linux/arch/mips/linux_syscalls.c:1.74 Wed Feb 8 22:24:05 2017 +++ src/sys/compat/linux/arch/mips/linux_syscalls.c Thu Feb 9 17:02:13 2017 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_syscalls.c,v 1.74 2017/02/09 03:24:05 christos Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.75 2017/02/09 22:02:13 christos Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.65 2017/02/09 03:23:59 christos Exp + * created from NetBSD: syscalls.master,v 1.66 2017/02/09 22:02:05 christos Exp */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.74 2017/02/09 03:24:05 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.75 2017/02/09 22:02:13 christos Exp $"); #if defined(_KERNEL_OPT) #include Index: src/sys/compat/linux/arch/mips/linux_sysent.c diff -u src/sys/compat/linux/arch/mips/linux_sysent.c:1.74 src/sys/compat/linux/arch/mips/linux_sysent.c:1.75 --- src/sys/compat/linux/arch/mips/linux_sysent.c:1.74 Wed Feb 8 22:24:05 2017 +++ src/sys/compat/linux/arch/mips/linux_sysent.c Thu Feb 9 17:02:13 2017 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_sysent.c,v 1.74 2017/02/09 03:24:05 christos Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.75 2017/02/09 22:02:13 christos Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.65 2017/02/09 03:23:59 christos Exp + * created from NetBSD: syscalls.master,v 1.66 2017/02/09 22:02:05 christos Exp */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.74 2017/02/09 03:24:05 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.75 2017/02/09 22:02:13 christos Exp $"); #include #include @@ -763,8 +763,8 @@ struct sysent
CVS commit: src/sys/compat/linux/arch/mips
Module Name:src Committed By: christos Date: Thu Feb 9 03:24:06 UTC 2017 Modified Files: src/sys/compat/linux/arch/mips: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c Log Message: regen To generate a diff of this commit: cvs rdiff -u -r1.74 -r1.75 src/sys/compat/linux/arch/mips/linux_syscall.h cvs rdiff -u -r1.73 -r1.74 src/sys/compat/linux/arch/mips/linux_syscallargs.h \ src/sys/compat/linux/arch/mips/linux_syscalls.c \ src/sys/compat/linux/arch/mips/linux_sysent.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/mips/linux_syscall.h diff -u src/sys/compat/linux/arch/mips/linux_syscall.h:1.74 src/sys/compat/linux/arch/mips/linux_syscall.h:1.75 --- src/sys/compat/linux/arch/mips/linux_syscall.h:1.74 Sat Feb 4 13:14:55 2017 +++ src/sys/compat/linux/arch/mips/linux_syscall.h Wed Feb 8 22:24:05 2017 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.74 2017/02/04 18:14:55 christos Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.75 2017/02/09 03:24:05 christos Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.64 2017/02/04 18:14:44 christos Exp + * created from NetBSD: syscalls.master,v 1.65 2017/02/09 03:23:59 christos Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ Index: src/sys/compat/linux/arch/mips/linux_syscallargs.h diff -u src/sys/compat/linux/arch/mips/linux_syscallargs.h:1.73 src/sys/compat/linux/arch/mips/linux_syscallargs.h:1.74 --- src/sys/compat/linux/arch/mips/linux_syscallargs.h:1.73 Sat Feb 4 13:14:55 2017 +++ src/sys/compat/linux/arch/mips/linux_syscallargs.h Wed Feb 8 22:24:05 2017 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscallargs.h,v 1.73 2017/02/04 18:14:55 christos Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.74 2017/02/09 03:24:05 christos Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.64 2017/02/04 18:14:44 christos Exp + * created from NetBSD: syscalls.master,v 1.65 2017/02/09 03:23:59 christos Exp */ #ifndef _LINUX_SYS_SYSCALLARGS_H_ @@ -593,7 +593,11 @@ struct linux_sys_getsockopt_args { }; check_syscall_args(linux_sys_getsockopt) -struct sys_listen_args; +struct linux_sys_listen_args { + syscallarg(int) s; + syscallarg(int) backlog; +}; +check_syscall_args(linux_sys_listen) struct linux_sys_recv_args { syscallarg(int) s; @@ -1444,7 +1448,7 @@ int linux_sys_getsockname(struct lwp *, int linux_sys_getsockopt(struct lwp *, const struct linux_sys_getsockopt_args *, register_t *); -int sys_listen(struct lwp *, const struct sys_listen_args *, register_t *); +int linux_sys_listen(struct lwp *, const struct linux_sys_listen_args *, register_t *); int linux_sys_recv(struct lwp *, const struct linux_sys_recv_args *, register_t *); Index: src/sys/compat/linux/arch/mips/linux_syscalls.c diff -u src/sys/compat/linux/arch/mips/linux_syscalls.c:1.73 src/sys/compat/linux/arch/mips/linux_syscalls.c:1.74 --- src/sys/compat/linux/arch/mips/linux_syscalls.c:1.73 Sat Feb 4 13:14:55 2017 +++ src/sys/compat/linux/arch/mips/linux_syscalls.c Wed Feb 8 22:24:05 2017 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_syscalls.c,v 1.73 2017/02/04 18:14:55 christos Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.74 2017/02/09 03:24:05 christos Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.64 2017/02/04 18:14:44 christos Exp + * created from NetBSD: syscalls.master,v 1.65 2017/02/09 03:23:59 christos Exp */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.73 2017/02/04 18:14:55 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.74 2017/02/09 03:24:05 christos Exp $"); #if defined(_KERNEL_OPT) #include Index: src/sys/compat/linux/arch/mips/linux_sysent.c diff -u src/sys/compat/linux/arch/mips/linux_sysent.c:1.73 src/sys/compat/linux/arch/mips/linux_sysent.c:1.74 --- src/sys/compat/linux/arch/mips/linux_sysent.c:1.73 Sat Feb 4 13:14:55 2017 +++ src/sys/compat/linux/arch/mips/linux_sysent.c Wed Feb 8 22:24:05 2017 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_sysent.c,v 1.73 2017/02/04 18:14:55 christos Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.74 2017/02/09 03:24:05 christos Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.64 2017/02/04 18:14:44 christos Exp + * created from NetBSD: syscalls.master,v 1.65 2017/02/09 03:23:59 christos Exp */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.73 2017/02/04 18:14:55 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.74 2017/02/09 03:24:05 christos Exp $"); #include #include @@ -763,8 +763,8 @@ struct sysent
CVS commit: src/sys/compat/linux/arch/mips
Module Name:src Committed By: christos Date: Thu Feb 9 03:23:59 UTC 2017 Modified Files: src/sys/compat/linux/arch/mips: syscalls.master Log Message: fix listen To generate a diff of this commit: cvs rdiff -u -r1.64 -r1.65 src/sys/compat/linux/arch/mips/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/mips/syscalls.master diff -u src/sys/compat/linux/arch/mips/syscalls.master:1.64 src/sys/compat/linux/arch/mips/syscalls.master:1.65 --- src/sys/compat/linux/arch/mips/syscalls.master:1.64 Sat Feb 4 13:14:44 2017 +++ src/sys/compat/linux/arch/mips/syscalls.master Wed Feb 8 22:23:59 2017 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.64 2017/02/04 18:14:44 christos Exp $ + $NetBSD: syscalls.master,v 1.65 2017/02/09 03:23:59 christos Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -295,7 +295,7 @@ int *alen); } 173 STD { int|linux_sys||getsockopt(int s, int level, \ int optname, void *optval, int *optlen); } -174 NOARGS { int|sys||listen(int s, int backlog); } +174 STD { int|linux_sys||listen(int s, int backlog); } 175 STD { int|linux_sys||recv(int s, void *buf, int len, \ int flags); } 176 STD { int|linux_sys||recvfrom(int s, void *buf, int len, \
CVS commit: src/sys/compat/linux/arch/amd64
Module Name:src Committed By: maxv Date: Sun Feb 5 08:42:49 UTC 2017 Modified Files: src/sys/compat/linux/arch/amd64: linux_machdep.c Log Message: Missing pmap_ldt_cleanup. To generate a diff of this commit: cvs rdiff -u -r1.48 -r1.49 src/sys/compat/linux/arch/amd64/linux_machdep.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/amd64/linux_machdep.c diff -u src/sys/compat/linux/arch/amd64/linux_machdep.c:1.48 src/sys/compat/linux/arch/amd64/linux_machdep.c:1.49 --- src/sys/compat/linux/arch/amd64/linux_machdep.c:1.48 Wed Feb 19 20:50:56 2014 +++ src/sys/compat/linux/arch/amd64/linux_machdep.c Sun Feb 5 08:42:49 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_machdep.c,v 1.48 2014/02/19 20:50:56 dsl Exp $ */ +/* $NetBSD: linux_machdep.c,v 1.49 2017/02/05 08:42:49 maxv Exp $ */ /*- * Copyright (c) 2005 Emmanuel Dreyfus, all rights reserved. @@ -33,7 +33,7 @@ #include -__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.48 2014/02/19 20:50:56 dsl Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.49 2017/02/05 08:42:49 maxv Exp $"); #include #include @@ -84,6 +84,10 @@ linux_setregs(struct lwp *l, struct exec struct pcb *pcb = lwp_getpcb(l); struct trapframe *tf; +#ifdef USER_LDT + pmap_ldt_cleanup(l); +#endif + fpu_save_area_clear(l, __NetBSD_NPXCW__); pcb->pcb_flags = 0;
CVS commit: src/sys/compat/linux/arch/mips
Module Name:src Committed By: christos Date: Sat Feb 4 18:14:55 UTC 2017 Modified Files: src/sys/compat/linux/arch/mips: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c Log Message: regen To generate a diff of this commit: cvs rdiff -u -r1.73 -r1.74 src/sys/compat/linux/arch/mips/linux_syscall.h cvs rdiff -u -r1.72 -r1.73 src/sys/compat/linux/arch/mips/linux_syscallargs.h \ src/sys/compat/linux/arch/mips/linux_syscalls.c \ src/sys/compat/linux/arch/mips/linux_sysent.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/mips/linux_syscall.h diff -u src/sys/compat/linux/arch/mips/linux_syscall.h:1.73 src/sys/compat/linux/arch/mips/linux_syscall.h:1.74 --- src/sys/compat/linux/arch/mips/linux_syscall.h:1.73 Fri Feb 3 11:49:19 2017 +++ src/sys/compat/linux/arch/mips/linux_syscall.h Sat Feb 4 13:14:55 2017 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.73 2017/02/03 16:49:19 christos Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.74 2017/02/04 18:14:55 christos Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.63 2017/02/03 16:49:08 christos Exp + * created from NetBSD: syscalls.master,v 1.64 2017/02/04 18:14:44 christos Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -421,7 +421,7 @@ /* syscall: "bind" ret: "int" args: "int" "const struct osockaddr *" "int" */ #define LINUX_SYS_bind 169 -/* syscall: "connect" ret: "int" args: "int" "const struct sockaddr *" "int" */ +/* syscall: "connect" ret: "int" args: "int" "const struct osockaddr *" "int" */ #define LINUX_SYS_connect 170 /* syscall: "getpeername" ret: "int" args: "int" "void *" "int *" */ Index: src/sys/compat/linux/arch/mips/linux_syscallargs.h diff -u src/sys/compat/linux/arch/mips/linux_syscallargs.h:1.72 src/sys/compat/linux/arch/mips/linux_syscallargs.h:1.73 --- src/sys/compat/linux/arch/mips/linux_syscallargs.h:1.72 Fri Feb 3 11:49:19 2017 +++ src/sys/compat/linux/arch/mips/linux_syscallargs.h Sat Feb 4 13:14:55 2017 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscallargs.h,v 1.72 2017/02/03 16:49:19 christos Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.73 2017/02/04 18:14:55 christos Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.63 2017/02/03 16:49:08 christos Exp + * created from NetBSD: syscalls.master,v 1.64 2017/02/04 18:14:44 christos Exp */ #ifndef _LINUX_SYS_SYSCALLARGS_H_ @@ -549,37 +549,125 @@ struct linux_sys_mremap_args { }; check_syscall_args(linux_sys_mremap) -struct linux_sys_accept_args; +struct linux_sys_accept_args { + syscallarg(int) s; + syscallarg(struct osockaddr *) name; + syscallarg(int *) anamelen; +}; +check_syscall_args(linux_sys_accept) -struct linux_sys_bind_args; +struct linux_sys_bind_args { + syscallarg(int) s; + syscallarg(const struct osockaddr *) name; + syscallarg(int) namelen; +}; +check_syscall_args(linux_sys_bind) -struct linux_sys_connect_args; +struct linux_sys_connect_args { + syscallarg(int) s; + syscallarg(const struct osockaddr *) name; + syscallarg(int) namelen; +}; +check_syscall_args(linux_sys_connect) -struct linux_sys_getpeername_args; +struct linux_sys_getpeername_args { + syscallarg(int) fdes; + syscallarg(void *) asa; + syscallarg(int *) alen; +}; +check_syscall_args(linux_sys_getpeername) -struct linux_sys_getsockname_args; +struct linux_sys_getsockname_args { + syscallarg(int) fdes; + syscallarg(void *) asa; + syscallarg(int *) alen; +}; +check_syscall_args(linux_sys_getsockname) -struct linux_sys_getsockopt_args; +struct linux_sys_getsockopt_args { + syscallarg(int) s; + syscallarg(int) level; + syscallarg(int) optname; + syscallarg(void *) optval; + syscallarg(int *) optlen; +}; +check_syscall_args(linux_sys_getsockopt) struct sys_listen_args; -struct linux_sys_recv_args; - -struct linux_sys_recvfrom_args; - -struct linux_sys_recvmsg_args; +struct linux_sys_recv_args { + syscallarg(int) s; + syscallarg(void *) buf; + syscallarg(int) len; + syscallarg(int) flags; +}; +check_syscall_args(linux_sys_recv) -struct linux_sys_send_args; +struct linux_sys_recvfrom_args { + syscallarg(int) s; + syscallarg(void *) buf; + syscallarg(int) len; + syscallarg(int) flags; + syscallarg(struct osockaddr *) from; + syscallarg(int *) fromlenaddr; +}; +check_syscall_args(linux_sys_recvfrom) -struct linux_sys_sendmsg_args; +struct linux_sys_recvmsg_args { + syscallarg(int) s; + syscallarg(struct linux_msghdr *) msg; + syscallarg(u_int) flags; +}; +check_syscall_args(linux_sys_recvmsg) -struct linux_sys_sendto_args; +struct linux_sys_send_args { + syscallarg(int) s; + syscallarg(void *) buf; + syscallarg(int) len; + syscallarg(int) flags; +}; +check_syscall_args(linux_sys_send) -struct
CVS commit: src/sys/compat/linux/arch/mips
Module Name:src Committed By: christos Date: Sat Feb 4 18:14:44 UTC 2017 Modified Files: src/sys/compat/linux/arch/mips: syscalls.master Log Message: fix broken entries that prevented compilation. To generate a diff of this commit: cvs rdiff -u -r1.63 -r1.64 src/sys/compat/linux/arch/mips/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/mips/syscalls.master diff -u src/sys/compat/linux/arch/mips/syscalls.master:1.63 src/sys/compat/linux/arch/mips/syscalls.master:1.64 --- src/sys/compat/linux/arch/mips/syscalls.master:1.63 Fri Feb 3 11:49:08 2017 +++ src/sys/compat/linux/arch/mips/syscalls.master Sat Feb 4 13:14:44 2017 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.63 2017/02/03 16:49:08 christos Exp $ + $NetBSD: syscalls.master,v 1.64 2017/02/04 18:14:44 christos Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -283,39 +283,39 @@ struct linux_timespec *rmtp); } 167 STD { void *|linux_sys||mremap(void *old_address, \ size_t old_size, size_t new_size, u_long flags); } -168 NOARGS { int|linux_sys||accept(int s, \ +168 STD { int|linux_sys||accept(int s, \ struct osockaddr *name, int *anamelen); } -169 NOARGS { int|linux_sys||bind(int s, \ +169 STD { int|linux_sys||bind(int s, \ const struct osockaddr *name, int namelen); } -170 NOARGS { int|linux_sys||connect(int s, \ - const struct sockaddr *name, int namelen); } -171 NOARGS { int|linux_sys||getpeername(int fdes, void *asa, \ +170 STD { int|linux_sys||connect(int s, \ + const struct osockaddr *name, int namelen); } +171 STD { int|linux_sys||getpeername(int fdes, void *asa, \ int *alen); } -172 NOARGS { int|linux_sys||getsockname(int fdes, void *asa, \ +172 STD { int|linux_sys||getsockname(int fdes, void *asa, \ int *alen); } -173 NOARGS { int|linux_sys||getsockopt(int s, int level, \ +173 STD { int|linux_sys||getsockopt(int s, int level, \ int optname, void *optval, int *optlen); } 174 NOARGS { int|sys||listen(int s, int backlog); } -175 NOARGS { int|linux_sys||recv(int s, void *buf, int len, \ +175 STD { int|linux_sys||recv(int s, void *buf, int len, \ int flags); } -176 NOARGS { int|linux_sys||recvfrom(int s, void *buf, int len, \ +176 STD { int|linux_sys||recvfrom(int s, void *buf, int len, \ int flags, struct osockaddr *from, \ int *fromlenaddr); } -177 NOARGS { int|linux_sys||recvmsg(int s, \ +177 STD { int|linux_sys||recvmsg(int s, \ struct linux_msghdr *msg, u_int flags); } -178 NOARGS { int|linux_sys||send(int s, void *buf, int len, \ +178 STD { int|linux_sys||send(int s, void *buf, int len, \ int flags); } -179 NOARGS { int|linux_sys||sendmsg(int s, \ +179 STD { int|linux_sys||sendmsg(int s, \ struct linux_msghdr *msg, u_int flags); } -180 NOARGS { int|linux_sys||sendto(int s, void *msg, \ +180 STD { int|linux_sys||sendto(int s, void *msg, \ int len, int flags, struct osockaddr *to, \ int tolen); } -181 NOARGS { int|linux_sys||setsockopt(int s, int level, \ +181 STD { int|linux_sys||setsockopt(int s, int level, \ int optname, void *optval, int optlen); } 182 UNIMPL shutdown -183 NOARGS { int|linux_sys||socket(int domain, int type, \ +183 STD { int|linux_sys||socket(int domain, int type, \ int protocol); } -184 NOARGS { int|linux_sys||socketpair(int domain, int type, \ +184 STD { int|linux_sys||socketpair(int domain, int type, \ int protocol, int *rsv); } 185 STD { int|linux_sys||setresuid(uid_t ruid, uid_t euid, \ uid_t suid); }
CVS commit: src/sys/compat/linux/arch/powerpc
Module Name:src Committed By: christos Date: Fri Feb 3 16:56:55 UTC 2017 Modified Files: src/sys/compat/linux/arch/powerpc: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c Log Message: regen To generate a diff of this commit: cvs rdiff -u -r1.81 -r1.82 src/sys/compat/linux/arch/powerpc/linux_syscall.h \ src/sys/compat/linux/arch/powerpc/linux_sysent.c cvs rdiff -u -r1.80 -r1.81 \ src/sys/compat/linux/arch/powerpc/linux_syscallargs.h \ src/sys/compat/linux/arch/powerpc/linux_syscalls.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/powerpc/linux_syscall.h diff -u src/sys/compat/linux/arch/powerpc/linux_syscall.h:1.81 src/sys/compat/linux/arch/powerpc/linux_syscall.h:1.82 --- src/sys/compat/linux/arch/powerpc/linux_syscall.h:1.81 Fri Feb 3 02:57:22 2017 +++ src/sys/compat/linux/arch/powerpc/linux_syscall.h Fri Feb 3 11:56:55 2017 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.81 2017/02/03 07:57:22 martin Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.82 2017/02/03 16:56:55 christos Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.71 2017/02/03 07:57:11 martin Exp + * created from NetBSD: syscalls.master,v 1.72 2017/02/03 16:56:46 christos Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -657,9 +657,15 @@ /* syscall: "pipe2" ret: "int" args: "int *" "int" */ #define LINUX_SYS_pipe2 317 +/* syscall: "recvmmsg" ret: "int" args: "int" "struct linux_mmsghdr *" "unsigned int" "unsigned int" "struct timespec *" */ +#define LINUX_SYS_recvmmsg 343 + /* syscall: "accept4" ret: "int" args: "int" "struct osockaddr *" "int *" "int" */ #define LINUX_SYS_accept4 344 -#define LINUX_SYS_MAXSYSCALL 345 +/* syscall: "sendmmsg" ret: "int" args: "int" "struct linux_mmsghdr *" "unsigned int" "unsigned int" */ +#define LINUX_SYS_sendmmsg 349 + +#define LINUX_SYS_MAXSYSCALL 383 #define LINUX_SYS_NSYSENT 512 #endif /* _LINUX_SYS_SYSCALL_H_ */ Index: src/sys/compat/linux/arch/powerpc/linux_sysent.c diff -u src/sys/compat/linux/arch/powerpc/linux_sysent.c:1.81 src/sys/compat/linux/arch/powerpc/linux_sysent.c:1.82 --- src/sys/compat/linux/arch/powerpc/linux_sysent.c:1.81 Fri Feb 3 02:57:22 2017 +++ src/sys/compat/linux/arch/powerpc/linux_sysent.c Fri Feb 3 11:56:55 2017 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_sysent.c,v 1.81 2017/02/03 07:57:22 martin Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.82 2017/02/03 16:56:55 christos Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.71 2017/02/03 07:57:11 martin Exp + * created from NetBSD: syscalls.master,v 1.72 2017/02/03 16:56:46 christos Exp */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.81 2017/02/03 07:57:22 martin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.82 2017/02/03 16:56:55 christos Exp $"); #include #include @@ -1408,8 +1408,10 @@ struct sysent linux_sysent[] = { .sy_call = linux_sys_nosys, }, /* 342 = filler */ { - .sy_call = linux_sys_nosys, - }, /* 343 = filler */ + ns(struct linux_sys_recvmmsg_args), + .sy_flags = SYCALL_ARG_PTR, + .sy_call = (sy_call_t *)linux_sys_recvmmsg + }, /* 343 = recvmmsg */ { ns(struct linux_sys_accept4_args), .sy_flags = SYCALL_ARG_PTR, @@ -1428,8 +1430,10 @@ struct sysent linux_sysent[] = { .sy_call = linux_sys_nosys, }, /* 348 = filler */ { - .sy_call = linux_sys_nosys, - }, /* 349 = filler */ + ns(struct linux_sys_sendmmsg_args), + .sy_flags = SYCALL_ARG_PTR, + .sy_call = (sy_call_t *)linux_sys_sendmmsg + }, /* 349 = sendmmsg */ { .sy_call = linux_sys_nosys, }, /* 350 = filler */ Index: src/sys/compat/linux/arch/powerpc/linux_syscallargs.h diff -u src/sys/compat/linux/arch/powerpc/linux_syscallargs.h:1.80 src/sys/compat/linux/arch/powerpc/linux_syscallargs.h:1.81 --- src/sys/compat/linux/arch/powerpc/linux_syscallargs.h:1.80 Fri Feb 3 02:57:22 2017 +++ src/sys/compat/linux/arch/powerpc/linux_syscallargs.h Fri Feb 3 11:56:55 2017 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscallargs.h,v 1.80 2017/02/03 07:57:22 martin Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.81 2017/02/03 16:56:55 christos Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.71 2017/02/03 07:57:11 martin Exp + * created from NetBSD: syscalls.master,v 1.72 2017/02/03 16:56:46 christos Exp */ #ifndef _LINUX_SYS_SYSCALLARGS_H_ @@ -1024,6 +1024,15 @@ struct linux_sys_pipe2_args { }; check_syscall_args(linux_sys_pipe2) +struct linux_sys_recvmmsg_args { + syscallarg(int) s; + syscallarg(struct linux_mmsghdr *) msgvec; + syscallarg(unsigned int) vlen; + syscallarg(unsigned int) flags; + syscallarg(struct
CVS commit: src/sys/compat/linux/arch/powerpc
Module Name:src Committed By: christos Date: Fri Feb 3 16:56:46 UTC 2017 Modified Files: src/sys/compat/linux/arch/powerpc: syscalls.master Log Message: add unimple sendmmsg secvmmsg To generate a diff of this commit: cvs rdiff -u -r1.71 -r1.72 src/sys/compat/linux/arch/powerpc/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/powerpc/syscalls.master diff -u src/sys/compat/linux/arch/powerpc/syscalls.master:1.71 src/sys/compat/linux/arch/powerpc/syscalls.master:1.72 --- src/sys/compat/linux/arch/powerpc/syscalls.master:1.71 Fri Feb 3 02:57:11 2017 +++ src/sys/compat/linux/arch/powerpc/syscalls.master Fri Feb 3 11:56:46 2017 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.71 2017/02/03 07:57:11 martin Exp $ + $NetBSD: syscalls.master,v 1.72 2017/02/03 16:56:46 christos Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -542,28 +542,69 @@ 320 UNIMPL preadv 321 UNIMPL pwritev 322 UNIMPL rt_tgsigqueueinfo -323 UNIMPL -324 UNIMPL -325 UNIMPL -326 UNIMPL -327 UNIMPL -328 UNIMPL -329 UNIMPL -330 UNIMPL -331 UNIMPL -332 UNIMPL -333 UNIMPL -334 UNIMPL -335 UNIMPL -336 UNIMPL -337 UNIMPL -338 UNIMPL -339 UNIMPL -340 UNIMPL -341 UNIMPL -342 UNIMPL -343 UNIMPL +323 UNIMPL fanotify_init +324 UNIMPL fanotify_mark +325 UNIMPL prlimit64 +326 UNIMPL socket +327 UNIMPL bind +328 UNIMPL connect +329 UNIMPL listen +330 UNIMPL accept +331 UNIMPL getsockname +332 UNIMPL getpeername +333 UNIMPL socketpair +334 UNIMPL send +335 UNIMPL sendto +336 UNIMPL recv +337 UNIMPL recvfrom +338 UNIMPL shutdown +339 UNIMPL setsockopt +340 UNIMPL getsockopt +341 UNIMPL sendmsg +342 UNIMPL recvmsg +343 STD { int|linux_sys||recvmmsg(int s, \ + struct linux_mmsghdr *msgvec, unsigned int vlen, \ + unsigned int flags, struct timespec *timeout); } 344 STD { int|linux_sys||accept4(int s, \ struct osockaddr *name, \ int *anamelen, int flags); } - +345 UNIMPL name_to_handle_at +346 UNIMPL open_by_handle_at +347 UNIMPL clock_adjtime +348 UNIMPL syncfs +349 STD { int|linux_sys||sendmmsg(int s, \ + struct linux_mmsghdr *msgvec, unsigned int vlen, \ + unsigned int flags); } +350 UNIMPL setns +351 UNIMPL process_vm_readv +352 UNIMPL process_vm_writev +353 UNIMPL finit_module +354 UNIMPL kcmp +355 UNIMPL sched_setattr +356 UNIMPL sched_getattr +357 UNIMPL renameat2 +358 UNIMPL seccomp +359 UNIMPL getrandom +360 UNIMPL memfd_create +361 UNIMPL bpf +362 UNIMPL execveat +363 UNIMPL switch_endian +364 UNIMPL userfaultfd +365 UNIMPL membarrier +366 UNIMPL +367 UNIMPL +368 UNIMPL +369 UNIMPL +370 UNIMPL +371 UNIMPL +372 UNIMPL +373 UNIMPL +374 UNIMPL +375 UNIMPL +376 UNIMPL +377 UNIMPL +378 UNIMPL mlock2 +379 UNIMPL copy_file_range +380 UNIMPL preadv2 +381 UNIMPL pwritev2 +382 UNIMPL kexec_file_load
CVS commit: src/sys/compat/linux/arch/mips
Module Name:src Committed By: christos Date: Fri Feb 3 16:49:19 UTC 2017 Modified Files: src/sys/compat/linux/arch/mips: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c Log Message: regen To generate a diff of this commit: cvs rdiff -u -r1.72 -r1.73 src/sys/compat/linux/arch/mips/linux_syscall.h cvs rdiff -u -r1.71 -r1.72 src/sys/compat/linux/arch/mips/linux_syscallargs.h \ src/sys/compat/linux/arch/mips/linux_syscalls.c \ src/sys/compat/linux/arch/mips/linux_sysent.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/mips/linux_syscall.h diff -u src/sys/compat/linux/arch/mips/linux_syscall.h:1.72 src/sys/compat/linux/arch/mips/linux_syscall.h:1.73 --- src/sys/compat/linux/arch/mips/linux_syscall.h:1.72 Thu Feb 2 10:36:12 2017 +++ src/sys/compat/linux/arch/mips/linux_syscall.h Fri Feb 3 11:49:19 2017 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.72 2017/02/02 15:36:12 christos Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.73 2017/02/03 16:49:19 christos Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.62 2017/02/02 15:35:46 christos Exp + * created from NetBSD: syscalls.master,v 1.63 2017/02/03 16:49:08 christos Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -691,6 +691,12 @@ /* syscall: "accept4" ret: "int" args: "int" "struct osockaddr *" "int *" "int" */ #define LINUX_SYS_accept4 334 -#define LINUX_SYS_MAXSYSCALL 336 +/* syscall: "recvmmsg" ret: "int" args: "int" "struct linux_mmsghdr *" "unsigned int" "unsigned int" "struct timespec *" */ +#define LINUX_SYS_recvmmsg 335 + +/* syscall: "sendmmsg" ret: "int" args: "int" "struct linux_mmsghdr *" "unsigned int" "unsigned int" */ +#define LINUX_SYS_sendmmsg 344 + +#define LINUX_SYS_MAXSYSCALL 367 #define LINUX_SYS_NSYSENT 512 #endif /* _LINUX_SYS_SYSCALL_H_ */ Index: src/sys/compat/linux/arch/mips/linux_syscallargs.h diff -u src/sys/compat/linux/arch/mips/linux_syscallargs.h:1.71 src/sys/compat/linux/arch/mips/linux_syscallargs.h:1.72 --- src/sys/compat/linux/arch/mips/linux_syscallargs.h:1.71 Thu Feb 2 10:36:12 2017 +++ src/sys/compat/linux/arch/mips/linux_syscallargs.h Fri Feb 3 11:49:19 2017 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscallargs.h,v 1.71 2017/02/02 15:36:12 christos Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.72 2017/02/03 16:49:19 christos Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.62 2017/02/02 15:35:46 christos Exp + * created from NetBSD: syscalls.master,v 1.63 2017/02/03 16:49:08 christos Exp */ #ifndef _LINUX_SYS_SYSCALLARGS_H_ @@ -1057,6 +1057,23 @@ struct linux_sys_accept4_args { }; check_syscall_args(linux_sys_accept4) +struct linux_sys_recvmmsg_args { + syscallarg(int) s; + syscallarg(struct linux_mmsghdr *) msgvec; + syscallarg(unsigned int) vlen; + syscallarg(unsigned int) flags; + syscallarg(struct timespec *) timeout; +}; +check_syscall_args(linux_sys_recvmmsg) + +struct linux_sys_sendmmsg_args { + syscallarg(int) s; + syscallarg(struct linux_mmsghdr *) msgvec; + syscallarg(unsigned int) vlen; + syscallarg(unsigned int) flags; +}; +check_syscall_args(linux_sys_sendmmsg) + /* * System call prototypes. */ @@ -1511,4 +1528,8 @@ int linux_sys_pipe2(struct lwp *, const int linux_sys_accept4(struct lwp *, const struct linux_sys_accept4_args *, register_t *); +int linux_sys_recvmmsg(struct lwp *, const struct linux_sys_recvmmsg_args *, register_t *); + +int linux_sys_sendmmsg(struct lwp *, const struct linux_sys_sendmmsg_args *, register_t *); + #endif /* _LINUX_SYS_SYSCALLARGS_H_ */ Index: src/sys/compat/linux/arch/mips/linux_syscalls.c diff -u src/sys/compat/linux/arch/mips/linux_syscalls.c:1.71 src/sys/compat/linux/arch/mips/linux_syscalls.c:1.72 --- src/sys/compat/linux/arch/mips/linux_syscalls.c:1.71 Thu Feb 2 10:36:12 2017 +++ src/sys/compat/linux/arch/mips/linux_syscalls.c Fri Feb 3 11:49:19 2017 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_syscalls.c,v 1.71 2017/02/02 15:36:12 christos Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.72 2017/02/03 16:49:19 christos Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.62 2017/02/02 15:35:46 christos Exp + * created from NetBSD: syscalls.master,v 1.63 2017/02/03 16:49:08 christos Exp */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.71 2017/02/02 15:36:12 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.72 2017/02/03 16:49:19 christos Exp $"); #if defined(_KERNEL_OPT) #include @@ -365,38 +365,38 @@ const char *const linux_syscallnames[] = /* 332 */ "#332 (unimplemented rt_tgsigqueueinfo)", /* 333 */ "#333 (unimplemented
CVS commit: src/sys/compat/linux/arch/mips
Module Name:src Committed By: christos Date: Fri Feb 3 16:49:08 UTC 2017 Modified Files: src/sys/compat/linux/arch/mips: syscalls.master Log Message: add missing unimpl and sendmmsg and recvmmsg To generate a diff of this commit: cvs rdiff -u -r1.62 -r1.63 src/sys/compat/linux/arch/mips/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/mips/syscalls.master diff -u src/sys/compat/linux/arch/mips/syscalls.master:1.62 src/sys/compat/linux/arch/mips/syscalls.master:1.63 --- src/sys/compat/linux/arch/mips/syscalls.master:1.62 Thu Feb 2 10:35:46 2017 +++ src/sys/compat/linux/arch/mips/syscalls.master Fri Feb 3 11:49:08 2017 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.62 2017/02/02 15:35:46 christos Exp $ + $NetBSD: syscalls.master,v 1.63 2017/02/03 16:49:08 christos Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -546,4 +546,40 @@ 334 STD { int|linux_sys||accept4(int s, \ struct osockaddr *name, \ int *anamelen, int flags); } -335 UNIMPL recvmmsg +335 STD { int|linux_sys||recvmmsg(int s, \ + struct linux_mmsghdr *msgvec, unsigned int vlen, \ + unsigned int flags, struct timespec *timeout); } +336 UNIMPL getdents64 +337 UNIMPL fanotify_init +338 UNIMPL fanotify_mark +339 UNIMPL prlimit64 +340 UNIMPL name_to_handle_at +341 UNIMPL open_by_handle_at +342 UNIMPL clock_adjtime +343 UNIMPL syncfs +344 STD { int|linux_sys||sendmmsg(int s, \ + struct linux_mmsghdr *msgvec, unsigned int vlen, \ + unsigned int flags); } +345 UNIMPL setns +346 UNIMPL process_vm_readv +347 UNIMPL process_vm_writev +348 UNIMPL kcmp +349 UNIMPL finit_module +350 UNIMPL sched_setattr +351 UNIMPL sched_getattr +352 UNIMPL renameat2 +353 UNIMPL seccomp +354 UNIMPL getrandom +355 UNIMPL memfd_create +356 UNIMPL bpf +357 UNIMPL execveat +358 UNIMPL userfaultfd +359 UNIMPL membarrier +360 UNIMPL mlock2 +361 UNIMPL copy_file_range +362 UNIMPL preadv2 +363 UNIMPL pwritev2 +364 UNIMPL pkey_mprotect +365 UNIMPL pkey_alloc +366 UNIMPL pkey_free +
CVS commit: src/sys/compat/linux/arch/m68k
Module Name:src Committed By: christos Date: Fri Feb 3 16:44:21 UTC 2017 Modified Files: src/sys/compat/linux/arch/m68k: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c Log Message: regen To generate a diff of this commit: cvs rdiff -u -r1.103 -r1.104 src/sys/compat/linux/arch/m68k/linux_syscall.h \ src/sys/compat/linux/arch/m68k/linux_syscalls.c \ src/sys/compat/linux/arch/m68k/linux_sysent.c cvs rdiff -u -r1.102 -r1.103 \ src/sys/compat/linux/arch/m68k/linux_syscallargs.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/m68k/linux_syscall.h diff -u src/sys/compat/linux/arch/m68k/linux_syscall.h:1.103 src/sys/compat/linux/arch/m68k/linux_syscall.h:1.104 --- src/sys/compat/linux/arch/m68k/linux_syscall.h:1.103 Fri Feb 3 02:54:39 2017 +++ src/sys/compat/linux/arch/m68k/linux_syscall.h Fri Feb 3 11:44:21 2017 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.103 2017/02/03 07:54:39 martin Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.104 2017/02/03 16:44:21 christos Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.92 2017/02/03 07:54:26 martin Exp + * created from NetBSD: syscalls.master,v 1.93 2017/02/03 16:44:12 christos Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -723,6 +723,12 @@ /* syscall: "accept4" ret: "int" args: "int" "struct osockaddr *" "int *" "int" */ #define LINUX_SYS_accept4 361 -#define LINUX_SYS_MAXSYSCALL 362 +/* syscall: "recvmmsg" ret: "int" args: "int" "struct linux_mmsghdr *" "unsigned int" "unsigned int" "struct timespec *" */ +#define LINUX_SYS_recvmmsg 371 + +/* syscall: "sendmmsg" ret: "int" args: "int" "struct linux_mmsghdr *" "unsigned int" "unsigned int" */ +#define LINUX_SYS_sendmmsg 372 + +#define LINUX_SYS_MAXSYSCALL 379 #define LINUX_SYS_NSYSENT 512 #endif /* _LINUX_SYS_SYSCALL_H_ */ Index: src/sys/compat/linux/arch/m68k/linux_syscalls.c diff -u src/sys/compat/linux/arch/m68k/linux_syscalls.c:1.103 src/sys/compat/linux/arch/m68k/linux_syscalls.c:1.104 --- src/sys/compat/linux/arch/m68k/linux_syscalls.c:1.103 Fri Feb 3 02:54:39 2017 +++ src/sys/compat/linux/arch/m68k/linux_syscalls.c Fri Feb 3 11:44:21 2017 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_syscalls.c,v 1.103 2017/02/03 07:54:39 martin Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.104 2017/02/03 16:44:21 christos Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.92 2017/02/03 07:54:26 martin Exp + * created from NetBSD: syscalls.master,v 1.93 2017/02/03 16:44:12 christos Exp */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.103 2017/02/03 07:54:39 martin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.104 2017/02/03 16:44:21 christos Exp $"); #if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT) @@ -391,48 +391,48 @@ const char *const linux_syscallnames[] = /* 334 */ "#334 (unimplemented get_thread_area)", /* 335 */ "#335 (unimplemented atomic_cmpxchg_32)", /* 336 */ "#336 (unimplemented atomic_barrier)", - /* 337 */ "#337 (unimplemented)", - /* 338 */ "#338 (unimplemented)", - /* 339 */ "#339 (unimplemented)", - /* 340 */ "#340 (unimplemented)", - /* 341 */ "#341 (unimplemented)", - /* 342 */ "#342 (unimplemented)", - /* 343 */ "#343 (unimplemented)", - /* 344 */ "#344 (unimplemented)", - /* 345 */ "#345 (unimplemented)", - /* 346 */ "#346 (unimplemented)", - /* 347 */ "#347 (unimplemented)", - /* 348 */ "#348 (unimplemented)", - /* 349 */ "#349 (unimplemented)", - /* 350 */ "#350 (unimplemented)", - /* 351 */ "#351 (unimplemented)", - /* 352 */ "#352 (unimplemented)", - /* 353 */ "#353 (unimplemented)", - /* 354 */ "#354 (unimplemented)", - /* 355 */ "#355 (unimplemented)", - /* 356 */ "#356 (unimplemented)", - /* 357 */ "#357 (unimplemented)", - /* 358 */ "#358 (unimplemented)", - /* 359 */ "#359 (unimplemented)", - /* 360 */ "#360 (unimplemented)", + /* 337 */ "#337 (unimplemented fanotify_init)", + /* 338 */ "#338 (unimplemented fanotify_mark)", + /* 339 */ "#339 (unimplemented prlimit64)", + /* 340 */ "#340 (unimplemented name_to_handle_at)", + /* 341 */ "#341 (unimplemented open_by_handle_at)", + /* 342 */ "#342 (unimplemented clock_adjtime)", + /* 343 */ "#343 (unimplemented syncfs)", + /* 344 */ "#344 (unimplemented setns)", + /* 345 */ "#345 (unimplemented process_vm_readv)", + /* 346 */ "#346 (unimplemented process_vm_writev)", + /* 347 */ "#347 (unimplemented kcmp)", + /* 348 */ "#348 (unimplemented finit_module)", + /* 349 */ "#349 (unimplemented sched_setattr)", + /* 350 */ "#350 (unimplemented sched_getattr)", + /* 351 */ "#351 (unimplemented renameat2)", + /* 352 */ "#352 (unimplemented getrandom)", + /* 353 */ "#353 (unimplemented memfd_create)", + /* 354 */ "#354 (unimplemented bpf)", + /* 355 */
CVS commit: src/sys/compat/linux/arch/m68k
Module Name:src Committed By: christos Date: Fri Feb 3 16:44:12 UTC 2017 Modified Files: src/sys/compat/linux/arch/m68k: syscalls.master Log Message: and send and recv mmsg and unimpl To generate a diff of this commit: cvs rdiff -u -r1.92 -r1.93 src/sys/compat/linux/arch/m68k/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/m68k/syscalls.master diff -u src/sys/compat/linux/arch/m68k/syscalls.master:1.92 src/sys/compat/linux/arch/m68k/syscalls.master:1.93 --- src/sys/compat/linux/arch/m68k/syscalls.master:1.92 Fri Feb 3 02:54:26 2017 +++ src/sys/compat/linux/arch/m68k/syscalls.master Fri Feb 3 11:44:12 2017 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.92 2017/02/03 07:54:26 martin Exp $ + $NetBSD: syscalls.master,v 1.93 2017/02/03 16:44:12 christos Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -558,31 +558,51 @@ 334 UNIMPL get_thread_area 335 UNIMPL atomic_cmpxchg_32 336 UNIMPL atomic_barrier -337 UNIMPL -338 UNIMPL -339 UNIMPL -340 UNIMPL -341 UNIMPL -342 UNIMPL -343 UNIMPL -344 UNIMPL -345 UNIMPL -346 UNIMPL -347 UNIMPL -348 UNIMPL -349 UNIMPL -350 UNIMPL -351 UNIMPL -352 UNIMPL -353 UNIMPL -354 UNIMPL -355 UNIMPL -356 UNIMPL -357 UNIMPL -358 UNIMPL -359 UNIMPL -360 UNIMPL +337 UNIMPL fanotify_init +338 UNIMPL fanotify_mark +339 UNIMPL prlimit64 +340 UNIMPL name_to_handle_at +341 UNIMPL open_by_handle_at +342 UNIMPL clock_adjtime +343 UNIMPL syncfs +344 UNIMPL setns +345 UNIMPL process_vm_readv +346 UNIMPL process_vm_writev +347 UNIMPL kcmp +348 UNIMPL finit_module +349 UNIMPL sched_setattr +350 UNIMPL sched_getattr +351 UNIMPL renameat2 +352 UNIMPL getrandom +353 UNIMPL memfd_create +354 UNIMPL bpf +355 UNIMPL execveat +356 UNIMPL socket +357 UNIMPL socketpair +358 UNIMPL bind +359 UNIMPL connect +360 UNIMPL listen 361 STD { int|linux_sys||accept4(int s, \ struct osockaddr *name, \ int *anamelen, int flags); } - +362 UNIMPL getsockopt +363 UNIMPL setsockopt +364 UNIMPL getsockname +365 UNIMPL getpeername +366 UNIMPL sendto +367 UNIMPL sendmsg +368 UNIMPL recvfrom +369 UNIMPL recvmsg +370 UNIMPL shutdown +371 STD { int|linux_sys||recvmmsg(int s, \ + struct linux_mmsghdr *msgvec, unsigned int vlen, \ + unsigned int flags, struct timespec *timeout); } +372 STD { int|linux_sys||sendmmsg(int s, \ + struct linux_mmsghdr *msgvec, unsigned int vlen, \ + unsigned int flags); } +373 UNIMPL userfaultfd +374 UNIMPL membarrier +375 UNIMPL mlock2 +376 UNIMPL copy_file_range +377 UNIMPL preadv2 +378 UNIMPL pwritev2
CVS commit: src/sys/compat/linux/arch/arm
Module Name:src Committed By: christos Date: Fri Feb 3 16:28:34 UTC 2017 Modified Files: src/sys/compat/linux/arch/arm: syscalls.master Log Message: add send recv mmsg and unimpl XXX: fix base? To generate a diff of this commit: cvs rdiff -u -r1.66 -r1.67 src/sys/compat/linux/arch/arm/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/arm/syscalls.master diff -u src/sys/compat/linux/arch/arm/syscalls.master:1.66 src/sys/compat/linux/arch/arm/syscalls.master:1.67 --- src/sys/compat/linux/arch/arm/syscalls.master:1.66 Fri Feb 3 01:06:09 2017 +++ src/sys/compat/linux/arch/arm/syscalls.master Fri Feb 3 11:28:34 2017 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.66 2017/02/03 06:06:09 martin Exp $ + $NetBSD: syscalls.master,v 1.67 2017/02/03 16:28:34 christos Exp $ ; Derived from sys/compat/linux/arch/*/syscalls.master ; and from Linux 2.4.12 arch/arm/kernel/calls.S @@ -569,27 +569,34 @@ 362 UNIMPL pwritev 363 UNIMPL rt_tgsigqueueinfo 364 UNIMPL perf_counter_open -365 UNIMPL recvmmsg +365 STD { int|linux_sys||recvmmsg(int s, \ + struct linux_mmsghdr *msgvec, unsigned int vlen, \ + unsigned int flags, struct timespec *timeout); } 366 STD { int|linux_sys||accept4(int s, \ struct osockaddr *name, \ int *anamelen, int flags); } -367 UNIMPL -368 UNIMPL -369 UNIMPL -370 UNIMPL -371 UNIMPL -372 UNIMPL -373 UNIMPL -374 UNIMPL -375 UNIMPL -376 UNIMPL -377 UNIMPL -378 UNIMPL -379 UNIMPL -380 UNIMPL -381 UNIMPL -382 UNIMPL -383 UNIMPL +367 UNIMPL fanotify_init +368 UNIMPL fanotify_mark +369 UNIMPL prlimit64 +370 UNIMPL name_to_handle_at +371 UNIMPL open_by_handle_at +372 UNIMPL clock_adjtime +373 UNIMPL syncfs +374 STD { int|linux_sys||sendmmsg(int s, \ + struct linux_mmsghdr *msgvec, unsigned int vlen, \ + unsigned int flags); } +375 UNIMPL setns +376 UNIMPL process_vm_readv +377 UNIMPL process_vm_writev +378 UNIMPL kcmp +379 UNIMPL finit_module +380 UNIMPL sched_setattr +381 UNIMPL sched_getattr +382 UNIMPL renameat2 +383 UNIMPL seccomp +; XXX FIX-me? +; 384 UNIMPL getrandom +; 385 UNIMPL memfd_create ; ARMLinux actually has two ranges of syscalls. Normal syscalls use ; SWI numbers starting at 0x90 (__NR_SYSCALL_BASE). Special
CVS commit: src/sys/compat/linux/arch/arm
Module Name:src Committed By: christos Date: Fri Feb 3 16:28:42 UTC 2017 Modified Files: src/sys/compat/linux/arch/arm: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c linux_systrace_args.c Log Message: regen To generate a diff of this commit: cvs rdiff -u -r1.77 -r1.78 src/sys/compat/linux/arch/arm/linux_syscall.h \ src/sys/compat/linux/arch/arm/linux_syscallargs.h \ src/sys/compat/linux/arch/arm/linux_syscalls.c \ src/sys/compat/linux/arch/arm/linux_sysent.c cvs rdiff -u -r1.10 -r1.11 \ src/sys/compat/linux/arch/arm/linux_systrace_args.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/arm/linux_syscall.h diff -u src/sys/compat/linux/arch/arm/linux_syscall.h:1.77 src/sys/compat/linux/arch/arm/linux_syscall.h:1.78 --- src/sys/compat/linux/arch/arm/linux_syscall.h:1.77 Fri Feb 3 01:07:29 2017 +++ src/sys/compat/linux/arch/arm/linux_syscall.h Fri Feb 3 11:28:42 2017 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.77 2017/02/03 06:07:29 martin Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.78 2017/02/03 16:28:42 christos Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.66 2017/02/03 06:06:09 martin Exp + * created from NetBSD: syscalls.master,v 1.67 2017/02/03 16:28:34 christos Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -709,9 +709,15 @@ /* syscall: "pipe2" ret: "int" args: "int *" "int" */ #define LINUX_SYS_pipe2 359 +/* syscall: "recvmmsg" ret: "int" args: "int" "struct linux_mmsghdr *" "unsigned int" "unsigned int" "struct timespec *" */ +#define LINUX_SYS_recvmmsg 365 + /* syscall: "accept4" ret: "int" args: "int" "struct osockaddr *" "int *" "int" */ #define LINUX_SYS_accept4 366 +/* syscall: "sendmmsg" ret: "int" args: "int" "struct linux_mmsghdr *" "unsigned int" "unsigned int" */ +#define LINUX_SYS_sendmmsg 374 + /* syscall: "breakpoint" ret: "int" args: */ #define LINUX_SYS_breakpoint 385 Index: src/sys/compat/linux/arch/arm/linux_syscallargs.h diff -u src/sys/compat/linux/arch/arm/linux_syscallargs.h:1.77 src/sys/compat/linux/arch/arm/linux_syscallargs.h:1.78 --- src/sys/compat/linux/arch/arm/linux_syscallargs.h:1.77 Fri Feb 3 01:07:29 2017 +++ src/sys/compat/linux/arch/arm/linux_syscallargs.h Fri Feb 3 11:28:42 2017 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscallargs.h,v 1.77 2017/02/03 06:07:29 martin Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.78 2017/02/03 16:28:42 christos Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.66 2017/02/03 06:06:09 martin Exp + * created from NetBSD: syscalls.master,v 1.67 2017/02/03 16:28:34 christos Exp */ #ifndef _LINUX_SYS_SYSCALLARGS_H_ @@ -1091,6 +1091,15 @@ struct linux_sys_pipe2_args { }; check_syscall_args(linux_sys_pipe2) +struct linux_sys_recvmmsg_args { + syscallarg(int) s; + syscallarg(struct linux_mmsghdr *) msgvec; + syscallarg(unsigned int) vlen; + syscallarg(unsigned int) flags; + syscallarg(struct timespec *) timeout; +}; +check_syscall_args(linux_sys_recvmmsg) + struct linux_sys_accept4_args { syscallarg(int) s; syscallarg(struct osockaddr *) name; @@ -1099,6 +1108,14 @@ struct linux_sys_accept4_args { }; check_syscall_args(linux_sys_accept4) +struct linux_sys_sendmmsg_args { + syscallarg(int) s; + syscallarg(struct linux_mmsghdr *) msgvec; + syscallarg(unsigned int) vlen; + syscallarg(unsigned int) flags; +}; +check_syscall_args(linux_sys_sendmmsg) + struct linux_sys_cacheflush_args { syscallarg(uintptr_t) from; syscallarg(intptr_t) to; @@ -1557,8 +1574,12 @@ int linux_sys_dup3(struct lwp *, const s int linux_sys_pipe2(struct lwp *, const struct linux_sys_pipe2_args *, register_t *); +int linux_sys_recvmmsg(struct lwp *, const struct linux_sys_recvmmsg_args *, register_t *); + int linux_sys_accept4(struct lwp *, const struct linux_sys_accept4_args *, register_t *); +int linux_sys_sendmmsg(struct lwp *, const struct linux_sys_sendmmsg_args *, register_t *); + int linux_sys_breakpoint(struct lwp *, const void *, register_t *); int linux_sys_cacheflush(struct lwp *, const struct linux_sys_cacheflush_args *, register_t *); Index: src/sys/compat/linux/arch/arm/linux_syscalls.c diff -u src/sys/compat/linux/arch/arm/linux_syscalls.c:1.77 src/sys/compat/linux/arch/arm/linux_syscalls.c:1.78 --- src/sys/compat/linux/arch/arm/linux_syscalls.c:1.77 Fri Feb 3 01:07:29 2017 +++ src/sys/compat/linux/arch/arm/linux_syscalls.c Fri Feb 3 11:28:42 2017 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_syscalls.c,v 1.77 2017/02/03 06:07:29 martin Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.78 2017/02/03 16:28:42 christos Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD:
CVS commit: src/sys/compat/linux/arch/amd64
Module Name:src Committed By: christos Date: Fri Feb 3 16:18:39 UTC 2017 Modified Files: src/sys/compat/linux/arch/amd64: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c linux_systrace_args.c Log Message: regen To generate a diff of this commit: cvs rdiff -u -r1.66 -r1.67 src/sys/compat/linux/arch/amd64/linux_syscall.h \ src/sys/compat/linux/arch/amd64/linux_syscallargs.h \ src/sys/compat/linux/arch/amd64/linux_syscalls.c \ src/sys/compat/linux/arch/amd64/linux_sysent.c cvs rdiff -u -r1.10 -r1.11 \ src/sys/compat/linux/arch/amd64/linux_systrace_args.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/amd64/linux_syscall.h diff -u src/sys/compat/linux/arch/amd64/linux_syscall.h:1.66 src/sys/compat/linux/arch/amd64/linux_syscall.h:1.67 --- src/sys/compat/linux/arch/amd64/linux_syscall.h:1.66 Fri Feb 3 11:18:19 2017 +++ src/sys/compat/linux/arch/amd64/linux_syscall.h Fri Feb 3 11:18:38 2017 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.66 2017/02/03 16:18:19 christos Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.67 2017/02/03 16:18:38 christos Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.59 2017/02/02 15:35:46 christos Exp + * created from NetBSD: syscalls.master,v 1.60 2017/02/03 16:18:19 christos Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ Index: src/sys/compat/linux/arch/amd64/linux_syscallargs.h diff -u src/sys/compat/linux/arch/amd64/linux_syscallargs.h:1.66 src/sys/compat/linux/arch/amd64/linux_syscallargs.h:1.67 --- src/sys/compat/linux/arch/amd64/linux_syscallargs.h:1.66 Fri Feb 3 11:18:19 2017 +++ src/sys/compat/linux/arch/amd64/linux_syscallargs.h Fri Feb 3 11:18:38 2017 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscallargs.h,v 1.66 2017/02/03 16:18:19 christos Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.67 2017/02/03 16:18:38 christos Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.59 2017/02/02 15:35:46 christos Exp + * created from NetBSD: syscalls.master,v 1.60 2017/02/03 16:18:19 christos Exp */ #ifndef _LINUX_SYS_SYSCALLARGS_H_ Index: src/sys/compat/linux/arch/amd64/linux_syscalls.c diff -u src/sys/compat/linux/arch/amd64/linux_syscalls.c:1.66 src/sys/compat/linux/arch/amd64/linux_syscalls.c:1.67 --- src/sys/compat/linux/arch/amd64/linux_syscalls.c:1.66 Fri Feb 3 11:18:19 2017 +++ src/sys/compat/linux/arch/amd64/linux_syscalls.c Fri Feb 3 11:18:38 2017 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_syscalls.c,v 1.66 2017/02/03 16:18:19 christos Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.67 2017/02/03 16:18:38 christos Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.59 2017/02/02 15:35:46 christos Exp + * created from NetBSD: syscalls.master,v 1.60 2017/02/03 16:18:19 christos Exp */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.66 2017/02/03 16:18:19 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.67 2017/02/03 16:18:38 christos Exp $"); #if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT) Index: src/sys/compat/linux/arch/amd64/linux_sysent.c diff -u src/sys/compat/linux/arch/amd64/linux_sysent.c:1.66 src/sys/compat/linux/arch/amd64/linux_sysent.c:1.67 --- src/sys/compat/linux/arch/amd64/linux_sysent.c:1.66 Fri Feb 3 11:18:19 2017 +++ src/sys/compat/linux/arch/amd64/linux_sysent.c Fri Feb 3 11:18:39 2017 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_sysent.c,v 1.66 2017/02/03 16:18:19 christos Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.67 2017/02/03 16:18:39 christos Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.59 2017/02/02 15:35:46 christos Exp + * created from NetBSD: syscalls.master,v 1.60 2017/02/03 16:18:19 christos Exp */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.66 2017/02/03 16:18:19 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.67 2017/02/03 16:18:39 christos Exp $"); #if defined(_KERNEL_OPT) #include "opt_sysv.h" Index: src/sys/compat/linux/arch/amd64/linux_systrace_args.c diff -u src/sys/compat/linux/arch/amd64/linux_systrace_args.c:1.10 src/sys/compat/linux/arch/amd64/linux_systrace_args.c:1.11 --- src/sys/compat/linux/arch/amd64/linux_systrace_args.c:1.10 Fri Feb 3 11:18:19 2017 +++ src/sys/compat/linux/arch/amd64/linux_systrace_args.c Fri Feb 3 11:18:39 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_systrace_args.c,v 1.10 2017/02/03 16:18:19 christos Exp $ */ +/* $NetBSD: linux_systrace_args.c,v 1.11 2017/02/03 16:18:39 christos Exp $ */ /* * System call argument to DTrace register array converstion.
CVS commit: src/sys/compat/linux/arch/amd64
Module Name:src Committed By: christos Date: Fri Feb 3 16:18:19 UTC 2017 Modified Files: src/sys/compat/linux/arch/amd64: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c linux_systrace_args.c syscalls.master Log Message: add sendmmsg and recvmmsg To generate a diff of this commit: cvs rdiff -u -r1.65 -r1.66 src/sys/compat/linux/arch/amd64/linux_syscall.h \ src/sys/compat/linux/arch/amd64/linux_syscallargs.h \ src/sys/compat/linux/arch/amd64/linux_syscalls.c \ src/sys/compat/linux/arch/amd64/linux_sysent.c cvs rdiff -u -r1.9 -r1.10 \ src/sys/compat/linux/arch/amd64/linux_systrace_args.c cvs rdiff -u -r1.59 -r1.60 src/sys/compat/linux/arch/amd64/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/amd64/linux_syscall.h diff -u src/sys/compat/linux/arch/amd64/linux_syscall.h:1.65 src/sys/compat/linux/arch/amd64/linux_syscall.h:1.66 --- src/sys/compat/linux/arch/amd64/linux_syscall.h:1.65 Thu Feb 2 10:36:12 2017 +++ src/sys/compat/linux/arch/amd64/linux_syscall.h Fri Feb 3 11:18:19 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_syscall.h,v 1.65 2017/02/02 15:36:12 christos Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.66 2017/02/03 16:18:19 christos Exp $ */ /* * System call numbers. @@ -654,6 +654,12 @@ /* syscall: "pipe2" ret: "int" args: "int *" "int" */ #define LINUX_SYS_pipe2 293 +/* syscall: "recvmmsg" ret: "int" args: "int" "struct linux_mmsghdr *" "unsigned int" "unsigned int" "struct timespec *" */ +#define LINUX_SYS_recvmmsg 299 + +/* syscall: "sendmmsg" ret: "int" args: "int" "struct linux_mmsghdr *" "unsigned int" "unsigned int" */ +#define LINUX_SYS_sendmmsg 307 + /* syscall: "nosys" ret: "int" args: */ #define LINUX_SYS_nosys 314 Index: src/sys/compat/linux/arch/amd64/linux_syscallargs.h diff -u src/sys/compat/linux/arch/amd64/linux_syscallargs.h:1.65 src/sys/compat/linux/arch/amd64/linux_syscallargs.h:1.66 --- src/sys/compat/linux/arch/amd64/linux_syscallargs.h:1.65 Thu Feb 2 10:36:12 2017 +++ src/sys/compat/linux/arch/amd64/linux_syscallargs.h Fri Feb 3 11:18:19 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_syscallargs.h,v 1.65 2017/02/02 15:36:12 christos Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.66 2017/02/03 16:18:19 christos Exp $ */ /* * System call argument lists. @@ -1025,6 +1025,23 @@ struct linux_sys_pipe2_args { }; check_syscall_args(linux_sys_pipe2) +struct linux_sys_recvmmsg_args { + syscallarg(int) s; + syscallarg(struct linux_mmsghdr *) msgvec; + syscallarg(unsigned int) vlen; + syscallarg(unsigned int) flags; + syscallarg(struct timespec *) timeout; +}; +check_syscall_args(linux_sys_recvmmsg) + +struct linux_sys_sendmmsg_args { + syscallarg(int) s; + syscallarg(struct linux_mmsghdr *) msgvec; + syscallarg(unsigned int) vlen; + syscallarg(unsigned int) flags; +}; +check_syscall_args(linux_sys_sendmmsg) + /* * System call prototypes. */ @@ -1462,6 +1479,10 @@ int linux_sys_dup3(struct lwp *, const s int linux_sys_pipe2(struct lwp *, const struct linux_sys_pipe2_args *, register_t *); +int linux_sys_recvmmsg(struct lwp *, const struct linux_sys_recvmmsg_args *, register_t *); + +int linux_sys_sendmmsg(struct lwp *, const struct linux_sys_sendmmsg_args *, register_t *); + int linux_sys_nosys(struct lwp *, const void *, register_t *); #endif /* _LINUX_SYS_SYSCALLARGS_H_ */ Index: src/sys/compat/linux/arch/amd64/linux_syscalls.c diff -u src/sys/compat/linux/arch/amd64/linux_syscalls.c:1.65 src/sys/compat/linux/arch/amd64/linux_syscalls.c:1.66 --- src/sys/compat/linux/arch/amd64/linux_syscalls.c:1.65 Thu Feb 2 10:36:12 2017 +++ src/sys/compat/linux/arch/amd64/linux_syscalls.c Fri Feb 3 11:18:19 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_syscalls.c,v 1.65 2017/02/02 15:36:12 christos Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.66 2017/02/03 16:18:19 christos Exp $ */ /* * System call names. @@ -8,7 +8,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.65 2017/02/02 15:36:12 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.66 2017/02/03 16:18:19 christos Exp $"); #if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT) @@ -365,7 +365,7 @@ const char *const linux_syscallnames[] = /* 296 */ "#296 (unimplemented pwritev)", /* 297 */ "#297 (unimplemented rt_tgsigqueueinfo)", /* 298 */ "#298 (unimplemented perf_counter_open)", - /* 299 */ "#299 (unimplemented recvmmsg)", + /* 299 */ "recvmmsg", /* 300 */ "#300 (unimplemented fanotify_init)", /* 301 */ "#301 (unimplemented fanotify_mark)", /* 302 */ "#302 (unimplemented prlimit64)", @@ -373,7 +373,7 @@ const char *const linux_syscallnames[] = /* 304 */ "#304 (unimplemented open_by_handle_at)", /* 305 */ "#305 (unimplemented clock_adjtime)", /* 306 */ "#306 (unimplemented syncfs)", - /* 307 */ "#307 (unimplemented sendmmsg)", + /* 307 */ "sendmmsg",
CVS commit: src/sys/compat/linux/arch/alpha
Module Name:src Committed By: christos Date: Fri Feb 3 16:17:17 UTC 2017 Modified Files: src/sys/compat/linux/arch/alpha: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c Log Message: regen To generate a diff of this commit: cvs rdiff -u -r1.104 -r1.105 src/sys/compat/linux/arch/alpha/linux_syscall.h \ src/sys/compat/linux/arch/alpha/linux_sysent.c cvs rdiff -u -r1.103 -r1.104 \ src/sys/compat/linux/arch/alpha/linux_syscallargs.h cvs rdiff -u -r1.105 -r1.106 src/sys/compat/linux/arch/alpha/linux_syscalls.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/alpha/linux_syscall.h diff -u src/sys/compat/linux/arch/alpha/linux_syscall.h:1.104 src/sys/compat/linux/arch/alpha/linux_syscall.h:1.105 --- src/sys/compat/linux/arch/alpha/linux_syscall.h:1.104 Fri Feb 3 01:07:29 2017 +++ src/sys/compat/linux/arch/alpha/linux_syscall.h Fri Feb 3 11:17:17 2017 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.104 2017/02/03 06:07:29 martin Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.105 2017/02/03 16:17:17 christos Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.93 2017/02/03 06:06:08 martin Exp + * created from NetBSD: syscalls.master,v 1.94 2017/02/03 16:17:08 christos Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -654,6 +654,9 @@ /* syscall: "utimensat" ret: "int" args: "int" "const char *" "struct linux_timespec *" "int" */ #define LINUX_SYS_utimensat 475 +/* syscall: "recvmmsg" ret: "int" args: "int" "struct linux_mmsghdr *" "unsigned int" "unsigned int" "struct timespec *" */ +#define LINUX_SYS_recvmmsg 479 + /* syscall: "dup3" ret: "int" args: "int" "int" "int" */ #define LINUX_SYS_dup3 487 @@ -663,6 +666,9 @@ /* syscall: "accept4" ret: "int" args: "int" "struct osockaddr *" "int *" "int" */ #define LINUX_SYS_accept4 502 -#define LINUX_SYS_MAXSYSCALL 503 +/* syscall: "sendmmsg" ret: "int" args: "int" "struct linux_mmsghdr *" "unsigned int" "unsigned int" */ +#define LINUX_SYS_sendmmsg 503 + +#define LINUX_SYS_MAXSYSCALL 511 #define LINUX_SYS_NSYSENT 512 #endif /* _LINUX_SYS_SYSCALL_H_ */ Index: src/sys/compat/linux/arch/alpha/linux_sysent.c diff -u src/sys/compat/linux/arch/alpha/linux_sysent.c:1.104 src/sys/compat/linux/arch/alpha/linux_sysent.c:1.105 --- src/sys/compat/linux/arch/alpha/linux_sysent.c:1.104 Fri Feb 3 01:07:29 2017 +++ src/sys/compat/linux/arch/alpha/linux_sysent.c Fri Feb 3 11:17:17 2017 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_sysent.c,v 1.104 2017/02/03 06:07:29 martin Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.105 2017/02/03 16:17:17 christos Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.93 2017/02/03 06:06:08 martin Exp + * created from NetBSD: syscalls.master,v 1.94 2017/02/03 16:17:08 christos Exp */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.104 2017/02/03 06:07:29 martin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.105 2017/02/03 16:17:17 christos Exp $"); #if defined(_KERNEL_OPT) #include "opt_sysv.h" @@ -1897,8 +1897,10 @@ struct sysent linux_sysent[] = { .sy_call = linux_sys_nosys, }, /* 478 = filler */ { - .sy_call = linux_sys_nosys, - }, /* 479 = filler */ + ns(struct linux_sys_recvmmsg_args), + .sy_flags = SYCALL_ARG_PTR, + .sy_call = (sy_call_t *)linux_sys_recvmmsg + }, /* 479 = recvmmsg */ { .sy_call = linux_sys_nosys, }, /* 480 = filler */ @@ -1974,8 +1976,10 @@ struct sysent linux_sysent[] = { .sy_call = (sy_call_t *)linux_sys_accept4 }, /* 502 = accept4 */ { - .sy_call = linux_sys_nosys, - }, /* 503 = filler */ + ns(struct linux_sys_sendmmsg_args), + .sy_flags = SYCALL_ARG_PTR, + .sy_call = (sy_call_t *)linux_sys_sendmmsg + }, /* 503 = sendmmsg */ { .sy_call = linux_sys_nosys, }, /* 504 = filler */ Index: src/sys/compat/linux/arch/alpha/linux_syscallargs.h diff -u src/sys/compat/linux/arch/alpha/linux_syscallargs.h:1.103 src/sys/compat/linux/arch/alpha/linux_syscallargs.h:1.104 --- src/sys/compat/linux/arch/alpha/linux_syscallargs.h:1.103 Fri Feb 3 01:07:29 2017 +++ src/sys/compat/linux/arch/alpha/linux_syscallargs.h Fri Feb 3 11:17:17 2017 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscallargs.h,v 1.103 2017/02/03 06:07:29 martin Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.104 2017/02/03 16:17:17 christos Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.93 2017/02/03 06:06:08 martin Exp + * created from NetBSD: syscalls.master,v 1.94 2017/02/03 16:17:08 christos Exp */ #ifndef _LINUX_SYS_SYSCALLARGS_H_ @@ -1114,6 +1114,15 @@ struct linux_sys_utimensat_args { }; check_syscall_args(linux_sys_utimensat)
CVS commit: src/sys/compat/linux/arch/alpha
Module Name:src Committed By: christos Date: Fri Feb 3 16:17:08 UTC 2017 Modified Files: src/sys/compat/linux/arch/alpha: syscalls.master Log Message: add send/recv mmsg and comment on the unimpl ones. To generate a diff of this commit: cvs rdiff -u -r1.93 -r1.94 src/sys/compat/linux/arch/alpha/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/alpha/syscalls.master diff -u src/sys/compat/linux/arch/alpha/syscalls.master:1.93 src/sys/compat/linux/arch/alpha/syscalls.master:1.94 --- src/sys/compat/linux/arch/alpha/syscalls.master:1.93 Fri Feb 3 01:06:08 2017 +++ src/sys/compat/linux/arch/alpha/syscalls.master Fri Feb 3 11:17:08 2017 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.93 2017/02/03 06:06:08 martin Exp $ + $NetBSD: syscalls.master,v 1.94 2017/02/03 16:17:08 christos Exp $ ; ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -756,7 +756,9 @@ 476 UNIMPL signalfd 477 UNIMPL timerfd 478 UNIMPL eventfd -479 UNIMPL recvmmsg +479 STD { int|linux_sys||recvmmsg(int s, \ + struct linux_mmsghdr *msgvec, unsigned int vlen, \ + unsigned int flags, struct timespec *timeout); } 480 UNIMPL fallocate 481 UNIMPL timerfd_create 482 UNIMPL timerfd_settime @@ -771,15 +773,24 @@ 491 UNIMPL pwritev 492 UNIMPL rt_tgsigqueueinfo 493 UNIMPL perf_counter_open -494 UNIMPL -495 UNIMPL -496 UNIMPL -497 UNIMPL -498 UNIMPL -499 UNIMPL -500 UNIMPL -501 UNIMPL +494 UNIMPL fanotify_init +495 UNIMPL fanotify_mark +496 UNIMPL prlimit64 +497 UNIMPL name_to_handle_at +498 UNIMPL open_by_handle_at +499 UNIMPL clock_adjtime +500 UNIMPL syncfs +501 UNIMPL setns 502 STD { int|linux_sys||accept4(int s, \ struct osockaddr *name, \ int *anamelen, int flags); } - +503 STD { int|linux_sys||sendmmsg(int s, \ + struct linux_mmsghdr *msgvec, unsigned int vlen, \ + unsigned int flags); } +504 UNIMPL process_vm_readv +505 UNIMPL process_vm_writev +506 UNIMPL kcmp +507 UNIMPL finit_module +508 UNIMPL sched_setattr +509 UNIMPL sched_getattr +510 UNIMPL renameat2
CVS commit: src/sys/compat/linux/arch/powerpc
Module Name:src Committed By: martin Date: Fri Feb 3 07:57:11 UTC 2017 Modified Files: src/sys/compat/linux/arch/powerpc: syscalls.master Log Message: Add accept4 To generate a diff of this commit: cvs rdiff -u -r1.70 -r1.71 src/sys/compat/linux/arch/powerpc/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/powerpc/syscalls.master diff -u src/sys/compat/linux/arch/powerpc/syscalls.master:1.70 src/sys/compat/linux/arch/powerpc/syscalls.master:1.71 --- src/sys/compat/linux/arch/powerpc/syscalls.master:1.70 Mon Jan 2 16:32:10 2017 +++ src/sys/compat/linux/arch/powerpc/syscalls.master Fri Feb 3 07:57:11 2017 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.70 2017/01/02 16:32:10 manu Exp $ + $NetBSD: syscalls.master,v 1.71 2017/02/03 07:57:11 martin Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -542,3 +542,28 @@ 320 UNIMPL preadv 321 UNIMPL pwritev 322 UNIMPL rt_tgsigqueueinfo +323 UNIMPL +324 UNIMPL +325 UNIMPL +326 UNIMPL +327 UNIMPL +328 UNIMPL +329 UNIMPL +330 UNIMPL +331 UNIMPL +332 UNIMPL +333 UNIMPL +334 UNIMPL +335 UNIMPL +336 UNIMPL +337 UNIMPL +338 UNIMPL +339 UNIMPL +340 UNIMPL +341 UNIMPL +342 UNIMPL +343 UNIMPL +344 STD { int|linux_sys||accept4(int s, \ + struct osockaddr *name, \ + int *anamelen, int flags); } +
CVS commit: src/sys/compat/linux/arch/powerpc
Module Name:src Committed By: martin Date: Fri Feb 3 07:57:22 UTC 2017 Modified Files: src/sys/compat/linux/arch/powerpc: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c Log Message: regen To generate a diff of this commit: cvs rdiff -u -r1.80 -r1.81 src/sys/compat/linux/arch/powerpc/linux_syscall.h \ src/sys/compat/linux/arch/powerpc/linux_sysent.c cvs rdiff -u -r1.79 -r1.80 \ src/sys/compat/linux/arch/powerpc/linux_syscallargs.h \ src/sys/compat/linux/arch/powerpc/linux_syscalls.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/powerpc/linux_syscall.h diff -u src/sys/compat/linux/arch/powerpc/linux_syscall.h:1.80 src/sys/compat/linux/arch/powerpc/linux_syscall.h:1.81 --- src/sys/compat/linux/arch/powerpc/linux_syscall.h:1.80 Mon Jan 16 00:11:09 2017 +++ src/sys/compat/linux/arch/powerpc/linux_syscall.h Fri Feb 3 07:57:22 2017 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.80 2017/01/16 00:11:09 christos Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.81 2017/02/03 07:57:22 martin Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.70 2017/01/02 16:32:10 manu Exp + * created from NetBSD: syscalls.master,v 1.71 2017/02/03 07:57:11 martin Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -657,6 +657,9 @@ /* syscall: "pipe2" ret: "int" args: "int *" "int" */ #define LINUX_SYS_pipe2 317 -#define LINUX_SYS_MAXSYSCALL 323 +/* syscall: "accept4" ret: "int" args: "int" "struct osockaddr *" "int *" "int" */ +#define LINUX_SYS_accept4 344 + +#define LINUX_SYS_MAXSYSCALL 345 #define LINUX_SYS_NSYSENT 512 #endif /* _LINUX_SYS_SYSCALL_H_ */ Index: src/sys/compat/linux/arch/powerpc/linux_sysent.c diff -u src/sys/compat/linux/arch/powerpc/linux_sysent.c:1.80 src/sys/compat/linux/arch/powerpc/linux_sysent.c:1.81 --- src/sys/compat/linux/arch/powerpc/linux_sysent.c:1.80 Mon Jan 16 00:11:09 2017 +++ src/sys/compat/linux/arch/powerpc/linux_sysent.c Fri Feb 3 07:57:22 2017 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_sysent.c,v 1.80 2017/01/16 00:11:09 christos Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.81 2017/02/03 07:57:22 martin Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.70 2017/01/02 16:32:10 manu Exp + * created from NetBSD: syscalls.master,v 1.71 2017/02/03 07:57:11 martin Exp */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.80 2017/01/16 00:11:09 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.81 2017/02/03 07:57:22 martin Exp $"); #include #include @@ -1411,8 +1411,10 @@ struct sysent linux_sysent[] = { .sy_call = linux_sys_nosys, }, /* 343 = filler */ { - .sy_call = linux_sys_nosys, - }, /* 344 = filler */ + ns(struct linux_sys_accept4_args), + .sy_flags = SYCALL_ARG_PTR, + .sy_call = (sy_call_t *)linux_sys_accept4 + }, /* 344 = accept4 */ { .sy_call = linux_sys_nosys, }, /* 345 = filler */ Index: src/sys/compat/linux/arch/powerpc/linux_syscallargs.h diff -u src/sys/compat/linux/arch/powerpc/linux_syscallargs.h:1.79 src/sys/compat/linux/arch/powerpc/linux_syscallargs.h:1.80 --- src/sys/compat/linux/arch/powerpc/linux_syscallargs.h:1.79 Mon Jan 16 00:11:09 2017 +++ src/sys/compat/linux/arch/powerpc/linux_syscallargs.h Fri Feb 3 07:57:22 2017 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscallargs.h,v 1.79 2017/01/16 00:11:09 christos Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.80 2017/02/03 07:57:22 martin Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.70 2017/01/02 16:32:10 manu Exp + * created from NetBSD: syscalls.master,v 1.71 2017/02/03 07:57:11 martin Exp */ #ifndef _LINUX_SYS_SYSCALLARGS_H_ @@ -1024,6 +1024,14 @@ struct linux_sys_pipe2_args { }; check_syscall_args(linux_sys_pipe2) +struct linux_sys_accept4_args { + syscallarg(int) s; + syscallarg(struct osockaddr *) name; + syscallarg(int *) anamelen; + syscallarg(int) flags; +}; +check_syscall_args(linux_sys_accept4) + /* * System call prototypes. */ @@ -1452,4 +1460,6 @@ int linux_sys_dup3(struct lwp *, const s int linux_sys_pipe2(struct lwp *, const struct linux_sys_pipe2_args *, register_t *); +int linux_sys_accept4(struct lwp *, const struct linux_sys_accept4_args *, register_t *); + #endif /* _LINUX_SYS_SYSCALLARGS_H_ */ Index: src/sys/compat/linux/arch/powerpc/linux_syscalls.c diff -u src/sys/compat/linux/arch/powerpc/linux_syscalls.c:1.79 src/sys/compat/linux/arch/powerpc/linux_syscalls.c:1.80 --- src/sys/compat/linux/arch/powerpc/linux_syscalls.c:1.79 Mon Jan 16 00:11:09 2017 +++ src/sys/compat/linux/arch/powerpc/linux_syscalls.c Fri Feb 3 07:57:22 2017 @@ -1,14 +1,14 @@ -/* $NetBSD:
CVS commit: src/sys/compat/linux/arch/m68k
Module Name:src Committed By: martin Date: Fri Feb 3 07:54:39 UTC 2017 Modified Files: src/sys/compat/linux/arch/m68k: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c Log Message: regen To generate a diff of this commit: cvs rdiff -u -r1.102 -r1.103 src/sys/compat/linux/arch/m68k/linux_syscall.h \ src/sys/compat/linux/arch/m68k/linux_syscalls.c \ src/sys/compat/linux/arch/m68k/linux_sysent.c cvs rdiff -u -r1.101 -r1.102 \ src/sys/compat/linux/arch/m68k/linux_syscallargs.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/m68k/linux_syscall.h diff -u src/sys/compat/linux/arch/m68k/linux_syscall.h:1.102 src/sys/compat/linux/arch/m68k/linux_syscall.h:1.103 --- src/sys/compat/linux/arch/m68k/linux_syscall.h:1.102 Mon Jan 16 00:11:09 2017 +++ src/sys/compat/linux/arch/m68k/linux_syscall.h Fri Feb 3 07:54:39 2017 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.102 2017/01/16 00:11:09 christos Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.103 2017/02/03 07:54:39 martin Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.91 2017/01/02 16:32:09 manu Exp + * created from NetBSD: syscalls.master,v 1.92 2017/02/03 07:54:26 martin Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -720,6 +720,9 @@ /* syscall: "pipe2" ret: "int" args: "int *" "int" */ #define LINUX_SYS_pipe2 327 -#define LINUX_SYS_MAXSYSCALL 337 +/* syscall: "accept4" ret: "int" args: "int" "struct osockaddr *" "int *" "int" */ +#define LINUX_SYS_accept4 361 + +#define LINUX_SYS_MAXSYSCALL 362 #define LINUX_SYS_NSYSENT 512 #endif /* _LINUX_SYS_SYSCALL_H_ */ Index: src/sys/compat/linux/arch/m68k/linux_syscalls.c diff -u src/sys/compat/linux/arch/m68k/linux_syscalls.c:1.102 src/sys/compat/linux/arch/m68k/linux_syscalls.c:1.103 --- src/sys/compat/linux/arch/m68k/linux_syscalls.c:1.102 Mon Jan 16 00:11:09 2017 +++ src/sys/compat/linux/arch/m68k/linux_syscalls.c Fri Feb 3 07:54:39 2017 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_syscalls.c,v 1.102 2017/01/16 00:11:09 christos Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.103 2017/02/03 07:54:39 martin Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.91 2017/01/02 16:32:09 manu Exp + * created from NetBSD: syscalls.master,v 1.92 2017/02/03 07:54:26 martin Exp */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.102 2017/01/16 00:11:09 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.103 2017/02/03 07:54:39 martin Exp $"); #if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT) @@ -391,31 +391,31 @@ const char *const linux_syscallnames[] = /* 334 */ "#334 (unimplemented get_thread_area)", /* 335 */ "#335 (unimplemented atomic_cmpxchg_32)", /* 336 */ "#336 (unimplemented atomic_barrier)", - /* 337 */ "# filler", - /* 338 */ "# filler", - /* 339 */ "# filler", - /* 340 */ "# filler", - /* 341 */ "# filler", - /* 342 */ "# filler", - /* 343 */ "# filler", - /* 344 */ "# filler", - /* 345 */ "# filler", - /* 346 */ "# filler", - /* 347 */ "# filler", - /* 348 */ "# filler", - /* 349 */ "# filler", - /* 350 */ "# filler", - /* 351 */ "# filler", - /* 352 */ "# filler", - /* 353 */ "# filler", - /* 354 */ "# filler", - /* 355 */ "# filler", - /* 356 */ "# filler", - /* 357 */ "# filler", - /* 358 */ "# filler", - /* 359 */ "# filler", - /* 360 */ "# filler", - /* 361 */ "# filler", + /* 337 */ "#337 (unimplemented)", + /* 338 */ "#338 (unimplemented)", + /* 339 */ "#339 (unimplemented)", + /* 340 */ "#340 (unimplemented)", + /* 341 */ "#341 (unimplemented)", + /* 342 */ "#342 (unimplemented)", + /* 343 */ "#343 (unimplemented)", + /* 344 */ "#344 (unimplemented)", + /* 345 */ "#345 (unimplemented)", + /* 346 */ "#346 (unimplemented)", + /* 347 */ "#347 (unimplemented)", + /* 348 */ "#348 (unimplemented)", + /* 349 */ "#349 (unimplemented)", + /* 350 */ "#350 (unimplemented)", + /* 351 */ "#351 (unimplemented)", + /* 352 */ "#352 (unimplemented)", + /* 353 */ "#353 (unimplemented)", + /* 354 */ "#354 (unimplemented)", + /* 355 */ "#355 (unimplemented)", + /* 356 */ "#356 (unimplemented)", + /* 357 */ "#357 (unimplemented)", + /* 358 */ "#358 (unimplemented)", + /* 359 */ "#359 (unimplemented)", + /* 360 */ "#360 (unimplemented)", + /* 361 */ "accept4", /* 362 */ "# filler", /* 363 */ "# filler", /* 364 */ "# filler", @@ -929,31 +929,31 @@ const char *const altlinux_syscallnames[ /* 334 */ NULL, /* unimplemented get_thread_area */ /* 335 */ NULL, /* unimplemented atomic_cmpxchg_32 */ /* 336 */ NULL, /* unimplemented atomic_barrier */ - /* 337 */ NULL, /* filler */ - /* 338 */ NULL, /* filler */ - /* 339 */ NULL, /* filler */ - /* 340 */ NULL, /* filler */ - /* 341 */ NULL, /* filler */ - /* 342 */ NULL, /*
CVS commit: src/sys/compat/linux/arch/m68k
Module Name:src Committed By: martin Date: Fri Feb 3 07:54:26 UTC 2017 Modified Files: src/sys/compat/linux/arch/m68k: syscalls.master Log Message: Add accept4 To generate a diff of this commit: cvs rdiff -u -r1.91 -r1.92 src/sys/compat/linux/arch/m68k/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/m68k/syscalls.master diff -u src/sys/compat/linux/arch/m68k/syscalls.master:1.91 src/sys/compat/linux/arch/m68k/syscalls.master:1.92 --- src/sys/compat/linux/arch/m68k/syscalls.master:1.91 Mon Jan 2 16:32:09 2017 +++ src/sys/compat/linux/arch/m68k/syscalls.master Fri Feb 3 07:54:26 2017 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.91 2017/01/02 16:32:09 manu Exp $ + $NetBSD: syscalls.master,v 1.92 2017/02/03 07:54:26 martin Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -558,3 +558,31 @@ 334 UNIMPL get_thread_area 335 UNIMPL atomic_cmpxchg_32 336 UNIMPL atomic_barrier +337 UNIMPL +338 UNIMPL +339 UNIMPL +340 UNIMPL +341 UNIMPL +342 UNIMPL +343 UNIMPL +344 UNIMPL +345 UNIMPL +346 UNIMPL +347 UNIMPL +348 UNIMPL +349 UNIMPL +350 UNIMPL +351 UNIMPL +352 UNIMPL +353 UNIMPL +354 UNIMPL +355 UNIMPL +356 UNIMPL +357 UNIMPL +358 UNIMPL +359 UNIMPL +360 UNIMPL +361 STD { int|linux_sys||accept4(int s, \ + struct osockaddr *name, \ + int *anamelen, int flags); } +
CVS commit: src/sys/compat/linux/arch
Module Name:src Committed By: martin Date: Fri Feb 3 06:07:29 UTC 2017 Modified Files: src/sys/compat/linux/arch/alpha: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/arm: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c linux_systrace_args.c Log Message: Regen for accept4 To generate a diff of this commit: cvs rdiff -u -r1.103 -r1.104 src/sys/compat/linux/arch/alpha/linux_syscall.h \ src/sys/compat/linux/arch/alpha/linux_sysent.c cvs rdiff -u -r1.102 -r1.103 \ src/sys/compat/linux/arch/alpha/linux_syscallargs.h cvs rdiff -u -r1.104 -r1.105 src/sys/compat/linux/arch/alpha/linux_syscalls.c cvs rdiff -u -r1.76 -r1.77 src/sys/compat/linux/arch/arm/linux_syscall.h \ src/sys/compat/linux/arch/arm/linux_syscallargs.h \ src/sys/compat/linux/arch/arm/linux_syscalls.c \ src/sys/compat/linux/arch/arm/linux_sysent.c cvs rdiff -u -r1.9 -r1.10 src/sys/compat/linux/arch/arm/linux_systrace_args.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/alpha/linux_syscall.h diff -u src/sys/compat/linux/arch/alpha/linux_syscall.h:1.103 src/sys/compat/linux/arch/alpha/linux_syscall.h:1.104 --- src/sys/compat/linux/arch/alpha/linux_syscall.h:1.103 Mon Jan 16 00:11:09 2017 +++ src/sys/compat/linux/arch/alpha/linux_syscall.h Fri Feb 3 06:07:29 2017 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.103 2017/01/16 00:11:09 christos Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.104 2017/02/03 06:07:29 martin Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.92 2017/01/02 16:32:09 manu Exp + * created from NetBSD: syscalls.master,v 1.93 2017/02/03 06:06:08 martin Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -660,6 +660,9 @@ /* syscall: "pipe2" ret: "int" args: "int *" "int" */ #define LINUX_SYS_pipe2 488 -#define LINUX_SYS_MAXSYSCALL 494 +/* syscall: "accept4" ret: "int" args: "int" "struct osockaddr *" "int *" "int" */ +#define LINUX_SYS_accept4 502 + +#define LINUX_SYS_MAXSYSCALL 503 #define LINUX_SYS_NSYSENT 512 #endif /* _LINUX_SYS_SYSCALL_H_ */ Index: src/sys/compat/linux/arch/alpha/linux_sysent.c diff -u src/sys/compat/linux/arch/alpha/linux_sysent.c:1.103 src/sys/compat/linux/arch/alpha/linux_sysent.c:1.104 --- src/sys/compat/linux/arch/alpha/linux_sysent.c:1.103 Mon Jan 16 00:11:09 2017 +++ src/sys/compat/linux/arch/alpha/linux_sysent.c Fri Feb 3 06:07:29 2017 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_sysent.c,v 1.103 2017/01/16 00:11:09 christos Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.104 2017/02/03 06:07:29 martin Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.92 2017/01/02 16:32:09 manu Exp + * created from NetBSD: syscalls.master,v 1.93 2017/02/03 06:06:08 martin Exp */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.103 2017/01/16 00:11:09 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.104 2017/02/03 06:07:29 martin Exp $"); #if defined(_KERNEL_OPT) #include "opt_sysv.h" @@ -1969,8 +1969,10 @@ struct sysent linux_sysent[] = { .sy_call = linux_sys_nosys, }, /* 501 = filler */ { - .sy_call = linux_sys_nosys, - }, /* 502 = filler */ + ns(struct linux_sys_accept4_args), + .sy_flags = SYCALL_ARG_PTR, + .sy_call = (sy_call_t *)linux_sys_accept4 + }, /* 502 = accept4 */ { .sy_call = linux_sys_nosys, }, /* 503 = filler */ Index: src/sys/compat/linux/arch/alpha/linux_syscallargs.h diff -u src/sys/compat/linux/arch/alpha/linux_syscallargs.h:1.102 src/sys/compat/linux/arch/alpha/linux_syscallargs.h:1.103 --- src/sys/compat/linux/arch/alpha/linux_syscallargs.h:1.102 Mon Jan 16 00:11:09 2017 +++ src/sys/compat/linux/arch/alpha/linux_syscallargs.h Fri Feb 3 06:07:29 2017 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscallargs.h,v 1.102 2017/01/16 00:11:09 christos Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.103 2017/02/03 06:07:29 martin Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.92 2017/01/02 16:32:09 manu Exp + * created from NetBSD: syscalls.master,v 1.93 2017/02/03 06:06:08 martin Exp */ #ifndef _LINUX_SYS_SYSCALLARGS_H_ @@ -1127,6 +1127,14 @@ struct linux_sys_pipe2_args { }; check_syscall_args(linux_sys_pipe2) +struct linux_sys_accept4_args { + syscallarg(int) s; + syscallarg(struct osockaddr *) name; + syscallarg(int *) anamelen; + syscallarg(int) flags; +}; +check_syscall_args(linux_sys_accept4) + /* * System call prototypes. */ @@ -1597,4 +1605,6 @@ int linux_sys_dup3(struct lwp *, const s int linux_sys_pipe2(struct lwp *, const struct linux_sys_pipe2_args *, register_t *); +int
CVS commit: src/sys/compat/linux/arch
Module Name:src Committed By: martin Date: Fri Feb 3 06:06:09 UTC 2017 Modified Files: src/sys/compat/linux/arch/alpha: syscalls.master src/sys/compat/linux/arch/arm: syscalls.master Log Message: Add accept4 definitions To generate a diff of this commit: cvs rdiff -u -r1.92 -r1.93 src/sys/compat/linux/arch/alpha/syscalls.master cvs rdiff -u -r1.65 -r1.66 src/sys/compat/linux/arch/arm/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/alpha/syscalls.master diff -u src/sys/compat/linux/arch/alpha/syscalls.master:1.92 src/sys/compat/linux/arch/alpha/syscalls.master:1.93 --- src/sys/compat/linux/arch/alpha/syscalls.master:1.92 Mon Jan 2 16:32:09 2017 +++ src/sys/compat/linux/arch/alpha/syscalls.master Fri Feb 3 06:06:08 2017 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.92 2017/01/02 16:32:09 manu Exp $ + $NetBSD: syscalls.master,v 1.93 2017/02/03 06:06:08 martin Exp $ ; ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -771,3 +771,15 @@ 491 UNIMPL pwritev 492 UNIMPL rt_tgsigqueueinfo 493 UNIMPL perf_counter_open +494 UNIMPL +495 UNIMPL +496 UNIMPL +497 UNIMPL +498 UNIMPL +499 UNIMPL +500 UNIMPL +501 UNIMPL +502 STD { int|linux_sys||accept4(int s, \ + struct osockaddr *name, \ + int *anamelen, int flags); } + Index: src/sys/compat/linux/arch/arm/syscalls.master diff -u src/sys/compat/linux/arch/arm/syscalls.master:1.65 src/sys/compat/linux/arch/arm/syscalls.master:1.66 --- src/sys/compat/linux/arch/arm/syscalls.master:1.65 Mon Jan 2 16:32:09 2017 +++ src/sys/compat/linux/arch/arm/syscalls.master Fri Feb 3 06:06:09 2017 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.65 2017/01/02 16:32:09 manu Exp $ + $NetBSD: syscalls.master,v 1.66 2017/02/03 06:06:09 martin Exp $ ; Derived from sys/compat/linux/arch/*/syscalls.master ; and from Linux 2.4.12 arch/arm/kernel/calls.S @@ -570,7 +570,9 @@ 363 UNIMPL rt_tgsigqueueinfo 364 UNIMPL perf_counter_open 365 UNIMPL recvmmsg -366 UNIMPL +366 STD { int|linux_sys||accept4(int s, \ + struct osockaddr *name, \ + int *anamelen, int flags); } 367 UNIMPL 368 UNIMPL 369 UNIMPL
CVS commit: src/sys/compat/linux/arch
Module Name:src Committed By: christos Date: Thu Feb 2 15:36:12 UTC 2017 Modified Files: src/sys/compat/linux/arch/amd64: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c linux_systrace_args.c src/sys/compat/linux/arch/mips: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c Log Message: regen To generate a diff of this commit: cvs rdiff -u -r1.64 -r1.65 src/sys/compat/linux/arch/amd64/linux_syscall.h \ src/sys/compat/linux/arch/amd64/linux_syscallargs.h \ src/sys/compat/linux/arch/amd64/linux_syscalls.c \ src/sys/compat/linux/arch/amd64/linux_sysent.c cvs rdiff -u -r1.8 -r1.9 \ src/sys/compat/linux/arch/amd64/linux_systrace_args.c cvs rdiff -u -r1.71 -r1.72 src/sys/compat/linux/arch/mips/linux_syscall.h cvs rdiff -u -r1.70 -r1.71 src/sys/compat/linux/arch/mips/linux_syscallargs.h \ src/sys/compat/linux/arch/mips/linux_syscalls.c \ src/sys/compat/linux/arch/mips/linux_sysent.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/amd64/linux_syscall.h diff -u src/sys/compat/linux/arch/amd64/linux_syscall.h:1.64 src/sys/compat/linux/arch/amd64/linux_syscall.h:1.65 --- src/sys/compat/linux/arch/amd64/linux_syscall.h:1.64 Sun Jan 15 19:11:09 2017 +++ src/sys/compat/linux/arch/amd64/linux_syscall.h Thu Feb 2 10:36:12 2017 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.64 2017/01/16 00:11:09 christos Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.65 2017/02/02 15:36:12 christos Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.58 2017/01/02 16:32:09 manu Exp + * created from NetBSD: syscalls.master,v 1.59 2017/02/02 15:35:46 christos Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -645,6 +645,9 @@ /* syscall: "utimensat" ret: "int" args: "int" "const char *" "struct linux_timespec *" "int" */ #define LINUX_SYS_utimensat 280 +/* syscall: "accept4" ret: "int" args: "int" "struct osockaddr *" "int *" "int" */ +#define LINUX_SYS_accept4 288 + /* syscall: "dup3" ret: "int" args: "int" "int" "int" */ #define LINUX_SYS_dup3 292 Index: src/sys/compat/linux/arch/amd64/linux_syscallargs.h diff -u src/sys/compat/linux/arch/amd64/linux_syscallargs.h:1.64 src/sys/compat/linux/arch/amd64/linux_syscallargs.h:1.65 --- src/sys/compat/linux/arch/amd64/linux_syscallargs.h:1.64 Sun Jan 15 19:11:09 2017 +++ src/sys/compat/linux/arch/amd64/linux_syscallargs.h Thu Feb 2 10:36:12 2017 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscallargs.h,v 1.64 2017/01/16 00:11:09 christos Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.65 2017/02/02 15:36:12 christos Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.58 2017/01/02 16:32:09 manu Exp + * created from NetBSD: syscalls.master,v 1.59 2017/02/02 15:35:46 christos Exp */ #ifndef _LINUX_SYS_SYSCALLARGS_H_ @@ -1004,6 +1004,14 @@ struct linux_sys_utimensat_args { }; check_syscall_args(linux_sys_utimensat) +struct linux_sys_accept4_args { + syscallarg(int) s; + syscallarg(struct osockaddr *) name; + syscallarg(int *) anamelen; + syscallarg(int) flags; +}; +check_syscall_args(linux_sys_accept4) + struct linux_sys_dup3_args { syscallarg(int) from; syscallarg(int) to; @@ -1448,6 +1456,8 @@ int linux_sys_get_robust_list(struct lwp int linux_sys_utimensat(struct lwp *, const struct linux_sys_utimensat_args *, register_t *); +int linux_sys_accept4(struct lwp *, const struct linux_sys_accept4_args *, register_t *); + int linux_sys_dup3(struct lwp *, const struct linux_sys_dup3_args *, register_t *); int linux_sys_pipe2(struct lwp *, const struct linux_sys_pipe2_args *, register_t *); Index: src/sys/compat/linux/arch/amd64/linux_syscalls.c diff -u src/sys/compat/linux/arch/amd64/linux_syscalls.c:1.64 src/sys/compat/linux/arch/amd64/linux_syscalls.c:1.65 --- src/sys/compat/linux/arch/amd64/linux_syscalls.c:1.64 Sun Jan 15 19:11:09 2017 +++ src/sys/compat/linux/arch/amd64/linux_syscalls.c Thu Feb 2 10:36:12 2017 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_syscalls.c,v 1.64 2017/01/16 00:11:09 christos Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.65 2017/02/02 15:36:12 christos Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.58 2017/01/02 16:32:09 manu Exp + * created from NetBSD: syscalls.master,v 1.59 2017/02/02 15:35:46 christos Exp */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.64 2017/01/16 00:11:09 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.65 2017/02/02 15:36:12 christos Exp $"); #if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT) @@ -354,7 +354,7 @@ const char *const linux_syscallnames[] = /* 285 */ "#285 (unimplemented
CVS commit: src/sys/compat/linux/arch
Module Name:src Committed By: christos Date: Thu Feb 2 15:35:46 UTC 2017 Modified Files: src/sys/compat/linux/arch/amd64: syscalls.master src/sys/compat/linux/arch/mips: syscalls.master Log Message: implement accept4 XXX: mips looks busted (the syscalls file has lots of NOARGS syscalls that should be STD). To generate a diff of this commit: cvs rdiff -u -r1.58 -r1.59 src/sys/compat/linux/arch/amd64/syscalls.master cvs rdiff -u -r1.61 -r1.62 src/sys/compat/linux/arch/mips/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/amd64/syscalls.master diff -u src/sys/compat/linux/arch/amd64/syscalls.master:1.58 src/sys/compat/linux/arch/amd64/syscalls.master:1.59 --- src/sys/compat/linux/arch/amd64/syscalls.master:1.58 Mon Jan 2 11:32:09 2017 +++ src/sys/compat/linux/arch/amd64/syscalls.master Thu Feb 2 10:35:46 2017 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.58 2017/01/02 16:32:09 manu Exp $ + $NetBSD: syscalls.master,v 1.59 2017/02/02 15:35:46 christos Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -516,7 +516,9 @@ 285 UNIMPL fallocate 286 UNIMPL timerfd_settime 287 UNIMPL timerfd_gettime -288 UNIMPL accept4 +288 STD { int|linux_sys||accept4(int s, \ + struct osockaddr *name, \ + int *anamelen, int flags); } 289 UNIMPL signalfd4 290 UNIMPL eventfd2 291 UNIMPL epoll_create1 Index: src/sys/compat/linux/arch/mips/syscalls.master diff -u src/sys/compat/linux/arch/mips/syscalls.master:1.61 src/sys/compat/linux/arch/mips/syscalls.master:1.62 --- src/sys/compat/linux/arch/mips/syscalls.master:1.61 Mon Jan 2 11:32:10 2017 +++ src/sys/compat/linux/arch/mips/syscalls.master Thu Feb 2 10:35:46 2017 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.61 2017/01/02 16:32:10 manu Exp $ + $NetBSD: syscalls.master,v 1.62 2017/02/02 15:35:46 christos Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -543,5 +543,7 @@ 331 UNIMPL pwritev 332 UNIMPL rt_tgsigqueueinfo 333 UNIMPL perf_event_open -334 UNIMPL accept4 +334 STD { int|linux_sys||accept4(int s, \ + struct osockaddr *name, \ + int *anamelen, int flags); } 335 UNIMPL recvmmsg
CVS commit: src/sys/compat/linux/arch
Module Name:src Committed By: christos Date: Mon Jan 16 00:11:10 UTC 2017 Modified Files: src/sys/compat/linux/arch/alpha: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/amd64: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c linux_systrace_args.c src/sys/compat/linux/arch/arm: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c linux_systrace_args.c src/sys/compat/linux/arch/i386: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c linux_systrace_args.c src/sys/compat/linux/arch/m68k: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/mips: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/powerpc: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c Log Message: regen all To generate a diff of this commit: cvs rdiff -u -r1.102 -r1.103 src/sys/compat/linux/arch/alpha/linux_syscall.h \ src/sys/compat/linux/arch/alpha/linux_sysent.c cvs rdiff -u -r1.101 -r1.102 \ src/sys/compat/linux/arch/alpha/linux_syscallargs.h cvs rdiff -u -r1.103 -r1.104 src/sys/compat/linux/arch/alpha/linux_syscalls.c cvs rdiff -u -r1.63 -r1.64 src/sys/compat/linux/arch/amd64/linux_syscall.h \ src/sys/compat/linux/arch/amd64/linux_syscallargs.h \ src/sys/compat/linux/arch/amd64/linux_syscalls.c \ src/sys/compat/linux/arch/amd64/linux_sysent.c cvs rdiff -u -r1.7 -r1.8 \ src/sys/compat/linux/arch/amd64/linux_systrace_args.c cvs rdiff -u -r1.75 -r1.76 src/sys/compat/linux/arch/arm/linux_syscall.h \ src/sys/compat/linux/arch/arm/linux_syscallargs.h \ src/sys/compat/linux/arch/arm/linux_syscalls.c \ src/sys/compat/linux/arch/arm/linux_sysent.c cvs rdiff -u -r1.8 -r1.9 src/sys/compat/linux/arch/arm/linux_systrace_args.c cvs rdiff -u -r1.111 -r1.112 src/sys/compat/linux/arch/i386/linux_syscall.h \ src/sys/compat/linux/arch/i386/linux_syscallargs.h \ src/sys/compat/linux/arch/i386/linux_sysent.c cvs rdiff -u -r1.112 -r1.113 src/sys/compat/linux/arch/i386/linux_syscalls.c cvs rdiff -u -r1.6 -r1.7 src/sys/compat/linux/arch/i386/linux_systrace_args.c cvs rdiff -u -r1.101 -r1.102 src/sys/compat/linux/arch/m68k/linux_syscall.h \ src/sys/compat/linux/arch/m68k/linux_syscalls.c \ src/sys/compat/linux/arch/m68k/linux_sysent.c cvs rdiff -u -r1.100 -r1.101 \ src/sys/compat/linux/arch/m68k/linux_syscallargs.h cvs rdiff -u -r1.70 -r1.71 src/sys/compat/linux/arch/mips/linux_syscall.h cvs rdiff -u -r1.69 -r1.70 src/sys/compat/linux/arch/mips/linux_syscallargs.h \ src/sys/compat/linux/arch/mips/linux_syscalls.c \ src/sys/compat/linux/arch/mips/linux_sysent.c cvs rdiff -u -r1.79 -r1.80 src/sys/compat/linux/arch/powerpc/linux_syscall.h \ src/sys/compat/linux/arch/powerpc/linux_sysent.c cvs rdiff -u -r1.78 -r1.79 \ src/sys/compat/linux/arch/powerpc/linux_syscallargs.h \ src/sys/compat/linux/arch/powerpc/linux_syscalls.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/alpha/linux_syscall.h diff -u src/sys/compat/linux/arch/alpha/linux_syscall.h:1.102 src/sys/compat/linux/arch/alpha/linux_syscall.h:1.103 --- src/sys/compat/linux/arch/alpha/linux_syscall.h:1.102 Fri Jan 13 01:18:31 2017 +++ src/sys/compat/linux/arch/alpha/linux_syscall.h Sun Jan 15 19:11:09 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_syscall.h,v 1.102 2017/01/13 06:18:31 christos Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.103 2017/01/16 00:11:09 christos Exp $ */ /* * System call numbers. Index: src/sys/compat/linux/arch/alpha/linux_sysent.c diff -u src/sys/compat/linux/arch/alpha/linux_sysent.c:1.102 src/sys/compat/linux/arch/alpha/linux_sysent.c:1.103 --- src/sys/compat/linux/arch/alpha/linux_sysent.c:1.102 Fri Jan 13 01:18:31 2017 +++ src/sys/compat/linux/arch/alpha/linux_sysent.c Sun Jan 15 19:11:09 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_sysent.c,v 1.102 2017/01/13 06:18:31 christos Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.103 2017/01/16 00:11:09 christos Exp $ */ /* * System call switch table. @@ -8,7 +8,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.102 2017/01/13 06:18:31 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.103 2017/01/16 00:11:09 christos Exp $"); #if defined(_KERNEL_OPT) #include "opt_sysv.h" Index: src/sys/compat/linux/arch/alpha/linux_syscallargs.h diff -u src/sys/compat/linux/arch/alpha/linux_syscallargs.h:1.101 src/sys/compat/linux/arch/alpha/linux_syscallargs.h:1.102 --- src/sys/compat/linux/arch/alpha/linux_syscallargs.h:1.101 Fri Jan 13 01:18:31 2017 +++ src/sys/compat/linux/arch/alpha/linux_syscallargs.h Sun Jan 15 19:11:09 2017 @@ -1,4 +1,4 @@ -/* $NetBSD:
CVS commit: src/sys/compat/linux/arch/arm
Module Name:src Committed By: christos Date: Sun Jan 15 17:00:37 UTC 2017 Modified Files: src/sys/compat/linux/arch/arm: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c linux_systrace_args.c Log Message: regen To generate a diff of this commit: cvs rdiff -u -r1.74 -r1.75 src/sys/compat/linux/arch/arm/linux_syscall.h \ src/sys/compat/linux/arch/arm/linux_syscallargs.h \ src/sys/compat/linux/arch/arm/linux_syscalls.c \ src/sys/compat/linux/arch/arm/linux_sysent.c cvs rdiff -u -r1.7 -r1.8 src/sys/compat/linux/arch/arm/linux_systrace_args.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/arm/linux_syscall.h diff -u src/sys/compat/linux/arch/arm/linux_syscall.h:1.74 src/sys/compat/linux/arch/arm/linux_syscall.h:1.75 --- src/sys/compat/linux/arch/arm/linux_syscall.h:1.74 Sun Jan 15 10:20:15 2017 +++ src/sys/compat/linux/arch/arm/linux_syscall.h Sun Jan 15 12:00:37 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_syscall.h,v 1.74 2017/01/15 15:20:15 christos Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.75 2017/01/15 17:00:37 christos Exp $ */ /* * System call numbers. Index: src/sys/compat/linux/arch/arm/linux_syscallargs.h diff -u src/sys/compat/linux/arch/arm/linux_syscallargs.h:1.74 src/sys/compat/linux/arch/arm/linux_syscallargs.h:1.75 --- src/sys/compat/linux/arch/arm/linux_syscallargs.h:1.74 Sun Jan 15 10:20:15 2017 +++ src/sys/compat/linux/arch/arm/linux_syscallargs.h Sun Jan 15 12:00:37 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_syscallargs.h,v 1.74 2017/01/15 15:20:15 christos Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.75 2017/01/15 17:00:37 christos Exp $ */ /* * System call argument lists. Index: src/sys/compat/linux/arch/arm/linux_syscalls.c diff -u src/sys/compat/linux/arch/arm/linux_syscalls.c:1.74 src/sys/compat/linux/arch/arm/linux_syscalls.c:1.75 --- src/sys/compat/linux/arch/arm/linux_syscalls.c:1.74 Sun Jan 15 10:20:15 2017 +++ src/sys/compat/linux/arch/arm/linux_syscalls.c Sun Jan 15 12:00:37 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_syscalls.c,v 1.74 2017/01/15 15:20:15 christos Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.75 2017/01/15 17:00:37 christos Exp $ */ /* * System call names. @@ -8,7 +8,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.74 2017/01/15 15:20:15 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.75 2017/01/15 17:00:37 christos Exp $"); #if defined(_KERNEL_OPT) #include Index: src/sys/compat/linux/arch/arm/linux_sysent.c diff -u src/sys/compat/linux/arch/arm/linux_sysent.c:1.74 src/sys/compat/linux/arch/arm/linux_sysent.c:1.75 --- src/sys/compat/linux/arch/arm/linux_sysent.c:1.74 Sun Jan 15 10:20:15 2017 +++ src/sys/compat/linux/arch/arm/linux_sysent.c Sun Jan 15 12:00:37 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_sysent.c,v 1.74 2017/01/15 15:20:15 christos Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.75 2017/01/15 17:00:37 christos Exp $ */ /* * System call switch table. @@ -8,7 +8,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.74 2017/01/15 15:20:15 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.75 2017/01/15 17:00:37 christos Exp $"); #include #include Index: src/sys/compat/linux/arch/arm/linux_systrace_args.c diff -u src/sys/compat/linux/arch/arm/linux_systrace_args.c:1.7 src/sys/compat/linux/arch/arm/linux_systrace_args.c:1.8 --- src/sys/compat/linux/arch/arm/linux_systrace_args.c:1.7 Sun Jan 15 10:20:15 2017 +++ src/sys/compat/linux/arch/arm/linux_systrace_args.c Sun Jan 15 12:00:37 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_systrace_args.c,v 1.7 2017/01/15 15:20:15 christos Exp $ */ +/* $NetBSD: linux_systrace_args.c,v 1.8 2017/01/15 17:00:37 christos Exp $ */ /* * System call argument to DTrace register array converstion. @@ -302,7 +302,7 @@ systrace_args(register_t sysnum, const v case 48: { const struct linux_sys_signal_args *p = params; iarg[0] = SCARG(p, signum); /* int */ - uarg[1] = (intptr_t) SCARG(p, handler).i32; /* linux_handler_t */ + uarg[1] = (intptr_t) SCARG(p, handler); /* linux_handler_t */ *n_args = 2; break; }
CVS commit: src/sys/compat/linux/arch/arm
Module Name:src Committed By: christos Date: Sun Jan 15 15:20:15 UTC 2017 Modified Files: src/sys/compat/linux/arch/arm: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c linux_systrace_args.c Log Message: regen To generate a diff of this commit: cvs rdiff -u -r1.73 -r1.74 src/sys/compat/linux/arch/arm/linux_syscall.h \ src/sys/compat/linux/arch/arm/linux_syscallargs.h \ src/sys/compat/linux/arch/arm/linux_syscalls.c \ src/sys/compat/linux/arch/arm/linux_sysent.c cvs rdiff -u -r1.6 -r1.7 src/sys/compat/linux/arch/arm/linux_systrace_args.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/arm/linux_syscall.h diff -u src/sys/compat/linux/arch/arm/linux_syscall.h:1.73 src/sys/compat/linux/arch/arm/linux_syscall.h:1.74 --- src/sys/compat/linux/arch/arm/linux_syscall.h:1.73 Sun Jan 15 10:19:33 2017 +++ src/sys/compat/linux/arch/arm/linux_syscall.h Sun Jan 15 10:20:15 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_syscall.h,v 1.73 2017/01/15 15:19:33 christos Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.74 2017/01/15 15:20:15 christos Exp $ */ /* * System call numbers. Index: src/sys/compat/linux/arch/arm/linux_syscallargs.h diff -u src/sys/compat/linux/arch/arm/linux_syscallargs.h:1.73 src/sys/compat/linux/arch/arm/linux_syscallargs.h:1.74 --- src/sys/compat/linux/arch/arm/linux_syscallargs.h:1.73 Sun Jan 15 10:19:33 2017 +++ src/sys/compat/linux/arch/arm/linux_syscallargs.h Sun Jan 15 10:20:15 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_syscallargs.h,v 1.73 2017/01/15 15:19:33 christos Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.74 2017/01/15 15:20:15 christos Exp $ */ /* * System call argument lists. Index: src/sys/compat/linux/arch/arm/linux_syscalls.c diff -u src/sys/compat/linux/arch/arm/linux_syscalls.c:1.73 src/sys/compat/linux/arch/arm/linux_syscalls.c:1.74 --- src/sys/compat/linux/arch/arm/linux_syscalls.c:1.73 Sun Jan 15 10:19:33 2017 +++ src/sys/compat/linux/arch/arm/linux_syscalls.c Sun Jan 15 10:20:15 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_syscalls.c,v 1.73 2017/01/15 15:19:33 christos Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.74 2017/01/15 15:20:15 christos Exp $ */ /* * System call names. @@ -8,7 +8,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.73 2017/01/15 15:19:33 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.74 2017/01/15 15:20:15 christos Exp $"); #if defined(_KERNEL_OPT) #include Index: src/sys/compat/linux/arch/arm/linux_sysent.c diff -u src/sys/compat/linux/arch/arm/linux_sysent.c:1.73 src/sys/compat/linux/arch/arm/linux_sysent.c:1.74 --- src/sys/compat/linux/arch/arm/linux_sysent.c:1.73 Sun Jan 15 10:19:33 2017 +++ src/sys/compat/linux/arch/arm/linux_sysent.c Sun Jan 15 10:20:15 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_sysent.c,v 1.73 2017/01/15 15:19:33 christos Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.74 2017/01/15 15:20:15 christos Exp $ */ /* * System call switch table. @@ -8,7 +8,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.73 2017/01/15 15:19:33 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.74 2017/01/15 15:20:15 christos Exp $"); #include #include Index: src/sys/compat/linux/arch/arm/linux_systrace_args.c diff -u src/sys/compat/linux/arch/arm/linux_systrace_args.c:1.6 src/sys/compat/linux/arch/arm/linux_systrace_args.c:1.7 --- src/sys/compat/linux/arch/arm/linux_systrace_args.c:1.6 Sun Jan 15 10:19:33 2017 +++ src/sys/compat/linux/arch/arm/linux_systrace_args.c Sun Jan 15 10:20:15 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_systrace_args.c,v 1.6 2017/01/15 15:19:33 christos Exp $ */ +/* $NetBSD: linux_systrace_args.c,v 1.7 2017/01/15 15:20:15 christos Exp $ */ /* * System call argument to DTrace register array converstion. @@ -302,11 +302,7 @@ systrace_args(register_t sysnum, const v case 48: { const struct linux_sys_signal_args *p = params; iarg[0] = SCARG(p, signum); /* int */ -<<< linux_systrace_args.c uarg[1] = (intptr_t) SCARG(p, handler).i32; /* linux_handler_t */ -=== - iarg[1] = (intptr_t) SCARG(p, handler); /* linux_handler_t */ ->>> 1.5 *n_args = 2; break; }
CVS commit: src/sys/compat/linux/arch/arm
Module Name:src Committed By: christos Date: Sun Jan 15 15:19:33 UTC 2017 Modified Files: src/sys/compat/linux/arch/arm: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c linux_systrace_args.c Log Message: regen To generate a diff of this commit: cvs rdiff -u -r1.72 -r1.73 src/sys/compat/linux/arch/arm/linux_syscall.h \ src/sys/compat/linux/arch/arm/linux_syscallargs.h \ src/sys/compat/linux/arch/arm/linux_syscalls.c \ src/sys/compat/linux/arch/arm/linux_sysent.c cvs rdiff -u -r1.5 -r1.6 src/sys/compat/linux/arch/arm/linux_systrace_args.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/arm/linux_syscall.h diff -u src/sys/compat/linux/arch/arm/linux_syscall.h:1.72 src/sys/compat/linux/arch/arm/linux_syscall.h:1.73 --- src/sys/compat/linux/arch/arm/linux_syscall.h:1.72 Fri Jan 13 01:18:31 2017 +++ src/sys/compat/linux/arch/arm/linux_syscall.h Sun Jan 15 10:19:33 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_syscall.h,v 1.72 2017/01/13 06:18:31 christos Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.73 2017/01/15 15:19:33 christos Exp $ */ /* * System call numbers. Index: src/sys/compat/linux/arch/arm/linux_syscallargs.h diff -u src/sys/compat/linux/arch/arm/linux_syscallargs.h:1.72 src/sys/compat/linux/arch/arm/linux_syscallargs.h:1.73 --- src/sys/compat/linux/arch/arm/linux_syscallargs.h:1.72 Fri Jan 13 01:18:31 2017 +++ src/sys/compat/linux/arch/arm/linux_syscallargs.h Sun Jan 15 10:19:33 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_syscallargs.h,v 1.72 2017/01/13 06:18:31 christos Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.73 2017/01/15 15:19:33 christos Exp $ */ /* * System call argument lists. Index: src/sys/compat/linux/arch/arm/linux_syscalls.c diff -u src/sys/compat/linux/arch/arm/linux_syscalls.c:1.72 src/sys/compat/linux/arch/arm/linux_syscalls.c:1.73 --- src/sys/compat/linux/arch/arm/linux_syscalls.c:1.72 Fri Jan 13 01:18:31 2017 +++ src/sys/compat/linux/arch/arm/linux_syscalls.c Sun Jan 15 10:19:33 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_syscalls.c,v 1.72 2017/01/13 06:18:31 christos Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.73 2017/01/15 15:19:33 christos Exp $ */ /* * System call names. @@ -8,7 +8,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.72 2017/01/13 06:18:31 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.73 2017/01/15 15:19:33 christos Exp $"); #if defined(_KERNEL_OPT) #include Index: src/sys/compat/linux/arch/arm/linux_sysent.c diff -u src/sys/compat/linux/arch/arm/linux_sysent.c:1.72 src/sys/compat/linux/arch/arm/linux_sysent.c:1.73 --- src/sys/compat/linux/arch/arm/linux_sysent.c:1.72 Fri Jan 13 01:18:31 2017 +++ src/sys/compat/linux/arch/arm/linux_sysent.c Sun Jan 15 10:19:33 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_sysent.c,v 1.72 2017/01/13 06:18:31 christos Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.73 2017/01/15 15:19:33 christos Exp $ */ /* * System call switch table. @@ -8,7 +8,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.72 2017/01/13 06:18:31 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.73 2017/01/15 15:19:33 christos Exp $"); #include #include Index: src/sys/compat/linux/arch/arm/linux_systrace_args.c diff -u src/sys/compat/linux/arch/arm/linux_systrace_args.c:1.5 src/sys/compat/linux/arch/arm/linux_systrace_args.c:1.6 --- src/sys/compat/linux/arch/arm/linux_systrace_args.c:1.5 Sun Jan 15 06:46:21 2017 +++ src/sys/compat/linux/arch/arm/linux_systrace_args.c Sun Jan 15 10:19:33 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_systrace_args.c,v 1.5 2017/01/15 11:46:21 martin Exp $ */ +/* $NetBSD: linux_systrace_args.c,v 1.6 2017/01/15 15:19:33 christos Exp $ */ /* * System call argument to DTrace register array converstion. @@ -302,7 +302,11 @@ systrace_args(register_t sysnum, const v case 48: { const struct linux_sys_signal_args *p = params; iarg[0] = SCARG(p, signum); /* int */ +<<< linux_systrace_args.c + uarg[1] = (intptr_t) SCARG(p, handler).i32; /* linux_handler_t */ +=== iarg[1] = (intptr_t) SCARG(p, handler); /* linux_handler_t */ +>>> 1.5 *n_args = 2; break; }
CVS commit: src/sys/compat/linux/arch/arm
Module Name:src Committed By: martin Date: Sun Jan 15 11:46:21 UTC 2017 Modified Files: src/sys/compat/linux/arch/arm: linux_systrace_args.c Log Message: Cast pointer to int via intptr_t To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/compat/linux/arch/arm/linux_systrace_args.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/arm/linux_systrace_args.c diff -u src/sys/compat/linux/arch/arm/linux_systrace_args.c:1.4 src/sys/compat/linux/arch/arm/linux_systrace_args.c:1.5 --- src/sys/compat/linux/arch/arm/linux_systrace_args.c:1.4 Fri Jan 13 06:18:31 2017 +++ src/sys/compat/linux/arch/arm/linux_systrace_args.c Sun Jan 15 11:46:21 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_systrace_args.c,v 1.4 2017/01/13 06:18:31 christos Exp $ */ +/* $NetBSD: linux_systrace_args.c,v 1.5 2017/01/15 11:46:21 martin Exp $ */ /* * System call argument to DTrace register array converstion. @@ -302,7 +302,7 @@ systrace_args(register_t sysnum, const v case 48: { const struct linux_sys_signal_args *p = params; iarg[0] = SCARG(p, signum); /* int */ - iarg[1] = SCARG(p, handler); /* linux_handler_t */ + iarg[1] = (intptr_t) SCARG(p, handler); /* linux_handler_t */ *n_args = 2; break; }
CVS commit: src/sys/compat/linux/arch
Module Name:src Committed By: njoly Date: Sun Jul 24 13:23:25 UTC 2016 Modified Files: src/sys/compat/linux/arch/alpha: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/amd64: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c linux_systrace_args.c src/sys/compat/linux/arch/arm: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c linux_systrace_args.c src/sys/compat/linux/arch/i386: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c linux_systrace_args.c src/sys/compat/linux/arch/m68k: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/mips: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/powerpc: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c Log Message: Regen for readlink/readlinkat signatures. To generate a diff of this commit: cvs rdiff -u -r1.98 -r1.99 src/sys/compat/linux/arch/alpha/linux_syscall.h \ src/sys/compat/linux/arch/alpha/linux_sysent.c cvs rdiff -u -r1.97 -r1.98 \ src/sys/compat/linux/arch/alpha/linux_syscallargs.h cvs rdiff -u -r1.99 -r1.100 src/sys/compat/linux/arch/alpha/linux_syscalls.c cvs rdiff -u -r1.59 -r1.60 src/sys/compat/linux/arch/amd64/linux_syscall.h \ src/sys/compat/linux/arch/amd64/linux_syscallargs.h \ src/sys/compat/linux/arch/amd64/linux_syscalls.c \ src/sys/compat/linux/arch/amd64/linux_sysent.c cvs rdiff -u -r1.4 -r1.5 \ src/sys/compat/linux/arch/amd64/linux_systrace_args.c cvs rdiff -u -r1.68 -r1.69 src/sys/compat/linux/arch/arm/linux_syscall.h \ src/sys/compat/linux/arch/arm/linux_syscallargs.h \ src/sys/compat/linux/arch/arm/linux_syscalls.c \ src/sys/compat/linux/arch/arm/linux_sysent.c cvs rdiff -u -r1.1 -r1.2 src/sys/compat/linux/arch/arm/linux_systrace_args.c cvs rdiff -u -r1.107 -r1.108 src/sys/compat/linux/arch/i386/linux_syscall.h \ src/sys/compat/linux/arch/i386/linux_syscallargs.h \ src/sys/compat/linux/arch/i386/linux_sysent.c cvs rdiff -u -r1.108 -r1.109 src/sys/compat/linux/arch/i386/linux_syscalls.c cvs rdiff -u -r1.3 -r1.4 src/sys/compat/linux/arch/i386/linux_systrace_args.c cvs rdiff -u -r1.97 -r1.98 src/sys/compat/linux/arch/m68k/linux_syscall.h \ src/sys/compat/linux/arch/m68k/linux_syscalls.c \ src/sys/compat/linux/arch/m68k/linux_sysent.c cvs rdiff -u -r1.96 -r1.97 src/sys/compat/linux/arch/m68k/linux_syscallargs.h cvs rdiff -u -r1.66 -r1.67 src/sys/compat/linux/arch/mips/linux_syscall.h cvs rdiff -u -r1.65 -r1.66 src/sys/compat/linux/arch/mips/linux_syscallargs.h \ src/sys/compat/linux/arch/mips/linux_syscalls.c \ src/sys/compat/linux/arch/mips/linux_sysent.c cvs rdiff -u -r1.75 -r1.76 src/sys/compat/linux/arch/powerpc/linux_syscall.h \ src/sys/compat/linux/arch/powerpc/linux_sysent.c cvs rdiff -u -r1.74 -r1.75 \ src/sys/compat/linux/arch/powerpc/linux_syscallargs.h \ src/sys/compat/linux/arch/powerpc/linux_syscalls.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/alpha/linux_syscall.h diff -u src/sys/compat/linux/arch/alpha/linux_syscall.h:1.98 src/sys/compat/linux/arch/alpha/linux_syscall.h:1.99 --- src/sys/compat/linux/arch/alpha/linux_syscall.h:1.98 Sun Oct 25 15:55:58 2015 +++ src/sys/compat/linux/arch/alpha/linux_syscall.h Sun Jul 24 13:23:25 2016 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.98 2015/10/25 15:55:58 njoly Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.99 2016/07/24 13:23:25 njoly Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.90 2015/10/25 15:55:05 njoly Exp + * created from NetBSD: syscalls.master,v 1.91 2016/07/24 13:22:01 njoly Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -111,7 +111,7 @@ /* syscall: "symlink" ret: "int" args: "const char *" "const char *" */ #define LINUX_SYS_symlink 57 -/* syscall: "readlink" ret: "int" args: "const char *" "char *" "int" */ +/* syscall: "readlink" ret: "ssize_t" args: "const char *" "char *" "int" */ #define LINUX_SYS_readlink 58 /* syscall: "execve" ret: "int" args: "const char *" "char **" "char **" */ @@ -630,7 +630,7 @@ /* syscall: "symlinkat" ret: "int" args: "const char *" "int" "const char *" */ #define LINUX_SYS_symlinkat 459 -/* syscall: "readlinkat" ret: "int" args: "int" "const char *" "char *" "size_t" */ +/* syscall: "readlinkat" ret: "ssize_t" args: "int" "const char *" "char *" "size_t" */ #define LINUX_SYS_readlinkat 460 /* syscall: "fchmodat" ret: "int" args: "int" "const char *" "linux_umode_t" */ Index: src/sys/compat/linux/arch/alpha/linux_sysent.c diff -u src/sys/compat/linux/arch/alpha/linux_sysent.c:1.98
CVS commit: src/sys/compat/linux/arch
Module Name:src Committed By: njoly Date: Sun Jul 24 13:22:01 UTC 2016 Modified Files: src/sys/compat/linux/arch/alpha: syscalls.master src/sys/compat/linux/arch/amd64: syscalls.master src/sys/compat/linux/arch/arm: syscalls.master src/sys/compat/linux/arch/i386: syscalls.master src/sys/compat/linux/arch/m68k: syscalls.master src/sys/compat/linux/arch/mips: syscalls.master src/sys/compat/linux/arch/powerpc: syscalls.master Log Message: Small cleanup. Adjust readlink/readlinkat signatures to reduce diffs with native. To generate a diff of this commit: cvs rdiff -u -r1.90 -r1.91 src/sys/compat/linux/arch/alpha/syscalls.master cvs rdiff -u -r1.56 -r1.57 src/sys/compat/linux/arch/amd64/syscalls.master cvs rdiff -u -r1.63 -r1.64 src/sys/compat/linux/arch/arm/syscalls.master cvs rdiff -u -r1.120 -r1.121 src/sys/compat/linux/arch/i386/syscalls.master cvs rdiff -u -r1.89 -r1.90 src/sys/compat/linux/arch/m68k/syscalls.master cvs rdiff -u -r1.59 -r1.60 src/sys/compat/linux/arch/mips/syscalls.master cvs rdiff -u -r1.68 -r1.69 src/sys/compat/linux/arch/powerpc/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/alpha/syscalls.master diff -u src/sys/compat/linux/arch/alpha/syscalls.master:1.90 src/sys/compat/linux/arch/alpha/syscalls.master:1.91 --- src/sys/compat/linux/arch/alpha/syscalls.master:1.90 Sun Oct 25 15:55:05 2015 +++ src/sys/compat/linux/arch/alpha/syscalls.master Sun Jul 24 13:22:01 2016 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.90 2015/10/25 15:55:05 njoly Exp $ + $NetBSD: syscalls.master,v 1.91 2016/07/24 13:22:01 njoly Exp $ ; ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -155,7 +155,7 @@ 55 UNIMPL 56 UNIMPL 57 NOARGS { int|sys||symlink(const char *path, const char *to); } -58 NOARGS { int|sys||readlink(const char *name, char *buf, \ +58 NOARGS { ssize_t|sys||readlink(const char *path, char *buf, \ int count); } 59 NOARGS { int|sys||execve(const char *path, char **argp, \ char **envp); } @@ -725,7 +725,7 @@ int fd2, const char *name2, int flags); } 459 NOARGS { int|sys||symlinkat(const char *path1, int fd, \ const char *path2); } -460 NOARGS { int|sys||readlinkat(int fd, const char *path, \ +460 NOARGS { ssize_t|sys||readlinkat(int fd, const char *path, \ char *buf, size_t bufsize); } 461 STD { int|linux_sys||fchmodat(int fd, const char *path, \ linux_umode_t mode); } Index: src/sys/compat/linux/arch/amd64/syscalls.master diff -u src/sys/compat/linux/arch/amd64/syscalls.master:1.56 src/sys/compat/linux/arch/amd64/syscalls.master:1.57 --- src/sys/compat/linux/arch/amd64/syscalls.master:1.56 Tue Oct 27 07:15:38 2015 +++ src/sys/compat/linux/arch/amd64/syscalls.master Sun Jul 24 13:22:01 2016 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.56 2015/10/27 07:15:38 njoly Exp $ + $NetBSD: syscalls.master,v 1.57 2016/07/24 13:22:01 njoly Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -235,7 +235,7 @@ 86 NOARGS { int|sys||link(const char *path, const char *link); } 87 STD { int|linux_sys||unlink(const char *path); } 88 NOARGS { int|sys||symlink(const char *path, const char *link); } -89 NOARGS { int|sys||readlink(const char *path, char *buf, \ +89 NOARGS { ssize_t|sys||readlink(const char *path, char *buf, \ int count); } 90 NOARGS { int|sys||chmod(const char *path, linux_umode_t mode); } 91 NOARGS { int|sys||fchmod(int fd, linux_umode_t mode); } @@ -483,7 +483,7 @@ int fd2, const char *name2, int flags); } 266 NOARGS { int|sys||symlinkat(const char *path1, int fd, \ const char *path2); } -267 NOARGS { int|sys||readlinkat(int fd, const char *path, \ +267 NOARGS { ssize_t|sys||readlinkat(int fd, const char *path, \ char *buf, size_t bufsize); } 268 STD { int|linux_sys||fchmodat(int fd, const char *path, \ linux_umode_t mode); } Index: src/sys/compat/linux/arch/arm/syscalls.master diff -u src/sys/compat/linux/arch/arm/syscalls.master:1.63 src/sys/compat/linux/arch/arm/syscalls.master:1.64 --- src/sys/compat/linux/arch/arm/syscalls.master:1.63 Mon Mar 23 07:50:03 2015 +++ src/sys/compat/linux/arch/arm/syscalls.master Sun Jul 24 13:22:01 2016 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.63 2015/03/23 07:50:03 ozaki-r Exp $ + $NetBSD: syscalls.master,v 1.64 2016/07/24 13:22:01 njoly Exp $ ; Derived from sys/compat/linux/arch/*/syscalls.master ; and from Linux 2.4.12 arch/arm/kernel/calls.S @@ -164,7 +164,7 @@ 83 NOARGS { int|sys||symlink(const char *path, const char *link); } 84 NOARGS { int|compat_43_sys||lstat(const char *path, \ struct stat43 *ub); } oolstat -85 NOARGS { int|sys||readlink(const char *path, char *buf, \ +85 NOARGS { ssize_t|sys||readlink(const char *path, char *buf, \ int count); } #ifdef EXEC_AOUT 86 STD {
CVS commit: src/sys/compat/linux/arch/i386
Module Name:src Committed By: maxv Date: Wed Jul 13 15:59:54 UTC 2016 Modified Files: src/sys/compat/linux/arch/i386: linux_machdep.c Log Message: x86_alldisks can be NULL, so don't dereference it. Not tested, but obvious enough. To generate a diff of this commit: cvs rdiff -u -r1.161 -r1.162 src/sys/compat/linux/arch/i386/linux_machdep.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/i386/linux_machdep.c diff -u src/sys/compat/linux/arch/i386/linux_machdep.c:1.161 src/sys/compat/linux/arch/i386/linux_machdep.c:1.162 --- src/sys/compat/linux/arch/i386/linux_machdep.c:1.161 Tue Dec 8 21:27:50 2015 +++ src/sys/compat/linux/arch/i386/linux_machdep.c Wed Jul 13 15:59:54 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_machdep.c,v 1.161 2015/12/08 21:27:50 christos Exp $ */ +/* $NetBSD: linux_machdep.c,v 1.162 2016/07/13 15:59:54 maxv Exp $ */ /*- * Copyright (c) 1995, 2000, 2008, 2009 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.161 2015/12/08 21:27:50 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.162 2016/07/13 15:59:54 maxv Exp $"); #if defined(_KERNEL_OPT) #include "opt_vm86.h" @@ -107,8 +107,9 @@ __KERNEL_RCSID(0, "$NetBSD: linux_machde #define DPRINTF(a) #endif -static struct biosdisk_info *fd2biosinfo(struct proc *, struct file *); extern struct disklist *x86_alldisks; + +static struct biosdisk_info *fd2biosinfo(struct proc *, struct file *); static void linux_save_ucontext(struct lwp *, struct trapframe *, const sigset_t *, struct sigaltstack *, struct linux_ucontext *); static void linux_save_sigcontext(struct lwp *, struct trapframe *, @@ -761,6 +762,8 @@ fd2biosinfo(struct proc *p, struct file struct nativedisk_info *nip; struct disklist *dl = x86_alldisks; + if (dl == NULL) + return NULL; if (fp->f_type != DTYPE_VNODE) return NULL; vp = (struct vnode *)fp->f_data;
CVS commit: src/sys/compat/linux/arch/i386
Module Name:src Committed By: christos Date: Tue Dec 8 21:27:50 UTC 2015 Modified Files: src/sys/compat/linux/arch/i386: linux_machdep.c Log Message: Fix DIOCGPARTINFO To generate a diff of this commit: cvs rdiff -u -r1.160 -r1.161 src/sys/compat/linux/arch/i386/linux_machdep.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/i386/linux_machdep.c diff -u src/sys/compat/linux/arch/i386/linux_machdep.c:1.160 src/sys/compat/linux/arch/i386/linux_machdep.c:1.161 --- src/sys/compat/linux/arch/i386/linux_machdep.c:1.160 Tue Dec 8 15:36:14 2015 +++ src/sys/compat/linux/arch/i386/linux_machdep.c Tue Dec 8 16:27:50 2015 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_machdep.c,v 1.160 2015/12/08 20:36:14 christos Exp $ */ +/* $NetBSD: linux_machdep.c,v 1.161 2015/12/08 21:27:50 christos Exp $ */ /*- * Copyright (c) 1995, 2000, 2008, 2009 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.160 2015/12/08 20:36:14 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.161 2015/12/08 21:27:50 christos Exp $"); #if defined(_KERNEL_OPT) #include "opt_vm86.h" @@ -807,7 +807,7 @@ linux_machdepioctl(struct lwp *l, const struct biosdisk_info *bip; file_t *fp; int fd; - struct disklabel label, *labp; + struct disklabel label; struct partinfo partp; int (*ioctlf)(struct file *, u_long, void *); u_long start, biostotal, realtotal; @@ -935,28 +935,27 @@ linux_machdepioctl(struct lwp *l, const */ bip = fd2biosinfo(curproc, fp); ioctlf = fp->f_ops->fo_ioctl; - error = ioctlf(fp, DIOCGDEFLABEL, (void *)); + error = ioctlf(fp, DIOCGDINFO, (void *)); error1 = ioctlf(fp, DIOCGPARTINFO, (void *)); if (error != 0 && error1 != 0) { error = error1; goto out; } - labp = error != 0 ? : partp.disklab; - start = error1 != 0 ? partp.part->p_offset : 0; + start = error1 != 0 ? partp.pi_offset : 0; if (bip != NULL && bip->bi_head != 0 && bip->bi_sec != 0 && bip->bi_cyl != 0) { heads = bip->bi_head; sectors = bip->bi_sec; cylinders = bip->bi_cyl; biostotal = heads * sectors * cylinders; - realtotal = labp->d_ntracks * labp->d_nsectors * - labp->d_ncylinders; + realtotal = label.d_ntracks * label.d_nsectors * + label.d_ncylinders; if (realtotal > biostotal) cylinders = realtotal / (heads * sectors); } else { - heads = labp->d_ntracks; - cylinders = labp->d_ncylinders; - sectors = labp->d_nsectors; + heads = label.d_ntracks; + cylinders = label.d_ncylinders; + sectors = label.d_nsectors; } if (com == LINUX_HDIO_GETGEO) { hdg.start = start;
CVS commit: src/sys/compat/linux/arch/amd64
Module Name:src Committed By: njoly Date: Tue Oct 27 07:16:00 UTC 2015 Modified Files: src/sys/compat/linux/arch/amd64: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c linux_systrace_args.c Log Message: Regen To generate a diff of this commit: cvs rdiff -u -r1.58 -r1.59 src/sys/compat/linux/arch/amd64/linux_syscall.h \ src/sys/compat/linux/arch/amd64/linux_syscallargs.h \ src/sys/compat/linux/arch/amd64/linux_syscalls.c \ src/sys/compat/linux/arch/amd64/linux_sysent.c cvs rdiff -u -r1.3 -r1.4 \ src/sys/compat/linux/arch/amd64/linux_systrace_args.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/amd64/linux_syscall.h diff -u src/sys/compat/linux/arch/amd64/linux_syscall.h:1.58 src/sys/compat/linux/arch/amd64/linux_syscall.h:1.59 --- src/sys/compat/linux/arch/amd64/linux_syscall.h:1.58 Thu Sep 24 14:42:45 2015 +++ src/sys/compat/linux/arch/amd64/linux_syscall.h Tue Oct 27 07:16:00 2015 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.58 2015/09/24 14:42:45 christos Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.59 2015/10/27 07:16:00 njoly Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.55 2015/05/31 10:49:27 njoly Exp + * created from NetBSD: syscalls.master,v 1.56 2015/10/27 07:15:38 njoly Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -333,10 +333,10 @@ /* syscall: "getgid" ret: "gid_t" args: */ #define LINUX_SYS_getgid 104 -/* syscall: "setuid" ret: "void" args: "uid_t" */ +/* syscall: "setuid" ret: "int" args: "uid_t" */ #define LINUX_SYS_setuid 105 -/* syscall: "setgid" ret: "void" args: "gid_t" */ +/* syscall: "setgid" ret: "int" args: "gid_t" */ #define LINUX_SYS_setgid 106 /* syscall: "geteuid" ret: "uid_t" args: */ Index: src/sys/compat/linux/arch/amd64/linux_syscallargs.h diff -u src/sys/compat/linux/arch/amd64/linux_syscallargs.h:1.58 src/sys/compat/linux/arch/amd64/linux_syscallargs.h:1.59 --- src/sys/compat/linux/arch/amd64/linux_syscallargs.h:1.58 Thu Sep 24 14:42:45 2015 +++ src/sys/compat/linux/arch/amd64/linux_syscallargs.h Tue Oct 27 07:16:00 2015 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscallargs.h,v 1.58 2015/09/24 14:42:45 christos Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.59 2015/10/27 07:16:00 njoly Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.55 2015/05/31 10:49:27 njoly Exp + * created from NetBSD: syscalls.master,v 1.56 2015/10/27 07:15:38 njoly Exp */ #ifndef _LINUX_SYS_SYSCALLARGS_H_ Index: src/sys/compat/linux/arch/amd64/linux_syscalls.c diff -u src/sys/compat/linux/arch/amd64/linux_syscalls.c:1.58 src/sys/compat/linux/arch/amd64/linux_syscalls.c:1.59 --- src/sys/compat/linux/arch/amd64/linux_syscalls.c:1.58 Thu Sep 24 14:42:45 2015 +++ src/sys/compat/linux/arch/amd64/linux_syscalls.c Tue Oct 27 07:16:00 2015 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_syscalls.c,v 1.58 2015/09/24 14:42:45 christos Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.59 2015/10/27 07:16:00 njoly Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.55 2015/05/31 10:49:27 njoly Exp + * created from NetBSD: syscalls.master,v 1.56 2015/10/27 07:15:38 njoly Exp */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.58 2015/09/24 14:42:45 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.59 2015/10/27 07:16:00 njoly Exp $"); #if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT) Index: src/sys/compat/linux/arch/amd64/linux_sysent.c diff -u src/sys/compat/linux/arch/amd64/linux_sysent.c:1.58 src/sys/compat/linux/arch/amd64/linux_sysent.c:1.59 --- src/sys/compat/linux/arch/amd64/linux_sysent.c:1.58 Thu Sep 24 14:42:45 2015 +++ src/sys/compat/linux/arch/amd64/linux_sysent.c Tue Oct 27 07:16:00 2015 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_sysent.c,v 1.58 2015/09/24 14:42:45 christos Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.59 2015/10/27 07:16:00 njoly Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.55 2015/05/31 10:49:27 njoly Exp + * created from NetBSD: syscalls.master,v 1.56 2015/10/27 07:15:38 njoly Exp */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.58 2015/09/24 14:42:45 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.59 2015/10/27 07:16:00 njoly Exp $"); #if defined(_KERNEL_OPT) #include "opt_sysv.h" Index: src/sys/compat/linux/arch/amd64/linux_systrace_args.c diff -u src/sys/compat/linux/arch/amd64/linux_systrace_args.c:1.3 src/sys/compat/linux/arch/amd64/linux_systrace_args.c:1.4 --- src/sys/compat/linux/arch/amd64/linux_systrace_args.c:1.3 Thu Sep 24
CVS commit: src/sys/compat/linux/arch/amd64
Module Name:src Committed By: njoly Date: Tue Oct 27 07:15:38 UTC 2015 Modified Files: src/sys/compat/linux/arch/amd64: syscalls.master Log Message: Fix setuid/setgid return type (void -> int) to match native. To generate a diff of this commit: cvs rdiff -u -r1.55 -r1.56 src/sys/compat/linux/arch/amd64/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/amd64/syscalls.master diff -u src/sys/compat/linux/arch/amd64/syscalls.master:1.55 src/sys/compat/linux/arch/amd64/syscalls.master:1.56 --- src/sys/compat/linux/arch/amd64/syscalls.master:1.55 Sun May 31 10:49:27 2015 +++ src/sys/compat/linux/arch/amd64/syscalls.master Tue Oct 27 07:15:38 2015 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.55 2015/05/31 10:49:27 njoly Exp $ + $NetBSD: syscalls.master,v 1.56 2015/10/27 07:15:38 njoly Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -259,8 +259,8 @@ 102 NOARGS { uid_t|sys||getuid(void); } 103 UNIMPL syslog 104 NOARGS { gid_t|sys||getgid(void); } -105 NOARGS { void|sys||setuid(uid_t uid); } -106 NOARGS { void|sys||setgid(gid_t gid); } +105 NOARGS { int|sys||setuid(uid_t uid); } +106 NOARGS { int|sys||setgid(gid_t gid); } 107 NOARGS { uid_t|sys||geteuid(void); } 108 NOARGS { gid_t|sys||getegid(void); } 109 NOARGS { int|sys||setpgid(int pid, int pgid); }
CVS commit: src/sys/compat/linux/arch
Module Name:src Committed By: njoly Date: Tue Oct 27 06:30:10 UTC 2015 Modified Files: src/sys/compat/linux/arch/mips: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/powerpc: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c Log Message: Regen. To generate a diff of this commit: cvs rdiff -u -r1.65 -r1.66 src/sys/compat/linux/arch/mips/linux_syscall.h cvs rdiff -u -r1.64 -r1.65 src/sys/compat/linux/arch/mips/linux_syscallargs.h \ src/sys/compat/linux/arch/mips/linux_syscalls.c \ src/sys/compat/linux/arch/mips/linux_sysent.c cvs rdiff -u -r1.74 -r1.75 src/sys/compat/linux/arch/powerpc/linux_syscall.h \ src/sys/compat/linux/arch/powerpc/linux_sysent.c cvs rdiff -u -r1.73 -r1.74 \ src/sys/compat/linux/arch/powerpc/linux_syscallargs.h \ src/sys/compat/linux/arch/powerpc/linux_syscalls.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/mips/linux_syscall.h diff -u src/sys/compat/linux/arch/mips/linux_syscall.h:1.65 src/sys/compat/linux/arch/mips/linux_syscall.h:1.66 --- src/sys/compat/linux/arch/mips/linux_syscall.h:1.65 Sun Oct 25 15:55:58 2015 +++ src/sys/compat/linux/arch/mips/linux_syscall.h Tue Oct 27 06:30:10 2015 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.65 2015/10/25 15:55:58 njoly Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.66 2015/10/27 06:30:10 njoly Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.58 2015/10/25 15:55:05 njoly Exp + * created from NetBSD: syscalls.master,v 1.59 2015/10/27 06:29:35 njoly Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -253,7 +253,7 @@ /* syscall: "fchmod" ret: "int" args: "int" "linux_umode_t" */ #define LINUX_SYS_fchmod 94 -/* syscall: "__posix_fchown" ret: "int" args: "int" "uid_t" "uid_t" */ +/* syscall: "__posix_fchown" ret: "int" args: "int" "uid_t" "gid_t" */ #define LINUX_SYS___posix_fchown 95 /* syscall: "getpriority" ret: "int" args: "int" "int" */ Index: src/sys/compat/linux/arch/mips/linux_syscallargs.h diff -u src/sys/compat/linux/arch/mips/linux_syscallargs.h:1.64 src/sys/compat/linux/arch/mips/linux_syscallargs.h:1.65 --- src/sys/compat/linux/arch/mips/linux_syscallargs.h:1.64 Sun Oct 25 15:55:58 2015 +++ src/sys/compat/linux/arch/mips/linux_syscallargs.h Tue Oct 27 06:30:10 2015 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscallargs.h,v 1.64 2015/10/25 15:55:58 njoly Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.65 2015/10/27 06:30:10 njoly Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.58 2015/10/25 15:55:05 njoly Exp + * created from NetBSD: syscalls.master,v 1.59 2015/10/27 06:29:35 njoly Exp */ #ifndef _LINUX_SYS_SYSCALLARGS_H_ Index: src/sys/compat/linux/arch/mips/linux_syscalls.c diff -u src/sys/compat/linux/arch/mips/linux_syscalls.c:1.64 src/sys/compat/linux/arch/mips/linux_syscalls.c:1.65 --- src/sys/compat/linux/arch/mips/linux_syscalls.c:1.64 Sun Oct 25 15:55:58 2015 +++ src/sys/compat/linux/arch/mips/linux_syscalls.c Tue Oct 27 06:30:10 2015 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_syscalls.c,v 1.64 2015/10/25 15:55:58 njoly Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.65 2015/10/27 06:30:10 njoly Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.58 2015/10/25 15:55:05 njoly Exp + * created from NetBSD: syscalls.master,v 1.59 2015/10/27 06:29:35 njoly Exp */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.64 2015/10/25 15:55:58 njoly Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.65 2015/10/27 06:30:10 njoly Exp $"); #if defined(_KERNEL_OPT) #include @@ -25,6 +25,8 @@ __KERNEL_RCSID(0, "$NetBSD: linux_syscal #include #include #define linux_sys_mmap2_args linux_sys_mmap_args +#else /* _KERNEL_OPT */ +#include #endif /* _KERNEL_OPT */ const char *const linux_syscallnames[] = { @@ -541,3 +543,520 @@ const char *const linux_syscallnames[] = /* 510 */ "# filler", /* 511 */ "# filler", }; + + +/* libc style syscall names */ +const char *const altlinux_syscallnames[] = { + /* 0 */ "nosys", + /* 1 */ NULL, /* exit */ + /* 2 */ NULL, /* fork */ + /* 3 */ NULL, /* read */ + /* 4 */ NULL, /* write */ + /* 5 */ NULL, /* open */ + /* 6 */ NULL, /* close */ + /* 7 */ NULL, /* waitpid */ + /* 8 */ NULL, /* creat */ + /* 9 */ NULL, /* link */ + /* 10 */ NULL, /* unlink */ + /* 11 */ NULL, /* execve */ + /* 12 */ NULL, /* chdir */ + /* 13 */ NULL, /* time */ + /* 14 */ NULL, /* mknod */ + /* 15 */ NULL, /* chmod */ + /* 16 */ NULL, /* __posix_lchown */ + /* 17 */ NULL, /* unimplemented */ + /* 18 */ NULL, /* obsolete
CVS commit: src/sys/compat/linux/arch
Module Name:src Committed By: njoly Date: Tue Oct 27 06:29:35 UTC 2015 Modified Files: src/sys/compat/linux/arch/mips: syscalls.master src/sys/compat/linux/arch/powerpc: syscalls.master Log Message: Fix wrong gid types from previous. To generate a diff of this commit: cvs rdiff -u -r1.58 -r1.59 src/sys/compat/linux/arch/mips/syscalls.master cvs rdiff -u -r1.67 -r1.68 src/sys/compat/linux/arch/powerpc/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/mips/syscalls.master diff -u src/sys/compat/linux/arch/mips/syscalls.master:1.58 src/sys/compat/linux/arch/mips/syscalls.master:1.59 --- src/sys/compat/linux/arch/mips/syscalls.master:1.58 Sun Oct 25 15:55:05 2015 +++ src/sys/compat/linux/arch/mips/syscalls.master Tue Oct 27 06:29:35 2015 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.58 2015/10/25 15:55:05 njoly Exp $ + $NetBSD: syscalls.master,v 1.59 2015/10/27 06:29:35 njoly Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -181,7 +181,7 @@ 93 NOARGS { int|compat_43_sys||ftruncate(int fd, long length); } 94 NOARGS { int|sys||fchmod(int fd, linux_umode_t mode); } 95 NOARGS { int|sys||__posix_fchown(int fd, uid_t uid, \ - uid_t gid); } + gid_t gid); } 96 STD { int|linux_sys||getpriority(int which, int who); } 97 NOARGS { int|sys||setpriority(int which, int who, int prio); } 98 UNIMPL Index: src/sys/compat/linux/arch/powerpc/syscalls.master diff -u src/sys/compat/linux/arch/powerpc/syscalls.master:1.67 src/sys/compat/linux/arch/powerpc/syscalls.master:1.68 --- src/sys/compat/linux/arch/powerpc/syscalls.master:1.67 Sun Oct 25 15:55:05 2015 +++ src/sys/compat/linux/arch/powerpc/syscalls.master Tue Oct 27 06:29:35 2015 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.67 2015/10/25 15:55:05 njoly Exp $ + $NetBSD: syscalls.master,v 1.68 2015/10/27 06:29:35 njoly Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -209,7 +209,7 @@ 93 NOARGS { int|compat_43_sys||ftruncate(int fd, long length); } 94 NOARGS { int|sys||fchmod(int fd, linux_umode_t mode); } 95 NOARGS { int|sys||__posix_fchown(int fd, uid_t uid, \ - uid_t gid); } + gid_t gid); } 96 STD { int|linux_sys||getpriority(int which, int who); } 97 NOARGS { int|sys||setpriority(int which, int who, int prio); } 98 NOARGS { int|sys||profil(void *samples, u_int size, \
CVS commit: src/sys/compat/linux/arch
Module Name:src Committed By: njoly Date: Sun Oct 25 15:55:05 UTC 2015 Modified Files: src/sys/compat/linux/arch/alpha: syscalls.master src/sys/compat/linux/arch/mips: syscalls.master src/sys/compat/linux/arch/powerpc: syscalls.master Log Message: Cleanup posix chown family syscalls to match native (alpha, mips and powerpc). To generate a diff of this commit: cvs rdiff -u -r1.89 -r1.90 src/sys/compat/linux/arch/alpha/syscalls.master cvs rdiff -u -r1.57 -r1.58 src/sys/compat/linux/arch/mips/syscalls.master cvs rdiff -u -r1.66 -r1.67 src/sys/compat/linux/arch/powerpc/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/alpha/syscalls.master diff -u src/sys/compat/linux/arch/alpha/syscalls.master:1.89 src/sys/compat/linux/arch/alpha/syscalls.master:1.90 --- src/sys/compat/linux/arch/alpha/syscalls.master:1.89 Sat Nov 22 13:18:45 2014 +++ src/sys/compat/linux/arch/alpha/syscalls.master Sun Oct 25 15:55:05 2015 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.89 2014/11/22 13:18:45 njoly Exp $ + $NetBSD: syscalls.master,v 1.90 2015/10/25 15:55:05 njoly Exp $ ; ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -101,7 +101,8 @@ 14 STD { int|linux_sys||mknod(const char *path, linux_umode_t mode, \ unsigned dev); } 15 NOARGS { int|sys||chmod(const char *path, int mode); } -16 NOARGS { int|sys||__posix_chown(const char *path, int uid, int gid); } +16 NOARGS { int|sys||__posix_chown(const char *path, uid_t uid, \ + gid_t gid); } ;17 ALIAS osf1_sys_brk 17 STD { int|linux_sys||brk(char *nsize); } 18 UNIMPL @@ -254,7 +255,8 @@ int iovcnt); } 122 NODEF { int|osf1_sys||settimeofday(struct osf1_timeval *tv, \ struct osf1_timezone *tzp); } -123 NOARGS { int|sys||__posix_fchown(int fd, int uid, int gid); } +123 NOARGS { int|sys||__posix_fchown(int fd, uid_t uid, \ + gid_t gid); } 124 NOARGS { int|sys||fchmod(int fd, linux_umode_t mode); } 125 STD { int|linux_sys||recvfrom(int s, void *buf, int len, \ int flags, struct osockaddr *from, \ @@ -380,7 +382,8 @@ #endif ;207 ALIAS osf1_sys_utsname 207 STD { int|linux_sys||olduname(struct linux_old_utsname *up); } -208 NOARGS { int|sys||__posix_lchown(const char *path, int uid, int gid); } +208 NOARGS { int|sys||__posix_lchown(const char *path, uid_t uid, \ + gid_t gid); } #ifdef SYSVSHM 209 NOARGS { int|linux_sys||shmat(int shmid, void *shmaddr, \ int shmflg, u_long *raddr); } Index: src/sys/compat/linux/arch/mips/syscalls.master diff -u src/sys/compat/linux/arch/mips/syscalls.master:1.57 src/sys/compat/linux/arch/mips/syscalls.master:1.58 --- src/sys/compat/linux/arch/mips/syscalls.master:1.57 Sat Nov 22 13:18:45 2014 +++ src/sys/compat/linux/arch/mips/syscalls.master Sun Oct 25 15:55:05 2015 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.57 2014/11/22 13:18:45 njoly Exp $ + $NetBSD: syscalls.master,v 1.58 2015/10/25 15:55:05 njoly Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -77,8 +77,8 @@ 14 STD { int|linux_sys||mknod(const char *path, linux_umode_t mode, \ unsigned dev); } 15 NOARGS { int|sys||chmod(const char *path, int mode); } -16 NOARGS { int|sys||__posix_lchown(const char *path, int uid, \ - int gid); } +16 NOARGS { int|sys||__posix_lchown(const char *path, uid_t uid, \ + gid_t gid); } 17 UNIMPL 18 OBSOL ostat 19 NOARGS { long|compat_43_sys||lseek(int fd, long offset, \ @@ -180,7 +180,8 @@ long length); } 93 NOARGS { int|compat_43_sys||ftruncate(int fd, long length); } 94 NOARGS { int|sys||fchmod(int fd, linux_umode_t mode); } -95 NOARGS { int|sys||__posix_fchown(int fd, int uid, int gid); } +95 NOARGS { int|sys||__posix_fchown(int fd, uid_t uid, \ + uid_t gid); } 96 STD { int|linux_sys||getpriority(int which, int who); } 97 NOARGS { int|sys||setpriority(int which, int who, int prio); } 98 UNIMPL @@ -354,8 +355,8 @@ size_t nbyte, off_t offset); } 201 STD { int|linux_sys||pwrite(int fd, char *buf, \ size_t nbyte, off_t offset); } -202 NOARGS { int|sys||__posix_chown(const char *path, \ - int uid, int gid); } +202 NOARGS { int|sys||__posix_chown(const char *path, uid_t uid, \ + gid_t gid); } 203 NOARGS { int|sys||__getcwd(char *bufp, size_t length); } 204 UNIMPL capget 205 UNIMPL capset Index: src/sys/compat/linux/arch/powerpc/syscalls.master diff -u src/sys/compat/linux/arch/powerpc/syscalls.master:1.66 src/sys/compat/linux/arch/powerpc/syscalls.master:1.67 --- src/sys/compat/linux/arch/powerpc/syscalls.master:1.66 Sat Nov 22 13:18:45 2014 +++ src/sys/compat/linux/arch/powerpc/syscalls.master Sun Oct 25 15:55:05 2015 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.66 2014/11/22 13:18:45 njoly Exp $ + $NetBSD: syscalls.master,v 1.67 2015/10/25 15:55:05 njoly Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
CVS commit: src/sys/compat/linux/arch
Module Name:src Committed By: njoly Date: Sun Oct 25 15:55:58 UTC 2015 Modified Files: src/sys/compat/linux/arch/alpha: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/mips: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/powerpc: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c Log Message: Regen for posix chown family cleanup. To generate a diff of this commit: cvs rdiff -u -r1.97 -r1.98 src/sys/compat/linux/arch/alpha/linux_syscall.h \ src/sys/compat/linux/arch/alpha/linux_sysent.c cvs rdiff -u -r1.96 -r1.97 \ src/sys/compat/linux/arch/alpha/linux_syscallargs.h cvs rdiff -u -r1.98 -r1.99 src/sys/compat/linux/arch/alpha/linux_syscalls.c cvs rdiff -u -r1.64 -r1.65 src/sys/compat/linux/arch/mips/linux_syscall.h cvs rdiff -u -r1.63 -r1.64 src/sys/compat/linux/arch/mips/linux_syscallargs.h \ src/sys/compat/linux/arch/mips/linux_syscalls.c \ src/sys/compat/linux/arch/mips/linux_sysent.c cvs rdiff -u -r1.73 -r1.74 src/sys/compat/linux/arch/powerpc/linux_syscall.h \ src/sys/compat/linux/arch/powerpc/linux_sysent.c cvs rdiff -u -r1.72 -r1.73 \ src/sys/compat/linux/arch/powerpc/linux_syscallargs.h \ src/sys/compat/linux/arch/powerpc/linux_syscalls.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/alpha/linux_syscall.h diff -u src/sys/compat/linux/arch/alpha/linux_syscall.h:1.97 src/sys/compat/linux/arch/alpha/linux_syscall.h:1.98 --- src/sys/compat/linux/arch/alpha/linux_syscall.h:1.97 Thu Sep 24 14:42:44 2015 +++ src/sys/compat/linux/arch/alpha/linux_syscall.h Sun Oct 25 15:55:58 2015 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.97 2015/09/24 14:42:44 christos Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.98 2015/10/25 15:55:58 njoly Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.89 2014/11/22 13:18:45 njoly Exp + * created from NetBSD: syscalls.master,v 1.90 2015/10/25 15:55:05 njoly Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -51,7 +51,7 @@ /* syscall: "chmod" ret: "int" args: "const char *" "int" */ #define LINUX_SYS_chmod 15 -/* syscall: "__posix_chown" ret: "int" args: "const char *" "int" "int" */ +/* syscall: "__posix_chown" ret: "int" args: "const char *" "uid_t" "gid_t" */ #define LINUX_SYS___posix_chown 16 /* syscall: "brk" ret: "int" args: "char *" */ @@ -231,7 +231,7 @@ /* syscall: "writev" ret: "ssize_t" args: "int" "const struct iovec *" "int" */ #define LINUX_SYS_writev 121 -/* syscall: "__posix_fchown" ret: "int" args: "int" "int" "int" */ +/* syscall: "__posix_fchown" ret: "int" args: "int" "uid_t" "gid_t" */ #define LINUX_SYS___posix_fchown 123 /* syscall: "fchmod" ret: "int" args: "int" "linux_umode_t" */ @@ -336,7 +336,7 @@ /* syscall: "olduname" ret: "int" args: "struct linux_old_utsname *" */ #define LINUX_SYS_olduname 207 -/* syscall: "__posix_lchown" ret: "int" args: "const char *" "int" "int" */ +/* syscall: "__posix_lchown" ret: "int" args: "const char *" "uid_t" "gid_t" */ #define LINUX_SYS___posix_lchown 208 #ifdef SYSVSHM Index: src/sys/compat/linux/arch/alpha/linux_sysent.c diff -u src/sys/compat/linux/arch/alpha/linux_sysent.c:1.97 src/sys/compat/linux/arch/alpha/linux_sysent.c:1.98 --- src/sys/compat/linux/arch/alpha/linux_sysent.c:1.97 Thu Sep 24 14:42:44 2015 +++ src/sys/compat/linux/arch/alpha/linux_sysent.c Sun Oct 25 15:55:58 2015 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_sysent.c,v 1.97 2015/09/24 14:42:44 christos Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.98 2015/10/25 15:55:58 njoly Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.89 2014/11/22 13:18:45 njoly Exp + * created from NetBSD: syscalls.master,v 1.90 2015/10/25 15:55:05 njoly Exp */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.97 2015/09/24 14:42:44 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.98 2015/10/25 15:55:58 njoly Exp $"); #if defined(_KERNEL_OPT) #include "opt_sysv.h" Index: src/sys/compat/linux/arch/alpha/linux_syscallargs.h diff -u src/sys/compat/linux/arch/alpha/linux_syscallargs.h:1.96 src/sys/compat/linux/arch/alpha/linux_syscallargs.h:1.97 --- src/sys/compat/linux/arch/alpha/linux_syscallargs.h:1.96 Thu Sep 24 14:42:44 2015 +++ src/sys/compat/linux/arch/alpha/linux_syscallargs.h Sun Oct 25 15:55:58 2015 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscallargs.h,v 1.96 2015/09/24 14:42:44 christos Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.97 2015/10/25 15:55:58 njoly Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v
CVS commit: src/sys/compat/linux/arch
Module Name:src Committed By: pgoyette Date: Tue Oct 13 08:24:35 UTC 2015 Modified Files: src/sys/compat/linux/arch/arm: linux_ptrace.c src/sys/compat/linux/arch/i386: linux_ptrace.c src/sys/compat/linux/arch/powerpc: linux_ptrace.c Log Message: Don't release proc_lock until we're done looking at things that are protected by the lock, particularly p_stat and p_waited. Found by Robert Elz. XXX Pullup to NetBSD-7, -6, -6-0, and -6-1 To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 src/sys/compat/linux/arch/arm/linux_ptrace.c cvs rdiff -u -r1.30 -r1.31 src/sys/compat/linux/arch/i386/linux_ptrace.c cvs rdiff -u -r1.28 -r1.29 src/sys/compat/linux/arch/powerpc/linux_ptrace.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/arm/linux_ptrace.c diff -u src/sys/compat/linux/arch/arm/linux_ptrace.c:1.18 src/sys/compat/linux/arch/arm/linux_ptrace.c:1.19 --- src/sys/compat/linux/arch/arm/linux_ptrace.c:1.18 Sun Nov 9 17:48:07 2014 +++ src/sys/compat/linux/arch/arm/linux_ptrace.c Tue Oct 13 08:24:35 2015 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_ptrace.c,v 1.18 2014/11/09 17:48:07 maxv Exp $ */ +/* $NetBSD: linux_ptrace.c,v 1.19 2015/10/13 08:24:35 pgoyette Exp $ */ /*- * Copyright (c) 1999 The NetBSD Foundation, Inc. @@ -31,7 +31,7 @@ #include -__KERNEL_RCSID(0, "$NetBSD: linux_ptrace.c,v 1.18 2014/11/09 17:48:07 maxv Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_ptrace.c,v 1.19 2015/10/13 08:24:35 pgoyette Exp $"); #include #include @@ -140,7 +140,6 @@ linux_sys_ptrace_arch(struct lwp *l, con goto out; } mutex_enter(t->p_lock); - mutex_exit(proc_lock); /* * You cannot do what you want to the process if: @@ -148,6 +147,7 @@ linux_sys_ptrace_arch(struct lwp *l, con */ if (!ISSET(t->p_slflag, PSL_TRACED)) { mutex_exit(t->p_lock); + mutex_exit(proc_lock); error = EPERM; goto out; } @@ -160,9 +160,11 @@ linux_sys_ptrace_arch(struct lwp *l, con if (ISSET(t->p_slflag, PSL_FSTRACE) || t->p_pptr != p || t->p_stat != SSTOP || !t->p_waited) { mutex_exit(t->p_lock); + mutex_exit(proc_lock); error = EBUSY; goto out; } + mutex_exit(proc_lock); /* XXX: ptrace needs revamp for multi-threading support. */ if (t->p_nlwps > 1) { mutex_exit(t->p_lock); Index: src/sys/compat/linux/arch/i386/linux_ptrace.c diff -u src/sys/compat/linux/arch/i386/linux_ptrace.c:1.30 src/sys/compat/linux/arch/i386/linux_ptrace.c:1.31 --- src/sys/compat/linux/arch/i386/linux_ptrace.c:1.30 Sun Nov 9 17:48:07 2014 +++ src/sys/compat/linux/arch/i386/linux_ptrace.c Tue Oct 13 08:24:35 2015 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_ptrace.c,v 1.30 2014/11/09 17:48:07 maxv Exp $ */ +/* $NetBSD: linux_ptrace.c,v 1.31 2015/10/13 08:24:35 pgoyette Exp $ */ /*- * Copyright (c) 1999 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_ptrace.c,v 1.30 2014/11/09 17:48:07 maxv Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_ptrace.c,v 1.31 2015/10/13 08:24:35 pgoyette Exp $"); #include #include @@ -185,7 +185,6 @@ linux_sys_ptrace_arch(struct lwp *l, con goto out; } mutex_enter(t->p_lock); - mutex_exit(proc_lock); /* * You cannot do what you want to the process if: @@ -193,6 +192,7 @@ linux_sys_ptrace_arch(struct lwp *l, con */ if (!ISSET(t->p_slflag, PSL_TRACED)) { mutex_exit(t->p_lock); + mutex_exit(proc_lock); error = EPERM; goto out; } @@ -205,9 +205,11 @@ linux_sys_ptrace_arch(struct lwp *l, con if (ISSET(t->p_slflag, PSL_FSTRACE) || t->p_pptr != p || t->p_stat != SSTOP || !t->p_waited) { mutex_exit(t->p_lock); + mutex_exit(proc_lock); error = EBUSY; goto out; } + mutex_exit(proc_lock); /* XXX: ptrace needs revamp for multi-threading support. */ if (t->p_nlwps > 1) { mutex_exit(t->p_lock); Index: src/sys/compat/linux/arch/powerpc/linux_ptrace.c diff -u src/sys/compat/linux/arch/powerpc/linux_ptrace.c:1.28 src/sys/compat/linux/arch/powerpc/linux_ptrace.c:1.29 --- src/sys/compat/linux/arch/powerpc/linux_ptrace.c:1.28 Sun Nov 9 17:48:08 2014 +++ src/sys/compat/linux/arch/powerpc/linux_ptrace.c Tue Oct 13 08:24:35 2015 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_ptrace.c,v 1.28 2014/11/09 17:48:08 maxv Exp $ */ +/* $NetBSD: linux_ptrace.c,v 1.29 2015/10/13 08:24:35 pgoyette Exp $ */ /*- * Copyright (c) 1999, 2001 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_ptrace.c,v 1.28 2014/11/09 17:48:08 maxv Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_ptrace.c,v 1.29 2015/10/13 08:24:35 pgoyette Exp $"); #include #include @@ -162,7 +162,6 @@ linux_sys_ptrace_arch(struct lwp *l, con goto out; } mutex_enter(t->p_lock); - mutex_exit(proc_lock); /* * You cannot do what you want to the process if: @@ -170,6 +169,7 @@ linux_sys_ptrace_arch(struct lwp *l, con */ if
CVS commit: src/sys/compat/linux/arch/amd64
Module Name:src Committed By: njoly Date: Sun May 31 10:50:04 UTC 2015 Modified Files: src/sys/compat/linux/arch/amd64: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c linux_systrace_args.c Log Message: Regen for write(2) size argument fix. To generate a diff of this commit: cvs rdiff -u -r1.56 -r1.57 src/sys/compat/linux/arch/amd64/linux_syscall.h \ src/sys/compat/linux/arch/amd64/linux_syscallargs.h \ src/sys/compat/linux/arch/amd64/linux_syscalls.c \ src/sys/compat/linux/arch/amd64/linux_sysent.c cvs rdiff -u -r1.1 -r1.2 \ src/sys/compat/linux/arch/amd64/linux_systrace_args.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/amd64/linux_syscall.h diff -u src/sys/compat/linux/arch/amd64/linux_syscall.h:1.56 src/sys/compat/linux/arch/amd64/linux_syscall.h:1.57 --- src/sys/compat/linux/arch/amd64/linux_syscall.h:1.56 Sat Mar 7 16:41:53 2015 +++ src/sys/compat/linux/arch/amd64/linux_syscall.h Sun May 31 10:50:04 2015 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.56 2015/03/07 16:41:53 christos Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.57 2015/05/31 10:50:04 njoly Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.54 2015/03/07 03:25:19 christos Exp + * created from NetBSD: syscalls.master,v 1.55 2015/05/31 10:49:27 njoly Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -15,7 +15,7 @@ /* syscall: read ret: ssize_t args: int void * size_t */ #define LINUX_SYS_read 0 -/* syscall: write ret: ssize_t args: int const void * int */ +/* syscall: write ret: ssize_t args: int const void * size_t */ #define LINUX_SYS_write 1 /* syscall: open ret: int args: const char * int linux_umode_t */ Index: src/sys/compat/linux/arch/amd64/linux_syscallargs.h diff -u src/sys/compat/linux/arch/amd64/linux_syscallargs.h:1.56 src/sys/compat/linux/arch/amd64/linux_syscallargs.h:1.57 --- src/sys/compat/linux/arch/amd64/linux_syscallargs.h:1.56 Sat Mar 7 16:41:53 2015 +++ src/sys/compat/linux/arch/amd64/linux_syscallargs.h Sun May 31 10:50:04 2015 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscallargs.h,v 1.56 2015/03/07 16:41:53 christos Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.57 2015/05/31 10:50:04 njoly Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.54 2015/03/07 03:25:19 christos Exp + * created from NetBSD: syscalls.master,v 1.55 2015/05/31 10:49:27 njoly Exp */ #ifndef _LINUX_SYS_SYSCALLARGS_H_ Index: src/sys/compat/linux/arch/amd64/linux_syscalls.c diff -u src/sys/compat/linux/arch/amd64/linux_syscalls.c:1.56 src/sys/compat/linux/arch/amd64/linux_syscalls.c:1.57 --- src/sys/compat/linux/arch/amd64/linux_syscalls.c:1.56 Sat Mar 7 16:41:53 2015 +++ src/sys/compat/linux/arch/amd64/linux_syscalls.c Sun May 31 10:50:04 2015 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_syscalls.c,v 1.56 2015/03/07 16:41:53 christos Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.57 2015/05/31 10:50:04 njoly Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.54 2015/03/07 03:25:19 christos Exp + * created from NetBSD: syscalls.master,v 1.55 2015/05/31 10:49:27 njoly Exp */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: linux_syscalls.c,v 1.56 2015/03/07 16:41:53 christos Exp $); +__KERNEL_RCSID(0, $NetBSD: linux_syscalls.c,v 1.57 2015/05/31 10:50:04 njoly Exp $); #if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT) Index: src/sys/compat/linux/arch/amd64/linux_sysent.c diff -u src/sys/compat/linux/arch/amd64/linux_sysent.c:1.56 src/sys/compat/linux/arch/amd64/linux_sysent.c:1.57 --- src/sys/compat/linux/arch/amd64/linux_sysent.c:1.56 Sat Mar 7 16:41:53 2015 +++ src/sys/compat/linux/arch/amd64/linux_sysent.c Sun May 31 10:50:04 2015 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_sysent.c,v 1.56 2015/03/07 16:41:53 christos Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.57 2015/05/31 10:50:04 njoly Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.54 2015/03/07 03:25:19 christos Exp + * created from NetBSD: syscalls.master,v 1.55 2015/05/31 10:49:27 njoly Exp */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: linux_sysent.c,v 1.56 2015/03/07 16:41:53 christos Exp $); +__KERNEL_RCSID(0, $NetBSD: linux_sysent.c,v 1.57 2015/05/31 10:50:04 njoly Exp $); #if defined(_KERNEL_OPT) #include opt_sysv.h @@ -36,1070 +36,1928 @@ __KERNEL_RCSID(0, $NetBSD: linux_sysent #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 linux_sysent[] = { - {
CVS commit: src/sys/compat/linux/arch/amd64
Module Name:src Committed By: njoly Date: Sun May 31 10:49:28 UTC 2015 Modified Files: src/sys/compat/linux/arch/amd64: syscalls.master Log Message: Fix write(2) size argument (int - size_t). To generate a diff of this commit: cvs rdiff -u -r1.54 -r1.55 src/sys/compat/linux/arch/amd64/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/amd64/syscalls.master diff -u src/sys/compat/linux/arch/amd64/syscalls.master:1.54 src/sys/compat/linux/arch/amd64/syscalls.master:1.55 --- src/sys/compat/linux/arch/amd64/syscalls.master:1.54 Sat Mar 7 03:25:19 2015 +++ src/sys/compat/linux/arch/amd64/syscalls.master Sun May 31 10:49:27 2015 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.54 2015/03/07 03:25:19 christos Exp $ + $NetBSD: syscalls.master,v 1.55 2015/05/31 10:49:27 njoly Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -66,7 +66,7 @@ 0 NOARGS { ssize_t|sys||read(int fd, void *buf, size_t nbyte); } 1 NOARGS { ssize_t|sys||write(int fd, const void *buf, \ - int nbyte); } + size_t nbyte); } 2 STD { int|linux_sys||open(const char *path, int flags, \ linux_umode_t mode); } 3 NOARGS { int|sys||close(int fd); }
CVS commit: src/sys/compat/linux/arch/arm
Module Name:src Committed By: ozaki-r Date: Mon Mar 23 07:54:44 UTC 2015 Modified Files: src/sys/compat/linux/arch/arm: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c Added Files: src/sys/compat/linux/arch/arm: linux_systrace_args.c Log Message: Regen To generate a diff of this commit: cvs rdiff -u -r1.67 -r1.68 src/sys/compat/linux/arch/arm/linux_syscall.h \ src/sys/compat/linux/arch/arm/linux_syscallargs.h \ src/sys/compat/linux/arch/arm/linux_syscalls.c \ src/sys/compat/linux/arch/arm/linux_sysent.c cvs rdiff -u -r0 -r1.1 src/sys/compat/linux/arch/arm/linux_systrace_args.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/arm/linux_syscall.h diff -u src/sys/compat/linux/arch/arm/linux_syscall.h:1.67 src/sys/compat/linux/arch/arm/linux_syscall.h:1.68 --- src/sys/compat/linux/arch/arm/linux_syscall.h:1.67 Mon Mar 23 07:51:45 2015 +++ src/sys/compat/linux/arch/arm/linux_syscall.h Mon Mar 23 07:54:44 2015 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_syscall.h,v 1.67 2015/03/23 07:51:45 ozaki-r Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.68 2015/03/23 07:54:44 ozaki-r Exp $ */ /* * System call numbers. Index: src/sys/compat/linux/arch/arm/linux_syscallargs.h diff -u src/sys/compat/linux/arch/arm/linux_syscallargs.h:1.67 src/sys/compat/linux/arch/arm/linux_syscallargs.h:1.68 --- src/sys/compat/linux/arch/arm/linux_syscallargs.h:1.67 Mon Mar 23 07:51:45 2015 +++ src/sys/compat/linux/arch/arm/linux_syscallargs.h Mon Mar 23 07:54:44 2015 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_syscallargs.h,v 1.67 2015/03/23 07:51:45 ozaki-r Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.68 2015/03/23 07:54:44 ozaki-r Exp $ */ /* * System call argument lists. Index: src/sys/compat/linux/arch/arm/linux_syscalls.c diff -u src/sys/compat/linux/arch/arm/linux_syscalls.c:1.67 src/sys/compat/linux/arch/arm/linux_syscalls.c:1.68 --- src/sys/compat/linux/arch/arm/linux_syscalls.c:1.67 Mon Mar 23 07:51:45 2015 +++ src/sys/compat/linux/arch/arm/linux_syscalls.c Mon Mar 23 07:54:44 2015 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_syscalls.c,v 1.67 2015/03/23 07:51:45 ozaki-r Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.68 2015/03/23 07:54:44 ozaki-r Exp $ */ /* * System call names. @@ -8,7 +8,7 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: linux_syscalls.c,v 1.67 2015/03/23 07:51:45 ozaki-r Exp $); +__KERNEL_RCSID(0, $NetBSD: linux_syscalls.c,v 1.68 2015/03/23 07:54:44 ozaki-r Exp $); #if defined(_KERNEL_OPT) #include sys/param.h Index: src/sys/compat/linux/arch/arm/linux_sysent.c diff -u src/sys/compat/linux/arch/arm/linux_sysent.c:1.67 src/sys/compat/linux/arch/arm/linux_sysent.c:1.68 --- src/sys/compat/linux/arch/arm/linux_sysent.c:1.67 Mon Mar 23 07:51:45 2015 +++ src/sys/compat/linux/arch/arm/linux_sysent.c Mon Mar 23 07:54:44 2015 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_sysent.c,v 1.67 2015/03/23 07:51:45 ozaki-r Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.68 2015/03/23 07:54:44 ozaki-r Exp $ */ /* * System call switch table. @@ -8,7 +8,7 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: linux_sysent.c,v 1.67 2015/03/23 07:51:45 ozaki-r Exp $); +__KERNEL_RCSID(0, $NetBSD: linux_sysent.c,v 1.68 2015/03/23 07:54:44 ozaki-r Exp $); #include sys/param.h #include sys/poll.h Added files: Index: src/sys/compat/linux/arch/arm/linux_systrace_args.c diff -u /dev/null src/sys/compat/linux/arch/arm/linux_systrace_args.c:1.1 --- /dev/null Mon Mar 23 07:54:44 2015 +++ src/sys/compat/linux/arch/arm/linux_systrace_args.c Mon Mar 23 07:54:44 2015 @@ -0,0 +1,5999 @@ +/* $NetBSD: linux_systrace_args.c,v 1.1 2015/03/23 07:54:44 ozaki-r Exp $ */ + +/* + * System call argument to DTrace register array converstion. + * + * DO NOT EDIT-- this file is automatically generated. + * This file is part of the DTrace syscall provider. + */ + +static void +systrace_args(register_t sysnum, const void *params, uintptr_t *uarg, size_t *n_args) +{ + intptr_t *iarg = (intptr_t *)uarg; + switch (sysnum) { + /* linux_sys_nosys */ + case 0: { + *n_args = 0; + break; + } + /* linux_sys_exit */ + case 1: { + struct linux_sys_exit_args *p = params; + iarg[0] = SCARG(p, rval); /* int */ + *n_args = 1; + break; + } + /* sys_fork */ + case 2: { + *n_args = 0; + break; + } + /* sys_read */ + case 3: { + struct sys_read_args *p = params; + iarg[0] = SCARG(p, fd); /* int */ + uarg[1] = (intptr_t) SCARG(p, buf); /* void * */ + uarg[2] = SCARG(p, nbyte); /* size_t */ + *n_args = 3; + break; + } + /* sys_write */ + case 4: { + struct sys_write_args *p = params; + iarg[0] = SCARG(p, fd); /* int */ + uarg[1] = (intptr_t) SCARG(p, buf); /* const void * */ + uarg[2] = SCARG(p, nbyte); /* size_t */ + *n_args = 3; + break; + } + /* linux_sys_open */ + case 5: { + struct linux_sys_open_args *p = params; + uarg[0] = (intptr_t) SCARG(p, path); /* const char * */
CVS commit: src/sys/compat/linux/arch/i386
Module Name:src Committed By: ozaki-r Date: Mon Mar 23 07:30:15 UTC 2015 Modified Files: src/sys/compat/linux/arch/i386: syscalls.master Log Message: Fix inconsistent argument names To generate a diff of this commit: cvs rdiff -u -r1.119 -r1.120 src/sys/compat/linux/arch/i386/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/i386/syscalls.master diff -u src/sys/compat/linux/arch/i386/syscalls.master:1.119 src/sys/compat/linux/arch/i386/syscalls.master:1.120 --- src/sys/compat/linux/arch/i386/syscalls.master:1.119 Sat Nov 22 13:18:45 2014 +++ src/sys/compat/linux/arch/i386/syscalls.master Mon Mar 23 07:30:15 2015 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.119 2014/11/22 13:18:45 njoly Exp $ + $NetBSD: syscalls.master,v 1.120 2015/03/23 07:30:15 ozaki-r Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -162,10 +162,10 @@ 81 STD { int|linux_sys||setgroups16(int gidsetsize, \ linux_gid16_t *gidset); } 82 STD { int|linux_sys||oldselect(struct linux_oldselect *lsp); } -83 NOARGS { int|sys||symlink(const char *path, const char *to); } +83 NOARGS { int|sys||symlink(const char *path, const char *link); } 84 NOARGS { int|compat_43_sys||lstat(const char *path, \ - struct stat43 *up); } oolstat -85 NOARGS { int|sys||readlink(const char *name, char *buf, \ + struct stat43 *ub); } oolstat +85 NOARGS { int|sys||readlink(const char *path, char *buf, \ int count); } #ifdef EXEC_AOUT 86 STD { int|linux_sys||uselib(const char *path); }
CVS commit: src/sys/compat/linux/arch/arm
Module Name:src Committed By: ozaki-r Date: Mon Mar 23 07:51:45 UTC 2015 Modified Files: src/sys/compat/linux/arch/arm: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c Log Message: Regen To generate a diff of this commit: cvs rdiff -u -r1.66 -r1.67 src/sys/compat/linux/arch/arm/linux_syscall.h \ src/sys/compat/linux/arch/arm/linux_syscallargs.h \ src/sys/compat/linux/arch/arm/linux_syscalls.c \ src/sys/compat/linux/arch/arm/linux_sysent.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/arm/linux_syscall.h diff -u src/sys/compat/linux/arch/arm/linux_syscall.h:1.66 src/sys/compat/linux/arch/arm/linux_syscall.h:1.67 --- src/sys/compat/linux/arch/arm/linux_syscall.h:1.66 Sat Mar 7 16:41:53 2015 +++ src/sys/compat/linux/arch/arm/linux_syscall.h Mon Mar 23 07:51:45 2015 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.66 2015/03/07 16:41:53 christos Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.67 2015/03/23 07:51:45 ozaki-r Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.62 2014/11/22 13:18:45 njoly Exp + * created from NetBSD: syscalls.master,v 1.63 2015/03/23 07:50:03 ozaki-r Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ Index: src/sys/compat/linux/arch/arm/linux_syscallargs.h diff -u src/sys/compat/linux/arch/arm/linux_syscallargs.h:1.66 src/sys/compat/linux/arch/arm/linux_syscallargs.h:1.67 --- src/sys/compat/linux/arch/arm/linux_syscallargs.h:1.66 Sat Mar 7 16:41:53 2015 +++ src/sys/compat/linux/arch/arm/linux_syscallargs.h Mon Mar 23 07:51:45 2015 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscallargs.h,v 1.66 2015/03/07 16:41:53 christos Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.67 2015/03/23 07:51:45 ozaki-r Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.62 2014/11/22 13:18:45 njoly Exp + * created from NetBSD: syscalls.master,v 1.63 2015/03/23 07:50:03 ozaki-r Exp */ #ifndef _LINUX_SYS_SYSCALLARGS_H_ Index: src/sys/compat/linux/arch/arm/linux_syscalls.c diff -u src/sys/compat/linux/arch/arm/linux_syscalls.c:1.66 src/sys/compat/linux/arch/arm/linux_syscalls.c:1.67 --- src/sys/compat/linux/arch/arm/linux_syscalls.c:1.66 Sat Mar 7 16:41:53 2015 +++ src/sys/compat/linux/arch/arm/linux_syscalls.c Mon Mar 23 07:51:45 2015 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_syscalls.c,v 1.66 2015/03/07 16:41:53 christos Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.67 2015/03/23 07:51:45 ozaki-r Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.62 2014/11/22 13:18:45 njoly Exp + * created from NetBSD: syscalls.master,v 1.63 2015/03/23 07:50:03 ozaki-r Exp */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: linux_syscalls.c,v 1.66 2015/03/07 16:41:53 christos Exp $); +__KERNEL_RCSID(0, $NetBSD: linux_syscalls.c,v 1.67 2015/03/23 07:51:45 ozaki-r Exp $); #if defined(_KERNEL_OPT) #include sys/param.h Index: src/sys/compat/linux/arch/arm/linux_sysent.c diff -u src/sys/compat/linux/arch/arm/linux_sysent.c:1.66 src/sys/compat/linux/arch/arm/linux_sysent.c:1.67 --- src/sys/compat/linux/arch/arm/linux_sysent.c:1.66 Sat Mar 7 16:41:53 2015 +++ src/sys/compat/linux/arch/arm/linux_sysent.c Mon Mar 23 07:51:45 2015 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_sysent.c,v 1.66 2015/03/07 16:41:53 christos Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.67 2015/03/23 07:51:45 ozaki-r Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.62 2014/11/22 13:18:45 njoly Exp + * created from NetBSD: syscalls.master,v 1.63 2015/03/23 07:50:03 ozaki-r Exp */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: linux_sysent.c,v 1.66 2015/03/07 16:41:53 christos Exp $); +__KERNEL_RCSID(0, $NetBSD: linux_sysent.c,v 1.67 2015/03/23 07:51:45 ozaki-r Exp $); #include sys/param.h #include sys/poll.h @@ -27,1037 +27,1912 @@ __KERNEL_RCSID(0, $NetBSD: linux_sysent #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 linux_sysent[] = { - { 0, 0, 0, - (sy_call_t *)linux_sys_nosys, 0, 0 }, /* 0 = nosys */ - { ns(struct linux_sys_exit_args), 0, - (sy_call_t *)linux_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 linux_sys_open_args), SYCALL_ARG_PTR, - (sy_call_t *)linux_sys_open,
CVS commit: src/sys/compat/linux/arch/arm
Module Name:src Committed By: ozaki-r Date: Mon Mar 23 07:52:36 UTC 2015 Modified Files: src/sys/compat/linux/arch/arm: syscalls.conf Log Message: Add linux_systrace_args.c for arm To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/compat/linux/arch/arm/syscalls.conf Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/arm/syscalls.conf diff -u src/sys/compat/linux/arch/arm/syscalls.conf:1.2 src/sys/compat/linux/arch/arm/syscalls.conf:1.3 --- src/sys/compat/linux/arch/arm/syscalls.conf:1.2 Wed Jan 23 16:14:20 2002 +++ src/sys/compat/linux/arch/arm/syscalls.conf Mon Mar 23 07:52:36 2015 @@ -1,9 +1,10 @@ -# $NetBSD: syscalls.conf,v 1.2 2002/01/23 16:14:20 bjh21 Exp $ +# $NetBSD: syscalls.conf,v 1.3 2015/03/23 07:52:36 ozaki-r Exp $ sysnames=linux_syscalls.c sysnumhdr=linux_syscall.h syssw=linux_sysent.c sysarghdr=linux_syscallargs.h +systrace=linux_systrace_args.c compatopts= libcompatopts=
CVS commit: src/sys/compat/linux/arch/arm
Module Name:src Committed By: ozaki-r Date: Mon Mar 23 07:50:03 UTC 2015 Modified Files: src/sys/compat/linux/arch/arm: syscalls.master Log Message: Fix inconsistent argument names To generate a diff of this commit: cvs rdiff -u -r1.62 -r1.63 src/sys/compat/linux/arch/arm/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/arm/syscalls.master diff -u src/sys/compat/linux/arch/arm/syscalls.master:1.62 src/sys/compat/linux/arch/arm/syscalls.master:1.63 --- src/sys/compat/linux/arch/arm/syscalls.master:1.62 Sat Nov 22 13:18:45 2014 +++ src/sys/compat/linux/arch/arm/syscalls.master Mon Mar 23 07:50:03 2015 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.62 2014/11/22 13:18:45 njoly Exp $ + $NetBSD: syscalls.master,v 1.63 2015/03/23 07:50:03 ozaki-r Exp $ ; Derived from sys/compat/linux/arch/*/syscalls.master ; and from Linux 2.4.12 arch/arm/kernel/calls.S @@ -161,10 +161,10 @@ 81 STD { int|linux_sys||setgroups16(int gidsetsize, \ linux_gid16_t *gidset); } 82 STD { int|linux_sys||oldselect(struct linux_oldselect *lsp); } -83 NOARGS { int|sys||symlink(const char *path, const char *to); } +83 NOARGS { int|sys||symlink(const char *path, const char *link); } 84 NOARGS { int|compat_43_sys||lstat(const char *path, \ - struct stat43 *up); } oolstat -85 NOARGS { int|sys||readlink(const char *name, char *buf, \ + struct stat43 *ub); } oolstat +85 NOARGS { int|sys||readlink(const char *path, char *buf, \ int count); } #ifdef EXEC_AOUT 86 STD { int|linux_sys||uselib(const char *path); }
CVS commit: src/sys/compat/linux/arch/i386
Module Name:src Committed By: ozaki-r Date: Mon Mar 23 07:40:31 UTC 2015 Modified Files: src/sys/compat/linux/arch/i386: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c linux_systrace_args.c Log Message: Regen To generate a diff of this commit: cvs rdiff -u -r1.105 -r1.106 src/sys/compat/linux/arch/i386/linux_syscall.h \ src/sys/compat/linux/arch/i386/linux_syscallargs.h \ src/sys/compat/linux/arch/i386/linux_sysent.c cvs rdiff -u -r1.106 -r1.107 src/sys/compat/linux/arch/i386/linux_syscalls.c cvs rdiff -u -r1.1 -r1.2 src/sys/compat/linux/arch/i386/linux_systrace_args.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/i386/linux_syscall.h diff -u src/sys/compat/linux/arch/i386/linux_syscall.h:1.105 src/sys/compat/linux/arch/i386/linux_syscall.h:1.106 --- src/sys/compat/linux/arch/i386/linux_syscall.h:1.105 Sat Mar 7 16:41:53 2015 +++ src/sys/compat/linux/arch/i386/linux_syscall.h Mon Mar 23 07:40:31 2015 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.105 2015/03/07 16:41:53 christos Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.106 2015/03/23 07:40:31 ozaki-r Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.119 2014/11/22 13:18:45 njoly Exp + * created from NetBSD: syscalls.master,v 1.120 2015/03/23 07:30:15 ozaki-r Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ Index: src/sys/compat/linux/arch/i386/linux_syscallargs.h diff -u src/sys/compat/linux/arch/i386/linux_syscallargs.h:1.105 src/sys/compat/linux/arch/i386/linux_syscallargs.h:1.106 --- src/sys/compat/linux/arch/i386/linux_syscallargs.h:1.105 Sat Mar 7 16:41:53 2015 +++ src/sys/compat/linux/arch/i386/linux_syscallargs.h Mon Mar 23 07:40:31 2015 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscallargs.h,v 1.105 2015/03/07 16:41:53 christos Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.106 2015/03/23 07:40:31 ozaki-r Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.119 2014/11/22 13:18:45 njoly Exp + * created from NetBSD: syscalls.master,v 1.120 2015/03/23 07:30:15 ozaki-r Exp */ #ifndef _LINUX_SYS_SYSCALLARGS_H_ Index: src/sys/compat/linux/arch/i386/linux_sysent.c diff -u src/sys/compat/linux/arch/i386/linux_sysent.c:1.105 src/sys/compat/linux/arch/i386/linux_sysent.c:1.106 --- src/sys/compat/linux/arch/i386/linux_sysent.c:1.105 Sat Mar 7 16:41:53 2015 +++ src/sys/compat/linux/arch/i386/linux_sysent.c Mon Mar 23 07:40:31 2015 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_sysent.c,v 1.105 2015/03/07 16:41:53 christos Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.106 2015/03/23 07:40:31 ozaki-r Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.119 2014/11/22 13:18:45 njoly Exp + * created from NetBSD: syscalls.master,v 1.120 2015/03/23 07:30:15 ozaki-r Exp */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: linux_sysent.c,v 1.105 2015/03/07 16:41:53 christos Exp $); +__KERNEL_RCSID(0, $NetBSD: linux_sysent.c,v 1.106 2015/03/23 07:40:31 ozaki-r Exp $); #include sys/param.h #include sys/poll.h @@ -26,1037 +26,1923 @@ __KERNEL_RCSID(0, $NetBSD: linux_sysent #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 linux_sysent[] = { - { 0, 0, 0, - (sy_call_t *)linux_sys_nosys, 0, 0 }, /* 0 = syscall */ - { ns(struct linux_sys_exit_args), 0, - (sy_call_t *)linux_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 linux_sys_open_args), SYCALL_ARG_PTR, - (sy_call_t *)linux_sys_open, 0, 0 }, /* 5 = open */ - { ns(struct sys_close_args), 0, - (sy_call_t *)sys_close, 0, 0 }, /* 6 = close */ - { ns(struct linux_sys_waitpid_args), SYCALL_ARG_PTR, - (sy_call_t *)linux_sys_waitpid, 0, 0 }, /* 7 = waitpid */ - { ns(struct linux_sys_creat_args), SYCALL_ARG_PTR, - (sy_call_t *)linux_sys_creat, 0, 0 }, /* 8 = creat */ - { ns(struct sys_link_args), SYCALL_ARG_PTR, - (sy_call_t *)sys_link, 0, 0 }, /* 9 = link */ - { ns(struct linux_sys_unlink_args), SYCALL_ARG_PTR, - (sy_call_t *)linux_sys_unlink, 0, 0 }, /* 10 = unlink */ - { ns(struct sys_execve_args), SYCALL_ARG_PTR, - (sy_call_t *)sys_execve, 0, 0 }, /* 11 = execve */ - { ns(struct sys_chdir_args), SYCALL_ARG_PTR, - (sy_call_t *)sys_chdir, 0, 0 }, /* 12 = chdir */ - { ns(struct linux_sys_time_args), SYCALL_ARG_PTR, -
CVS commit: src/sys/compat/linux/arch/amd64
Module Name:src Committed By: christos Date: Sat Mar 7 03:25:19 UTC 2015 Modified Files: src/sys/compat/linux/arch/amd64: syscalls.master Log Message: fix inconsistent names To generate a diff of this commit: cvs rdiff -u -r1.53 -r1.54 src/sys/compat/linux/arch/amd64/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/amd64/syscalls.master diff -u src/sys/compat/linux/arch/amd64/syscalls.master:1.53 src/sys/compat/linux/arch/amd64/syscalls.master:1.54 --- src/sys/compat/linux/arch/amd64/syscalls.master:1.53 Sat Nov 22 08:18:45 2014 +++ src/sys/compat/linux/arch/amd64/syscalls.master Fri Mar 6 22:25:19 2015 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.53 2014/11/22 13:18:45 njoly Exp $ + $NetBSD: syscalls.master,v 1.54 2015/03/07 03:25:19 christos Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -234,8 +234,8 @@ 85 STD { int|linux_sys||creat(const char *path, linux_umode_t mode); } 86 NOARGS { int|sys||link(const char *path, const char *link); } 87 STD { int|linux_sys||unlink(const char *path); } -88 NOARGS { int|sys||symlink(const char *path, const char *to); } -89 NOARGS { int|sys||readlink(const char *name, char *buf, \ +88 NOARGS { int|sys||symlink(const char *path, const char *link); } +89 NOARGS { int|sys||readlink(const char *path, char *buf, \ int count); } 90 NOARGS { int|sys||chmod(const char *path, linux_umode_t mode); } 91 NOARGS { int|sys||fchmod(int fd, linux_umode_t mode); }
CVS commit: src/sys/compat/linux/arch
Module Name:src Committed By: njoly Date: Sat Nov 22 13:20:35 UTC 2014 Modified Files: src/sys/compat/linux/arch/alpha: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/amd64: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/arm: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/i386: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/m68k: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/mips: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/powerpc: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c Log Message: Regen for ppoll signature fix To generate a diff of this commit: cvs rdiff -u -r1.94 -r1.95 src/sys/compat/linux/arch/alpha/linux_syscall.h \ src/sys/compat/linux/arch/alpha/linux_sysent.c cvs rdiff -u -r1.93 -r1.94 \ src/sys/compat/linux/arch/alpha/linux_syscallargs.h cvs rdiff -u -r1.95 -r1.96 src/sys/compat/linux/arch/alpha/linux_syscalls.c cvs rdiff -u -r1.54 -r1.55 src/sys/compat/linux/arch/amd64/linux_syscall.h \ src/sys/compat/linux/arch/amd64/linux_syscallargs.h \ src/sys/compat/linux/arch/amd64/linux_syscalls.c \ src/sys/compat/linux/arch/amd64/linux_sysent.c cvs rdiff -u -r1.64 -r1.65 src/sys/compat/linux/arch/arm/linux_syscall.h \ src/sys/compat/linux/arch/arm/linux_syscallargs.h \ src/sys/compat/linux/arch/arm/linux_syscalls.c \ src/sys/compat/linux/arch/arm/linux_sysent.c cvs rdiff -u -r1.103 -r1.104 src/sys/compat/linux/arch/i386/linux_syscall.h \ src/sys/compat/linux/arch/i386/linux_syscallargs.h \ src/sys/compat/linux/arch/i386/linux_sysent.c cvs rdiff -u -r1.104 -r1.105 src/sys/compat/linux/arch/i386/linux_syscalls.c cvs rdiff -u -r1.94 -r1.95 src/sys/compat/linux/arch/m68k/linux_syscall.h \ src/sys/compat/linux/arch/m68k/linux_syscalls.c \ src/sys/compat/linux/arch/m68k/linux_sysent.c cvs rdiff -u -r1.93 -r1.94 src/sys/compat/linux/arch/m68k/linux_syscallargs.h cvs rdiff -u -r1.61 -r1.62 src/sys/compat/linux/arch/mips/linux_syscall.h cvs rdiff -u -r1.60 -r1.61 src/sys/compat/linux/arch/mips/linux_syscallargs.h \ src/sys/compat/linux/arch/mips/linux_syscalls.c \ src/sys/compat/linux/arch/mips/linux_sysent.c cvs rdiff -u -r1.70 -r1.71 src/sys/compat/linux/arch/powerpc/linux_syscall.h \ src/sys/compat/linux/arch/powerpc/linux_sysent.c cvs rdiff -u -r1.69 -r1.70 \ src/sys/compat/linux/arch/powerpc/linux_syscallargs.h \ src/sys/compat/linux/arch/powerpc/linux_syscalls.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/alpha/linux_syscall.h diff -u src/sys/compat/linux/arch/alpha/linux_syscall.h:1.94 src/sys/compat/linux/arch/alpha/linux_syscall.h:1.95 --- src/sys/compat/linux/arch/alpha/linux_syscall.h:1.94 Thu May 29 10:36:31 2014 +++ src/sys/compat/linux/arch/alpha/linux_syscall.h Sat Nov 22 13:20:35 2014 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.94 2014/05/29 10:36:31 njoly Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.95 2014/11/22 13:20:35 njoly Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.88 2014/05/29 10:35:26 njoly Exp + * created from NetBSD: syscalls.master,v 1.89 2014/11/22 13:18:45 njoly Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -639,7 +639,7 @@ /* syscall: faccessat ret: int args: int const char * int */ #define LINUX_SYS_faccessat 462 -/* syscall: ppoll ret: int args: struct pollfd * int struct linux_timespec * linux_sigset_t * */ +/* syscall: ppoll ret: int args: struct pollfd * u_int struct linux_timespec * linux_sigset_t * */ #define LINUX_SYS_ppoll 464 /* syscall: set_robust_list ret: int args: struct linux_robust_list_head * size_t */ Index: src/sys/compat/linux/arch/alpha/linux_sysent.c diff -u src/sys/compat/linux/arch/alpha/linux_sysent.c:1.94 src/sys/compat/linux/arch/alpha/linux_sysent.c:1.95 --- src/sys/compat/linux/arch/alpha/linux_sysent.c:1.94 Thu May 29 10:36:31 2014 +++ src/sys/compat/linux/arch/alpha/linux_sysent.c Sat Nov 22 13:20:35 2014 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_sysent.c,v 1.94 2014/05/29 10:36:31 njoly Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.95 2014/11/22 13:20:35 njoly Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.88 2014/05/29 10:35:26 njoly Exp + * created from NetBSD: syscalls.master,v 1.89 2014/11/22 13:18:45 njoly Exp */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: linux_sysent.c,v 1.94
CVS commit: src/sys/compat/linux/arch/powerpc
Module Name:src Committed By: christos Date: Fri Sep 26 20:32:52 UTC 2014 Modified Files: src/sys/compat/linux/arch/powerpc: linux_ptrace.c Log Message: set error return on error (from max) To generate a diff of this commit: cvs rdiff -u -r1.26 -r1.27 src/sys/compat/linux/arch/powerpc/linux_ptrace.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/powerpc/linux_ptrace.c diff -u src/sys/compat/linux/arch/powerpc/linux_ptrace.c:1.26 src/sys/compat/linux/arch/powerpc/linux_ptrace.c:1.27 --- src/sys/compat/linux/arch/powerpc/linux_ptrace.c:1.26 Sun Sep 21 12:59:08 2014 +++ src/sys/compat/linux/arch/powerpc/linux_ptrace.c Fri Sep 26 16:32:52 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_ptrace.c,v 1.26 2014/09/21 16:59:08 christos Exp $ */ +/* $NetBSD: linux_ptrace.c,v 1.27 2014/09/26 20:32:52 christos Exp $ */ /*- * Copyright (c) 1999, 2001 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: linux_ptrace.c,v 1.26 2014/09/21 16:59:08 christos Exp $); +__KERNEL_RCSID(0, $NetBSD: linux_ptrace.c,v 1.27 2014/09/26 20:32:52 christos Exp $); #include sys/param.h #include sys/malloc.h @@ -159,6 +159,7 @@ linux_sys_ptrace_arch(struct lwp *l, con mutex_enter(proc_lock); if ((t = proc_find(SCARG(uap, pid))) == NULL) { mutex_exit(proc_lock); + error = ESRCH; goto out; } mutex_enter(t-p_lock);
CVS commit: src/sys/compat/linux/arch/i386
Module Name:src Committed By: christos Date: Sun Sep 21 16:58:42 UTC 2014 Modified Files: src/sys/compat/linux/arch/i386: linux_ptrace.c Log Message: fix leak To generate a diff of this commit: cvs rdiff -u -r1.28 -r1.29 src/sys/compat/linux/arch/i386/linux_ptrace.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/i386/linux_ptrace.c diff -u src/sys/compat/linux/arch/i386/linux_ptrace.c:1.28 src/sys/compat/linux/arch/i386/linux_ptrace.c:1.29 --- src/sys/compat/linux/arch/i386/linux_ptrace.c:1.28 Tue Apr 15 13:53:09 2014 +++ src/sys/compat/linux/arch/i386/linux_ptrace.c Sun Sep 21 12:58:42 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_ptrace.c,v 1.28 2014/04/15 17:53:09 maxv Exp $ */ +/* $NetBSD: linux_ptrace.c,v 1.29 2014/09/21 16:58:42 christos Exp $ */ /*- * Copyright (c) 1999 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: linux_ptrace.c,v 1.28 2014/04/15 17:53:09 maxv Exp $); +__KERNEL_RCSID(0, $NetBSD: linux_ptrace.c,v 1.29 2014/09/21 16:58:42 christos Exp $); #include sys/param.h #include sys/malloc.h @@ -182,7 +182,8 @@ linux_sys_ptrace_arch(struct lwp *l, con mutex_enter(proc_lock); if ((t = proc_find(SCARG(uap, pid))) == NULL) { mutex_exit(proc_lock); - return ESRCH; + error = ESRCH; + goto out; } mutex_enter(t-p_lock); mutex_exit(proc_lock);
CVS commit: src/sys/compat/linux/arch/powerpc
Module Name:src Committed By: christos Date: Sun Sep 21 16:59:09 UTC 2014 Modified Files: src/sys/compat/linux/arch/powerpc: linux_ptrace.c Log Message: fix leak To generate a diff of this commit: cvs rdiff -u -r1.25 -r1.26 src/sys/compat/linux/arch/powerpc/linux_ptrace.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/powerpc/linux_ptrace.c diff -u src/sys/compat/linux/arch/powerpc/linux_ptrace.c:1.25 src/sys/compat/linux/arch/powerpc/linux_ptrace.c:1.26 --- src/sys/compat/linux/arch/powerpc/linux_ptrace.c:1.25 Tue Apr 15 13:53:09 2014 +++ src/sys/compat/linux/arch/powerpc/linux_ptrace.c Sun Sep 21 12:59:08 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_ptrace.c,v 1.25 2014/04/15 17:53:09 maxv Exp $ */ +/* $NetBSD: linux_ptrace.c,v 1.26 2014/09/21 16:59:08 christos Exp $ */ /*- * Copyright (c) 1999, 2001 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: linux_ptrace.c,v 1.25 2014/04/15 17:53:09 maxv Exp $); +__KERNEL_RCSID(0, $NetBSD: linux_ptrace.c,v 1.26 2014/09/21 16:59:08 christos Exp $); #include sys/param.h #include sys/malloc.h @@ -159,7 +159,7 @@ linux_sys_ptrace_arch(struct lwp *l, con mutex_enter(proc_lock); if ((t = proc_find(SCARG(uap, pid))) == NULL) { mutex_exit(proc_lock); - return ESRCH; + goto out; } mutex_enter(t-p_lock); mutex_exit(proc_lock);
CVS commit: src/sys/compat/linux/arch
Module Name:src Committed By: njoly Date: Wed Jun 25 16:30:42 UTC 2014 Modified Files: src/sys/compat/linux/arch/alpha: linux_fcntl.h src/sys/compat/linux/arch/amd64: linux_fcntl.h src/sys/compat/linux/arch/arm: linux_fcntl.h src/sys/compat/linux/arch/i386: linux_fcntl.h src/sys/compat/linux/arch/m68k: linux_fcntl.h src/sys/compat/linux/arch/mips: linux_fcntl.h src/sys/compat/linux/arch/powerpc: linux_fcntl.h Log Message: Add a few missing open(2) flags (LINUX_O_*). Fix alpha wrong values. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/compat/linux/arch/alpha/linux_fcntl.h cvs rdiff -u -r1.4 -r1.5 src/sys/compat/linux/arch/amd64/linux_fcntl.h cvs rdiff -u -r1.4 -r1.5 src/sys/compat/linux/arch/arm/linux_fcntl.h cvs rdiff -u -r1.7 -r1.8 src/sys/compat/linux/arch/i386/linux_fcntl.h cvs rdiff -u -r1.4 -r1.5 src/sys/compat/linux/arch/m68k/linux_fcntl.h cvs rdiff -u -r1.7 -r1.8 src/sys/compat/linux/arch/mips/linux_fcntl.h cvs rdiff -u -r1.9 -r1.10 src/sys/compat/linux/arch/powerpc/linux_fcntl.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/alpha/linux_fcntl.h diff -u src/sys/compat/linux/arch/alpha/linux_fcntl.h:1.4 src/sys/compat/linux/arch/alpha/linux_fcntl.h:1.5 --- src/sys/compat/linux/arch/alpha/linux_fcntl.h:1.4 Tue Nov 2 18:01:25 2010 +++ src/sys/compat/linux/arch/alpha/linux_fcntl.h Wed Jun 25 16:30:42 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_fcntl.h,v 1.4 2010/11/02 18:01:25 chs Exp $ */ +/* $NetBSD: linux_fcntl.h,v 1.5 2014/06/25 16:30:42 njoly Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -45,10 +45,14 @@ #define LINUX_O_TRUNC 0x000400 #define LINUX_O_EXCL 0x000800 #define LINUX_O_NDELAY LINUX_O_NONBLOCK +#define LINUX_O_NOCTTY 0x001000 #define LINUX_FASYNC 0x002000 #define LINUX_O_SYNC 0x004000 -#define LINUX_O_NOCTTY 0x008000 -#define LINUX_O_DIRECTORY 0x04 +#define LINUX_O_DIRECTORY 0x008000 +#define LINUX_O_NOFOLLOW 0x01 +#define LINUX_O_LARGEFILE 0x02 +#define LINUX_O_DIRECT 0x08 +#define LINUX_O_NOATIME 0x10 #define LINUX_O_CLOEXEC 0x20 /* fcntl(2) operations */ Index: src/sys/compat/linux/arch/amd64/linux_fcntl.h diff -u src/sys/compat/linux/arch/amd64/linux_fcntl.h:1.4 src/sys/compat/linux/arch/amd64/linux_fcntl.h:1.5 --- src/sys/compat/linux/arch/amd64/linux_fcntl.h:1.4 Tue Nov 2 18:01:25 2010 +++ src/sys/compat/linux/arch/amd64/linux_fcntl.h Wed Jun 25 16:30:42 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_fcntl.h,v 1.4 2010/11/02 18:01:25 chs Exp $ */ +/* $NetBSD: linux_fcntl.h,v 1.5 2014/06/25 16:30:42 njoly Exp $ */ /*- * Copyright (c) 2005 Emmanuel Dreyfus, all rights reserved. @@ -50,7 +50,11 @@ #define LINUX_O_NDELAY LINUX_O_NONBLOCK #define LINUX_O_SYNC 0x01000 #define LINUX_FASYNC 0x02000 +#define LINUX_O_DIRECT 0x04000 +#define LINUX_O_LARGEFILE 0x08000 #define LINUX_O_DIRECTORY 0x1 +#define LINUX_O_NOFOLLOW 0x2 +#define LINUX_O_NOATIME 0x4 #define LINUX_O_CLOEXEC 0x8 /* fcntl(2) operations */ Index: src/sys/compat/linux/arch/arm/linux_fcntl.h diff -u src/sys/compat/linux/arch/arm/linux_fcntl.h:1.4 src/sys/compat/linux/arch/arm/linux_fcntl.h:1.5 --- src/sys/compat/linux/arch/arm/linux_fcntl.h:1.4 Tue Nov 2 18:01:25 2010 +++ src/sys/compat/linux/arch/arm/linux_fcntl.h Wed Jun 25 16:30:42 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_fcntl.h,v 1.4 2010/11/02 18:01:25 chs Exp $ */ +/* $NetBSD: linux_fcntl.h,v 1.5 2014/06/25 16:30:42 njoly Exp $ */ /*- * Copyright (c) 1995, 1998 The NetBSD Foundation, Inc. @@ -49,6 +49,10 @@ #define LINUX_O_SYNC 0x01000 #define LINUX_FASYNC 0x02000 #define LINUX_O_DIRECTORY 0x04000 +#define LINUX_O_NOFOLLOW 0x08000 +#define LINUX_O_DIRECT 0x1 +#define LINUX_O_LARGEFILE 0x2 +#define LINUX_O_NOATIME 0x4 #define LINUX_O_CLOEXEC 0x8 /* fcntl(2) operations */ Index: src/sys/compat/linux/arch/i386/linux_fcntl.h diff -u src/sys/compat/linux/arch/i386/linux_fcntl.h:1.7 src/sys/compat/linux/arch/i386/linux_fcntl.h:1.8 --- src/sys/compat/linux/arch/i386/linux_fcntl.h:1.7 Tue Nov 2 18:01:26 2010 +++ src/sys/compat/linux/arch/i386/linux_fcntl.h Wed Jun 25 16:30:42 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_fcntl.h,v 1.7 2010/11/02 18:01:26 chs Exp $ */ +/* $NetBSD: linux_fcntl.h,v 1.8 2014/06/25 16:30:42 njoly Exp $ */ /*- * Copyright (c) 1995, 1998 The NetBSD Foundation, Inc. @@ -48,7 +48,11 @@ #define LINUX_O_NDELAY LINUX_O_NONBLOCK #define LINUX_O_SYNC 0x01000 #define LINUX_FASYNC 0x02000 +#define LINUX_O_DIRECT 0x04000 +#define LINUX_O_LARGEFILE 0x08000 #define LINUX_O_DIRECTORY 0x1 +#define LINUX_O_NOFOLLOW 0x2 +#define LINUX_O_NOATIME 0x4 #define LINUX_O_CLOEXEC 0x8 /* fcntl(2) operations */ Index: src/sys/compat/linux/arch/m68k/linux_fcntl.h diff -u
CVS commit: src/sys/compat/linux/arch
Module Name:src Committed By: njoly Date: Sat May 31 08:51:19 UTC 2014 Modified Files: src/sys/compat/linux/arch/amd64: syscalls.master src/sys/compat/linux/arch/arm: syscalls.master src/sys/compat/linux/arch/i386: syscalls.master src/sys/compat/linux/arch/m68k: syscalls.master src/sys/compat/linux/arch/mips: syscalls.master src/sys/compat/linux/arch/powerpc: syscalls.master Log Message: Fix munmap(2) signature. To generate a diff of this commit: cvs rdiff -u -r1.51 -r1.52 src/sys/compat/linux/arch/amd64/syscalls.master cvs rdiff -u -r1.60 -r1.61 src/sys/compat/linux/arch/arm/syscalls.master cvs rdiff -u -r1.117 -r1.118 src/sys/compat/linux/arch/i386/syscalls.master cvs rdiff -u -r1.87 -r1.88 src/sys/compat/linux/arch/m68k/syscalls.master cvs rdiff -u -r1.55 -r1.56 src/sys/compat/linux/arch/mips/syscalls.master cvs rdiff -u -r1.64 -r1.65 src/sys/compat/linux/arch/powerpc/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/amd64/syscalls.master diff -u src/sys/compat/linux/arch/amd64/syscalls.master:1.51 src/sys/compat/linux/arch/amd64/syscalls.master:1.52 --- src/sys/compat/linux/arch/amd64/syscalls.master:1.51 Thu May 29 10:35:26 2014 +++ src/sys/compat/linux/arch/amd64/syscalls.master Sat May 31 08:51:19 2014 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.51 2014/05/29 10:35:26 njoly Exp $ + $NetBSD: syscalls.master,v 1.52 2014/05/31 08:51:19 njoly Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -85,7 +85,7 @@ linux_off_t offset); } 10 STD { int|linux_sys||mprotect(const void *start, \ unsigned long len, int prot); } -11 NOARGS { int|sys||munmap(void *addr, int len); } +11 NOARGS { int|sys||munmap(void *addr, size_t len); } 12 STD { int|linux_sys||brk(char *nsize); } 13 STD { int|linux_sys||rt_sigaction(int signum, \ const struct linux_sigaction *nsa, \ Index: src/sys/compat/linux/arch/arm/syscalls.master diff -u src/sys/compat/linux/arch/arm/syscalls.master:1.60 src/sys/compat/linux/arch/arm/syscalls.master:1.61 --- src/sys/compat/linux/arch/arm/syscalls.master:1.60 Thu May 29 10:35:27 2014 +++ src/sys/compat/linux/arch/arm/syscalls.master Sat May 31 08:51:19 2014 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.60 2014/05/29 10:35:27 njoly Exp $ + $NetBSD: syscalls.master,v 1.61 2014/05/31 08:51:19 njoly Exp $ ; Derived from sys/compat/linux/arch/*/syscalls.master ; and from Linux 2.4.12 arch/arm/kernel/calls.S @@ -177,7 +177,7 @@ 89 STD { int|linux_sys||readdir(int fd, void *dent, \ unsigned int count); } 90 STD { int|linux_sys||old_mmap(struct linux_oldmmap *lmp); } -91 NOARGS { int|sys||munmap(void *addr, int len); } +91 NOARGS { int|sys||munmap(void *addr, size_t len); } 92 NOARGS { int|compat_43_sys||truncate(const char *path, \ long length); } 93 NOARGS { int|compat_43_sys||ftruncate(int fd, long length); } Index: src/sys/compat/linux/arch/i386/syscalls.master diff -u src/sys/compat/linux/arch/i386/syscalls.master:1.117 src/sys/compat/linux/arch/i386/syscalls.master:1.118 --- src/sys/compat/linux/arch/i386/syscalls.master:1.117 Thu May 29 10:35:27 2014 +++ src/sys/compat/linux/arch/i386/syscalls.master Sat May 31 08:51:19 2014 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.117 2014/05/29 10:35:27 njoly Exp $ + $NetBSD: syscalls.master,v 1.118 2014/05/31 08:51:19 njoly Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -178,7 +178,7 @@ 89 STD { int|linux_sys||readdir(int fd, void *dent, \ unsigned int count); } 90 STD { int|linux_sys||old_mmap(struct linux_oldmmap *lmp); } -91 NOARGS { int|sys||munmap(void *addr, int len); } +91 NOARGS { int|sys||munmap(void *addr, size_t len); } 92 NOARGS { int|compat_43_sys||truncate(const char *path, \ long length); } 93 NOARGS { int|compat_43_sys||ftruncate(int fd, long length); } Index: src/sys/compat/linux/arch/m68k/syscalls.master diff -u src/sys/compat/linux/arch/m68k/syscalls.master:1.87 src/sys/compat/linux/arch/m68k/syscalls.master:1.88 --- src/sys/compat/linux/arch/m68k/syscalls.master:1.87 Thu May 29 10:35:27 2014 +++ src/sys/compat/linux/arch/m68k/syscalls.master Sat May 31 08:51:19 2014 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.87 2014/05/29 10:35:27 njoly Exp $ + $NetBSD: syscalls.master,v 1.88 2014/05/31 08:51:19 njoly Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -193,7 +193,7 @@ 89 STD { int|linux_sys||readdir(int fd, void *dent, \ unsigned int count); } 90 STD { int|linux_sys||old_mmap(struct linux_oldmmap *lmp); } -91 NOARGS { int|sys||munmap(void *addr, int len); } +91 NOARGS { int|sys||munmap(void *addr, size_t len); } 92 NOARGS { int|compat_43_sys||truncate(const char *path, \ long length); } #if !defined(_KERNEL) || defined(COMPAT_43) Index: src/sys/compat/linux/arch/mips/syscalls.master diff -u
CVS commit: src/sys/compat/linux/arch
Module Name:src Committed By: njoly Date: Sat May 31 08:52:55 UTC 2014 Modified Files: src/sys/compat/linux/arch/amd64: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/arm: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/i386: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/m68k: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/mips: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/powerpc: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c Log Message: Regen for munmap(2) signature. To generate a diff of this commit: cvs rdiff -u -r1.53 -r1.54 src/sys/compat/linux/arch/amd64/linux_syscall.h \ src/sys/compat/linux/arch/amd64/linux_syscallargs.h \ src/sys/compat/linux/arch/amd64/linux_syscalls.c \ src/sys/compat/linux/arch/amd64/linux_sysent.c cvs rdiff -u -r1.63 -r1.64 src/sys/compat/linux/arch/arm/linux_syscall.h \ src/sys/compat/linux/arch/arm/linux_syscallargs.h \ src/sys/compat/linux/arch/arm/linux_syscalls.c \ src/sys/compat/linux/arch/arm/linux_sysent.c cvs rdiff -u -r1.102 -r1.103 src/sys/compat/linux/arch/i386/linux_syscall.h \ src/sys/compat/linux/arch/i386/linux_syscallargs.h \ src/sys/compat/linux/arch/i386/linux_sysent.c cvs rdiff -u -r1.103 -r1.104 src/sys/compat/linux/arch/i386/linux_syscalls.c cvs rdiff -u -r1.93 -r1.94 src/sys/compat/linux/arch/m68k/linux_syscall.h \ src/sys/compat/linux/arch/m68k/linux_syscalls.c \ src/sys/compat/linux/arch/m68k/linux_sysent.c cvs rdiff -u -r1.92 -r1.93 src/sys/compat/linux/arch/m68k/linux_syscallargs.h cvs rdiff -u -r1.60 -r1.61 src/sys/compat/linux/arch/mips/linux_syscall.h cvs rdiff -u -r1.59 -r1.60 src/sys/compat/linux/arch/mips/linux_syscallargs.h \ src/sys/compat/linux/arch/mips/linux_syscalls.c \ src/sys/compat/linux/arch/mips/linux_sysent.c cvs rdiff -u -r1.69 -r1.70 src/sys/compat/linux/arch/powerpc/linux_syscall.h \ src/sys/compat/linux/arch/powerpc/linux_sysent.c cvs rdiff -u -r1.68 -r1.69 \ src/sys/compat/linux/arch/powerpc/linux_syscallargs.h \ src/sys/compat/linux/arch/powerpc/linux_syscalls.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/amd64/linux_syscall.h diff -u src/sys/compat/linux/arch/amd64/linux_syscall.h:1.53 src/sys/compat/linux/arch/amd64/linux_syscall.h:1.54 --- src/sys/compat/linux/arch/amd64/linux_syscall.h:1.53 Thu May 29 10:36:31 2014 +++ src/sys/compat/linux/arch/amd64/linux_syscall.h Sat May 31 08:52:54 2014 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.53 2014/05/29 10:36:31 njoly Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.54 2014/05/31 08:52:54 njoly Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.51 2014/05/29 10:35:26 njoly Exp + * created from NetBSD: syscalls.master,v 1.52 2014/05/31 08:51:19 njoly Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -45,7 +45,7 @@ /* syscall: mprotect ret: int args: const void * unsigned long int */ #define LINUX_SYS_mprotect 10 -/* syscall: munmap ret: int args: void * int */ +/* syscall: munmap ret: int args: void * size_t */ #define LINUX_SYS_munmap 11 /* syscall: brk ret: int args: char * */ Index: src/sys/compat/linux/arch/amd64/linux_syscallargs.h diff -u src/sys/compat/linux/arch/amd64/linux_syscallargs.h:1.53 src/sys/compat/linux/arch/amd64/linux_syscallargs.h:1.54 --- src/sys/compat/linux/arch/amd64/linux_syscallargs.h:1.53 Thu May 29 10:36:31 2014 +++ src/sys/compat/linux/arch/amd64/linux_syscallargs.h Sat May 31 08:52:54 2014 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscallargs.h,v 1.53 2014/05/29 10:36:31 njoly Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.54 2014/05/31 08:52:54 njoly Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.51 2014/05/29 10:35:26 njoly Exp + * created from NetBSD: syscalls.master,v 1.52 2014/05/31 08:51:19 njoly Exp */ #ifndef _LINUX_SYS_SYSCALLARGS_H_ Index: src/sys/compat/linux/arch/amd64/linux_syscalls.c diff -u src/sys/compat/linux/arch/amd64/linux_syscalls.c:1.53 src/sys/compat/linux/arch/amd64/linux_syscalls.c:1.54 --- src/sys/compat/linux/arch/amd64/linux_syscalls.c:1.53 Thu May 29 10:36:31 2014 +++ src/sys/compat/linux/arch/amd64/linux_syscalls.c Sat May 31 08:52:54 2014 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_syscalls.c,v 1.53 2014/05/29 10:36:31 njoly Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.54 2014/05/31 08:52:54 njoly Exp $ */ /* * System call names. * * DO NOT EDIT-- this
CVS commit: src/sys/compat/linux/arch
Module Name:src Committed By: njoly Date: Thu May 29 10:36:31 UTC 2014 Modified Files: src/sys/compat/linux/arch/alpha: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/amd64: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/arm: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/i386: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/m68k: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/mips: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c Log Message: Regen for utimes(2) change. To generate a diff of this commit: cvs rdiff -u -r1.93 -r1.94 src/sys/compat/linux/arch/alpha/linux_syscall.h \ src/sys/compat/linux/arch/alpha/linux_sysent.c cvs rdiff -u -r1.92 -r1.93 \ src/sys/compat/linux/arch/alpha/linux_syscallargs.h cvs rdiff -u -r1.94 -r1.95 src/sys/compat/linux/arch/alpha/linux_syscalls.c cvs rdiff -u -r1.52 -r1.53 src/sys/compat/linux/arch/amd64/linux_syscall.h \ src/sys/compat/linux/arch/amd64/linux_syscallargs.h \ src/sys/compat/linux/arch/amd64/linux_syscalls.c \ src/sys/compat/linux/arch/amd64/linux_sysent.c cvs rdiff -u -r1.62 -r1.63 src/sys/compat/linux/arch/arm/linux_syscall.h \ src/sys/compat/linux/arch/arm/linux_syscallargs.h \ src/sys/compat/linux/arch/arm/linux_syscalls.c \ src/sys/compat/linux/arch/arm/linux_sysent.c cvs rdiff -u -r1.101 -r1.102 src/sys/compat/linux/arch/i386/linux_syscall.h \ src/sys/compat/linux/arch/i386/linux_syscallargs.h \ src/sys/compat/linux/arch/i386/linux_sysent.c cvs rdiff -u -r1.102 -r1.103 src/sys/compat/linux/arch/i386/linux_syscalls.c cvs rdiff -u -r1.92 -r1.93 src/sys/compat/linux/arch/m68k/linux_syscall.h \ src/sys/compat/linux/arch/m68k/linux_syscalls.c \ src/sys/compat/linux/arch/m68k/linux_sysent.c cvs rdiff -u -r1.91 -r1.92 src/sys/compat/linux/arch/m68k/linux_syscallargs.h cvs rdiff -u -r1.59 -r1.60 src/sys/compat/linux/arch/mips/linux_syscall.h cvs rdiff -u -r1.58 -r1.59 src/sys/compat/linux/arch/mips/linux_syscallargs.h \ src/sys/compat/linux/arch/mips/linux_syscalls.c \ src/sys/compat/linux/arch/mips/linux_sysent.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/alpha/linux_syscall.h diff -u src/sys/compat/linux/arch/alpha/linux_syscall.h:1.93 src/sys/compat/linux/arch/alpha/linux_syscall.h:1.94 --- src/sys/compat/linux/arch/alpha/linux_syscall.h:1.93 Sat May 17 09:25:06 2014 +++ src/sys/compat/linux/arch/alpha/linux_syscall.h Thu May 29 10:36:31 2014 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.93 2014/05/17 09:25:06 njoly Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.94 2014/05/29 10:36:31 njoly Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.87 2014/05/17 09:23:51 njoly Exp + * created from NetBSD: syscalls.master,v 1.88 2014/05/29 10:35:26 njoly Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -501,7 +501,7 @@ /* syscall: setitimer ret: int args: int const struct itimerval50 * struct itimerval50 * */ #define LINUX_SYS_setitimer 362 -/* syscall: utimes ret: int args: char * struct linux_timeval * */ +/* syscall: utimes ret: int args: const char * const struct timeval50 * */ #define LINUX_SYS_utimes 363 /* syscall: getrusage ret: int args: int struct rusage50 * */ Index: src/sys/compat/linux/arch/alpha/linux_sysent.c diff -u src/sys/compat/linux/arch/alpha/linux_sysent.c:1.93 src/sys/compat/linux/arch/alpha/linux_sysent.c:1.94 --- src/sys/compat/linux/arch/alpha/linux_sysent.c:1.93 Sat May 17 09:25:06 2014 +++ src/sys/compat/linux/arch/alpha/linux_sysent.c Thu May 29 10:36:31 2014 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_sysent.c,v 1.93 2014/05/17 09:25:06 njoly Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.94 2014/05/29 10:36:31 njoly Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.87 2014/05/17 09:23:51 njoly Exp + * created from NetBSD: syscalls.master,v 1.88 2014/05/29 10:35:26 njoly Exp */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: linux_sysent.c,v 1.93 2014/05/17 09:25:06 njoly Exp $); +__KERNEL_RCSID(0, $NetBSD: linux_sysent.c,v 1.94 2014/05/29 10:36:31 njoly Exp $); #if defined(_KERNEL_OPT) #include opt_sysv.h @@ -796,8 +796,8 @@ struct sysent linux_sysent[] = { (sy_call_t *)compat_50_sys_getitimer },/* 361 = getitimer */ { ns(struct compat_50_sys_setitimer_args), SYCALL_ARG_PTR, (sy_call_t *)compat_50_sys_setitimer },/* 362 = setitimer */ - { ns(struct
CVS commit: src/sys/compat/linux/arch/alpha
Module Name:src Committed By: njoly Date: Fri May 23 12:30:12 UTC 2014 Modified Files: src/sys/compat/linux/arch/alpha: linux_socket.h Log Message: Add missing specific LINUX_SOCK_NONBLOCK value for alpha. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/sys/compat/linux/arch/alpha/linux_socket.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/alpha/linux_socket.h diff -u src/sys/compat/linux/arch/alpha/linux_socket.h:1.5 src/sys/compat/linux/arch/alpha/linux_socket.h:1.6 --- src/sys/compat/linux/arch/alpha/linux_socket.h:1.5 Sat Jan 25 13:49:27 2014 +++ src/sys/compat/linux/arch/alpha/linux_socket.h Fri May 23 12:30:12 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_socket.h,v 1.5 2014/01/25 13:49:27 njoly Exp $ */ +/* $NetBSD: linux_socket.h,v 1.6 2014/05/23 12:30:12 njoly Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -89,4 +89,10 @@ #define LINUX_SO_PEEK_OFF 42 #define LINUX_SO_NOFCS 43 +/* + * Flags for socket(). + * These are provided in the type parameter. + */ +#define LINUX_SOCK_NONBLOCK 0x4000 + #endif /* !_ALPHA_LINUX_SOCKET_H */
CVS commit: src/sys/compat/linux/arch
Module Name:src Committed By: njoly Date: Tue May 20 17:24:49 UTC 2014 Modified Files: src/sys/compat/linux/arch/amd64: syscalls.master src/sys/compat/linux/arch/arm: syscalls.master src/sys/compat/linux/arch/i386: syscalls.master src/sys/compat/linux/arch/m68k: syscalls.master src/sys/compat/linux/arch/mips: syscalls.master src/sys/compat/linux/arch/powerpc: syscalls.master Log Message: Fix getgroups/setgroups signature. To generate a diff of this commit: cvs rdiff -u -r1.49 -r1.50 src/sys/compat/linux/arch/amd64/syscalls.master cvs rdiff -u -r1.58 -r1.59 src/sys/compat/linux/arch/arm/syscalls.master cvs rdiff -u -r1.115 -r1.116 src/sys/compat/linux/arch/i386/syscalls.master cvs rdiff -u -r1.85 -r1.86 src/sys/compat/linux/arch/m68k/syscalls.master cvs rdiff -u -r1.53 -r1.54 src/sys/compat/linux/arch/mips/syscalls.master cvs rdiff -u -r1.62 -r1.63 src/sys/compat/linux/arch/powerpc/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/amd64/syscalls.master diff -u src/sys/compat/linux/arch/amd64/syscalls.master:1.49 src/sys/compat/linux/arch/amd64/syscalls.master:1.50 --- src/sys/compat/linux/arch/amd64/syscalls.master:1.49 Sat May 17 09:23:51 2014 +++ src/sys/compat/linux/arch/amd64/syscalls.master Tue May 20 17:24:49 2014 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.49 2014/05/17 09:23:51 njoly Exp $ + $NetBSD: syscalls.master,v 1.50 2014/05/20 17:24:49 njoly Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -269,8 +269,8 @@ 112 NOARGS { int|sys||setsid(void); } 113 NOARGS { int|sys||setreuid(uid_t ruid, uid_t euid); } 114 NOARGS { int|sys||setregid(gid_t rgid, gid_t egid); } -115 NOARGS { int|sys||getgroups(u_int gidsetsize, gid_t *gidset); } -116 NOARGS { int|sys||setgroups(u_int gidsetsize, gid_t *gidset); } +115 NOARGS { int|sys||getgroups(int gidsetsize, gid_t *gidset); } +116 NOARGS { int|sys||setgroups(int gidsetsize, gid_t *gidset); } 117 STD { int|linux_sys||setresuid(uid_t ruid, uid_t euid, \ uid_t suid); } 118 STD { int|linux_sys||getresuid(uid_t *ruid, uid_t *euid, \ Index: src/sys/compat/linux/arch/arm/syscalls.master diff -u src/sys/compat/linux/arch/arm/syscalls.master:1.58 src/sys/compat/linux/arch/arm/syscalls.master:1.59 --- src/sys/compat/linux/arch/arm/syscalls.master:1.58 Sat May 17 09:23:51 2014 +++ src/sys/compat/linux/arch/arm/syscalls.master Tue May 20 17:24:49 2014 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.58 2014/05/17 09:23:51 njoly Exp $ + $NetBSD: syscalls.master,v 1.59 2014/05/20 17:24:49 njoly Exp $ ; Derived from sys/compat/linux/arch/*/syscalls.master ; and from Linux 2.4.12 arch/arm/kernel/calls.S @@ -357,9 +357,9 @@ uid_t euid); } 204 NOARGS setregid32 { int|sys||setregid(gid_t rgid, \ gid_t egid); } -205 NOARGS getgroups32 { int|sys||getgroups(u_int gidsetsize, \ +205 NOARGS getgroups32 { int|sys||getgroups(int gidsetsize, \ gid_t *gidset); } -206 NOARGS setgroups32 { int|sys||setgroups(u_int gidsetsize, \ +206 NOARGS setgroups32 { int|sys||setgroups(int gidsetsize, \ gid_t *gidset); } 207 NOARGS fchown32 { int|sys||__posix_fchown(int fd, uid_t uid, \ gid_t gid); } Index: src/sys/compat/linux/arch/i386/syscalls.master diff -u src/sys/compat/linux/arch/i386/syscalls.master:1.115 src/sys/compat/linux/arch/i386/syscalls.master:1.116 --- src/sys/compat/linux/arch/i386/syscalls.master:1.115 Sat May 17 09:23:51 2014 +++ src/sys/compat/linux/arch/i386/syscalls.master Tue May 20 17:24:49 2014 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.115 2014/05/17 09:23:51 njoly Exp $ + $NetBSD: syscalls.master,v 1.116 2014/05/20 17:24:49 njoly Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -356,8 +356,8 @@ 202 NOARGS { gid_t|sys||getegid(void); } 203 NOARGS { int|sys||setreuid(uid_t ruid, uid_t euid); } 204 NOARGS { int|sys||setregid(gid_t rgid, gid_t egid); } -205 NOARGS { int|sys||getgroups(u_int gidsetsize, gid_t *gidset); } -206 NOARGS { int|sys||setgroups(u_int gidsetsize, gid_t *gidset); } +205 NOARGS { int|sys||getgroups(int gidsetsize, gid_t *gidset); } +206 NOARGS { int|sys||setgroups(int gidsetsize, gid_t *gidset); } 207 NOARGS { int|sys||__posix_fchown(int fd, uid_t uid, \ gid_t gid); } 208 STD { int|linux_sys||setresuid(uid_t ruid, uid_t euid, \ Index: src/sys/compat/linux/arch/m68k/syscalls.master diff -u src/sys/compat/linux/arch/m68k/syscalls.master:1.85 src/sys/compat/linux/arch/m68k/syscalls.master:1.86 --- src/sys/compat/linux/arch/m68k/syscalls.master:1.85 Sat May 17 09:23:51 2014 +++ src/sys/compat/linux/arch/m68k/syscalls.master Tue May 20 17:24:49 2014 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.85 2014/05/17 09:23:51 njoly Exp $ + $NetBSD: syscalls.master,v 1.86 2014/05/20 17:24:49 njoly Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -375,8 +375,8
CVS commit: src/sys/compat/linux/arch
Module Name:src Committed By: njoly Date: Tue May 20 17:26:04 UTC 2014 Modified Files: src/sys/compat/linux/arch/amd64: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/arm: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/i386: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/m68k: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/mips: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/powerpc: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c Log Message: Regen for getgroups/setgroups update. To generate a diff of this commit: cvs rdiff -u -r1.51 -r1.52 src/sys/compat/linux/arch/amd64/linux_syscall.h \ src/sys/compat/linux/arch/amd64/linux_syscallargs.h \ src/sys/compat/linux/arch/amd64/linux_syscalls.c \ src/sys/compat/linux/arch/amd64/linux_sysent.c cvs rdiff -u -r1.61 -r1.62 src/sys/compat/linux/arch/arm/linux_syscall.h \ src/sys/compat/linux/arch/arm/linux_syscallargs.h \ src/sys/compat/linux/arch/arm/linux_syscalls.c \ src/sys/compat/linux/arch/arm/linux_sysent.c cvs rdiff -u -r1.100 -r1.101 src/sys/compat/linux/arch/i386/linux_syscall.h \ src/sys/compat/linux/arch/i386/linux_syscallargs.h \ src/sys/compat/linux/arch/i386/linux_sysent.c cvs rdiff -u -r1.101 -r1.102 src/sys/compat/linux/arch/i386/linux_syscalls.c cvs rdiff -u -r1.91 -r1.92 src/sys/compat/linux/arch/m68k/linux_syscall.h \ src/sys/compat/linux/arch/m68k/linux_syscalls.c \ src/sys/compat/linux/arch/m68k/linux_sysent.c cvs rdiff -u -r1.90 -r1.91 src/sys/compat/linux/arch/m68k/linux_syscallargs.h cvs rdiff -u -r1.58 -r1.59 src/sys/compat/linux/arch/mips/linux_syscall.h cvs rdiff -u -r1.57 -r1.58 src/sys/compat/linux/arch/mips/linux_syscallargs.h \ src/sys/compat/linux/arch/mips/linux_syscalls.c \ src/sys/compat/linux/arch/mips/linux_sysent.c cvs rdiff -u -r1.68 -r1.69 src/sys/compat/linux/arch/powerpc/linux_syscall.h \ src/sys/compat/linux/arch/powerpc/linux_sysent.c cvs rdiff -u -r1.67 -r1.68 \ src/sys/compat/linux/arch/powerpc/linux_syscallargs.h \ src/sys/compat/linux/arch/powerpc/linux_syscalls.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/amd64/linux_syscall.h diff -u src/sys/compat/linux/arch/amd64/linux_syscall.h:1.51 src/sys/compat/linux/arch/amd64/linux_syscall.h:1.52 --- src/sys/compat/linux/arch/amd64/linux_syscall.h:1.51 Sat May 17 09:25:06 2014 +++ src/sys/compat/linux/arch/amd64/linux_syscall.h Tue May 20 17:26:04 2014 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.51 2014/05/17 09:25:06 njoly Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.52 2014/05/20 17:26:04 njoly Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.49 2014/05/17 09:23:51 njoly Exp + * created from NetBSD: syscalls.master,v 1.50 2014/05/20 17:24:49 njoly Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -363,10 +363,10 @@ /* syscall: setregid ret: int args: gid_t gid_t */ #define LINUX_SYS_setregid 114 -/* syscall: getgroups ret: int args: u_int gid_t * */ +/* syscall: getgroups ret: int args: int gid_t * */ #define LINUX_SYS_getgroups 115 -/* syscall: setgroups ret: int args: u_int gid_t * */ +/* syscall: setgroups ret: int args: int gid_t * */ #define LINUX_SYS_setgroups 116 /* syscall: setresuid ret: int args: uid_t uid_t uid_t */ Index: src/sys/compat/linux/arch/amd64/linux_syscallargs.h diff -u src/sys/compat/linux/arch/amd64/linux_syscallargs.h:1.51 src/sys/compat/linux/arch/amd64/linux_syscallargs.h:1.52 --- src/sys/compat/linux/arch/amd64/linux_syscallargs.h:1.51 Sat May 17 09:25:06 2014 +++ src/sys/compat/linux/arch/amd64/linux_syscallargs.h Tue May 20 17:26:04 2014 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscallargs.h,v 1.51 2014/05/17 09:25:06 njoly Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.52 2014/05/20 17:26:04 njoly Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.49 2014/05/17 09:23:51 njoly Exp + * created from NetBSD: syscalls.master,v 1.50 2014/05/20 17:24:49 njoly Exp */ #ifndef _LINUX_SYS_SYSCALLARGS_H_ Index: src/sys/compat/linux/arch/amd64/linux_syscalls.c diff -u src/sys/compat/linux/arch/amd64/linux_syscalls.c:1.51 src/sys/compat/linux/arch/amd64/linux_syscalls.c:1.52 --- src/sys/compat/linux/arch/amd64/linux_syscalls.c:1.51 Sat May 17 09:25:06 2014 +++ src/sys/compat/linux/arch/amd64/linux_syscalls.c Tue May 20 17:26:04 2014 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_syscalls.c,v
CVS commit: src/sys/compat/linux/arch
Module Name:src Committed By: njoly Date: Sat May 17 09:25:07 UTC 2014 Modified Files: src/sys/compat/linux/arch/alpha: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/amd64: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/arm: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/i386: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/m68k: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/mips: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/powerpc: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c Log Message: Regen for fadvise64 offset types changes. To generate a diff of this commit: cvs rdiff -u -r1.92 -r1.93 src/sys/compat/linux/arch/alpha/linux_syscall.h \ src/sys/compat/linux/arch/alpha/linux_sysent.c cvs rdiff -u -r1.91 -r1.92 \ src/sys/compat/linux/arch/alpha/linux_syscallargs.h cvs rdiff -u -r1.93 -r1.94 src/sys/compat/linux/arch/alpha/linux_syscalls.c cvs rdiff -u -r1.50 -r1.51 src/sys/compat/linux/arch/amd64/linux_syscall.h \ src/sys/compat/linux/arch/amd64/linux_syscallargs.h \ src/sys/compat/linux/arch/amd64/linux_syscalls.c \ src/sys/compat/linux/arch/amd64/linux_sysent.c cvs rdiff -u -r1.60 -r1.61 src/sys/compat/linux/arch/arm/linux_syscall.h \ src/sys/compat/linux/arch/arm/linux_syscallargs.h \ src/sys/compat/linux/arch/arm/linux_syscalls.c \ src/sys/compat/linux/arch/arm/linux_sysent.c cvs rdiff -u -r1.99 -r1.100 src/sys/compat/linux/arch/i386/linux_syscall.h \ src/sys/compat/linux/arch/i386/linux_syscallargs.h \ src/sys/compat/linux/arch/i386/linux_sysent.c cvs rdiff -u -r1.100 -r1.101 src/sys/compat/linux/arch/i386/linux_syscalls.c cvs rdiff -u -r1.90 -r1.91 src/sys/compat/linux/arch/m68k/linux_syscall.h \ src/sys/compat/linux/arch/m68k/linux_syscalls.c \ src/sys/compat/linux/arch/m68k/linux_sysent.c cvs rdiff -u -r1.89 -r1.90 src/sys/compat/linux/arch/m68k/linux_syscallargs.h cvs rdiff -u -r1.57 -r1.58 src/sys/compat/linux/arch/mips/linux_syscall.h cvs rdiff -u -r1.56 -r1.57 src/sys/compat/linux/arch/mips/linux_syscallargs.h \ src/sys/compat/linux/arch/mips/linux_syscalls.c \ src/sys/compat/linux/arch/mips/linux_sysent.c cvs rdiff -u -r1.67 -r1.68 src/sys/compat/linux/arch/powerpc/linux_syscall.h \ src/sys/compat/linux/arch/powerpc/linux_sysent.c cvs rdiff -u -r1.66 -r1.67 \ src/sys/compat/linux/arch/powerpc/linux_syscallargs.h \ src/sys/compat/linux/arch/powerpc/linux_syscalls.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/alpha/linux_syscall.h diff -u src/sys/compat/linux/arch/alpha/linux_syscall.h:1.92 src/sys/compat/linux/arch/alpha/linux_syscall.h:1.93 --- src/sys/compat/linux/arch/alpha/linux_syscall.h:1.92 Tue May 6 17:34:39 2014 +++ src/sys/compat/linux/arch/alpha/linux_syscall.h Sat May 17 09:25:06 2014 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.92 2014/05/06 17:34:39 njoly Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.93 2014/05/17 09:25:06 njoly Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.86 2014/05/06 17:33:35 njoly Exp + * created from NetBSD: syscalls.master,v 1.87 2014/05/17 09:23:51 njoly Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -576,7 +576,7 @@ /* syscall: set_tid_address ret: int args: int * */ #define LINUX_SYS_set_tid_address 411 -/* syscall: fadvise64 ret: int args: int linux_off_t size_t int */ +/* syscall: fadvise64 ret: int args: int off_t size_t int */ #define LINUX_SYS_fadvise64 413 /* syscall: clock_settime ret: int args: clockid_t struct linux_timespec * */ Index: src/sys/compat/linux/arch/alpha/linux_sysent.c diff -u src/sys/compat/linux/arch/alpha/linux_sysent.c:1.92 src/sys/compat/linux/arch/alpha/linux_sysent.c:1.93 --- src/sys/compat/linux/arch/alpha/linux_sysent.c:1.92 Tue May 6 17:34:39 2014 +++ src/sys/compat/linux/arch/alpha/linux_sysent.c Sat May 17 09:25:06 2014 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_sysent.c,v 1.92 2014/05/06 17:34:39 njoly Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.93 2014/05/17 09:25:06 njoly Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.86 2014/05/06 17:33:35 njoly Exp + * created from NetBSD: syscalls.master,v 1.87 2014/05/17 09:23:51 njoly Exp */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: linux_sysent.c,v 1.92 2014/05/06 17:34:39 njoly Exp $); +__KERNEL_RCSID(0, $NetBSD:
CVS commit: src/sys/compat/linux/arch
Module Name:src Committed By: njoly Date: Tue May 6 17:33:35 UTC 2014 Modified Files: src/sys/compat/linux/arch/alpha: syscalls.master src/sys/compat/linux/arch/arm: syscalls.master src/sys/compat/linux/arch/m68k: syscalls.master src/sys/compat/linux/arch/mips: syscalls.master src/sys/compat/linux/arch/powerpc: syscalls.master Log Message: Reduce diffs between archs; make mknod device argument unsigned. To generate a diff of this commit: cvs rdiff -u -r1.85 -r1.86 src/sys/compat/linux/arch/alpha/syscalls.master cvs rdiff -u -r1.56 -r1.57 src/sys/compat/linux/arch/arm/syscalls.master cvs rdiff -u -r1.83 -r1.84 src/sys/compat/linux/arch/m68k/syscalls.master cvs rdiff -u -r1.51 -r1.52 src/sys/compat/linux/arch/mips/syscalls.master cvs rdiff -u -r1.60 -r1.61 src/sys/compat/linux/arch/powerpc/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/alpha/syscalls.master diff -u src/sys/compat/linux/arch/alpha/syscalls.master:1.85 src/sys/compat/linux/arch/alpha/syscalls.master:1.86 --- src/sys/compat/linux/arch/alpha/syscalls.master:1.85 Sun May 4 10:08:53 2014 +++ src/sys/compat/linux/arch/alpha/syscalls.master Tue May 6 17:33:35 2014 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.85 2014/05/04 10:08:53 njoly Exp $ + $NetBSD: syscalls.master,v 1.86 2014/05/06 17:33:35 njoly Exp $ ; ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -99,7 +99,7 @@ 12 NOARGS { int|sys||chdir(const char *path); } 13 NOARGS { int|sys||fchdir(int fd); } 14 STD { int|linux_sys||mknod(const char *path, linux_umode_t mode, \ - int dev); } + unsigned dev); } 15 NOARGS { int|sys||chmod(const char *path, int mode); } 16 NOARGS { int|sys||__posix_chown(const char *path, int uid, int gid); } ;17 ALIAS osf1_sys_brk Index: src/sys/compat/linux/arch/arm/syscalls.master diff -u src/sys/compat/linux/arch/arm/syscalls.master:1.56 src/sys/compat/linux/arch/arm/syscalls.master:1.57 --- src/sys/compat/linux/arch/arm/syscalls.master:1.56 Sun May 4 10:08:53 2014 +++ src/sys/compat/linux/arch/arm/syscalls.master Tue May 6 17:33:35 2014 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.56 2014/05/04 10:08:53 njoly Exp $ + $NetBSD: syscalls.master,v 1.57 2014/05/06 17:33:35 njoly Exp $ ; Derived from sys/compat/linux/arch/*/syscalls.master ; and from Linux 2.4.12 arch/arm/kernel/calls.S @@ -72,7 +72,7 @@ 12 NOARGS { int|sys||chdir(const char *path); } 13 STD { int|linux_sys||time(linux_time_t *t); } 14 STD { int|linux_sys||mknod(const char *path, linux_umode_t mode, \ - int dev); } + unsigned dev); } 15 NOARGS { int|sys||chmod(const char *path, int mode); } 16 STD { int|linux_sys||lchown16(const char *path, \ linux_uid16_t uid, linux_gid16_t gid); } Index: src/sys/compat/linux/arch/m68k/syscalls.master diff -u src/sys/compat/linux/arch/m68k/syscalls.master:1.83 src/sys/compat/linux/arch/m68k/syscalls.master:1.84 --- src/sys/compat/linux/arch/m68k/syscalls.master:1.83 Sun May 4 10:08:53 2014 +++ src/sys/compat/linux/arch/m68k/syscalls.master Tue May 6 17:33:35 2014 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.83 2014/05/04 10:08:53 njoly Exp $ + $NetBSD: syscalls.master,v 1.84 2014/05/06 17:33:35 njoly Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -75,7 +75,7 @@ 12 NOARGS { int|sys||chdir(const char *path); } 13 STD { int|linux_sys||time(linux_time_t *t); } 14 STD { int|linux_sys||mknod(const char *path, linux_umode_t mode, \ - int dev); } + unsigned dev); } 15 NOARGS { int|sys||chmod(const char *path, int mode); } ;16 lchown on i386; chown on m68k. 16 STD { int|linux_sys||chown16(const char *path, \ Index: src/sys/compat/linux/arch/mips/syscalls.master diff -u src/sys/compat/linux/arch/mips/syscalls.master:1.51 src/sys/compat/linux/arch/mips/syscalls.master:1.52 --- src/sys/compat/linux/arch/mips/syscalls.master:1.51 Sun May 4 10:08:53 2014 +++ src/sys/compat/linux/arch/mips/syscalls.master Tue May 6 17:33:35 2014 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.51 2014/05/04 10:08:53 njoly Exp $ + $NetBSD: syscalls.master,v 1.52 2014/05/06 17:33:35 njoly Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -75,7 +75,7 @@ 12 NOARGS { int|sys||chdir(const char *path); } 13 STD { int|linux_sys||time(linux_time_t *t); } 14 STD { int|linux_sys||mknod(const char *path, linux_umode_t mode, \ - int dev); } + unsigned dev); } 15 NOARGS { int|sys||chmod(const char *path, int mode); } 16 NOARGS { int|sys||__posix_lchown(const char *path, int uid, \ int gid); } Index: src/sys/compat/linux/arch/powerpc/syscalls.master diff -u src/sys/compat/linux/arch/powerpc/syscalls.master:1.60 src/sys/compat/linux/arch/powerpc/syscalls.master:1.61 --- src/sys/compat/linux/arch/powerpc/syscalls.master:1.60 Sun May 4 10:08:53 2014 +++
CVS commit: src/sys/compat/linux/arch
Module Name:src Committed By: njoly Date: Tue May 6 17:34:40 UTC 2014 Modified Files: src/sys/compat/linux/arch/alpha: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/arm: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/m68k: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/mips: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/powerpc: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c Log Message: Regen for mknod device argument type change. To generate a diff of this commit: cvs rdiff -u -r1.91 -r1.92 src/sys/compat/linux/arch/alpha/linux_syscall.h \ src/sys/compat/linux/arch/alpha/linux_sysent.c cvs rdiff -u -r1.90 -r1.91 \ src/sys/compat/linux/arch/alpha/linux_syscallargs.h cvs rdiff -u -r1.92 -r1.93 src/sys/compat/linux/arch/alpha/linux_syscalls.c cvs rdiff -u -r1.59 -r1.60 src/sys/compat/linux/arch/arm/linux_syscall.h \ src/sys/compat/linux/arch/arm/linux_syscallargs.h \ src/sys/compat/linux/arch/arm/linux_syscalls.c \ src/sys/compat/linux/arch/arm/linux_sysent.c cvs rdiff -u -r1.89 -r1.90 src/sys/compat/linux/arch/m68k/linux_syscall.h \ src/sys/compat/linux/arch/m68k/linux_syscalls.c \ src/sys/compat/linux/arch/m68k/linux_sysent.c cvs rdiff -u -r1.88 -r1.89 src/sys/compat/linux/arch/m68k/linux_syscallargs.h cvs rdiff -u -r1.56 -r1.57 src/sys/compat/linux/arch/mips/linux_syscall.h cvs rdiff -u -r1.55 -r1.56 src/sys/compat/linux/arch/mips/linux_syscallargs.h \ src/sys/compat/linux/arch/mips/linux_syscalls.c \ src/sys/compat/linux/arch/mips/linux_sysent.c cvs rdiff -u -r1.66 -r1.67 src/sys/compat/linux/arch/powerpc/linux_syscall.h \ src/sys/compat/linux/arch/powerpc/linux_sysent.c cvs rdiff -u -r1.65 -r1.66 \ src/sys/compat/linux/arch/powerpc/linux_syscallargs.h \ src/sys/compat/linux/arch/powerpc/linux_syscalls.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/alpha/linux_syscall.h diff -u src/sys/compat/linux/arch/alpha/linux_syscall.h:1.91 src/sys/compat/linux/arch/alpha/linux_syscall.h:1.92 --- src/sys/compat/linux/arch/alpha/linux_syscall.h:1.91 Sun May 4 10:10:39 2014 +++ src/sys/compat/linux/arch/alpha/linux_syscall.h Tue May 6 17:34:39 2014 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.91 2014/05/04 10:10:39 njoly Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.92 2014/05/06 17:34:39 njoly Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.85 2014/05/04 10:08:53 njoly Exp + * created from NetBSD: syscalls.master,v 1.86 2014/05/06 17:33:35 njoly Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -45,7 +45,7 @@ /* syscall: fchdir ret: int args: int */ #define LINUX_SYS_fchdir 13 -/* syscall: mknod ret: int args: const char * linux_umode_t int */ +/* syscall: mknod ret: int args: const char * linux_umode_t unsigned */ #define LINUX_SYS_mknod 14 /* syscall: chmod ret: int args: const char * int */ Index: src/sys/compat/linux/arch/alpha/linux_sysent.c diff -u src/sys/compat/linux/arch/alpha/linux_sysent.c:1.91 src/sys/compat/linux/arch/alpha/linux_sysent.c:1.92 --- src/sys/compat/linux/arch/alpha/linux_sysent.c:1.91 Sun May 4 10:10:39 2014 +++ src/sys/compat/linux/arch/alpha/linux_sysent.c Tue May 6 17:34:39 2014 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_sysent.c,v 1.91 2014/05/04 10:10:39 njoly Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.92 2014/05/06 17:34:39 njoly Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.85 2014/05/04 10:08:53 njoly Exp + * created from NetBSD: syscalls.master,v 1.86 2014/05/06 17:33:35 njoly Exp */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: linux_sysent.c,v 1.91 2014/05/04 10:10:39 njoly Exp $); +__KERNEL_RCSID(0, $NetBSD: linux_sysent.c,v 1.92 2014/05/06 17:34:39 njoly Exp $); #if defined(_KERNEL_OPT) #include opt_sysv.h Index: src/sys/compat/linux/arch/alpha/linux_syscallargs.h diff -u src/sys/compat/linux/arch/alpha/linux_syscallargs.h:1.90 src/sys/compat/linux/arch/alpha/linux_syscallargs.h:1.91 --- src/sys/compat/linux/arch/alpha/linux_syscallargs.h:1.90 Sun May 4 10:10:39 2014 +++ src/sys/compat/linux/arch/alpha/linux_syscallargs.h Tue May 6 17:34:39 2014 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscallargs.h,v 1.90 2014/05/04 10:10:39 njoly Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.91 2014/05/06 17:34:39 njoly Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.85 2014/05/04 10:08:53
CVS commit: src/sys/compat/linux/arch
Module Name:src Committed By: njoly Date: Tue Apr 8 11:39:57 UTC 2014 Modified Files: src/sys/compat/linux/arch/alpha: Makefile src/sys/compat/linux/arch/amd64: Makefile src/sys/compat/linux/arch/arm: Makefile src/sys/compat/linux/arch/i386: Makefile src/sys/compat/linux/arch/m68k: Makefile src/sys/compat/linux/arch/mips: Makefile src/sys/compat/linux/arch/powerpc: Makefile src/sys/compat/linux/arch/sparc: Makefile src/sys/compat/linux/arch/sparc64: Makefile Log Message: Do not include bsd.kinc.mk in each arch Makefile, it's already pulled by bsd.syscall.mk (from Makefile.inc). To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/compat/linux/arch/alpha/Makefile cvs rdiff -u -r1.2 -r1.3 src/sys/compat/linux/arch/amd64/Makefile cvs rdiff -u -r1.1 -r1.2 src/sys/compat/linux/arch/arm/Makefile cvs rdiff -u -r1.2 -r1.3 src/sys/compat/linux/arch/i386/Makefile cvs rdiff -u -r1.2 -r1.3 src/sys/compat/linux/arch/m68k/Makefile cvs rdiff -u -r1.2 -r1.3 src/sys/compat/linux/arch/mips/Makefile cvs rdiff -u -r1.2 -r1.3 src/sys/compat/linux/arch/powerpc/Makefile cvs rdiff -u -r1.2 -r1.3 src/sys/compat/linux/arch/sparc/Makefile cvs rdiff -u -r1.2 -r1.3 src/sys/compat/linux/arch/sparc64/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/alpha/Makefile diff -u src/sys/compat/linux/arch/alpha/Makefile:1.2 src/sys/compat/linux/arch/alpha/Makefile:1.3 --- src/sys/compat/linux/arch/alpha/Makefile:1.2 Sat Oct 3 20:17:37 1998 +++ src/sys/compat/linux/arch/alpha/Makefile Tue Apr 8 11:39:57 2014 @@ -1,4 +1,3 @@ -# $NetBSD: Makefile,v 1.2 1998/10/03 20:17:37 christos Exp $ +# $NetBSD: Makefile,v 1.3 2014/04/08 11:39:57 njoly Exp $ .include ../../Makefile.inc -.include bsd.kinc.mk Index: src/sys/compat/linux/arch/amd64/Makefile diff -u src/sys/compat/linux/arch/amd64/Makefile:1.2 src/sys/compat/linux/arch/amd64/Makefile:1.3 --- src/sys/compat/linux/arch/amd64/Makefile:1.2 Sun Dec 11 12:20:14 2005 +++ src/sys/compat/linux/arch/amd64/Makefile Tue Apr 8 11:39:57 2014 @@ -1,4 +1,3 @@ -# $NetBSD: Makefile,v 1.2 2005/12/11 12:20:14 christos Exp $ +# $NetBSD: Makefile,v 1.3 2014/04/08 11:39:57 njoly Exp $ .include ../../Makefile.inc -.include bsd.kinc.mk Index: src/sys/compat/linux/arch/arm/Makefile diff -u src/sys/compat/linux/arch/arm/Makefile:1.1 src/sys/compat/linux/arch/arm/Makefile:1.2 --- src/sys/compat/linux/arch/arm/Makefile:1.1 Mon Jan 14 23:14:35 2002 +++ src/sys/compat/linux/arch/arm/Makefile Tue Apr 8 11:39:57 2014 @@ -1,4 +1,3 @@ -# $NetBSD: Makefile,v 1.1 2002/01/14 23:14:35 bjh21 Exp $ +# $NetBSD: Makefile,v 1.2 2014/04/08 11:39:57 njoly Exp $ .include ../../Makefile.inc -.include bsd.kinc.mk Index: src/sys/compat/linux/arch/i386/Makefile diff -u src/sys/compat/linux/arch/i386/Makefile:1.2 src/sys/compat/linux/arch/i386/Makefile:1.3 --- src/sys/compat/linux/arch/i386/Makefile:1.2 Sat Oct 3 20:17:38 1998 +++ src/sys/compat/linux/arch/i386/Makefile Tue Apr 8 11:39:57 2014 @@ -1,4 +1,3 @@ -# $NetBSD: Makefile,v 1.2 1998/10/03 20:17:38 christos Exp $ +# $NetBSD: Makefile,v 1.3 2014/04/08 11:39:57 njoly Exp $ .include ../../Makefile.inc -.include bsd.kinc.mk Index: src/sys/compat/linux/arch/m68k/Makefile diff -u src/sys/compat/linux/arch/m68k/Makefile:1.2 src/sys/compat/linux/arch/m68k/Makefile:1.3 --- src/sys/compat/linux/arch/m68k/Makefile:1.2 Sat Oct 3 20:17:39 1998 +++ src/sys/compat/linux/arch/m68k/Makefile Tue Apr 8 11:39:57 2014 @@ -1,4 +1,3 @@ -# $NetBSD: Makefile,v 1.2 1998/10/03 20:17:39 christos Exp $ +# $NetBSD: Makefile,v 1.3 2014/04/08 11:39:57 njoly Exp $ .include ../../Makefile.inc -.include bsd.kinc.mk Index: src/sys/compat/linux/arch/mips/Makefile diff -u src/sys/compat/linux/arch/mips/Makefile:1.2 src/sys/compat/linux/arch/mips/Makefile:1.3 --- src/sys/compat/linux/arch/mips/Makefile:1.2 Sat Oct 3 20:17:39 1998 +++ src/sys/compat/linux/arch/mips/Makefile Tue Apr 8 11:39:57 2014 @@ -1,4 +1,3 @@ -# $NetBSD: Makefile,v 1.2 1998/10/03 20:17:39 christos Exp $ +# $NetBSD: Makefile,v 1.3 2014/04/08 11:39:57 njoly Exp $ .include ../../Makefile.inc -.include bsd.kinc.mk Index: src/sys/compat/linux/arch/powerpc/Makefile diff -u src/sys/compat/linux/arch/powerpc/Makefile:1.2 src/sys/compat/linux/arch/powerpc/Makefile:1.3 --- src/sys/compat/linux/arch/powerpc/Makefile:1.2 Sat Oct 3 20:17:39 1998 +++ src/sys/compat/linux/arch/powerpc/Makefile Tue Apr 8 11:39:57 2014 @@ -1,4 +1,3 @@ -# $NetBSD: Makefile,v 1.2 1998/10/03 20:17:39 christos Exp $ +# $NetBSD: Makefile,v 1.3 2014/04/08 11:39:57 njoly Exp $ .include ../../Makefile.inc -.include bsd.kinc.mk Index: src/sys/compat/linux/arch/sparc/Makefile diff -u src/sys/compat/linux/arch/sparc/Makefile:1.2 src/sys/compat/linux/arch/sparc/Makefile:1.3 --- src/sys/compat/linux/arch/sparc/Makefile:1.2 Sat Oct 3
CVS commit: src/sys/compat/linux/arch
Module Name:src Committed By: njoly Date: Tue Apr 8 16:48:01 UTC 2014 Modified Files: src/sys/compat/linux/arch/alpha: syscalls.master src/sys/compat/linux/arch/amd64: syscalls.master src/sys/compat/linux/arch/arm: syscalls.master src/sys/compat/linux/arch/i386: syscalls.master src/sys/compat/linux/arch/m68k: syscalls.master src/sys/compat/linux/arch/mips: syscalls.master src/sys/compat/linux/arch/powerpc: syscalls.master Log Message: Adjust read/write/readv/writev signature to match native versions. To generate a diff of this commit: cvs rdiff -u -r1.83 -r1.84 src/sys/compat/linux/arch/alpha/syscalls.master cvs rdiff -u -r1.46 -r1.47 src/sys/compat/linux/arch/amd64/syscalls.master cvs rdiff -u -r1.54 -r1.55 src/sys/compat/linux/arch/arm/syscalls.master cvs rdiff -u -r1.112 -r1.113 src/sys/compat/linux/arch/i386/syscalls.master cvs rdiff -u -r1.81 -r1.82 src/sys/compat/linux/arch/m68k/syscalls.master cvs rdiff -u -r1.49 -r1.50 src/sys/compat/linux/arch/mips/syscalls.master cvs rdiff -u -r1.58 -r1.59 src/sys/compat/linux/arch/powerpc/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/alpha/syscalls.master diff -u src/sys/compat/linux/arch/alpha/syscalls.master:1.83 src/sys/compat/linux/arch/alpha/syscalls.master:1.84 --- src/sys/compat/linux/arch/alpha/syscalls.master:1.83 Mon Jan 13 10:33:03 2014 +++ src/sys/compat/linux/arch/alpha/syscalls.master Tue Apr 8 16:48:01 2014 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.83 2014/01/13 10:33:03 njoly Exp $ + $NetBSD: syscalls.master,v 1.84 2014/04/08 16:48:01 njoly Exp $ ; ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -84,8 +84,9 @@ 0 NOARGS { int|linux_sys||nosys(void); } syscall 1 STD { int|linux_sys||exit(int rval); } 2 NOARGS { int|sys||fork(void); } -3 NOARGS { int|sys||read(int fd, void *buf, size_t nbyte); } -4 NOARGS { int|sys||write(int fd, const void *buf, size_t nbyte); } +3 NOARGS { ssize_t|sys||read(int fd, void *buf, size_t nbyte); } +4 NOARGS { ssize_t|sys||write(int fd, const void *buf, \ + size_t nbyte); } 5 UNIMPL 6 NOARGS { int|sys||close(int fd); } 7 NODEF { int|osf1_sys||wait4(int pid, int *status, \ Index: src/sys/compat/linux/arch/amd64/syscalls.master diff -u src/sys/compat/linux/arch/amd64/syscalls.master:1.46 src/sys/compat/linux/arch/amd64/syscalls.master:1.47 --- src/sys/compat/linux/arch/amd64/syscalls.master:1.46 Sun Dec 8 15:55:10 2013 +++ src/sys/compat/linux/arch/amd64/syscalls.master Tue Apr 8 16:48:01 2014 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.46 2013/12/08 15:55:10 njoly Exp $ + $NetBSD: syscalls.master,v 1.47 2014/04/08 16:48:01 njoly Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -64,8 +64,9 @@ %% -0 NOARGS { int|sys||read(int fd, char *buf, u_int nbyte); } -1 NOARGS { int|sys||write(int fd, char *buf, u_int nbyte); } +0 NOARGS { ssize_t|sys||read(int fd, void *buf, size_t nbyte); } +1 NOARGS { ssize_t|sys||write(int fd, const void *buf, \ + int nbyte); } 2 STD { int|linux_sys||open(const char *path, int flags, \ linux_umode_t mode); } 3 NOARGS { int|sys||close(int fd); } @@ -101,10 +102,10 @@ size_t nbyte, linux_off_t offset); } 18 STD { int|linux_sys||pwrite(int fd, char *buf, \ size_t nbyte, linux_off_t offset); } -19 NOARGS { int|sys||readv(int fd, struct iovec *iovp, \ -u_int iovcnt); } -20 NOARGS { int|sys||writev(int fd, struct iovec *iovp, \ -u_int iovcnt); } +19 NOARGS { ssize_t|sys||readv(int fd, \ + const struct iovec *iovp, int iovcnt); } +20 NOARGS { ssize_t|sys||writev(int fd, \ + const struct iovec *iovp, int iovcnt); } 21 NOARGS { int|sys||access(const char *path, int flags); } 22 STD { int|linux_sys||pipe(int *pfds); } 23 STD { int|linux_sys||select(int nfds, fd_set *readfds, \ Index: src/sys/compat/linux/arch/arm/syscalls.master diff -u src/sys/compat/linux/arch/arm/syscalls.master:1.54 src/sys/compat/linux/arch/arm/syscalls.master:1.55 --- src/sys/compat/linux/arch/arm/syscalls.master:1.54 Sun Dec 8 15:55:10 2013 +++ src/sys/compat/linux/arch/arm/syscalls.master Tue Apr 8 16:48:01 2014 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.54 2013/12/08 15:55:10 njoly Exp $ + $NetBSD: syscalls.master,v 1.55 2014/04/08 16:48:01 njoly Exp $ ; Derived from sys/compat/linux/arch/*/syscalls.master ; and from Linux 2.4.12 arch/arm/kernel/calls.S @@ -56,8 +56,9 @@ 0 NOARGS { int|linux_sys||nosys(void); } 1 STD { int|linux_sys||exit(int rval); } 2 NOARGS { int|sys||fork(void); } -3 NOARGS { int|sys||read(int fd, char *buf, u_int nbyte); } -4 NOARGS { int|sys||write(int fd, char *buf, u_int nbyte); } +3 NOARGS { ssize_t|sys||read(int fd, void *buf, size_t nbyte); } +4 NOARGS { ssize_t|sys||write(int fd, const void *buf, \ + size_t nbyte); } 5 STD {
CVS commit: src/sys/compat/linux/arch
Module Name:src Committed By: njoly Date: Tue Apr 8 16:49:26 UTC 2014 Modified Files: src/sys/compat/linux/arch/alpha: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/amd64: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/arm: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/i386: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/m68k: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/mips: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/powerpc: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c Log Message: Regen. To generate a diff of this commit: cvs rdiff -u -r1.89 -r1.90 src/sys/compat/linux/arch/alpha/linux_syscall.h \ src/sys/compat/linux/arch/alpha/linux_sysent.c cvs rdiff -u -r1.88 -r1.89 \ src/sys/compat/linux/arch/alpha/linux_syscallargs.h cvs rdiff -u -r1.90 -r1.91 src/sys/compat/linux/arch/alpha/linux_syscalls.c cvs rdiff -u -r1.48 -r1.49 src/sys/compat/linux/arch/amd64/linux_syscall.h \ src/sys/compat/linux/arch/amd64/linux_syscallargs.h \ src/sys/compat/linux/arch/amd64/linux_syscalls.c \ src/sys/compat/linux/arch/amd64/linux_sysent.c cvs rdiff -u -r1.57 -r1.58 src/sys/compat/linux/arch/arm/linux_syscall.h \ src/sys/compat/linux/arch/arm/linux_syscallargs.h \ src/sys/compat/linux/arch/arm/linux_syscalls.c \ src/sys/compat/linux/arch/arm/linux_sysent.c cvs rdiff -u -r1.97 -r1.98 src/sys/compat/linux/arch/i386/linux_syscall.h \ src/sys/compat/linux/arch/i386/linux_syscallargs.h \ src/sys/compat/linux/arch/i386/linux_sysent.c cvs rdiff -u -r1.98 -r1.99 src/sys/compat/linux/arch/i386/linux_syscalls.c cvs rdiff -u -r1.87 -r1.88 src/sys/compat/linux/arch/m68k/linux_syscall.h \ src/sys/compat/linux/arch/m68k/linux_syscalls.c \ src/sys/compat/linux/arch/m68k/linux_sysent.c cvs rdiff -u -r1.86 -r1.87 src/sys/compat/linux/arch/m68k/linux_syscallargs.h cvs rdiff -u -r1.54 -r1.55 src/sys/compat/linux/arch/mips/linux_syscall.h cvs rdiff -u -r1.53 -r1.54 src/sys/compat/linux/arch/mips/linux_syscallargs.h \ src/sys/compat/linux/arch/mips/linux_syscalls.c \ src/sys/compat/linux/arch/mips/linux_sysent.c cvs rdiff -u -r1.64 -r1.65 src/sys/compat/linux/arch/powerpc/linux_syscall.h \ src/sys/compat/linux/arch/powerpc/linux_sysent.c cvs rdiff -u -r1.63 -r1.64 \ src/sys/compat/linux/arch/powerpc/linux_syscallargs.h \ src/sys/compat/linux/arch/powerpc/linux_syscalls.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/alpha/linux_syscall.h diff -u src/sys/compat/linux/arch/alpha/linux_syscall.h:1.89 src/sys/compat/linux/arch/alpha/linux_syscall.h:1.90 --- src/sys/compat/linux/arch/alpha/linux_syscall.h:1.89 Mon Jan 13 10:33:23 2014 +++ src/sys/compat/linux/arch/alpha/linux_syscall.h Tue Apr 8 16:49:25 2014 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.89 2014/01/13 10:33:23 njoly Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.90 2014/04/08 16:49:25 njoly Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.83 2014/01/13 10:33:03 njoly Exp + * created from NetBSD: syscalls.master,v 1.84 2014/04/08 16:48:01 njoly Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -21,10 +21,10 @@ /* syscall: fork ret: int args: */ #define LINUX_SYS_fork 2 -/* syscall: read ret: int args: int void * size_t */ +/* syscall: read ret: ssize_t args: int void * size_t */ #define LINUX_SYS_read 3 -/* syscall: write ret: int args: int const void * size_t */ +/* syscall: write ret: ssize_t args: int const void * size_t */ #define LINUX_SYS_write 4 /* syscall: close ret: int args: int */ Index: src/sys/compat/linux/arch/alpha/linux_sysent.c diff -u src/sys/compat/linux/arch/alpha/linux_sysent.c:1.89 src/sys/compat/linux/arch/alpha/linux_sysent.c:1.90 --- src/sys/compat/linux/arch/alpha/linux_sysent.c:1.89 Mon Jan 13 10:33:23 2014 +++ src/sys/compat/linux/arch/alpha/linux_sysent.c Tue Apr 8 16:49:25 2014 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_sysent.c,v 1.89 2014/01/13 10:33:23 njoly Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.90 2014/04/08 16:49:25 njoly Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.83 2014/01/13 10:33:03 njoly Exp + * created from NetBSD: syscalls.master,v 1.84 2014/04/08 16:48:01 njoly Exp */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: linux_sysent.c,v 1.89 2014/01/13 10:33:23 njoly Exp $);
CVS commit: src/sys/compat/linux/arch/amd64
Module Name:src Committed By: njoly Date: Sun Feb 23 12:01:51 UTC 2014 Modified Files: src/sys/compat/linux/arch/amd64: linux_exec_machdep.c Log Message: Use cprng_strong32 for LINUX_AT_RANDOM on amd64 too. To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 \ src/sys/compat/linux/arch/amd64/linux_exec_machdep.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/amd64/linux_exec_machdep.c diff -u src/sys/compat/linux/arch/amd64/linux_exec_machdep.c:1.21 src/sys/compat/linux/arch/amd64/linux_exec_machdep.c:1.22 --- src/sys/compat/linux/arch/amd64/linux_exec_machdep.c:1.21 Fri Feb 21 07:53:53 2014 +++ src/sys/compat/linux/arch/amd64/linux_exec_machdep.c Sun Feb 23 12:01:51 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_exec_machdep.c,v 1.21 2014/02/21 07:53:53 maxv Exp $ */ +/* $NetBSD: linux_exec_machdep.c,v 1.22 2014/02/23 12:01:51 njoly Exp $ */ /*- * Copyright (c) 2005 Emmanuel Dreyfus, all rights reserved @@ -32,7 +32,7 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: linux_exec_machdep.c,v 1.21 2014/02/21 07:53:53 maxv Exp $); +__KERNEL_RCSID(0, $NetBSD: linux_exec_machdep.c,v 1.22 2014/02/23 12:01:51 njoly Exp $); #define ELFSIZE 64 @@ -49,6 +49,7 @@ __KERNEL_RCSID(0, $NetBSD: linux_exec_m #include sys/exec.h #include sys/stat.h #include sys/kauth.h +#include sys/cprng.h #include sys/cpu.h #include machine/vmparam.h @@ -225,10 +226,10 @@ ELFNAME2(linux,copyargs)(struct lwp *l, esd.ai[i].a_type = LINUX_AT_RANDOM; esd.ai[i++].a_v = (Elf_Addr)esdp-randbytes[0]; - esd.randbytes[0] = random(); - esd.randbytes[1] = random(); - esd.randbytes[2] = random(); - esd.randbytes[3] = random(); + esd.randbytes[0] = cprng_strong32(); + esd.randbytes[1] = cprng_strong32(); + esd.randbytes[2] = cprng_strong32(); + esd.randbytes[3] = cprng_strong32(); esd.ai[i].a_type = AT_NULL; esd.ai[i++].a_v = 0;
CVS commit: src/sys/compat/linux/arch/amd64
Module Name:src Committed By: dsl Date: Wed Feb 19 20:50:56 UTC 2014 Modified Files: src/sys/compat/linux/arch/amd64: linux_machdep.c Log Message: Don't rely on pcb.h including x86/include/sysarch.h To generate a diff of this commit: cvs rdiff -u -r1.47 -r1.48 src/sys/compat/linux/arch/amd64/linux_machdep.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/amd64/linux_machdep.c diff -u src/sys/compat/linux/arch/amd64/linux_machdep.c:1.47 src/sys/compat/linux/arch/amd64/linux_machdep.c:1.48 --- src/sys/compat/linux/arch/amd64/linux_machdep.c:1.47 Sat Feb 15 10:11:15 2014 +++ src/sys/compat/linux/arch/amd64/linux_machdep.c Wed Feb 19 20:50:56 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_machdep.c,v 1.47 2014/02/15 10:11:15 dsl Exp $ */ +/* $NetBSD: linux_machdep.c,v 1.48 2014/02/19 20:50:56 dsl Exp $ */ /*- * Copyright (c) 2005 Emmanuel Dreyfus, all rights reserved. @@ -33,7 +33,7 @@ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: linux_machdep.c,v 1.47 2014/02/15 10:11:15 dsl Exp $); +__KERNEL_RCSID(0, $NetBSD: linux_machdep.c,v 1.48 2014/02/19 20:50:56 dsl Exp $); #include sys/param.h #include sys/types.h @@ -51,6 +51,7 @@ __KERNEL_RCSID(0, $NetBSD: linux_machde #include machine/specialreg.h #include machine/vmparam.h #include machine/cpufunc.h +#include x86/include/sysarch.h /* * To see whether wscons is configured (for virtual console ioctl calls).
CVS commit: src/sys/compat/linux/arch/m68k
Module Name:src Committed By: njoly Date: Sat Feb 15 22:36:27 UTC 2014 Modified Files: src/sys/compat/linux/arch/m68k: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c Log Message: Regen. To generate a diff of this commit: cvs rdiff -u -r1.86 -r1.87 src/sys/compat/linux/arch/m68k/linux_syscall.h \ src/sys/compat/linux/arch/m68k/linux_syscalls.c \ src/sys/compat/linux/arch/m68k/linux_sysent.c cvs rdiff -u -r1.85 -r1.86 src/sys/compat/linux/arch/m68k/linux_syscallargs.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/m68k/linux_syscall.h diff -u src/sys/compat/linux/arch/m68k/linux_syscall.h:1.86 src/sys/compat/linux/arch/m68k/linux_syscall.h:1.87 --- src/sys/compat/linux/arch/m68k/linux_syscall.h:1.86 Tue Dec 24 13:41:55 2013 +++ src/sys/compat/linux/arch/m68k/linux_syscall.h Sat Feb 15 22:36:26 2014 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.86 2013/12/24 13:41:55 njoly Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.87 2014/02/15 22:36:26 njoly Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.80 2013/12/24 13:41:25 njoly Exp + * created from NetBSD: syscalls.master,v 1.81 2014/02/15 22:35:08 njoly Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -615,6 +615,12 @@ /* syscall: futex ret: int args: int * int int const struct linux_timespec * int * int */ #define LINUX_SYS_futex 235 +/* syscall: mincore ret: int args: void * size_t char * */ +#define LINUX_SYS_mincore 237 + +/* syscall: madvise ret: int args: void * size_t int */ +#define LINUX_SYS_madvise 238 + /* syscall: fcntl64 ret: int args: int int void * */ #define LINUX_SYS_fcntl64 239 Index: src/sys/compat/linux/arch/m68k/linux_syscalls.c diff -u src/sys/compat/linux/arch/m68k/linux_syscalls.c:1.86 src/sys/compat/linux/arch/m68k/linux_syscalls.c:1.87 --- src/sys/compat/linux/arch/m68k/linux_syscalls.c:1.86 Tue Dec 24 13:41:55 2013 +++ src/sys/compat/linux/arch/m68k/linux_syscalls.c Sat Feb 15 22:36:26 2014 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_syscalls.c,v 1.86 2013/12/24 13:41:55 njoly Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.87 2014/02/15 22:36:26 njoly Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.80 2013/12/24 13:41:25 njoly Exp + * created from NetBSD: syscalls.master,v 1.81 2014/02/15 22:35:08 njoly Exp */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: linux_syscalls.c,v 1.86 2013/12/24 13:41:55 njoly Exp $); +__KERNEL_RCSID(0, $NetBSD: linux_syscalls.c,v 1.87 2014/02/15 22:36:26 njoly Exp $); #if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT) @@ -289,8 +289,8 @@ const char *const linux_syscallnames[] = /* 234 */ fremovexattr, /* 235 */ futex, /* 236 */ #236 (unimplemented sendfile64), - /* 237 */ #237 (unimplemented mincore), - /* 238 */ #238 (unimplemented madvise), + /* 237 */ mincore, + /* 238 */ madvise, /* 239 */ fcntl64, /* 240 */ #240 (unimplemented readahead), /* 241 */ #241 (unimplemented io_setup), Index: src/sys/compat/linux/arch/m68k/linux_sysent.c diff -u src/sys/compat/linux/arch/m68k/linux_sysent.c:1.86 src/sys/compat/linux/arch/m68k/linux_sysent.c:1.87 --- src/sys/compat/linux/arch/m68k/linux_sysent.c:1.86 Tue Dec 24 13:41:55 2013 +++ src/sys/compat/linux/arch/m68k/linux_sysent.c Sat Feb 15 22:36:26 2014 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_sysent.c,v 1.86 2013/12/24 13:41:55 njoly Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.87 2014/02/15 22:36:26 njoly Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.80 2013/12/24 13:41:25 njoly Exp + * created from NetBSD: syscalls.master,v 1.81 2014/02/15 22:35:08 njoly Exp */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: linux_sysent.c,v 1.86 2013/12/24 13:41:55 njoly Exp $); +__KERNEL_RCSID(0, $NetBSD: linux_sysent.c,v 1.87 2014/02/15 22:36:26 njoly Exp $); #if defined(_KERNEL_OPT) #include opt_compat_netbsd.h @@ -533,10 +533,10 @@ struct sysent linux_sysent[] = { (sy_call_t *)linux_sys_futex }, /* 235 = futex */ { 0, 0, 0, linux_sys_nosys }, /* 236 = unimplemented sendfile64 */ - { 0, 0, 0, - linux_sys_nosys }, /* 237 = unimplemented mincore */ - { 0, 0, 0, - linux_sys_nosys }, /* 238 = unimplemented madvise */ + { ns(struct sys_mincore_args), SYCALL_ARG_PTR, + (sy_call_t *)sys_mincore }, /* 237 = mincore */ + { ns(struct sys_madvise_args), SYCALL_ARG_PTR, + (sy_call_t *)sys_madvise }, /* 238 = madvise */ { ns(struct linux_sys_fcntl64_args), SYCALL_ARG_PTR, (sy_call_t *)linux_sys_fcntl64 }, /* 239 = fcntl64 */ { 0, 0, 0, Index: src/sys/compat/linux/arch/m68k/linux_syscallargs.h diff -u
CVS commit: src/sys/compat/linux/arch/m68k
Module Name:src Committed By: njoly Date: Sat Feb 15 22:35:08 UTC 2014 Modified Files: src/sys/compat/linux/arch/m68k: syscalls.master Log Message: Reduce diffs between archs, add mincore/madvise to m68k. To generate a diff of this commit: cvs rdiff -u -r1.80 -r1.81 src/sys/compat/linux/arch/m68k/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/m68k/syscalls.master diff -u src/sys/compat/linux/arch/m68k/syscalls.master:1.80 src/sys/compat/linux/arch/m68k/syscalls.master:1.81 --- src/sys/compat/linux/arch/m68k/syscalls.master:1.80 Tue Dec 24 13:41:25 2013 +++ src/sys/compat/linux/arch/m68k/syscalls.master Sat Feb 15 22:35:08 2014 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.80 2013/12/24 13:41:25 njoly Exp $ + $NetBSD: syscalls.master,v 1.81 2014/02/15 22:35:08 njoly Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -424,8 +424,8 @@ const struct linux_timespec *timeout, int *uaddr2, \ int val3); } 236 UNIMPL sendfile64 -237 UNIMPL mincore -238 UNIMPL madvise +237 NOARGS { int|sys||mincore(void *addr, size_t len, char *vec); } +238 NOARGS { int|sys||madvise(void *addr, size_t len, int behav); } 239 STD { int|linux_sys||fcntl64(int fd, int cmd, void *arg); } 240 UNIMPL readahead 241 UNIMPL io_setup
CVS commit: src/sys/compat/linux/arch/alpha
Module Name:src Committed By: njoly Date: Mon Jan 13 10:33:23 UTC 2014 Modified Files: src/sys/compat/linux/arch/alpha: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c Log Message: Regen. To generate a diff of this commit: cvs rdiff -u -r1.88 -r1.89 src/sys/compat/linux/arch/alpha/linux_syscall.h \ src/sys/compat/linux/arch/alpha/linux_sysent.c cvs rdiff -u -r1.87 -r1.88 \ src/sys/compat/linux/arch/alpha/linux_syscallargs.h cvs rdiff -u -r1.89 -r1.90 src/sys/compat/linux/arch/alpha/linux_syscalls.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/alpha/linux_syscall.h diff -u src/sys/compat/linux/arch/alpha/linux_syscall.h:1.88 src/sys/compat/linux/arch/alpha/linux_syscall.h:1.89 --- src/sys/compat/linux/arch/alpha/linux_syscall.h:1.88 Fri Dec 27 14:17:32 2013 +++ src/sys/compat/linux/arch/alpha/linux_syscall.h Mon Jan 13 10:33:23 2014 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.88 2013/12/27 14:17:32 njoly Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.89 2014/01/13 10:33:23 njoly Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.82 2013/12/27 14:17:11 njoly Exp + * created from NetBSD: syscalls.master,v 1.83 2014/01/13 10:33:03 njoly Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -492,7 +492,7 @@ /* syscall: gettimeofday ret: int args: struct timeval50 * struct timezone * */ #define LINUX_SYS_gettimeofday 359 -/* syscall: settimeofday ret: int args: const struct timeval50 * const struct timezone * */ +/* syscall: settimeofday ret: int args: struct timeval50 * struct timezone * */ #define LINUX_SYS_settimeofday 360 /* syscall: getitimer ret: int args: int struct itimerval50 * */ Index: src/sys/compat/linux/arch/alpha/linux_sysent.c diff -u src/sys/compat/linux/arch/alpha/linux_sysent.c:1.88 src/sys/compat/linux/arch/alpha/linux_sysent.c:1.89 --- src/sys/compat/linux/arch/alpha/linux_sysent.c:1.88 Fri Dec 27 14:17:32 2013 +++ src/sys/compat/linux/arch/alpha/linux_sysent.c Mon Jan 13 10:33:23 2014 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_sysent.c,v 1.88 2013/12/27 14:17:32 njoly Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.89 2014/01/13 10:33:23 njoly Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.82 2013/12/27 14:17:11 njoly Exp + * created from NetBSD: syscalls.master,v 1.83 2014/01/13 10:33:03 njoly Exp */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: linux_sysent.c,v 1.88 2013/12/27 14:17:32 njoly Exp $); +__KERNEL_RCSID(0, $NetBSD: linux_sysent.c,v 1.89 2014/01/13 10:33:23 njoly Exp $); #if defined(_KERNEL_OPT) #include opt_sysv.h @@ -788,10 +788,10 @@ struct sysent linux_sysent[] = { (sy_call_t *)linux_sys_rt_sigsuspend },/* 357 = rt_sigsuspend */ { ns(struct linux_sys_select_args), SYCALL_ARG_PTR, (sy_call_t *)linux_sys_select }, /* 358 = select */ - { ns(struct compat_50_sys_gettimeofday_args), SYCALL_ARG_PTR, - (sy_call_t *)compat_50_sys_gettimeofday },/* 359 = gettimeofday */ - { ns(struct compat_50_sys_settimeofday_args), SYCALL_ARG_PTR, - (sy_call_t *)compat_50_sys_settimeofday },/* 360 = settimeofday */ + { ns(struct linux_sys_gettimeofday_args), SYCALL_ARG_PTR, + (sy_call_t *)linux_sys_gettimeofday },/* 359 = gettimeofday */ + { ns(struct linux_sys_settimeofday_args), SYCALL_ARG_PTR, + (sy_call_t *)linux_sys_settimeofday },/* 360 = settimeofday */ { ns(struct compat_50_sys_getitimer_args), SYCALL_ARG_PTR, (sy_call_t *)compat_50_sys_getitimer },/* 361 = getitimer */ { ns(struct compat_50_sys_setitimer_args), SYCALL_ARG_PTR, Index: src/sys/compat/linux/arch/alpha/linux_syscallargs.h diff -u src/sys/compat/linux/arch/alpha/linux_syscallargs.h:1.87 src/sys/compat/linux/arch/alpha/linux_syscallargs.h:1.88 --- src/sys/compat/linux/arch/alpha/linux_syscallargs.h:1.87 Fri Dec 27 14:17:32 2013 +++ src/sys/compat/linux/arch/alpha/linux_syscallargs.h Mon Jan 13 10:33:23 2014 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscallargs.h,v 1.87 2013/12/27 14:17:32 njoly Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.88 2014/01/13 10:33:23 njoly Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.82 2013/12/27 14:17:11 njoly Exp + * created from NetBSD: syscalls.master,v 1.83 2014/01/13 10:33:03 njoly Exp */ #ifndef _LINUX_SYS_SYSCALLARGS_H_ @@ -776,9 +776,17 @@ struct linux_sys_select_args { }; check_syscall_args(linux_sys_select) -struct compat_50_sys_gettimeofday_args; +struct linux_sys_gettimeofday_args { + syscallarg(struct timeval50 *) tp; + syscallarg(struct timezone *) tzp; +}; +check_syscall_args(linux_sys_gettimeofday) -struct compat_50_sys_settimeofday_args; +struct
CVS commit: src/sys/compat/linux/arch/alpha
Module Name:src Committed By: njoly Date: Fri Dec 27 14:17:32 UTC 2013 Modified Files: src/sys/compat/linux/arch/alpha: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c Log Message: Regen. To generate a diff of this commit: cvs rdiff -u -r1.87 -r1.88 src/sys/compat/linux/arch/alpha/linux_syscall.h \ src/sys/compat/linux/arch/alpha/linux_sysent.c cvs rdiff -u -r1.86 -r1.87 \ src/sys/compat/linux/arch/alpha/linux_syscallargs.h cvs rdiff -u -r1.88 -r1.89 src/sys/compat/linux/arch/alpha/linux_syscalls.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/alpha/linux_syscall.h diff -u src/sys/compat/linux/arch/alpha/linux_syscall.h:1.87 src/sys/compat/linux/arch/alpha/linux_syscall.h:1.88 --- src/sys/compat/linux/arch/alpha/linux_syscall.h:1.87 Sun Dec 8 15:56:12 2013 +++ src/sys/compat/linux/arch/alpha/linux_syscall.h Fri Dec 27 14:17:32 2013 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.87 2013/12/08 15:56:12 njoly Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.88 2013/12/27 14:17:32 njoly Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.81 2013/12/08 15:55:10 njoly Exp + * created from NetBSD: syscalls.master,v 1.82 2013/12/27 14:17:11 njoly Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -594,6 +594,15 @@ /* syscall: tgkill ret: int args: int int int */ #define LINUX_SYS_tgkill 424 +/* syscall: stat64 ret: int args: const char * struct linux_stat64 * */ +#define LINUX_SYS_stat64 425 + +/* syscall: lstat64 ret: int args: const char * struct linux_stat64 * */ +#define LINUX_SYS_lstat64 426 + +/* syscall: fstat64 ret: int args: int struct linux_stat64 * */ +#define LINUX_SYS_fstat64 427 + /* syscall: openat ret: int args: int const char * int ... */ #define LINUX_SYS_openat 450 @@ -606,6 +615,9 @@ /* syscall: fchownat ret: int args: int const char * uid_t gid_t int */ #define LINUX_SYS_fchownat 453 +/* syscall: fstatat64 ret: int args: int const char * struct linux_stat64 * int */ +#define LINUX_SYS_fstatat64 455 + /* syscall: unlinkat ret: int args: int const char * int */ #define LINUX_SYS_unlinkat 456 Index: src/sys/compat/linux/arch/alpha/linux_sysent.c diff -u src/sys/compat/linux/arch/alpha/linux_sysent.c:1.87 src/sys/compat/linux/arch/alpha/linux_sysent.c:1.88 --- src/sys/compat/linux/arch/alpha/linux_sysent.c:1.87 Sun Dec 8 15:56:12 2013 +++ src/sys/compat/linux/arch/alpha/linux_sysent.c Fri Dec 27 14:17:32 2013 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_sysent.c,v 1.87 2013/12/08 15:56:12 njoly Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.88 2013/12/27 14:17:32 njoly Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.81 2013/12/08 15:55:10 njoly Exp + * created from NetBSD: syscalls.master,v 1.82 2013/12/27 14:17:11 njoly Exp */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: linux_sysent.c,v 1.87 2013/12/08 15:56:12 njoly Exp $); +__KERNEL_RCSID(0, $NetBSD: linux_sysent.c,v 1.88 2013/12/27 14:17:32 njoly Exp $); #if defined(_KERNEL_OPT) #include opt_sysv.h @@ -920,12 +920,12 @@ struct sysent linux_sysent[] = { linux_sys_nosys }, /* 423 = unimplemented semtimedop */ { ns(struct linux_sys_tgkill_args), 0, (sy_call_t *)linux_sys_tgkill }, /* 424 = tgkill */ - { 0, 0, 0, - linux_sys_nosys }, /* 425 = unimplemented stat64 */ - { 0, 0, 0, - linux_sys_nosys }, /* 426 = unimplemented lstat64 */ - { 0, 0, 0, - linux_sys_nosys }, /* 427 = unimplemented fstat64 */ + { ns(struct linux_sys_stat64_args), SYCALL_ARG_PTR, + (sy_call_t *)linux_sys_stat64 }, /* 425 = stat64 */ + { ns(struct linux_sys_lstat64_args), SYCALL_ARG_PTR, + (sy_call_t *)linux_sys_lstat64 }, /* 426 = lstat64 */ + { ns(struct linux_sys_fstat64_args), SYCALL_ARG_PTR, + (sy_call_t *)linux_sys_fstat64 }, /* 427 = fstat64 */ { 0, 0, 0, linux_sys_nosys }, /* 428 = unimplemented vserver */ { 0, 0, 0, @@ -980,8 +980,8 @@ struct sysent linux_sysent[] = { (sy_call_t *)linux_sys_fchownat }, /* 453 = fchownat */ { 0, 0, 0, linux_sys_nosys }, /* 454 = unimplemented futimesat */ - { 0, 0, 0, - linux_sys_nosys }, /* 455 = unimplemented { int | linux_sys | | fstatat64 ( int fd , const char * path , struct linux_stat64 * sp , int flag ) ; } */ + { ns(struct linux_sys_fstatat64_args), SYCALL_ARG_PTR, + (sy_call_t *)linux_sys_fstatat64 }, /* 455 = fstatat64 */ { ns(struct linux_sys_unlinkat_args), SYCALL_ARG_PTR, (sy_call_t *)linux_sys_unlinkat }, /* 456 = unlinkat */ { ns(struct sys_renameat_args), SYCALL_ARG_PTR, Index: src/sys/compat/linux/arch/alpha/linux_syscallargs.h diff -u src/sys/compat/linux/arch/alpha/linux_syscallargs.h:1.86
CVS commit: src/sys/compat/linux/arch/m68k
Module Name:src Committed By: njoly Date: Tue Dec 24 13:41:25 UTC 2013 Modified Files: src/sys/compat/linux/arch/m68k: files.linux_m68k syscalls.master Log Message: Reduce diffs between arches, add fcntl64() to m68k. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/sys/compat/linux/arch/m68k/files.linux_m68k cvs rdiff -u -r1.79 -r1.80 src/sys/compat/linux/arch/m68k/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/m68k/files.linux_m68k diff -u src/sys/compat/linux/arch/m68k/files.linux_m68k:1.6 src/sys/compat/linux/arch/m68k/files.linux_m68k:1.7 --- src/sys/compat/linux/arch/m68k/files.linux_m68k:1.6 Mon May 30 17:50:31 2011 +++ src/sys/compat/linux/arch/m68k/files.linux_m68k Tue Dec 24 13:41:25 2013 @@ -1,4 +1,4 @@ -# $NetBSD: files.linux_m68k,v 1.6 2011/05/30 17:50:31 alnsn Exp $ +# $NetBSD: files.linux_m68k,v 1.7 2013/12/24 13:41:25 njoly Exp $ # # Config file description for m68k-dependent Linux compat code. @@ -21,3 +21,4 @@ file compat/linux/common/linux_uid16.c file compat/linux/common/linux_futex.c compat_linux file compat/linux/common/linux_fadvise64.c compat_linux file compat/linux/common/linux_fadvise64_64.c compat_linux +file compat/linux/common/linux_fcntl64.c compat_linux Index: src/sys/compat/linux/arch/m68k/syscalls.master diff -u src/sys/compat/linux/arch/m68k/syscalls.master:1.79 src/sys/compat/linux/arch/m68k/syscalls.master:1.80 --- src/sys/compat/linux/arch/m68k/syscalls.master:1.79 Sun Dec 8 15:55:10 2013 +++ src/sys/compat/linux/arch/m68k/syscalls.master Tue Dec 24 13:41:25 2013 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.79 2013/12/08 15:55:10 njoly Exp $ + $NetBSD: syscalls.master,v 1.80 2013/12/24 13:41:25 njoly Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -426,7 +426,7 @@ 236 UNIMPL sendfile64 237 UNIMPL mincore 238 UNIMPL madvise -239 UNIMPL fcntl64 +239 STD { int|linux_sys||fcntl64(int fd, int cmd, void *arg); } 240 UNIMPL readahead 241 UNIMPL io_setup 242 UNIMPL io_destroy
CVS commit: src/sys/compat/linux/arch/m68k
Module Name:src Committed By: njoly Date: Tue Dec 24 13:41:55 UTC 2013 Modified Files: src/sys/compat/linux/arch/m68k: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c Log Message: Regen for fcntl64(). To generate a diff of this commit: cvs rdiff -u -r1.85 -r1.86 src/sys/compat/linux/arch/m68k/linux_syscall.h \ src/sys/compat/linux/arch/m68k/linux_syscalls.c \ src/sys/compat/linux/arch/m68k/linux_sysent.c cvs rdiff -u -r1.84 -r1.85 src/sys/compat/linux/arch/m68k/linux_syscallargs.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/m68k/linux_syscall.h diff -u src/sys/compat/linux/arch/m68k/linux_syscall.h:1.85 src/sys/compat/linux/arch/m68k/linux_syscall.h:1.86 --- src/sys/compat/linux/arch/m68k/linux_syscall.h:1.85 Sun Dec 8 15:56:13 2013 +++ src/sys/compat/linux/arch/m68k/linux_syscall.h Tue Dec 24 13:41:55 2013 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.85 2013/12/08 15:56:13 njoly Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.86 2013/12/24 13:41:55 njoly Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.79 2013/12/08 15:55:10 njoly Exp + * created from NetBSD: syscalls.master,v 1.80 2013/12/24 13:41:25 njoly Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -615,6 +615,9 @@ /* syscall: futex ret: int args: int * int int const struct linux_timespec * int * int */ #define LINUX_SYS_futex 235 +/* syscall: fcntl64 ret: int args: int int void * */ +#define LINUX_SYS_fcntl64 239 + /* syscall: fadvise64 ret: int args: int linux_off_t size_t int */ #define LINUX_SYS_fadvise64 246 Index: src/sys/compat/linux/arch/m68k/linux_syscalls.c diff -u src/sys/compat/linux/arch/m68k/linux_syscalls.c:1.85 src/sys/compat/linux/arch/m68k/linux_syscalls.c:1.86 --- src/sys/compat/linux/arch/m68k/linux_syscalls.c:1.85 Sun Dec 8 15:56:13 2013 +++ src/sys/compat/linux/arch/m68k/linux_syscalls.c Tue Dec 24 13:41:55 2013 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_syscalls.c,v 1.85 2013/12/08 15:56:13 njoly Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.86 2013/12/24 13:41:55 njoly Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.79 2013/12/08 15:55:10 njoly Exp + * created from NetBSD: syscalls.master,v 1.80 2013/12/24 13:41:25 njoly Exp */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: linux_syscalls.c,v 1.85 2013/12/08 15:56:13 njoly Exp $); +__KERNEL_RCSID(0, $NetBSD: linux_syscalls.c,v 1.86 2013/12/24 13:41:55 njoly Exp $); #if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT) @@ -291,7 +291,7 @@ const char *const linux_syscallnames[] = /* 236 */ #236 (unimplemented sendfile64), /* 237 */ #237 (unimplemented mincore), /* 238 */ #238 (unimplemented madvise), - /* 239 */ #239 (unimplemented fcntl64), + /* 239 */ fcntl64, /* 240 */ #240 (unimplemented readahead), /* 241 */ #241 (unimplemented io_setup), /* 242 */ #242 (unimplemented io_destroy), Index: src/sys/compat/linux/arch/m68k/linux_sysent.c diff -u src/sys/compat/linux/arch/m68k/linux_sysent.c:1.85 src/sys/compat/linux/arch/m68k/linux_sysent.c:1.86 --- src/sys/compat/linux/arch/m68k/linux_sysent.c:1.85 Sun Dec 8 15:56:13 2013 +++ src/sys/compat/linux/arch/m68k/linux_sysent.c Tue Dec 24 13:41:55 2013 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_sysent.c,v 1.85 2013/12/08 15:56:13 njoly Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.86 2013/12/24 13:41:55 njoly Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.79 2013/12/08 15:55:10 njoly Exp + * created from NetBSD: syscalls.master,v 1.80 2013/12/24 13:41:25 njoly Exp */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: linux_sysent.c,v 1.85 2013/12/08 15:56:13 njoly Exp $); +__KERNEL_RCSID(0, $NetBSD: linux_sysent.c,v 1.86 2013/12/24 13:41:55 njoly Exp $); #if defined(_KERNEL_OPT) #include opt_compat_netbsd.h @@ -537,8 +537,8 @@ struct sysent linux_sysent[] = { linux_sys_nosys }, /* 237 = unimplemented mincore */ { 0, 0, 0, linux_sys_nosys }, /* 238 = unimplemented madvise */ - { 0, 0, 0, - linux_sys_nosys }, /* 239 = unimplemented fcntl64 */ + { ns(struct linux_sys_fcntl64_args), SYCALL_ARG_PTR, + (sy_call_t *)linux_sys_fcntl64 }, /* 239 = fcntl64 */ { 0, 0, 0, linux_sys_nosys }, /* 240 = unimplemented readahead */ { 0, 0, 0, Index: src/sys/compat/linux/arch/m68k/linux_syscallargs.h diff -u src/sys/compat/linux/arch/m68k/linux_syscallargs.h:1.84 src/sys/compat/linux/arch/m68k/linux_syscallargs.h:1.85 --- src/sys/compat/linux/arch/m68k/linux_syscallargs.h:1.84 Sun Dec 8 15:56:13 2013 +++ src/sys/compat/linux/arch/m68k/linux_syscallargs.h Tue Dec 24 13:41:55 2013 @@ -1,10 +1,10 @@ -/* $NetBSD:
CVS commit: src/sys/compat/linux/arch/powerpc
Module Name:src Committed By: njoly Date: Tue Dec 10 14:54:36 UTC 2013 Modified Files: src/sys/compat/linux/arch/powerpc: syscalls.master Log Message: Add *at() syscalls like other arches. To generate a diff of this commit: cvs rdiff -u -r1.57 -r1.58 src/sys/compat/linux/arch/powerpc/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/powerpc/syscalls.master diff -u src/sys/compat/linux/arch/powerpc/syscalls.master:1.57 src/sys/compat/linux/arch/powerpc/syscalls.master:1.58 --- src/sys/compat/linux/arch/powerpc/syscalls.master:1.57 Sun Dec 8 15:55:10 2013 +++ src/sys/compat/linux/arch/powerpc/syscalls.master Tue Dec 10 14:54:36 2013 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.57 2013/12/08 15:55:10 njoly Exp $ + $NetBSD: syscalls.master,v 1.58 2013/12/10 14:54:36 njoly Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -483,19 +483,31 @@ 283 UNIMPL splice 284 UNIMPL tee 285 UNIMPL vmsplice -286 UNIMPL openat -287 UNIMPL mkdirat -288 UNIMPL mknodat -289 UNIMPL fchownat +286 STD { int|linux_sys||openat(int fd, const char *path, \ + int flags, ... linux_umode_t mode); } +287 NOARGS { int|sys||mkdirat(int fd, const char *path, \ + linux_umode_t mode); } +288 STD { int|linux_sys||mknodat(int fd, const char *path, \ + linux_umode_t mode, unsigned dev); } +289 STD { int|linux_sys||fchownat(int fd, const char *path, \ + uid_t owner, gid_t group, int flag); } 290 UNIMPL futimesat -291 UNIMPL fstatat64 -292 UNIMPL unlinkat -293 UNIMPL renameat -294 UNIMPL linkat -295 UNIMPL symlinkat -296 UNIMPL readlinkat -297 UNIMPL fchmodat -298 UNIMPL faccessat +291 STD { int|linux_sys||fstatat64(int fd, const char *path, \ + struct linux_stat64 *sp, int flag); } +292 STD { int|linux_sys||unlinkat(int fd, const char *path, \ + int flag); } +293 NOARGS { int|sys||renameat(int fromfd, const char *from, \ + int tofd, const char *to); } +294 STD { int|linux_sys||linkat(int fd1, const char *name1, \ + int fd2, const char *name2, int flags); } +295 NOARGS { int|sys||symlinkat(const char *path1, int fd, \ + const char *path2); } +296 NOARGS { int|sys||readlinkat(int fd, const char *path, \ + char *buf, size_t bufsize); } +297 STD { int|linux_sys||fchmodat(int fd, const char *path, \ + linux_umode_t mode); } +298 STD { int|linux_sys||faccessat(int fd, const char *path, \ + int amode); } 299 STD { int|linux_sys||set_robust_list( \ struct linux_robust_list_head *head, size_t len); } 300 STD { int|linux_sys||get_robust_list(int pid, \
CVS commit: src/sys/compat/linux/arch/powerpc
Module Name:src Committed By: njoly Date: Tue Dec 10 14:55:07 UTC 2013 Modified Files: src/sys/compat/linux/arch/powerpc: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c Log Message: Regen. To generate a diff of this commit: cvs rdiff -u -r1.63 -r1.64 src/sys/compat/linux/arch/powerpc/linux_syscall.h \ src/sys/compat/linux/arch/powerpc/linux_sysent.c cvs rdiff -u -r1.62 -r1.63 \ src/sys/compat/linux/arch/powerpc/linux_syscallargs.h \ src/sys/compat/linux/arch/powerpc/linux_syscalls.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/powerpc/linux_syscall.h diff -u src/sys/compat/linux/arch/powerpc/linux_syscall.h:1.63 src/sys/compat/linux/arch/powerpc/linux_syscall.h:1.64 --- src/sys/compat/linux/arch/powerpc/linux_syscall.h:1.63 Sun Dec 8 15:56:13 2013 +++ src/sys/compat/linux/arch/powerpc/linux_syscall.h Tue Dec 10 14:55:07 2013 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.63 2013/12/08 15:56:13 njoly Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.64 2013/12/10 14:55:07 njoly Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.57 2013/12/08 15:55:10 njoly Exp + * created from NetBSD: syscalls.master,v 1.58 2013/12/10 14:54:36 njoly Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -603,6 +603,42 @@ /* syscall: ppoll ret: int args: struct pollfd * int struct linux_timespec * linux_sigset_t * */ #define LINUX_SYS_ppoll 281 +/* syscall: openat ret: int args: int const char * int ... */ +#define LINUX_SYS_openat 286 + +/* syscall: mkdirat ret: int args: int const char * linux_umode_t */ +#define LINUX_SYS_mkdirat 287 + +/* syscall: mknodat ret: int args: int const char * linux_umode_t unsigned */ +#define LINUX_SYS_mknodat 288 + +/* syscall: fchownat ret: int args: int const char * uid_t gid_t int */ +#define LINUX_SYS_fchownat 289 + +/* syscall: fstatat64 ret: int args: int const char * struct linux_stat64 * int */ +#define LINUX_SYS_fstatat64 291 + +/* syscall: unlinkat ret: int args: int const char * int */ +#define LINUX_SYS_unlinkat 292 + +/* syscall: renameat ret: int args: int const char * int const char * */ +#define LINUX_SYS_renameat 293 + +/* syscall: linkat ret: int args: int const char * int const char * int */ +#define LINUX_SYS_linkat 294 + +/* syscall: symlinkat ret: int args: const char * int const char * */ +#define LINUX_SYS_symlinkat 295 + +/* syscall: readlinkat ret: int args: int const char * char * size_t */ +#define LINUX_SYS_readlinkat 296 + +/* syscall: fchmodat ret: int args: int const char * linux_umode_t */ +#define LINUX_SYS_fchmodat 297 + +/* syscall: faccessat ret: int args: int const char * int */ +#define LINUX_SYS_faccessat 298 + /* syscall: set_robust_list ret: int args: struct linux_robust_list_head * size_t */ #define LINUX_SYS_set_robust_list 299 Index: src/sys/compat/linux/arch/powerpc/linux_sysent.c diff -u src/sys/compat/linux/arch/powerpc/linux_sysent.c:1.63 src/sys/compat/linux/arch/powerpc/linux_sysent.c:1.64 --- src/sys/compat/linux/arch/powerpc/linux_sysent.c:1.63 Sun Dec 8 15:56:13 2013 +++ src/sys/compat/linux/arch/powerpc/linux_sysent.c Tue Dec 10 14:55:07 2013 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_sysent.c,v 1.63 2013/12/08 15:56:13 njoly Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.64 2013/12/10 14:55:07 njoly Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.57 2013/12/08 15:55:10 njoly Exp + * created from NetBSD: syscalls.master,v 1.58 2013/12/10 14:54:36 njoly Exp */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: linux_sysent.c,v 1.63 2013/12/08 15:56:13 njoly Exp $); +__KERNEL_RCSID(0, $NetBSD: linux_sysent.c,v 1.64 2013/12/10 14:55:07 njoly Exp $); #include sys/param.h #include sys/poll.h @@ -606,32 +606,32 @@ struct sysent linux_sysent[] = { linux_sys_nosys }, /* 284 = unimplemented tee */ { 0, 0, 0, linux_sys_nosys }, /* 285 = unimplemented vmsplice */ - { 0, 0, 0, - linux_sys_nosys }, /* 286 = unimplemented openat */ - { 0, 0, 0, - linux_sys_nosys }, /* 287 = unimplemented mkdirat */ - { 0, 0, 0, - linux_sys_nosys }, /* 288 = unimplemented mknodat */ - { 0, 0, 0, - linux_sys_nosys }, /* 289 = unimplemented fchownat */ + { ns(struct linux_sys_openat_args), SYCALL_ARG_PTR, + (sy_call_t *)linux_sys_openat }, /* 286 = openat */ + { ns(struct sys_mkdirat_args), SYCALL_ARG_PTR, + (sy_call_t *)sys_mkdirat }, /* 287 = mkdirat */ + { ns(struct linux_sys_mknodat_args), SYCALL_ARG_PTR, + (sy_call_t *)linux_sys_mknodat }, /* 288 = mknodat */ + { ns(struct linux_sys_fchownat_args), SYCALL_ARG_PTR, + (sy_call_t *)linux_sys_fchownat }, /* 289 = fchownat */ { 0, 0, 0, linux_sys_nosys }, /* 290 =
CVS commit: src/sys/compat/linux/arch/i386
Module Name:src Committed By: dsl Date: Mon Dec 9 08:33:48 UTC 2013 Modified Files: src/sys/compat/linux/arch/i386: linux_machdep.c Log Message: Missing change to the fxsave structure rename To generate a diff of this commit: cvs rdiff -u -r1.153 -r1.154 src/sys/compat/linux/arch/i386/linux_machdep.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/i386/linux_machdep.c diff -u src/sys/compat/linux/arch/i386/linux_machdep.c:1.153 src/sys/compat/linux/arch/i386/linux_machdep.c:1.154 --- src/sys/compat/linux/arch/i386/linux_machdep.c:1.153 Sun Dec 1 01:05:16 2013 +++ src/sys/compat/linux/arch/i386/linux_machdep.c Mon Dec 9 08:33:48 2013 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_machdep.c,v 1.153 2013/12/01 01:05:16 christos Exp $ */ +/* $NetBSD: linux_machdep.c,v 1.154 2013/12/09 08:33:48 dsl Exp $ */ /*- * Copyright (c) 1995, 2000, 2008, 2009 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: linux_machdep.c,v 1.153 2013/12/01 01:05:16 christos Exp $); +__KERNEL_RCSID(0, $NetBSD: linux_machdep.c,v 1.154 2013/12/09 08:33:48 dsl Exp $); #if defined(_KERNEL_OPT) #include opt_vm86.h @@ -142,8 +142,8 @@ linux_setregs(struct lwp *l, struct exec l-l_md.md_flags = ~MDL_USEDFPU; if (i386_use_fxsave) { - pcb-pcb_savefpu.sv_xmm.sv_env.en_cw = __Linux_NPXCW__; - pcb-pcb_savefpu.sv_xmm.sv_env.en_mxcsr = __INITIAL_MXCSR__; + pcb-pcb_savefpu.sv_xmm.sv_env.fx_cw = __Linux_NPXCW__; + pcb-pcb_savefpu.sv_xmm.sv_env.fx_mxcsr = __INITIAL_MXCSR__; } else pcb-pcb_savefpu.sv_87.sv_env.en_cw = __Linux_NPXCW__;
CVS commit: src/sys/compat/linux/arch
Module Name:src Committed By: njoly Date: Sun Dec 8 15:56:13 UTC 2013 Modified Files: src/sys/compat/linux/arch/alpha: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/amd64: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/arm: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/m68k: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/mips: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/powerpc: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c Log Message: Regen. To generate a diff of this commit: cvs rdiff -u -r1.86 -r1.87 src/sys/compat/linux/arch/alpha/linux_syscall.h \ src/sys/compat/linux/arch/alpha/linux_sysent.c cvs rdiff -u -r1.85 -r1.86 \ src/sys/compat/linux/arch/alpha/linux_syscallargs.h cvs rdiff -u -r1.87 -r1.88 src/sys/compat/linux/arch/alpha/linux_syscalls.c cvs rdiff -u -r1.47 -r1.48 src/sys/compat/linux/arch/amd64/linux_syscall.h \ src/sys/compat/linux/arch/amd64/linux_syscallargs.h \ src/sys/compat/linux/arch/amd64/linux_syscalls.c \ src/sys/compat/linux/arch/amd64/linux_sysent.c cvs rdiff -u -r1.56 -r1.57 src/sys/compat/linux/arch/arm/linux_syscall.h \ src/sys/compat/linux/arch/arm/linux_syscallargs.h \ src/sys/compat/linux/arch/arm/linux_syscalls.c \ src/sys/compat/linux/arch/arm/linux_sysent.c cvs rdiff -u -r1.84 -r1.85 src/sys/compat/linux/arch/m68k/linux_syscall.h \ src/sys/compat/linux/arch/m68k/linux_syscalls.c \ src/sys/compat/linux/arch/m68k/linux_sysent.c cvs rdiff -u -r1.83 -r1.84 src/sys/compat/linux/arch/m68k/linux_syscallargs.h cvs rdiff -u -r1.53 -r1.54 src/sys/compat/linux/arch/mips/linux_syscall.h cvs rdiff -u -r1.52 -r1.53 src/sys/compat/linux/arch/mips/linux_syscallargs.h \ src/sys/compat/linux/arch/mips/linux_syscalls.c \ src/sys/compat/linux/arch/mips/linux_sysent.c cvs rdiff -u -r1.62 -r1.63 src/sys/compat/linux/arch/powerpc/linux_syscall.h \ src/sys/compat/linux/arch/powerpc/linux_sysent.c cvs rdiff -u -r1.61 -r1.62 \ src/sys/compat/linux/arch/powerpc/linux_syscallargs.h \ src/sys/compat/linux/arch/powerpc/linux_syscalls.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/alpha/linux_syscall.h diff -u src/sys/compat/linux/arch/alpha/linux_syscall.h:1.86 src/sys/compat/linux/arch/alpha/linux_syscall.h:1.87 --- src/sys/compat/linux/arch/alpha/linux_syscall.h:1.86 Tue Nov 19 03:53:09 2013 +++ src/sys/compat/linux/arch/alpha/linux_syscall.h Sun Dec 8 15:56:12 2013 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.86 2013/11/19 03:53:09 chs Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.87 2013/12/08 15:56:12 njoly Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.80 2013/11/19 03:52:07 chs Exp + * created from NetBSD: syscalls.master,v 1.81 2013/12/08 15:55:10 njoly Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -30,7 +30,7 @@ /* syscall: close ret: int args: int */ #define LINUX_SYS_close 6 -/* syscall: creat ret: int args: const char * mode_t */ +/* syscall: creat ret: int args: const char * linux_umode_t */ #define LINUX_SYS_creat 8 /* syscall: link ret: int args: const char * const char * */ @@ -45,7 +45,7 @@ /* syscall: fchdir ret: int args: int */ #define LINUX_SYS_fchdir 13 -/* syscall: mknod ret: int args: const char * int int */ +/* syscall: mknod ret: int args: const char * linux_umode_t int */ #define LINUX_SYS_mknod 14 /* syscall: chmod ret: int args: const char * int */ @@ -90,7 +90,7 @@ /* syscall: pipe ret: int args: */ #define LINUX_SYS_pipe 42 -/* syscall: open ret: int args: const char * int int */ +/* syscall: open ret: int args: const char * int linux_umode_t */ #define LINUX_SYS_open 45 /* syscall: getgid_with_egid ret: gid_t args: */ @@ -234,7 +234,7 @@ /* syscall: __posix_fchown ret: int args: int int int */ #define LINUX_SYS___posix_fchown 123 -/* syscall: fchmod ret: int args: int mode_t */ +/* syscall: fchmod ret: int args: int linux_umode_t */ #define LINUX_SYS_fchmod 124 /* syscall: recvfrom ret: int args: int void * int int struct osockaddr * int * */ @@ -270,7 +270,7 @@ /* syscall: socketpair ret: int args: int int int int * */ #define LINUX_SYS_socketpair 135 -/* syscall: mkdir ret: int args: const char * int */ +/* syscall: mkdir ret: int args: const char * linux_umode_t */ #define LINUX_SYS_mkdir 136 /* syscall: rmdir ret: int args: const char * */ Index: src/sys/compat/linux/arch/alpha/linux_sysent.c diff -u src/sys/compat/linux/arch/alpha/linux_sysent.c:1.86
CVS commit: src/sys/compat/linux/arch
Module Name:src Committed By: chs Date: Tue Nov 19 03:52:07 UTC 2013 Modified Files: src/sys/compat/linux/arch/alpha: syscalls.master src/sys/compat/linux/arch/arm: syscalls.master src/sys/compat/linux/arch/m68k: syscalls.master src/sys/compat/linux/arch/mips: syscalls.master Log Message: add the *at() syscalls. To generate a diff of this commit: cvs rdiff -u -r1.79 -r1.80 src/sys/compat/linux/arch/alpha/syscalls.master cvs rdiff -u -r1.52 -r1.53 src/sys/compat/linux/arch/arm/syscalls.master cvs rdiff -u -r1.77 -r1.78 src/sys/compat/linux/arch/m68k/syscalls.master cvs rdiff -u -r1.47 -r1.48 src/sys/compat/linux/arch/mips/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/alpha/syscalls.master diff -u src/sys/compat/linux/arch/alpha/syscalls.master:1.79 src/sys/compat/linux/arch/alpha/syscalls.master:1.80 --- src/sys/compat/linux/arch/alpha/syscalls.master:1.79 Tue Sep 24 13:27:49 2013 +++ src/sys/compat/linux/arch/alpha/syscalls.master Tue Nov 19 03:52:07 2013 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.79 2013/09/24 13:27:49 njoly Exp $ + $NetBSD: syscalls.master,v 1.80 2013/11/19 03:52:07 chs Exp $ ; ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -698,19 +698,31 @@ 447 UNIMPL fdatasync 448 UNIMPL kexec_load 449 UNIMPL migrate_pages -450 UNIMPL openat -451 UNIMPL mkdirat -452 UNIMPL mknodat -453 UNIMPL fchownat +450 STD { int|linux_sys||openat(int fd, const char *path, \ + int flags, ... linux_umode_t mode); } +451 NOARGS { int|sys||mkdirat(int fd, const char *path, \ + linux_umode_t mode); } +452 STD { int|linux_sys||mknodat(int fd, const char *path, \ + linux_umode_t mode, unsigned dev); } +453 STD { int|linux_sys||fchownat(int fd, const char *path, \ + uid_t owner, gid_t group, int flag); } 454 UNIMPL futimesat -455 UNIMPL fstatat64 -456 UNIMPL unlinkat -457 UNIMPL renameat -458 UNIMPL linkat -459 UNIMPL symlinkat -460 UNIMPL readlinkat -461 UNIMPL fchmodat -462 UNIMPL faccessat +455 UNIMPL { int|linux_sys||fstatat64(int fd, const char *path, \ + struct linux_stat64 *sp, int flag); } +456 STD { int|linux_sys||unlinkat(int fd, const char *path, \ + int flag); } +457 NOARGS { int|sys||renameat(int fromfd, const char *from, \ + int tofd, const char *to); } +458 STD { int|linux_sys||linkat(int fd1, const char *name1, \ + int fd2, const char *name2, int flags); } +459 NOARGS { int|sys||symlinkat(const char *path1, int fd, \ + const char *path2); } +460 NOARGS { int|sys||readlinkat(int fd, const char *path, \ + char *buf, size_t bufsize); } +461 STD { int|linux_sys||fchmodat(int fd, const char *path, \ + linux_umode_t mode); } +462 STD { int|linux_sys||faccessat(int fd, const char *path, \ + int amode); } 463 UNIMPL pselect6 464 STD { int|linux_sys||ppoll(struct pollfd *fds, int nfds, \ struct linux_timespec *timeout, \ Index: src/sys/compat/linux/arch/arm/syscalls.master diff -u src/sys/compat/linux/arch/arm/syscalls.master:1.52 src/sys/compat/linux/arch/arm/syscalls.master:1.53 --- src/sys/compat/linux/arch/arm/syscalls.master:1.52 Thu Nov 7 19:37:18 2013 +++ src/sys/compat/linux/arch/arm/syscalls.master Tue Nov 19 03:52:07 2013 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.52 2013/11/07 19:37:18 njoly Exp $ + $NetBSD: syscalls.master,v 1.53 2013/11/19 03:52:07 chs Exp $ ; Derived from sys/compat/linux/arch/*/syscalls.master ; and from Linux 2.4.12 arch/arm/kernel/calls.S @@ -503,19 +503,31 @@ 319 UNIMPL mbind 320 UNIMPL get_mempolicy 321 UNIMPL set_mempolicy -322 UNIMPL openat -323 UNIMPL mkdirat -324 UNIMPL mknodat -325 UNIMPL fchownat +322 STD { int|linux_sys||openat(int fd, const char *path, \ + int flags, ... linux_umode_t mode); } +323 NOARGS { int|sys||mkdirat(int fd, const char *path, \ + linux_umode_t mode); } +324 STD { int|linux_sys||mknodat(int fd, const char *path, \ + linux_umode_t mode, unsigned dev); } +325 STD { int|linux_sys||fchownat(int fd, const char *path, \ + uid_t owner, gid_t group, int flag); } 326 UNIMPL futimesat -327 UNIMPL fstatat64 -328 UNIMPL unlinkat -329 UNIMPL renameat -330 UNIMPL linkat -331 UNIMPL symlinkat -332 UNIMPL readlinkat -333 UNIMPL fchmodat -334 UNIMPL faccessat +327 STD { int|linux_sys||fstatat64(int fd, const char *path, \ + struct linux_stat64 *sp, int flag); } +328 STD { int|linux_sys||unlinkat(int fd, const char *path, \ + int flag); } +329 NOARGS { int|sys||renameat(int fromfd, const char *from, \ + int tofd, const char *to); } +330 STD { int|linux_sys||linkat(int fd1, const char *name1, \ + int fd2, const char *name2, int flags); } +331 NOARGS { int|sys||symlinkat(const char *path1, int fd, \ + const char *path2); } +332 NOARGS { int|sys||readlinkat(int fd, const
CVS commit: src/sys/compat/linux/arch
Module Name:src Committed By: chs Date: Tue Nov 19 03:53:09 UTC 2013 Modified Files: src/sys/compat/linux/arch/alpha: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/arm: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/m68k: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/mips: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c Log Message: regen To generate a diff of this commit: cvs rdiff -u -r1.85 -r1.86 src/sys/compat/linux/arch/alpha/linux_syscall.h \ src/sys/compat/linux/arch/alpha/linux_sysent.c cvs rdiff -u -r1.84 -r1.85 \ src/sys/compat/linux/arch/alpha/linux_syscallargs.h cvs rdiff -u -r1.86 -r1.87 src/sys/compat/linux/arch/alpha/linux_syscalls.c cvs rdiff -u -r1.55 -r1.56 src/sys/compat/linux/arch/arm/linux_syscall.h \ src/sys/compat/linux/arch/arm/linux_syscallargs.h \ src/sys/compat/linux/arch/arm/linux_syscalls.c \ src/sys/compat/linux/arch/arm/linux_sysent.c cvs rdiff -u -r1.83 -r1.84 src/sys/compat/linux/arch/m68k/linux_syscall.h \ src/sys/compat/linux/arch/m68k/linux_syscalls.c \ src/sys/compat/linux/arch/m68k/linux_sysent.c cvs rdiff -u -r1.82 -r1.83 src/sys/compat/linux/arch/m68k/linux_syscallargs.h cvs rdiff -u -r1.52 -r1.53 src/sys/compat/linux/arch/mips/linux_syscall.h cvs rdiff -u -r1.51 -r1.52 src/sys/compat/linux/arch/mips/linux_syscallargs.h \ src/sys/compat/linux/arch/mips/linux_syscalls.c \ src/sys/compat/linux/arch/mips/linux_sysent.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/alpha/linux_syscall.h diff -u src/sys/compat/linux/arch/alpha/linux_syscall.h:1.85 src/sys/compat/linux/arch/alpha/linux_syscall.h:1.86 --- src/sys/compat/linux/arch/alpha/linux_syscall.h:1.85 Tue Sep 24 13:28:50 2013 +++ src/sys/compat/linux/arch/alpha/linux_syscall.h Tue Nov 19 03:53:09 2013 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.85 2013/09/24 13:28:50 njoly Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.86 2013/11/19 03:53:09 chs Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.79 2013/09/24 13:27:49 njoly Exp + * created from NetBSD: syscalls.master,v 1.80 2013/11/19 03:52:07 chs Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -594,6 +594,39 @@ /* syscall: tgkill ret: int args: int int int */ #define LINUX_SYS_tgkill 424 +/* syscall: openat ret: int args: int const char * int ... */ +#define LINUX_SYS_openat 450 + +/* syscall: mkdirat ret: int args: int const char * linux_umode_t */ +#define LINUX_SYS_mkdirat 451 + +/* syscall: mknodat ret: int args: int const char * linux_umode_t unsigned */ +#define LINUX_SYS_mknodat 452 + +/* syscall: fchownat ret: int args: int const char * uid_t gid_t int */ +#define LINUX_SYS_fchownat 453 + +/* syscall: unlinkat ret: int args: int const char * int */ +#define LINUX_SYS_unlinkat 456 + +/* syscall: renameat ret: int args: int const char * int const char * */ +#define LINUX_SYS_renameat 457 + +/* syscall: linkat ret: int args: int const char * int const char * int */ +#define LINUX_SYS_linkat 458 + +/* syscall: symlinkat ret: int args: const char * int const char * */ +#define LINUX_SYS_symlinkat 459 + +/* syscall: readlinkat ret: int args: int const char * char * size_t */ +#define LINUX_SYS_readlinkat 460 + +/* syscall: fchmodat ret: int args: int const char * linux_umode_t */ +#define LINUX_SYS_fchmodat 461 + +/* syscall: faccessat ret: int args: int const char * int */ +#define LINUX_SYS_faccessat 462 + /* syscall: ppoll ret: int args: struct pollfd * int struct linux_timespec * linux_sigset_t * */ #define LINUX_SYS_ppoll 464 Index: src/sys/compat/linux/arch/alpha/linux_sysent.c diff -u src/sys/compat/linux/arch/alpha/linux_sysent.c:1.85 src/sys/compat/linux/arch/alpha/linux_sysent.c:1.86 --- src/sys/compat/linux/arch/alpha/linux_sysent.c:1.85 Tue Sep 24 13:28:50 2013 +++ src/sys/compat/linux/arch/alpha/linux_sysent.c Tue Nov 19 03:53:09 2013 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_sysent.c,v 1.85 2013/09/24 13:28:50 njoly Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.86 2013/11/19 03:53:09 chs Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.79 2013/09/24 13:27:49 njoly Exp + * created from NetBSD: syscalls.master,v 1.80 2013/11/19 03:52:07 chs Exp */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: linux_sysent.c,v 1.85 2013/09/24 13:28:50 njoly Exp $); +__KERNEL_RCSID(0, $NetBSD: linux_sysent.c,v 1.86 2013/11/19 03:53:09 chs Exp $); #if defined(_KERNEL_OPT) #include opt_sysv.h @@ -970,32 +970,32 @@ struct sysent linux_sysent[] = {
CVS commit: src/sys/compat/linux/arch/amd64
Module Name:src Committed By: chs Date: Mon Nov 18 01:32:32 UTC 2013 Modified Files: src/sys/compat/linux/arch/amd64: linux_machdep.c Log Message: initialize %ds to something valid to help ptrace(). To generate a diff of this commit: cvs rdiff -u -r1.41 -r1.42 src/sys/compat/linux/arch/amd64/linux_machdep.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/amd64/linux_machdep.c diff -u src/sys/compat/linux/arch/amd64/linux_machdep.c:1.41 src/sys/compat/linux/arch/amd64/linux_machdep.c:1.42 --- src/sys/compat/linux/arch/amd64/linux_machdep.c:1.41 Wed Oct 23 20:18:51 2013 +++ src/sys/compat/linux/arch/amd64/linux_machdep.c Mon Nov 18 01:32:32 2013 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_machdep.c,v 1.41 2013/10/23 20:18:51 drochner Exp $ */ +/* $NetBSD: linux_machdep.c,v 1.42 2013/11/18 01:32:32 chs Exp $ */ /*- * Copyright (c) 2005 Emmanuel Dreyfus, all rights reserved. @@ -33,7 +33,7 @@ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: linux_machdep.c,v 1.41 2013/10/23 20:18:51 drochner Exp $); +__KERNEL_RCSID(0, $NetBSD: linux_machdep.c,v 1.42 2013/11/18 01:32:32 chs Exp $); #include sys/param.h #include sys/types.h @@ -116,7 +116,7 @@ linux_setregs(struct lwp *l, struct exec tf-tf_rflags = PSL_USERSET; tf-tf_cs = GSEL(GUCODE_SEL, SEL_UPL); tf-tf_ss = GSEL(GUDATA_SEL, SEL_UPL); - tf-tf_ds = 0; + tf-tf_ds = GSEL(GUDATA_SEL, SEL_UPL); tf-tf_es = 0; cpu_fsgs_zero(l);
CVS commit: src/sys/compat/linux/arch
Module Name:src Committed By: njoly Date: Tue Sep 24 13:28:51 UTC 2013 Modified Files: src/sys/compat/linux/arch/alpha: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/amd64: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/arm: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/i386: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/m68k: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/mips: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c src/sys/compat/linux/arch/powerpc: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c Log Message: Regen for utimensat(2). To generate a diff of this commit: cvs rdiff -u -r1.84 -r1.85 src/sys/compat/linux/arch/alpha/linux_syscall.h \ src/sys/compat/linux/arch/alpha/linux_sysent.c cvs rdiff -u -r1.83 -r1.84 \ src/sys/compat/linux/arch/alpha/linux_syscallargs.h cvs rdiff -u -r1.85 -r1.86 src/sys/compat/linux/arch/alpha/linux_syscalls.c cvs rdiff -u -r1.44 -r1.45 src/sys/compat/linux/arch/amd64/linux_syscall.h \ src/sys/compat/linux/arch/amd64/linux_syscallargs.h \ src/sys/compat/linux/arch/amd64/linux_syscalls.c \ src/sys/compat/linux/arch/amd64/linux_sysent.c cvs rdiff -u -r1.53 -r1.54 src/sys/compat/linux/arch/arm/linux_syscall.h \ src/sys/compat/linux/arch/arm/linux_syscallargs.h \ src/sys/compat/linux/arch/arm/linux_syscalls.c \ src/sys/compat/linux/arch/arm/linux_sysent.c cvs rdiff -u -r1.94 -r1.95 src/sys/compat/linux/arch/i386/linux_syscall.h \ src/sys/compat/linux/arch/i386/linux_syscallargs.h \ src/sys/compat/linux/arch/i386/linux_sysent.c cvs rdiff -u -r1.95 -r1.96 src/sys/compat/linux/arch/i386/linux_syscalls.c cvs rdiff -u -r1.81 -r1.82 src/sys/compat/linux/arch/m68k/linux_syscall.h \ src/sys/compat/linux/arch/m68k/linux_syscalls.c \ src/sys/compat/linux/arch/m68k/linux_sysent.c cvs rdiff -u -r1.80 -r1.81 src/sys/compat/linux/arch/m68k/linux_syscallargs.h cvs rdiff -u -r1.50 -r1.51 src/sys/compat/linux/arch/mips/linux_syscall.h cvs rdiff -u -r1.49 -r1.50 src/sys/compat/linux/arch/mips/linux_syscallargs.h \ src/sys/compat/linux/arch/mips/linux_syscalls.c \ src/sys/compat/linux/arch/mips/linux_sysent.c cvs rdiff -u -r1.60 -r1.61 src/sys/compat/linux/arch/powerpc/linux_syscall.h \ src/sys/compat/linux/arch/powerpc/linux_sysent.c cvs rdiff -u -r1.59 -r1.60 \ src/sys/compat/linux/arch/powerpc/linux_syscallargs.h \ src/sys/compat/linux/arch/powerpc/linux_syscalls.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/alpha/linux_syscall.h diff -u src/sys/compat/linux/arch/alpha/linux_syscall.h:1.84 src/sys/compat/linux/arch/alpha/linux_syscall.h:1.85 --- src/sys/compat/linux/arch/alpha/linux_syscall.h:1.84 Sun Sep 15 12:59:17 2013 +++ src/sys/compat/linux/arch/alpha/linux_syscall.h Tue Sep 24 13:28:50 2013 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.84 2013/09/15 12:59:17 njoly Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.85 2013/09/24 13:28:50 njoly Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.78 2013/09/15 12:58:34 njoly Exp + * created from NetBSD: syscalls.master,v 1.79 2013/09/24 13:27:49 njoly Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -603,6 +603,9 @@ /* syscall: get_robust_list ret: int args: int struct linux_robust_list_head ** size_t * */ #define LINUX_SYS_get_robust_list 467 +/* syscall: utimensat ret: int args: int const char * struct linux_timespec * int */ +#define LINUX_SYS_utimensat 475 + /* syscall: dup3 ret: int args: int int int */ #define LINUX_SYS_dup3 487 Index: src/sys/compat/linux/arch/alpha/linux_sysent.c diff -u src/sys/compat/linux/arch/alpha/linux_sysent.c:1.84 src/sys/compat/linux/arch/alpha/linux_sysent.c:1.85 --- src/sys/compat/linux/arch/alpha/linux_sysent.c:1.84 Sun Sep 15 12:59:17 2013 +++ src/sys/compat/linux/arch/alpha/linux_sysent.c Tue Sep 24 13:28:50 2013 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_sysent.c,v 1.84 2013/09/15 12:59:17 njoly Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.85 2013/09/24 13:28:50 njoly Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.78 2013/09/15 12:58:34 njoly Exp + * created from NetBSD: syscalls.master,v 1.79 2013/09/24 13:27:49 njoly Exp */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: linux_sysent.c,v 1.84 2013/09/15 12:59:17 njoly Exp $); +__KERNEL_RCSID(0, $NetBSD: linux_sysent.c,v 1.85 2013/09/24
CVS commit: src/sys/compat/linux/arch/alpha
Module Name:src Committed By: njoly Date: Sun Sep 15 12:59:17 UTC 2013 Modified Files: src/sys/compat/linux/arch/alpha: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c Log Message: Regen. To generate a diff of this commit: cvs rdiff -u -r1.83 -r1.84 src/sys/compat/linux/arch/alpha/linux_syscall.h \ src/sys/compat/linux/arch/alpha/linux_sysent.c cvs rdiff -u -r1.82 -r1.83 \ src/sys/compat/linux/arch/alpha/linux_syscallargs.h cvs rdiff -u -r1.84 -r1.85 src/sys/compat/linux/arch/alpha/linux_syscalls.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/alpha/linux_syscall.h diff -u src/sys/compat/linux/arch/alpha/linux_syscall.h:1.83 src/sys/compat/linux/arch/alpha/linux_syscall.h:1.84 --- src/sys/compat/linux/arch/alpha/linux_syscall.h:1.83 Wed Sep 19 21:24:36 2012 +++ src/sys/compat/linux/arch/alpha/linux_syscall.h Sun Sep 15 12:59:17 2013 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.83 2012/09/19 21:24:36 pooka Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.84 2013/09/15 12:59:17 njoly Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.77 2012/09/19 21:19:14 pooka Exp + * created from NetBSD: syscalls.master,v 1.78 2013/09/15 12:58:34 njoly Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -501,7 +501,7 @@ /* syscall: setitimer ret: int args: int const struct itimerval50 * struct itimerval50 * */ #define LINUX_SYS_setitimer 362 -/* syscall: utimes ret: int args: char * struct timeval50 * */ +/* syscall: utimes ret: int args: char * struct linux_timeval * */ #define LINUX_SYS_utimes 363 /* syscall: getrusage ret: int args: int struct rusage50 * */ Index: src/sys/compat/linux/arch/alpha/linux_sysent.c diff -u src/sys/compat/linux/arch/alpha/linux_sysent.c:1.83 src/sys/compat/linux/arch/alpha/linux_sysent.c:1.84 --- src/sys/compat/linux/arch/alpha/linux_sysent.c:1.83 Wed Sep 19 21:24:36 2012 +++ src/sys/compat/linux/arch/alpha/linux_sysent.c Sun Sep 15 12:59:17 2013 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_sysent.c,v 1.83 2012/09/19 21:24:36 pooka Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.84 2013/09/15 12:59:17 njoly Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.77 2012/09/19 21:19:14 pooka Exp + * created from NetBSD: syscalls.master,v 1.78 2013/09/15 12:58:34 njoly Exp */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: linux_sysent.c,v 1.83 2012/09/19 21:24:36 pooka Exp $); +__KERNEL_RCSID(0, $NetBSD: linux_sysent.c,v 1.84 2013/09/15 12:59:17 njoly Exp $); #if defined(_KERNEL_OPT) #include opt_sysv.h @@ -796,8 +796,8 @@ struct sysent linux_sysent[] = { (sy_call_t *)compat_50_sys_getitimer },/* 361 = getitimer */ { ns(struct compat_50_sys_setitimer_args), SYCALL_ARG_PTR, (sy_call_t *)compat_50_sys_setitimer },/* 362 = setitimer */ - { ns(struct compat_50_sys_utimes_args), SYCALL_ARG_PTR, - (sy_call_t *)compat_50_sys_utimes },/* 363 = utimes */ + { ns(struct linux_sys_utimes_args), SYCALL_ARG_PTR, + (sy_call_t *)linux_sys_utimes }, /* 363 = utimes */ { ns(struct compat_50_sys_getrusage_args), SYCALL_ARG_PTR, (sy_call_t *)compat_50_sys_getrusage },/* 364 = getrusage */ { ns(struct linux_sys_wait4_args), SYCALL_ARG_PTR, Index: src/sys/compat/linux/arch/alpha/linux_syscallargs.h diff -u src/sys/compat/linux/arch/alpha/linux_syscallargs.h:1.82 src/sys/compat/linux/arch/alpha/linux_syscallargs.h:1.83 --- src/sys/compat/linux/arch/alpha/linux_syscallargs.h:1.82 Wed Sep 19 21:24:36 2012 +++ src/sys/compat/linux/arch/alpha/linux_syscallargs.h Sun Sep 15 12:59:17 2013 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscallargs.h,v 1.82 2012/09/19 21:24:36 pooka Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.83 2013/09/15 12:59:17 njoly Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.77 2012/09/19 21:19:14 pooka Exp + * created from NetBSD: syscalls.master,v 1.78 2013/09/15 12:58:34 njoly Exp */ #ifndef _LINUX_SYS_SYSCALLARGS_H_ @@ -784,7 +784,11 @@ struct compat_50_sys_getitimer_args; struct compat_50_sys_setitimer_args; -struct compat_50_sys_utimes_args; +struct linux_sys_utimes_args { + syscallarg(char *) path; + syscallarg(struct linux_timeval *) times; +}; +check_syscall_args(linux_sys_utimes) struct compat_50_sys_getrusage_args; @@ -1376,7 +1380,7 @@ int compat_50_sys_getitimer(struct lwp * int compat_50_sys_setitimer(struct lwp *, const struct compat_50_sys_setitimer_args *, register_t *); -int compat_50_sys_utimes(struct lwp *, const struct compat_50_sys_utimes_args *, register_t *); +int linux_sys_utimes(struct lwp *, const struct linux_sys_utimes_args *, register_t *); int
CVS commit: src/sys/compat/linux/arch/powerpc
Module Name:src Committed By: pooka Date: Sun Aug 11 12:23:02 UTC 2013 Modified Files: src/sys/compat/linux/arch/powerpc: syscalls.master Log Message: Use long instead of int for ptrace addr. This makes things compile better on powerpc64 with a compiler which warns about int-to-pointer casts. XXX: sys/ptrace.h on Linux says that the addr parameter is a void *. To generate a diff of this commit: cvs rdiff -u -r1.52 -r1.53 src/sys/compat/linux/arch/powerpc/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/powerpc/syscalls.master diff -u src/sys/compat/linux/arch/powerpc/syscalls.master:1.52 src/sys/compat/linux/arch/powerpc/syscalls.master:1.53 --- src/sys/compat/linux/arch/powerpc/syscalls.master:1.52 Mon Apr 8 20:54:49 2013 +++ src/sys/compat/linux/arch/powerpc/syscalls.master Sun Aug 11 12:23:02 2013 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.52 2013/04/08 20:54:49 pooka Exp $ + $NetBSD: syscalls.master,v 1.53 2013/08/11 12:23:02 pooka Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -112,7 +112,7 @@ 24 NOARGS { uid_t|sys||getuid(void); } 25 STD { int|linux_sys||stime(linux_time_t *t); } 26 STD { int|linux_sys||ptrace(int request, int pid, \ - int addr, int data); } + long addr, int data); } 27 STD { int|linux_sys||alarm(unsigned int secs); } 28 OBSOL ofstat 29 STD { int|linux_sys||pause(void); }
CVS commit: src/sys/compat/linux/arch/powerpc
Module Name:src Committed By: pooka Date: Sun Aug 11 12:23:46 UTC 2013 Modified Files: src/sys/compat/linux/arch/powerpc: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c Log Message: regen To generate a diff of this commit: cvs rdiff -u -r1.58 -r1.59 src/sys/compat/linux/arch/powerpc/linux_syscall.h \ src/sys/compat/linux/arch/powerpc/linux_sysent.c cvs rdiff -u -r1.57 -r1.58 \ src/sys/compat/linux/arch/powerpc/linux_syscallargs.h \ src/sys/compat/linux/arch/powerpc/linux_syscalls.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/powerpc/linux_syscall.h diff -u src/sys/compat/linux/arch/powerpc/linux_syscall.h:1.58 src/sys/compat/linux/arch/powerpc/linux_syscall.h:1.59 --- src/sys/compat/linux/arch/powerpc/linux_syscall.h:1.58 Mon Apr 8 20:58:26 2013 +++ src/sys/compat/linux/arch/powerpc/linux_syscall.h Sun Aug 11 12:23:46 2013 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.58 2013/04/08 20:58:26 pooka Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.59 2013/08/11 12:23:46 pooka Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.52 2013/04/08 20:54:49 pooka Exp + * created from NetBSD: syscalls.master,v 1.53 2013/08/11 12:23:02 pooka Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -81,7 +81,7 @@ /* syscall: stime ret: int args: linux_time_t * */ #define LINUX_SYS_stime 25 -/* syscall: ptrace ret: int args: int int int int */ +/* syscall: ptrace ret: int args: int int long int */ #define LINUX_SYS_ptrace 26 /* syscall: alarm ret: int args: unsigned int */ Index: src/sys/compat/linux/arch/powerpc/linux_sysent.c diff -u src/sys/compat/linux/arch/powerpc/linux_sysent.c:1.58 src/sys/compat/linux/arch/powerpc/linux_sysent.c:1.59 --- src/sys/compat/linux/arch/powerpc/linux_sysent.c:1.58 Mon Apr 8 20:58:26 2013 +++ src/sys/compat/linux/arch/powerpc/linux_sysent.c Sun Aug 11 12:23:46 2013 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_sysent.c,v 1.58 2013/04/08 20:58:26 pooka Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.59 2013/08/11 12:23:46 pooka Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.52 2013/04/08 20:54:49 pooka Exp + * created from NetBSD: syscalls.master,v 1.53 2013/08/11 12:23:02 pooka Exp */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: linux_sysent.c,v 1.58 2013/04/08 20:58:26 pooka Exp $); +__KERNEL_RCSID(0, $NetBSD: linux_sysent.c,v 1.59 2013/08/11 12:23:46 pooka Exp $); #include sys/param.h #include sys/poll.h Index: src/sys/compat/linux/arch/powerpc/linux_syscallargs.h diff -u src/sys/compat/linux/arch/powerpc/linux_syscallargs.h:1.57 src/sys/compat/linux/arch/powerpc/linux_syscallargs.h:1.58 --- src/sys/compat/linux/arch/powerpc/linux_syscallargs.h:1.57 Mon Apr 8 20:58:26 2013 +++ src/sys/compat/linux/arch/powerpc/linux_syscallargs.h Sun Aug 11 12:23:46 2013 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscallargs.h,v 1.57 2013/04/08 20:58:26 pooka Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.58 2013/08/11 12:23:46 pooka Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.52 2013/04/08 20:54:49 pooka Exp + * created from NetBSD: syscalls.master,v 1.53 2013/08/11 12:23:02 pooka Exp */ #ifndef _LINUX_SYS_SYSCALLARGS_H_ @@ -101,7 +101,7 @@ check_syscall_args(linux_sys_stime) struct linux_sys_ptrace_args { syscallarg(int) request; syscallarg(int) pid; - syscallarg(int) addr; + syscallarg(long) addr; syscallarg(int) data; }; check_syscall_args(linux_sys_ptrace) Index: src/sys/compat/linux/arch/powerpc/linux_syscalls.c diff -u src/sys/compat/linux/arch/powerpc/linux_syscalls.c:1.57 src/sys/compat/linux/arch/powerpc/linux_syscalls.c:1.58 --- src/sys/compat/linux/arch/powerpc/linux_syscalls.c:1.57 Mon Apr 8 20:58:26 2013 +++ src/sys/compat/linux/arch/powerpc/linux_syscalls.c Sun Aug 11 12:23:46 2013 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_syscalls.c,v 1.57 2013/04/08 20:58:26 pooka Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.58 2013/08/11 12:23:46 pooka Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.52 2013/04/08 20:54:49 pooka Exp + * created from NetBSD: syscalls.master,v 1.53 2013/08/11 12:23:02 pooka Exp */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: linux_syscalls.c,v 1.57 2013/04/08 20:58:26 pooka Exp $); +__KERNEL_RCSID(0, $NetBSD: linux_syscalls.c,v 1.58 2013/08/11 12:23:46 pooka Exp $); #if defined(_KERNEL_OPT) #include sys/param.h
CVS commit: src/sys/compat/linux/arch/powerpc
Module Name:src Committed By: pooka Date: Sun Aug 11 18:34:43 UTC 2013 Modified Files: src/sys/compat/linux/arch/powerpc: syscalls.master Log Message: Linux treats the data parameter as a pointer/long too. The comments in the sys/ptrace.h on Linux say it should be an int, but the code glibc/musl/kernel disagrees. To generate a diff of this commit: cvs rdiff -u -r1.53 -r1.54 src/sys/compat/linux/arch/powerpc/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/powerpc/syscalls.master diff -u src/sys/compat/linux/arch/powerpc/syscalls.master:1.53 src/sys/compat/linux/arch/powerpc/syscalls.master:1.54 --- src/sys/compat/linux/arch/powerpc/syscalls.master:1.53 Sun Aug 11 12:23:02 2013 +++ src/sys/compat/linux/arch/powerpc/syscalls.master Sun Aug 11 18:34:43 2013 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.53 2013/08/11 12:23:02 pooka Exp $ + $NetBSD: syscalls.master,v 1.54 2013/08/11 18:34:43 pooka Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -112,7 +112,7 @@ 24 NOARGS { uid_t|sys||getuid(void); } 25 STD { int|linux_sys||stime(linux_time_t *t); } 26 STD { int|linux_sys||ptrace(int request, int pid, \ - long addr, int data); } + long addr, long data); } 27 STD { int|linux_sys||alarm(unsigned int secs); } 28 OBSOL ofstat 29 STD { int|linux_sys||pause(void); }
CVS commit: src/sys/compat/linux/arch/powerpc
Module Name:src Committed By: pooka Date: Sun Aug 11 18:35:19 UTC 2013 Modified Files: src/sys/compat/linux/arch/powerpc: linux_syscall.h linux_syscallargs.h linux_syscalls.c linux_sysent.c Log Message: regen To generate a diff of this commit: cvs rdiff -u -r1.59 -r1.60 src/sys/compat/linux/arch/powerpc/linux_syscall.h \ src/sys/compat/linux/arch/powerpc/linux_sysent.c cvs rdiff -u -r1.58 -r1.59 \ src/sys/compat/linux/arch/powerpc/linux_syscallargs.h \ src/sys/compat/linux/arch/powerpc/linux_syscalls.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/linux/arch/powerpc/linux_syscall.h diff -u src/sys/compat/linux/arch/powerpc/linux_syscall.h:1.59 src/sys/compat/linux/arch/powerpc/linux_syscall.h:1.60 --- src/sys/compat/linux/arch/powerpc/linux_syscall.h:1.59 Sun Aug 11 12:23:46 2013 +++ src/sys/compat/linux/arch/powerpc/linux_syscall.h Sun Aug 11 18:35:19 2013 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.59 2013/08/11 12:23:46 pooka Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.60 2013/08/11 18:35:19 pooka Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.53 2013/08/11 12:23:02 pooka Exp + * created from NetBSD: syscalls.master,v 1.54 2013/08/11 18:34:43 pooka Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -81,7 +81,7 @@ /* syscall: stime ret: int args: linux_time_t * */ #define LINUX_SYS_stime 25 -/* syscall: ptrace ret: int args: int int long int */ +/* syscall: ptrace ret: int args: int int long long */ #define LINUX_SYS_ptrace 26 /* syscall: alarm ret: int args: unsigned int */ Index: src/sys/compat/linux/arch/powerpc/linux_sysent.c diff -u src/sys/compat/linux/arch/powerpc/linux_sysent.c:1.59 src/sys/compat/linux/arch/powerpc/linux_sysent.c:1.60 --- src/sys/compat/linux/arch/powerpc/linux_sysent.c:1.59 Sun Aug 11 12:23:46 2013 +++ src/sys/compat/linux/arch/powerpc/linux_sysent.c Sun Aug 11 18:35:19 2013 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_sysent.c,v 1.59 2013/08/11 12:23:46 pooka Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.60 2013/08/11 18:35:19 pooka Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.53 2013/08/11 12:23:02 pooka Exp + * created from NetBSD: syscalls.master,v 1.54 2013/08/11 18:34:43 pooka Exp */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: linux_sysent.c,v 1.59 2013/08/11 12:23:46 pooka Exp $); +__KERNEL_RCSID(0, $NetBSD: linux_sysent.c,v 1.60 2013/08/11 18:35:19 pooka Exp $); #include sys/param.h #include sys/poll.h Index: src/sys/compat/linux/arch/powerpc/linux_syscallargs.h diff -u src/sys/compat/linux/arch/powerpc/linux_syscallargs.h:1.58 src/sys/compat/linux/arch/powerpc/linux_syscallargs.h:1.59 --- src/sys/compat/linux/arch/powerpc/linux_syscallargs.h:1.58 Sun Aug 11 12:23:46 2013 +++ src/sys/compat/linux/arch/powerpc/linux_syscallargs.h Sun Aug 11 18:35:19 2013 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscallargs.h,v 1.58 2013/08/11 12:23:46 pooka Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.59 2013/08/11 18:35:19 pooka Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.53 2013/08/11 12:23:02 pooka Exp + * created from NetBSD: syscalls.master,v 1.54 2013/08/11 18:34:43 pooka Exp */ #ifndef _LINUX_SYS_SYSCALLARGS_H_ @@ -102,7 +102,7 @@ struct linux_sys_ptrace_args { syscallarg(int) request; syscallarg(int) pid; syscallarg(long) addr; - syscallarg(int) data; + syscallarg(long) data; }; check_syscall_args(linux_sys_ptrace) Index: src/sys/compat/linux/arch/powerpc/linux_syscalls.c diff -u src/sys/compat/linux/arch/powerpc/linux_syscalls.c:1.58 src/sys/compat/linux/arch/powerpc/linux_syscalls.c:1.59 --- src/sys/compat/linux/arch/powerpc/linux_syscalls.c:1.58 Sun Aug 11 12:23:46 2013 +++ src/sys/compat/linux/arch/powerpc/linux_syscalls.c Sun Aug 11 18:35:19 2013 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_syscalls.c,v 1.58 2013/08/11 12:23:46 pooka Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.59 2013/08/11 18:35:19 pooka Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.53 2013/08/11 12:23:02 pooka Exp + * created from NetBSD: syscalls.master,v 1.54 2013/08/11 18:34:43 pooka Exp */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: linux_syscalls.c,v 1.58 2013/08/11 12:23:46 pooka Exp $); +__KERNEL_RCSID(0, $NetBSD: linux_syscalls.c,v 1.59 2013/08/11 18:35:19 pooka Exp $); #if defined(_KERNEL_OPT) #include sys/param.h