Module Name: src Committed By: pooka Date: Mon Apr 8 20:58:27 UTC 2013
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 src/sys/rump/kern/lib/libsys_linux: rump_linux_syscall.h rump_linux_syscallargs.h rump_linux_syscalls.c rump_linux_sysent.c Log Message: regen for utimes To generate a diff of this commit: cvs rdiff -u -r1.43 -r1.44 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.52 -r1.53 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.93 -r1.94 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.94 -r1.95 src/sys/compat/linux/arch/i386/linux_syscalls.c cvs rdiff -u -r1.80 -r1.81 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.79 -r1.80 src/sys/compat/linux/arch/m68k/linux_syscallargs.h cvs rdiff -u -r1.49 -r1.50 src/sys/compat/linux/arch/mips/linux_syscall.h cvs rdiff -u -r1.48 -r1.49 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.57 -r1.58 src/sys/compat/linux/arch/powerpc/linux_syscall.h \ src/sys/compat/linux/arch/powerpc/linux_sysent.c cvs rdiff -u -r1.56 -r1.57 \ src/sys/compat/linux/arch/powerpc/linux_syscallargs.h \ src/sys/compat/linux/arch/powerpc/linux_syscalls.c cvs rdiff -u -r1.1 -r1.2 \ src/sys/rump/kern/lib/libsys_linux/rump_linux_syscall.h cvs rdiff -u -r1.4 -r1.5 \ src/sys/rump/kern/lib/libsys_linux/rump_linux_syscallargs.h \ src/sys/rump/kern/lib/libsys_linux/rump_linux_syscalls.c \ src/sys/rump/kern/lib/libsys_linux/rump_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.43 src/sys/compat/linux/arch/amd64/linux_syscall.h:1.44 --- src/sys/compat/linux/arch/amd64/linux_syscall.h:1.43 Wed Sep 19 21:24:36 2012 +++ src/sys/compat/linux/arch/amd64/linux_syscall.h Mon Apr 8 20:58:21 2013 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.43 2012/09/19 21:24:36 pooka Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.44 2013/04/08 20:58:21 pooka Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.41 2012/09/19 21:19:14 pooka Exp + * created from NetBSD: syscalls.master,v 1.42 2013/04/08 20:54:47 pooka Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -591,6 +591,9 @@ /* syscall: "tgkill" ret: "int" args: "int" "int" "int" */ #define LINUX_SYS_tgkill 234 +/* syscall: "utimes" ret: "int" args: "const char *" "struct linux_timeval *" */ +#define LINUX_SYS_utimes 235 + /* syscall: "ppoll" ret: "int" args: "struct pollfd *" "int" "struct linux_timespec *" "linux_sigset_t *" */ #define LINUX_SYS_ppoll 271 Index: src/sys/compat/linux/arch/amd64/linux_syscallargs.h diff -u src/sys/compat/linux/arch/amd64/linux_syscallargs.h:1.43 src/sys/compat/linux/arch/amd64/linux_syscallargs.h:1.44 --- src/sys/compat/linux/arch/amd64/linux_syscallargs.h:1.43 Wed Sep 19 21:24:36 2012 +++ src/sys/compat/linux/arch/amd64/linux_syscallargs.h Mon Apr 8 20:58:21 2013 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscallargs.h,v 1.43 2012/09/19 21:24:36 pooka Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.44 2013/04/08 20:58:21 pooka Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.41 2012/09/19 21:19:14 pooka Exp + * created from NetBSD: syscalls.master,v 1.42 2013/04/08 20:54:47 pooka Exp */ #ifndef _LINUX_SYS_SYSCALLARGS_H_ @@ -892,6 +892,12 @@ struct linux_sys_tgkill_args { }; check_syscall_args(linux_sys_tgkill) +struct linux_sys_utimes_args { + syscallarg(const char *) path; + syscallarg(struct linux_timeval *) times; +}; +check_syscall_args(linux_sys_utimes) + struct linux_sys_ppoll_args { syscallarg(struct pollfd *) fds; syscallarg(int) nfds; @@ -1321,6 +1327,8 @@ int linux_sys_exit_group(struct lwp *, c int linux_sys_tgkill(struct lwp *, const struct linux_sys_tgkill_args *, register_t *); +int linux_sys_utimes(struct lwp *, const struct linux_sys_utimes_args *, register_t *); + int linux_sys_ppoll(struct lwp *, const struct linux_sys_ppoll_args *, register_t *); int linux_sys_set_robust_list(struct lwp *, const struct linux_sys_set_robust_list_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.43 src/sys/compat/linux/arch/amd64/linux_syscalls.c:1.44 --- src/sys/compat/linux/arch/amd64/linux_syscalls.c:1.43 Wed Sep 19 21:24:36 2012 +++ src/sys/compat/linux/arch/amd64/linux_syscalls.c Mon Apr 8 20:58:21 2013 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_syscalls.c,v 1.43 2012/09/19 21:24:36 pooka Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.44 2013/04/08 20:58:21 pooka Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.41 2012/09/19 21:19:14 pooka Exp + * created from NetBSD: syscalls.master,v 1.42 2013/04/08 20:54:47 pooka Exp */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.43 2012/09/19 21:24:36 pooka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.44 2013/04/08 20:58:21 pooka Exp $"); #if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT) @@ -299,7 +299,7 @@ const char *const linux_syscallnames[] = /* 232 */ "#232 (unimplemented epoll_wait)", /* 233 */ "#233 (unimplemented epoll_ctl)", /* 234 */ "tgkill", - /* 235 */ "#235 (unimplemented utimes)", + /* 235 */ "utimes", /* 236 */ "#236 (unimplemented vserver)", /* 237 */ "#237 (unimplemented mbind)", /* 238 */ "#238 (unimplemented set_mempolicy)", Index: src/sys/compat/linux/arch/amd64/linux_sysent.c diff -u src/sys/compat/linux/arch/amd64/linux_sysent.c:1.43 src/sys/compat/linux/arch/amd64/linux_sysent.c:1.44 --- src/sys/compat/linux/arch/amd64/linux_sysent.c:1.43 Wed Sep 19 21:24:36 2012 +++ src/sys/compat/linux/arch/amd64/linux_sysent.c Mon Apr 8 20:58:22 2013 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_sysent.c,v 1.43 2012/09/19 21:24:36 pooka Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.44 2013/04/08 20:58:22 pooka Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.41 2012/09/19 21:19:14 pooka Exp + * created from NetBSD: syscalls.master,v 1.42 2013/04/08 20:54:47 pooka Exp */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.43 2012/09/19 21:24:36 pooka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.44 2013/04/08 20:58:22 pooka Exp $"); #if defined(_KERNEL_OPT) #include "opt_sysv.h" @@ -548,8 +548,8 @@ struct sysent linux_sysent[] = { linux_sys_nosys }, /* 233 = unimplemented epoll_ctl */ { ns(struct linux_sys_tgkill_args), 0, (sy_call_t *)linux_sys_tgkill }, /* 234 = tgkill */ - { 0, 0, 0, - linux_sys_nosys }, /* 235 = unimplemented utimes */ + { ns(struct linux_sys_utimes_args), SYCALL_ARG_PTR, + (sy_call_t *)linux_sys_utimes }, /* 235 = utimes */ { 0, 0, 0, linux_sys_nosys }, /* 236 = unimplemented vserver */ { 0, 0, 0, Index: src/sys/compat/linux/arch/arm/linux_syscall.h diff -u src/sys/compat/linux/arch/arm/linux_syscall.h:1.52 src/sys/compat/linux/arch/arm/linux_syscall.h:1.53 --- src/sys/compat/linux/arch/arm/linux_syscall.h:1.52 Wed Sep 19 21:24:36 2012 +++ src/sys/compat/linux/arch/arm/linux_syscall.h Mon Apr 8 20:58:22 2013 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.52 2012/09/19 21:24:36 pooka Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.53 2013/04/08 20:58:22 pooka Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.49 2012/09/19 21:19:14 pooka Exp + * created from NetBSD: syscalls.master,v 1.50 2013/04/08 20:54:48 pooka Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -646,6 +646,9 @@ /* syscall: "tgkill" ret: "int" args: "int" "int" "int" */ #define LINUX_SYS_tgkill 268 +/* syscall: "utimes" ret: "int" args: "const char *" "struct linux_timeval *" */ +#define LINUX_SYS_utimes 269 + /* syscall: "fadvise64_64" ret: "int" args: "int" "linux_off_t" "linux_off_t" "int" */ #define LINUX_SYS_fadvise64_64 270 Index: src/sys/compat/linux/arch/arm/linux_syscallargs.h diff -u src/sys/compat/linux/arch/arm/linux_syscallargs.h:1.52 src/sys/compat/linux/arch/arm/linux_syscallargs.h:1.53 --- src/sys/compat/linux/arch/arm/linux_syscallargs.h:1.52 Wed Sep 19 21:24:36 2012 +++ src/sys/compat/linux/arch/arm/linux_syscallargs.h Mon Apr 8 20:58:22 2013 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscallargs.h,v 1.52 2012/09/19 21:24:36 pooka Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.53 2013/04/08 20:58:22 pooka Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.49 2012/09/19 21:19:14 pooka Exp + * created from NetBSD: syscalls.master,v 1.50 2013/04/08 20:54:48 pooka Exp */ #ifndef _LINUX_SYS_SYSCALLARGS_H_ @@ -958,6 +958,12 @@ struct linux_sys_tgkill_args { }; check_syscall_args(linux_sys_tgkill) +struct linux_sys_utimes_args { + syscallarg(const char *) path; + syscallarg(struct linux_timeval *) times; +}; +check_syscall_args(linux_sys_utimes) + struct linux_sys_fadvise64_64_args { syscallarg(int) fd; syscallarg(linux_off_t) offset; @@ -1416,6 +1422,8 @@ int linux_sys_fstatfs64(struct lwp *, co int linux_sys_tgkill(struct lwp *, const struct linux_sys_tgkill_args *, register_t *); +int linux_sys_utimes(struct lwp *, const struct linux_sys_utimes_args *, register_t *); + int linux_sys_fadvise64_64(struct lwp *, const struct linux_sys_fadvise64_64_args *, register_t *); int linux_sys_ppoll(struct lwp *, const struct linux_sys_ppoll_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.52 src/sys/compat/linux/arch/arm/linux_syscalls.c:1.53 --- src/sys/compat/linux/arch/arm/linux_syscalls.c:1.52 Wed Sep 19 21:24:36 2012 +++ src/sys/compat/linux/arch/arm/linux_syscalls.c Mon Apr 8 20:58:22 2013 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_syscalls.c,v 1.52 2012/09/19 21:24:36 pooka Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.53 2013/04/08 20:58:22 pooka Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.49 2012/09/19 21:19:14 pooka Exp + * created from NetBSD: syscalls.master,v 1.50 2013/04/08 20:54:48 pooka Exp */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.52 2012/09/19 21:24:36 pooka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.53 2013/04/08 20:58:22 pooka Exp $"); #if defined(_KERNEL_OPT) #include <sys/param.h> @@ -302,7 +302,7 @@ const char *const linux_syscallnames[] = /* 266 */ "statfs64", /* 267 */ "fstatfs64", /* 268 */ "tgkill", - /* 269 */ "#269 (unimplemented utimes)", + /* 269 */ "utimes", /* 270 */ "fadvise64_64", /* 271 */ "#271 (unimplemented pciconfig_iobase)", /* 272 */ "#272 (unimplemented pciconfig_read)", Index: src/sys/compat/linux/arch/arm/linux_sysent.c diff -u src/sys/compat/linux/arch/arm/linux_sysent.c:1.52 src/sys/compat/linux/arch/arm/linux_sysent.c:1.53 --- src/sys/compat/linux/arch/arm/linux_sysent.c:1.52 Wed Sep 19 21:24:36 2012 +++ src/sys/compat/linux/arch/arm/linux_sysent.c Mon Apr 8 20:58:22 2013 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_sysent.c,v 1.52 2012/09/19 21:24:36 pooka Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.53 2013/04/08 20:58:22 pooka Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.49 2012/09/19 21:19:14 pooka Exp + * created from NetBSD: syscalls.master,v 1.50 2013/04/08 20:54:48 pooka Exp */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.52 2012/09/19 21:24:36 pooka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.53 2013/04/08 20:58:22 pooka Exp $"); #include <sys/param.h> #include <sys/poll.h> @@ -574,8 +574,8 @@ struct sysent linux_sysent[] = { (sy_call_t *)linux_sys_fstatfs64 }, /* 267 = fstatfs64 */ { ns(struct linux_sys_tgkill_args), 0, (sy_call_t *)linux_sys_tgkill }, /* 268 = tgkill */ - { 0, 0, 0, - linux_sys_nosys }, /* 269 = unimplemented utimes */ + { ns(struct linux_sys_utimes_args), SYCALL_ARG_PTR, + (sy_call_t *)linux_sys_utimes }, /* 269 = utimes */ { ns(struct linux_sys_fadvise64_64_args), 0, (sy_call_t *)linux_sys_fadvise64_64 },/* 270 = fadvise64_64 */ { 0, 0, 0, Index: src/sys/compat/linux/arch/i386/linux_syscall.h diff -u src/sys/compat/linux/arch/i386/linux_syscall.h:1.93 src/sys/compat/linux/arch/i386/linux_syscall.h:1.94 --- src/sys/compat/linux/arch/i386/linux_syscall.h:1.93 Wed Sep 19 21:24:36 2012 +++ src/sys/compat/linux/arch/i386/linux_syscall.h Mon Apr 8 20:58:23 2013 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.93 2012/09/19 21:24:36 pooka Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.94 2013/04/08 20:58:23 pooka Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.108 2012/09/19 21:19:14 pooka Exp + * created from NetBSD: syscalls.master,v 1.109 2013/04/08 20:54:48 pooka Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -668,6 +668,9 @@ /* syscall: "tgkill" ret: "int" args: "int" "int" "int" */ #define LINUX_SYS_tgkill 270 +/* syscall: "utimes" ret: "int" args: "const char *" "struct linux_timeval *" */ +#define LINUX_SYS_utimes 271 + /* syscall: "fadvise64_64" ret: "int" args: "int" "linux_off_t" "linux_off_t" "int" */ #define LINUX_SYS_fadvise64_64 272 Index: src/sys/compat/linux/arch/i386/linux_syscallargs.h diff -u src/sys/compat/linux/arch/i386/linux_syscallargs.h:1.93 src/sys/compat/linux/arch/i386/linux_syscallargs.h:1.94 --- src/sys/compat/linux/arch/i386/linux_syscallargs.h:1.93 Wed Sep 19 21:24:36 2012 +++ src/sys/compat/linux/arch/i386/linux_syscallargs.h Mon Apr 8 20:58:23 2013 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscallargs.h,v 1.93 2012/09/19 21:24:36 pooka Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.94 2013/04/08 20:58:23 pooka Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.108 2012/09/19 21:19:14 pooka Exp + * created from NetBSD: syscalls.master,v 1.109 2013/04/08 20:54:48 pooka Exp */ #ifndef _LINUX_SYS_SYSCALLARGS_H_ @@ -1005,6 +1005,12 @@ struct linux_sys_tgkill_args { }; check_syscall_args(linux_sys_tgkill) +struct linux_sys_utimes_args { + syscallarg(const char *) path; + syscallarg(struct linux_timeval *) times; +}; +check_syscall_args(linux_sys_utimes) + struct linux_sys_fadvise64_64_args { syscallarg(int) fd; syscallarg(linux_off_t) offset; @@ -1467,6 +1473,8 @@ int linux_sys_fstatfs64(struct lwp *, co int linux_sys_tgkill(struct lwp *, const struct linux_sys_tgkill_args *, register_t *); +int linux_sys_utimes(struct lwp *, const struct linux_sys_utimes_args *, register_t *); + int linux_sys_fadvise64_64(struct lwp *, const struct linux_sys_fadvise64_64_args *, register_t *); int linux_sys_ppoll(struct lwp *, const struct linux_sys_ppoll_args *, register_t *); Index: src/sys/compat/linux/arch/i386/linux_sysent.c diff -u src/sys/compat/linux/arch/i386/linux_sysent.c:1.93 src/sys/compat/linux/arch/i386/linux_sysent.c:1.94 --- src/sys/compat/linux/arch/i386/linux_sysent.c:1.93 Wed Sep 19 21:24:36 2012 +++ src/sys/compat/linux/arch/i386/linux_sysent.c Mon Apr 8 20:58:23 2013 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_sysent.c,v 1.93 2012/09/19 21:24:36 pooka Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.94 2013/04/08 20:58:23 pooka Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.108 2012/09/19 21:19:14 pooka Exp + * created from NetBSD: syscalls.master,v 1.109 2013/04/08 20:54:48 pooka Exp */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.93 2012/09/19 21:24:36 pooka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.94 2013/04/08 20:58:23 pooka Exp $"); #include <sys/param.h> #include <sys/poll.h> @@ -577,8 +577,8 @@ struct sysent linux_sysent[] = { (sy_call_t *)linux_sys_fstatfs64 }, /* 269 = fstatfs64 */ { ns(struct linux_sys_tgkill_args), 0, (sy_call_t *)linux_sys_tgkill }, /* 270 = tgkill */ - { 0, 0, 0, - linux_sys_nosys }, /* 271 = unimplemented utimes */ + { ns(struct linux_sys_utimes_args), SYCALL_ARG_PTR, + (sy_call_t *)linux_sys_utimes }, /* 271 = utimes */ { ns(struct linux_sys_fadvise64_64_args), 0, (sy_call_t *)linux_sys_fadvise64_64 },/* 272 = fadvise64_64 */ { 0, 0, 0, Index: src/sys/compat/linux/arch/i386/linux_syscalls.c diff -u src/sys/compat/linux/arch/i386/linux_syscalls.c:1.94 src/sys/compat/linux/arch/i386/linux_syscalls.c:1.95 --- src/sys/compat/linux/arch/i386/linux_syscalls.c:1.94 Wed Sep 19 21:24:36 2012 +++ src/sys/compat/linux/arch/i386/linux_syscalls.c Mon Apr 8 20:58:23 2013 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_syscalls.c,v 1.94 2012/09/19 21:24:36 pooka Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.95 2013/04/08 20:58:23 pooka Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.108 2012/09/19 21:19:14 pooka Exp + * created from NetBSD: syscalls.master,v 1.109 2013/04/08 20:54:48 pooka Exp */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.94 2012/09/19 21:24:36 pooka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.95 2013/04/08 20:58:23 pooka Exp $"); #if defined(_KERNEL_OPT) #include <sys/param.h> @@ -303,7 +303,7 @@ const char *const linux_syscallnames[] = /* 268 */ "statfs64", /* 269 */ "fstatfs64", /* 270 */ "tgkill", - /* 271 */ "#271 (unimplemented utimes)", + /* 271 */ "utimes", /* 272 */ "fadvise64_64", /* 273 */ "#273 (unimplemented vserver)", /* 274 */ "#274 (unimplemented mbind)", Index: src/sys/compat/linux/arch/m68k/linux_syscall.h diff -u src/sys/compat/linux/arch/m68k/linux_syscall.h:1.80 src/sys/compat/linux/arch/m68k/linux_syscall.h:1.81 --- src/sys/compat/linux/arch/m68k/linux_syscall.h:1.80 Wed Sep 19 21:24:36 2012 +++ src/sys/compat/linux/arch/m68k/linux_syscall.h Mon Apr 8 20:58:24 2013 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.80 2012/09/19 21:24:36 pooka Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.81 2013/04/08 20:58:24 pooka Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.74 2012/09/19 21:19:14 pooka Exp + * created from NetBSD: syscalls.master,v 1.75 2013/04/08 20:54:48 pooka Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -642,6 +642,9 @@ /* syscall: "tgkill" ret: "int" args: "int" "int" "int" */ #define LINUX_SYS_tgkill 265 +/* syscall: "utimes" ret: "int" args: "const char *" "struct linux_timeval *" */ +#define LINUX_SYS_utimes 266 + /* syscall: "fadvise64_64" ret: "int" args: "int" "linux_off_t" "linux_off_t" "int" */ #define LINUX_SYS_fadvise64_64 267 Index: src/sys/compat/linux/arch/m68k/linux_syscalls.c diff -u src/sys/compat/linux/arch/m68k/linux_syscalls.c:1.80 src/sys/compat/linux/arch/m68k/linux_syscalls.c:1.81 --- src/sys/compat/linux/arch/m68k/linux_syscalls.c:1.80 Wed Sep 19 21:24:36 2012 +++ src/sys/compat/linux/arch/m68k/linux_syscalls.c Mon Apr 8 20:58:24 2013 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_syscalls.c,v 1.80 2012/09/19 21:24:36 pooka Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.81 2013/04/08 20:58:24 pooka Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.74 2012/09/19 21:19:14 pooka Exp + * created from NetBSD: syscalls.master,v 1.75 2013/04/08 20:54:48 pooka Exp */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.80 2012/09/19 21:24:36 pooka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.81 2013/04/08 20:58:24 pooka Exp $"); #if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT) @@ -318,7 +318,7 @@ const char *const linux_syscallnames[] = /* 263 */ "statfs64", /* 264 */ "fstatfs64", /* 265 */ "tgkill", - /* 266 */ "#266 (unimplemented utimes)", + /* 266 */ "utimes", /* 267 */ "fadvise64_64", /* 268 */ "#268 (unimplemented mbind)", /* 269 */ "#269 (unimplemented get_mempolicy)", Index: src/sys/compat/linux/arch/m68k/linux_sysent.c diff -u src/sys/compat/linux/arch/m68k/linux_sysent.c:1.80 src/sys/compat/linux/arch/m68k/linux_sysent.c:1.81 --- src/sys/compat/linux/arch/m68k/linux_sysent.c:1.80 Wed Sep 19 21:24:36 2012 +++ src/sys/compat/linux/arch/m68k/linux_sysent.c Mon Apr 8 20:58:24 2013 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_sysent.c,v 1.80 2012/09/19 21:24:36 pooka Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.81 2013/04/08 20:58:24 pooka Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.74 2012/09/19 21:19:14 pooka Exp + * created from NetBSD: syscalls.master,v 1.75 2013/04/08 20:54:48 pooka Exp */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.80 2012/09/19 21:24:36 pooka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.81 2013/04/08 20:58:24 pooka Exp $"); #if defined(_KERNEL_OPT) #include "opt_compat_netbsd.h" @@ -591,8 +591,8 @@ struct sysent linux_sysent[] = { (sy_call_t *)linux_sys_fstatfs64 }, /* 264 = fstatfs64 */ { ns(struct linux_sys_tgkill_args), 0, (sy_call_t *)linux_sys_tgkill }, /* 265 = tgkill */ - { 0, 0, 0, - linux_sys_nosys }, /* 266 = unimplemented utimes */ + { ns(struct linux_sys_utimes_args), SYCALL_ARG_PTR, + (sy_call_t *)linux_sys_utimes }, /* 266 = utimes */ { ns(struct linux_sys_fadvise64_64_args), 0, (sy_call_t *)linux_sys_fadvise64_64 },/* 267 = fadvise64_64 */ { 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.79 src/sys/compat/linux/arch/m68k/linux_syscallargs.h:1.80 --- src/sys/compat/linux/arch/m68k/linux_syscallargs.h:1.79 Wed Sep 19 21:24:36 2012 +++ src/sys/compat/linux/arch/m68k/linux_syscallargs.h Mon Apr 8 20:58:24 2013 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscallargs.h,v 1.79 2012/09/19 21:24:36 pooka Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.80 2013/04/08 20:58:24 pooka Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.74 2012/09/19 21:19:14 pooka Exp + * created from NetBSD: syscalls.master,v 1.75 2013/04/08 20:54:48 pooka Exp */ #ifndef _LINUX_SYS_SYSCALLARGS_H_ @@ -941,6 +941,12 @@ struct linux_sys_tgkill_args { }; check_syscall_args(linux_sys_tgkill) +struct linux_sys_utimes_args { + syscallarg(const char *) path; + syscallarg(struct linux_timeval *) times; +}; +check_syscall_args(linux_sys_utimes) + struct linux_sys_fadvise64_64_args { syscallarg(int) fd; syscallarg(linux_off_t) offset; @@ -1403,6 +1409,8 @@ int linux_sys_fstatfs64(struct lwp *, co int linux_sys_tgkill(struct lwp *, const struct linux_sys_tgkill_args *, register_t *); +int linux_sys_utimes(struct lwp *, const struct linux_sys_utimes_args *, register_t *); + int linux_sys_fadvise64_64(struct lwp *, const struct linux_sys_fadvise64_64_args *, register_t *); int linux_sys_ppoll(struct lwp *, const struct linux_sys_ppoll_args *, register_t *); Index: src/sys/compat/linux/arch/mips/linux_syscall.h diff -u src/sys/compat/linux/arch/mips/linux_syscall.h:1.49 src/sys/compat/linux/arch/mips/linux_syscall.h:1.50 --- src/sys/compat/linux/arch/mips/linux_syscall.h:1.49 Wed Sep 19 21:24:36 2012 +++ src/sys/compat/linux/arch/mips/linux_syscall.h Mon Apr 8 20:58:25 2013 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.49 2012/09/19 21:24:36 pooka Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.50 2013/04/08 20:58:25 pooka Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.44 2012/09/19 21:19:15 pooka Exp + * created from NetBSD: syscalls.master,v 1.45 2013/04/08 20:54:48 pooka Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -625,6 +625,9 @@ /* syscall: "tgkill" ret: "int" args: "int" "int" "int" */ #define LINUX_SYS_tgkill 266 +/* syscall: "utimes" ret: "int" args: "const char *" "struct linux_timeval *" */ +#define LINUX_SYS_utimes 267 + /* syscall: "set_thread_area" ret: "int" args: "void *" */ #define LINUX_SYS_set_thread_area 283 Index: src/sys/compat/linux/arch/mips/linux_syscallargs.h diff -u src/sys/compat/linux/arch/mips/linux_syscallargs.h:1.48 src/sys/compat/linux/arch/mips/linux_syscallargs.h:1.49 --- src/sys/compat/linux/arch/mips/linux_syscallargs.h:1.48 Wed Sep 19 21:24:36 2012 +++ src/sys/compat/linux/arch/mips/linux_syscallargs.h Mon Apr 8 20:58:25 2013 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscallargs.h,v 1.48 2012/09/19 21:24:36 pooka Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.49 2013/04/08 20:58:25 pooka Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.44 2012/09/19 21:19:15 pooka Exp + * created from NetBSD: syscalls.master,v 1.45 2013/04/08 20:54:48 pooka Exp */ #ifndef _LINUX_SYS_SYSCALLARGS_H_ @@ -919,6 +919,12 @@ struct linux_sys_tgkill_args { }; check_syscall_args(linux_sys_tgkill) +struct linux_sys_utimes_args { + syscallarg(const char *) path; + syscallarg(struct linux_timeval *) times; +}; +check_syscall_args(linux_sys_utimes) + struct linux_sys_set_thread_area_args { syscallarg(void *) tls; }; @@ -1368,6 +1374,8 @@ int linux_sys_clock_nanosleep(struct lwp int linux_sys_tgkill(struct lwp *, const struct linux_sys_tgkill_args *, register_t *); +int linux_sys_utimes(struct lwp *, const struct linux_sys_utimes_args *, register_t *); + int linux_sys_set_thread_area(struct lwp *, const struct linux_sys_set_thread_area_args *, register_t *); int linux_sys_ppoll(struct lwp *, const struct linux_sys_ppoll_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.48 src/sys/compat/linux/arch/mips/linux_syscalls.c:1.49 --- src/sys/compat/linux/arch/mips/linux_syscalls.c:1.48 Wed Sep 19 21:24:36 2012 +++ src/sys/compat/linux/arch/mips/linux_syscalls.c Mon Apr 8 20:58:25 2013 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_syscalls.c,v 1.48 2012/09/19 21:24:36 pooka Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.49 2013/04/08 20:58:25 pooka Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.44 2012/09/19 21:19:15 pooka Exp + * created from NetBSD: syscalls.master,v 1.45 2013/04/08 20:54:48 pooka Exp */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.48 2012/09/19 21:24:36 pooka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.49 2013/04/08 20:58:25 pooka Exp $"); #if defined(_KERNEL_OPT) #include <sys/param.h> @@ -295,7 +295,7 @@ const char *const linux_syscallnames[] = /* 264 */ "clock_getres", /* 265 */ "clock_nanosleep", /* 266 */ "tgkill", - /* 267 */ "#267 (unimplemented utimes)", + /* 267 */ "utimes", /* 268 */ "#268 (unimplemented mbind)", /* 269 */ "#269 (unimplemented get_mempolicy)", /* 270 */ "#270 (unimplemented set_mempolicy)", Index: src/sys/compat/linux/arch/mips/linux_sysent.c diff -u src/sys/compat/linux/arch/mips/linux_sysent.c:1.48 src/sys/compat/linux/arch/mips/linux_sysent.c:1.49 --- src/sys/compat/linux/arch/mips/linux_sysent.c:1.48 Wed Sep 19 21:24:36 2012 +++ src/sys/compat/linux/arch/mips/linux_sysent.c Mon Apr 8 20:58:25 2013 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_sysent.c,v 1.48 2012/09/19 21:24:36 pooka Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.49 2013/04/08 20:58:25 pooka Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.44 2012/09/19 21:19:15 pooka Exp + * created from NetBSD: syscalls.master,v 1.45 2013/04/08 20:54:48 pooka Exp */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.48 2012/09/19 21:24:36 pooka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.49 2013/04/08 20:58:25 pooka Exp $"); #include <sys/param.h> #include <sys/poll.h> @@ -564,8 +564,8 @@ struct sysent linux_sysent[] = { (sy_call_t *)linux_sys_clock_nanosleep },/* 265 = clock_nanosleep */ { ns(struct linux_sys_tgkill_args), 0, (sy_call_t *)linux_sys_tgkill }, /* 266 = tgkill */ - { 0, 0, 0, - linux_sys_nosys }, /* 267 = unimplemented utimes */ + { ns(struct linux_sys_utimes_args), SYCALL_ARG_PTR, + (sy_call_t *)linux_sys_utimes }, /* 267 = utimes */ { 0, 0, 0, linux_sys_nosys }, /* 268 = unimplemented mbind */ { 0, 0, 0, Index: src/sys/compat/linux/arch/powerpc/linux_syscall.h diff -u src/sys/compat/linux/arch/powerpc/linux_syscall.h:1.57 src/sys/compat/linux/arch/powerpc/linux_syscall.h:1.58 --- src/sys/compat/linux/arch/powerpc/linux_syscall.h:1.57 Wed Sep 19 21:24:37 2012 +++ src/sys/compat/linux/arch/powerpc/linux_syscall.h Mon Apr 8 20:58:26 2013 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscall.h,v 1.57 2012/09/19 21:24:37 pooka Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.58 2013/04/08 20:58:26 pooka Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.51 2012/09/19 21:19:15 pooka Exp + * created from NetBSD: syscalls.master,v 1.52 2013/04/08 20:54:49 pooka Exp */ #ifndef _LINUX_SYS_SYSCALL_H_ @@ -588,6 +588,9 @@ /* syscall: "tgkill" ret: "int" args: "int" "int" "int" */ #define LINUX_SYS_tgkill 250 +/* syscall: "utimes" ret: "int" args: "const char *" "struct linux_timeval *" */ +#define LINUX_SYS_utimes 251 + /* syscall: "statfs64" ret: "int" args: "const char *" "size_t" "struct linux_statfs64 *" */ #define LINUX_SYS_statfs64 252 Index: src/sys/compat/linux/arch/powerpc/linux_sysent.c diff -u src/sys/compat/linux/arch/powerpc/linux_sysent.c:1.57 src/sys/compat/linux/arch/powerpc/linux_sysent.c:1.58 --- src/sys/compat/linux/arch/powerpc/linux_sysent.c:1.57 Wed Sep 19 21:24:37 2012 +++ src/sys/compat/linux/arch/powerpc/linux_sysent.c Mon Apr 8 20:58:26 2013 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_sysent.c,v 1.57 2012/09/19 21:24:37 pooka Exp $ */ +/* $NetBSD: linux_sysent.c,v 1.58 2013/04/08 20:58:26 pooka Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.51 2012/09/19 21:19:15 pooka Exp + * created from NetBSD: syscalls.master,v 1.52 2013/04/08 20:54:49 pooka Exp */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.57 2012/09/19 21:24:37 pooka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.58 2013/04/08 20:58:26 pooka Exp $"); #include <sys/param.h> #include <sys/poll.h> @@ -536,8 +536,8 @@ struct sysent linux_sysent[] = { linux_sys_nosys }, /* 249 = unimplemented swapcontext */ { ns(struct linux_sys_tgkill_args), 0, (sy_call_t *)linux_sys_tgkill }, /* 250 = tgkill */ - { 0, 0, 0, - linux_sys_nosys }, /* 251 = unimplemented utimes */ + { ns(struct linux_sys_utimes_args), SYCALL_ARG_PTR, + (sy_call_t *)linux_sys_utimes }, /* 251 = utimes */ { ns(struct linux_sys_statfs64_args), SYCALL_ARG_PTR, (sy_call_t *)linux_sys_statfs64 }, /* 252 = statfs64 */ { ns(struct linux_sys_fstatfs64_args), SYCALL_ARG_PTR, Index: src/sys/compat/linux/arch/powerpc/linux_syscallargs.h diff -u src/sys/compat/linux/arch/powerpc/linux_syscallargs.h:1.56 src/sys/compat/linux/arch/powerpc/linux_syscallargs.h:1.57 --- src/sys/compat/linux/arch/powerpc/linux_syscallargs.h:1.56 Wed Sep 19 21:24:37 2012 +++ src/sys/compat/linux/arch/powerpc/linux_syscallargs.h Mon Apr 8 20:58:26 2013 @@ -1,10 +1,10 @@ -/* $NetBSD: linux_syscallargs.h,v 1.56 2012/09/19 21:24:37 pooka Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.57 2013/04/08 20:58:26 pooka Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.51 2012/09/19 21:19:15 pooka Exp + * created from NetBSD: syscalls.master,v 1.52 2013/04/08 20:54:49 pooka Exp */ #ifndef _LINUX_SYS_SYSCALLARGS_H_ @@ -877,6 +877,12 @@ struct linux_sys_tgkill_args { }; check_syscall_args(linux_sys_tgkill) +struct linux_sys_utimes_args { + syscallarg(const char *) path; + syscallarg(struct linux_timeval *) times; +}; +check_syscall_args(linux_sys_utimes) + struct linux_sys_statfs64_args { syscallarg(const char *) path; syscallarg(size_t) sz; @@ -1315,6 +1321,8 @@ int linux_sys_clock_nanosleep(struct lwp int linux_sys_tgkill(struct lwp *, const struct linux_sys_tgkill_args *, register_t *); +int linux_sys_utimes(struct lwp *, const struct linux_sys_utimes_args *, register_t *); + int linux_sys_statfs64(struct lwp *, const struct linux_sys_statfs64_args *, register_t *); int linux_sys_fstatfs64(struct lwp *, const struct linux_sys_fstatfs64_args *, register_t *); Index: src/sys/compat/linux/arch/powerpc/linux_syscalls.c diff -u src/sys/compat/linux/arch/powerpc/linux_syscalls.c:1.56 src/sys/compat/linux/arch/powerpc/linux_syscalls.c:1.57 --- src/sys/compat/linux/arch/powerpc/linux_syscalls.c:1.56 Wed Sep 19 21:24:37 2012 +++ src/sys/compat/linux/arch/powerpc/linux_syscalls.c Mon Apr 8 20:58:26 2013 @@ -1,14 +1,14 @@ -/* $NetBSD: linux_syscalls.c,v 1.56 2012/09/19 21:24:37 pooka Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.57 2013/04/08 20:58:26 pooka Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.51 2012/09/19 21:19:15 pooka Exp + * created from NetBSD: syscalls.master,v 1.52 2013/04/08 20:54:49 pooka Exp */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.56 2012/09/19 21:24:37 pooka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.57 2013/04/08 20:58:26 pooka Exp $"); #if defined(_KERNEL_OPT) #include <sys/param.h> @@ -282,7 +282,7 @@ const char *const linux_syscallnames[] = /* 248 */ "clock_nanosleep", /* 249 */ "#249 (unimplemented swapcontext)", /* 250 */ "tgkill", - /* 251 */ "#251 (unimplemented utimes)", + /* 251 */ "utimes", /* 252 */ "statfs64", /* 253 */ "fstatfs64", /* 254 */ "fadvise64_64", Index: src/sys/rump/kern/lib/libsys_linux/rump_linux_syscall.h diff -u src/sys/rump/kern/lib/libsys_linux/rump_linux_syscall.h:1.1 src/sys/rump/kern/lib/libsys_linux/rump_linux_syscall.h:1.2 --- src/sys/rump/kern/lib/libsys_linux/rump_linux_syscall.h:1.1 Thu Mar 7 19:09:51 2013 +++ src/sys/rump/kern/lib/libsys_linux/rump_linux_syscall.h Mon Apr 8 20:58:27 2013 @@ -1,10 +1,10 @@ -/* $NetBSD: rump_linux_syscall.h,v 1.1 2013/03/07 19:09:51 pooka Exp $ */ +/* $NetBSD: rump_linux_syscall.h,v 1.2 2013/04/08 20:58:27 pooka Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.3 2013/03/04 19:12:56 stacktic Exp + * created from NetBSD: syscalls.master,v 1.4 2013/04/08 20:54:47 pooka Exp */ #ifndef _RUMP_LINUX_SYS_SYSCALL_H_ Index: src/sys/rump/kern/lib/libsys_linux/rump_linux_syscallargs.h diff -u src/sys/rump/kern/lib/libsys_linux/rump_linux_syscallargs.h:1.4 src/sys/rump/kern/lib/libsys_linux/rump_linux_syscallargs.h:1.5 --- src/sys/rump/kern/lib/libsys_linux/rump_linux_syscallargs.h:1.4 Thu Mar 7 19:09:51 2013 +++ src/sys/rump/kern/lib/libsys_linux/rump_linux_syscallargs.h Mon Apr 8 20:58:27 2013 @@ -1,10 +1,10 @@ -/* $NetBSD: rump_linux_syscallargs.h,v 1.4 2013/03/07 19:09:51 pooka Exp $ */ +/* $NetBSD: rump_linux_syscallargs.h,v 1.5 2013/04/08 20:58:27 pooka Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.3 2013/03/04 19:12:56 stacktic Exp + * created from NetBSD: syscalls.master,v 1.4 2013/04/08 20:54:47 pooka Exp */ #ifndef _RUMP_LINUX_SYS_SYSCALLARGS_H_ @@ -296,6 +296,18 @@ struct linux_sys_select_args { }; check_syscall_args(linux_sys_select) +struct linux_sys_utimes_args { + syscallarg(const char *) path; + syscallarg(struct linux_timeval *) tv; +}; +check_syscall_args(linux_sys_utimes) + +struct linux_sys_lutimes_args { + syscallarg(const char *) path; + syscallarg(struct linux_timeval *) tv; +}; +check_syscall_args(linux_sys_lutimes) + struct linux_sys_ppoll_args { syscallarg(struct pollfd *) fds; syscallarg(u_int) nfds; @@ -485,6 +497,10 @@ int linux_sys_socket(struct lwp *, const int linux_sys_select(struct lwp *, const struct linux_sys_select_args *, register_t *); +int linux_sys_utimes(struct lwp *, const struct linux_sys_utimes_args *, register_t *); + +int linux_sys_lutimes(struct lwp *, const struct linux_sys_lutimes_args *, register_t *); + int linux_sys_ppoll(struct lwp *, const struct linux_sys_ppoll_args *, register_t *); int linux_sys_stat64(struct lwp *, const struct linux_sys_stat64_args *, register_t *); Index: src/sys/rump/kern/lib/libsys_linux/rump_linux_syscalls.c diff -u src/sys/rump/kern/lib/libsys_linux/rump_linux_syscalls.c:1.4 src/sys/rump/kern/lib/libsys_linux/rump_linux_syscalls.c:1.5 --- src/sys/rump/kern/lib/libsys_linux/rump_linux_syscalls.c:1.4 Thu Mar 7 19:09:51 2013 +++ src/sys/rump/kern/lib/libsys_linux/rump_linux_syscalls.c Mon Apr 8 20:58:27 2013 @@ -1,14 +1,14 @@ -/* $NetBSD: rump_linux_syscalls.c,v 1.4 2013/03/07 19:09:51 pooka Exp $ */ +/* $NetBSD: rump_linux_syscalls.c,v 1.5 2013/04/08 20:58:27 pooka Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.3 2013/03/04 19:12:56 stacktic Exp + * created from NetBSD: syscalls.master,v 1.4 2013/04/08 20:54:47 pooka Exp */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: rump_linux_syscalls.c,v 1.4 2013/03/07 19:09:51 pooka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rump_linux_syscalls.c,v 1.5 2013/04/08 20:58:27 pooka Exp $"); #if defined(_KERNEL_OPT) #include <sys/param.h> @@ -444,11 +444,11 @@ const char *const rump_linux_syscallname /* 417 */ "select", /* 418 */ "#418 (unimplemented gettimeofday)", /* 419 */ "#419 (unimplemented settimeofday)", - /* 420 */ "#420 (unimplemented utimes)", + /* 420 */ "utimes", /* 421 */ "#421 (unimplemented adjtime)", /* 422 */ "#422 (unimplemented lfs_segwait)", /* 423 */ "#423 (unimplemented futimes)", - /* 424 */ "#424 (unimplemented lutimes)", + /* 424 */ "lutimes", /* 425 */ "#425 (unimplemented setitimer)", /* 426 */ "#426 (unimplemented getitimer)", /* 427 */ "#427 (unimplemented clock_gettime)", Index: src/sys/rump/kern/lib/libsys_linux/rump_linux_sysent.c diff -u src/sys/rump/kern/lib/libsys_linux/rump_linux_sysent.c:1.4 src/sys/rump/kern/lib/libsys_linux/rump_linux_sysent.c:1.5 --- src/sys/rump/kern/lib/libsys_linux/rump_linux_sysent.c:1.4 Thu Mar 7 19:09:51 2013 +++ src/sys/rump/kern/lib/libsys_linux/rump_linux_sysent.c Mon Apr 8 20:58:27 2013 @@ -1,14 +1,14 @@ -/* $NetBSD: rump_linux_sysent.c,v 1.4 2013/03/07 19:09:51 pooka Exp $ */ +/* $NetBSD: rump_linux_sysent.c,v 1.5 2013/04/08 20:58:27 pooka Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.3 2013/03/04 19:12:56 stacktic Exp + * created from NetBSD: syscalls.master,v 1.4 2013/04/08 20:54:47 pooka Exp */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: rump_linux_sysent.c,v 1.4 2013/03/07 19:09:51 pooka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rump_linux_sysent.c,v 1.5 2013/04/08 20:58:27 pooka Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -866,16 +866,16 @@ struct sysent rump_linux_sysent[] = { linux_sys_nosys }, /* 418 = unimplemented gettimeofday */ { 0, 0, 0, linux_sys_nosys }, /* 419 = unimplemented settimeofday */ - { 0, 0, 0, - linux_sys_nosys }, /* 420 = unimplemented utimes */ + { ns(struct linux_sys_utimes_args), SYCALL_ARG_PTR, + (sy_call_t *)linux_sys_utimes }, /* 420 = utimes */ { 0, 0, 0, linux_sys_nosys }, /* 421 = unimplemented adjtime */ { 0, 0, 0, linux_sys_nosys }, /* 422 = unimplemented lfs_segwait */ { 0, 0, 0, linux_sys_nosys }, /* 423 = unimplemented futimes */ - { 0, 0, 0, - linux_sys_nosys }, /* 424 = unimplemented lutimes */ + { ns(struct linux_sys_lutimes_args), SYCALL_ARG_PTR, + (sy_call_t *)linux_sys_lutimes }, /* 424 = lutimes */ { 0, 0, 0, linux_sys_nosys }, /* 425 = unimplemented setitimer */ { 0, 0, 0,