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[] = {
 	    linux_sys_nosys },			/* 448 = unimplemented kexec_load */
 	{ 0, 0, 0,
 	    linux_sys_nosys },			/* 449 = unimplemented migrate_pages */
-	{ 0, 0, 0,
-	    linux_sys_nosys },			/* 450 = unimplemented openat */
-	{ 0, 0, 0,
-	    linux_sys_nosys },			/* 451 = unimplemented mkdirat */
-	{ 0, 0, 0,
-	    linux_sys_nosys },			/* 452 = unimplemented mknodat */
-	{ 0, 0, 0,
-	    linux_sys_nosys },			/* 453 = unimplemented fchownat */
+	{ ns(struct linux_sys_openat_args), SYCALL_ARG_PTR,
+	    (sy_call_t *)linux_sys_openat },	/* 450 = openat */
+	{ ns(struct sys_mkdirat_args), SYCALL_ARG_PTR,
+	    (sy_call_t *)sys_mkdirat },		/* 451 = mkdirat */
+	{ ns(struct linux_sys_mknodat_args), SYCALL_ARG_PTR,
+	    (sy_call_t *)linux_sys_mknodat },	/* 452 = mknodat */
+	{ ns(struct linux_sys_fchownat_args), SYCALL_ARG_PTR,
+	    (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 fstatat64 */
-	{ 0, 0, 0,
-	    linux_sys_nosys },			/* 456 = unimplemented unlinkat */
-	{ 0, 0, 0,
-	    linux_sys_nosys },			/* 457 = unimplemented renameat */
-	{ 0, 0, 0,
-	    linux_sys_nosys },			/* 458 = unimplemented linkat */
-	{ 0, 0, 0,
-	    linux_sys_nosys },			/* 459 = unimplemented symlinkat */
-	{ 0, 0, 0,
-	    linux_sys_nosys },			/* 460 = unimplemented readlinkat */
-	{ 0, 0, 0,
-	    linux_sys_nosys },			/* 461 = unimplemented fchmodat */
-	{ 0, 0, 0,
-	    linux_sys_nosys },			/* 462 = unimplemented faccessat */
+	    linux_sys_nosys },			/* 455 = unimplemented { int | linux_sys | | fstatat64 ( int fd , const char * path , struct linux_stat64 * sp , int flag ) ; } */
+	{ 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,
+	    (sy_call_t *)sys_renameat },	/* 457 = renameat */
+	{ ns(struct linux_sys_linkat_args), SYCALL_ARG_PTR,
+	    (sy_call_t *)linux_sys_linkat },	/* 458 = linkat */
+	{ ns(struct sys_symlinkat_args), SYCALL_ARG_PTR,
+	    (sy_call_t *)sys_symlinkat },	/* 459 = symlinkat */
+	{ ns(struct sys_readlinkat_args), SYCALL_ARG_PTR,
+	    (sy_call_t *)sys_readlinkat },	/* 460 = readlinkat */
+	{ ns(struct linux_sys_fchmodat_args), SYCALL_ARG_PTR,
+	    (sy_call_t *)linux_sys_fchmodat },	/* 461 = fchmodat */
+	{ ns(struct linux_sys_faccessat_args), SYCALL_ARG_PTR,
+	    (sy_call_t *)linux_sys_faccessat },	/* 462 = faccessat */
 	{ 0, 0, 0,
 	    linux_sys_nosys },			/* 463 = unimplemented pselect6 */
 	{ ns(struct linux_sys_ppoll_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.84 src/sys/compat/linux/arch/alpha/linux_syscallargs.h:1.85
--- src/sys/compat/linux/arch/alpha/linux_syscallargs.h:1.84	Tue Sep 24 13:28:50 2013
+++ src/sys/compat/linux/arch/alpha/linux_syscallargs.h	Tue Nov 19 03:53:09 2013
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscallargs.h,v 1.84 2013/09/24 13:28:50 njoly Exp $ */
+/* $NetBSD: linux_syscallargs.h,v 1.85 2013/11/19 03:53:09 chs Exp $ */
 
 /*
  * System call argument lists.
  *
  * 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_SYSCALLARGS_H_
@@ -982,6 +982,69 @@ struct linux_sys_tgkill_args {
 };
 check_syscall_args(linux_sys_tgkill)
 
+struct linux_sys_openat_args {
+	syscallarg(int) fd;
+	syscallarg(const char *) path;
+	syscallarg(int) flags;
+	syscallarg(linux_umode_t) mode;
+};
+check_syscall_args(linux_sys_openat)
+
+struct sys_mkdirat_args;
+
+struct linux_sys_mknodat_args {
+	syscallarg(int) fd;
+	syscallarg(const char *) path;
+	syscallarg(linux_umode_t) mode;
+	syscallarg(unsigned) dev;
+};
+check_syscall_args(linux_sys_mknodat)
+
+struct linux_sys_fchownat_args {
+	syscallarg(int) fd;
+	syscallarg(const char *) path;
+	syscallarg(uid_t) owner;
+	syscallarg(gid_t) group;
+	syscallarg(int) flag;
+};
+check_syscall_args(linux_sys_fchownat)
+
+struct linux_sys_unlinkat_args {
+	syscallarg(int) fd;
+	syscallarg(const char *) path;
+	syscallarg(int) flag;
+};
+check_syscall_args(linux_sys_unlinkat)
+
+struct sys_renameat_args;
+
+struct linux_sys_linkat_args {
+	syscallarg(int) fd1;
+	syscallarg(const char *) name1;
+	syscallarg(int) fd2;
+	syscallarg(const char *) name2;
+	syscallarg(int) flags;
+};
+check_syscall_args(linux_sys_linkat)
+
+struct sys_symlinkat_args;
+
+struct sys_readlinkat_args;
+
+struct linux_sys_fchmodat_args {
+	syscallarg(int) fd;
+	syscallarg(const char *) path;
+	syscallarg(linux_umode_t) mode;
+};
+check_syscall_args(linux_sys_fchmodat)
+
+struct linux_sys_faccessat_args {
+	syscallarg(int) fd;
+	syscallarg(const char *) path;
+	syscallarg(int) amode;
+};
+check_syscall_args(linux_sys_faccessat)
+
 struct linux_sys_ppoll_args {
 	syscallarg(struct pollfd *) fds;
 	syscallarg(int) nfds;
@@ -1450,6 +1513,28 @@ int	linux_sys_clock_nanosleep(struct lwp
 
 int	linux_sys_tgkill(struct lwp *, const struct linux_sys_tgkill_args *, register_t *);
 
+int	linux_sys_openat(struct lwp *, const struct linux_sys_openat_args *, register_t *);
+
+int	sys_mkdirat(struct lwp *, const struct sys_mkdirat_args *, register_t *);
+
+int	linux_sys_mknodat(struct lwp *, const struct linux_sys_mknodat_args *, register_t *);
+
+int	linux_sys_fchownat(struct lwp *, const struct linux_sys_fchownat_args *, register_t *);
+
+int	linux_sys_unlinkat(struct lwp *, const struct linux_sys_unlinkat_args *, register_t *);
+
+int	sys_renameat(struct lwp *, const struct sys_renameat_args *, register_t *);
+
+int	linux_sys_linkat(struct lwp *, const struct linux_sys_linkat_args *, register_t *);
+
+int	sys_symlinkat(struct lwp *, const struct sys_symlinkat_args *, register_t *);
+
+int	sys_readlinkat(struct lwp *, const struct sys_readlinkat_args *, register_t *);
+
+int	linux_sys_fchmodat(struct lwp *, const struct linux_sys_fchmodat_args *, register_t *);
+
+int	linux_sys_faccessat(struct lwp *, const struct linux_sys_faccessat_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/alpha/linux_syscalls.c
diff -u src/sys/compat/linux/arch/alpha/linux_syscalls.c:1.86 src/sys/compat/linux/arch/alpha/linux_syscalls.c:1.87
--- src/sys/compat/linux/arch/alpha/linux_syscalls.c:1.86	Tue Sep 24 13:28:50 2013
+++ src/sys/compat/linux/arch/alpha/linux_syscalls.c	Tue Nov 19 03:53:09 2013
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_syscalls.c,v 1.86 2013/09/24 13:28:50 njoly Exp $ */
+/* $NetBSD: linux_syscalls.c,v 1.87 2013/11/19 03:53:09 chs Exp $ */
 
 /*
  * System call names.
  *
  * 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_syscalls.c,v 1.86 2013/09/24 13:28:50 njoly Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.87 2013/11/19 03:53:09 chs Exp $");
 
 #if defined(_KERNEL_OPT)
 #if defined(_KERNEL_OPT)
@@ -506,19 +506,19 @@ const char *const linux_syscallnames[] =
 	/* 447 */	"#447 (unimplemented fdatasync)",
 	/* 448 */	"#448 (unimplemented kexec_load)",
 	/* 449 */	"#449 (unimplemented migrate_pages)",
-	/* 450 */	"#450 (unimplemented openat)",
-	/* 451 */	"#451 (unimplemented mkdirat)",
-	/* 452 */	"#452 (unimplemented mknodat)",
-	/* 453 */	"#453 (unimplemented fchownat)",
+	/* 450 */	"openat",
+	/* 451 */	"mkdirat",
+	/* 452 */	"mknodat",
+	/* 453 */	"fchownat",
 	/* 454 */	"#454 (unimplemented futimesat)",
-	/* 455 */	"#455 (unimplemented fstatat64)",
-	/* 456 */	"#456 (unimplemented unlinkat)",
-	/* 457 */	"#457 (unimplemented renameat)",
-	/* 458 */	"#458 (unimplemented linkat)",
-	/* 459 */	"#459 (unimplemented symlinkat)",
-	/* 460 */	"#460 (unimplemented readlinkat)",
-	/* 461 */	"#461 (unimplemented fchmodat)",
-	/* 462 */	"#462 (unimplemented faccessat)",
+	/* 455 */	"#455 (unimplemented { int | linux_sys | | fstatat64 ( int fd , const char * path , struct linux_stat64 * sp , int flag ) ; })",
+	/* 456 */	"unlinkat",
+	/* 457 */	"renameat",
+	/* 458 */	"linkat",
+	/* 459 */	"symlinkat",
+	/* 460 */	"readlinkat",
+	/* 461 */	"fchmodat",
+	/* 462 */	"faccessat",
 	/* 463 */	"#463 (unimplemented pselect6)",
 	/* 464 */	"ppoll",
 	/* 465 */	"#465 (unimplemented unshare)",

Index: src/sys/compat/linux/arch/arm/linux_syscall.h
diff -u src/sys/compat/linux/arch/arm/linux_syscall.h:1.55 src/sys/compat/linux/arch/arm/linux_syscall.h:1.56
--- src/sys/compat/linux/arch/arm/linux_syscall.h:1.55	Thu Nov  7 19:39:58 2013
+++ src/sys/compat/linux/arch/arm/linux_syscall.h	Tue Nov 19 03:53:09 2013
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscall.h,v 1.55 2013/11/07 19:39:58 njoly Exp $ */
+/* $NetBSD: linux_syscall.h,v 1.56 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.52 2013/11/07 19:37:18 njoly Exp
+ * created from	NetBSD: syscalls.master,v 1.53 2013/11/19 03:52:07 chs Exp
  */
 
 #ifndef _LINUX_SYS_SYSCALL_H_
@@ -652,6 +652,42 @@
 /* syscall: "fadvise64_64" ret: "int" args: "int" "linux_off_t" "linux_off_t" "int" */
 #define	LINUX_SYS_fadvise64_64	270
 
+/* syscall: "openat" ret: "int" args: "int" "const char *" "int" "..." */
+#define	LINUX_SYS_openat	322
+
+/* syscall: "mkdirat" ret: "int" args: "int" "const char *" "linux_umode_t" */
+#define	LINUX_SYS_mkdirat	323
+
+/* syscall: "mknodat" ret: "int" args: "int" "const char *" "linux_umode_t" "unsigned" */
+#define	LINUX_SYS_mknodat	324
+
+/* syscall: "fchownat" ret: "int" args: "int" "const char *" "uid_t" "gid_t" "int" */
+#define	LINUX_SYS_fchownat	325
+
+/* syscall: "fstatat64" ret: "int" args: "int" "const char *" "struct linux_stat64 *" "int" */
+#define	LINUX_SYS_fstatat64	327
+
+/* syscall: "unlinkat" ret: "int" args: "int" "const char *" "int" */
+#define	LINUX_SYS_unlinkat	328
+
+/* syscall: "renameat" ret: "int" args: "int" "const char *" "int" "const char *" */
+#define	LINUX_SYS_renameat	329
+
+/* syscall: "linkat" ret: "int" args: "int" "const char *" "int" "const char *" "int" */
+#define	LINUX_SYS_linkat	330
+
+/* syscall: "symlinkat" ret: "int" args: "const char *" "int" "const char *" */
+#define	LINUX_SYS_symlinkat	331
+
+/* syscall: "readlinkat" ret: "int" args: "int" "const char *" "char *" "size_t" */
+#define	LINUX_SYS_readlinkat	332
+
+/* syscall: "fchmodat" ret: "int" args: "int" "const char *" "linux_umode_t" */
+#define	LINUX_SYS_fchmodat	333
+
+/* syscall: "faccessat" ret: "int" args: "int" "const char *" "int" */
+#define	LINUX_SYS_faccessat	334
+
 /* syscall: "ppoll" ret: "int" args: "struct pollfd *" "int" "struct linux_timespec *" "linux_sigset_t *" */
 #define	LINUX_SYS_ppoll	336
 
Index: src/sys/compat/linux/arch/arm/linux_syscallargs.h
diff -u src/sys/compat/linux/arch/arm/linux_syscallargs.h:1.55 src/sys/compat/linux/arch/arm/linux_syscallargs.h:1.56
--- src/sys/compat/linux/arch/arm/linux_syscallargs.h:1.55	Thu Nov  7 19:39:58 2013
+++ src/sys/compat/linux/arch/arm/linux_syscallargs.h	Tue Nov 19 03:53:09 2013
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscallargs.h,v 1.55 2013/11/07 19:39:58 njoly Exp $ */
+/* $NetBSD: linux_syscallargs.h,v 1.56 2013/11/19 03:53:09 chs Exp $ */
 
 /*
  * System call argument lists.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.52 2013/11/07 19:37:18 njoly Exp
+ * created from	NetBSD: syscalls.master,v 1.53 2013/11/19 03:52:07 chs Exp
  */
 
 #ifndef _LINUX_SYS_SYSCALLARGS_H_
@@ -972,6 +972,77 @@ struct linux_sys_fadvise64_64_args {
 };
 check_syscall_args(linux_sys_fadvise64_64)
 
+struct linux_sys_openat_args {
+	syscallarg(int) fd;
+	syscallarg(const char *) path;
+	syscallarg(int) flags;
+	syscallarg(linux_umode_t) mode;
+};
+check_syscall_args(linux_sys_openat)
+
+struct sys_mkdirat_args;
+
+struct linux_sys_mknodat_args {
+	syscallarg(int) fd;
+	syscallarg(const char *) path;
+	syscallarg(linux_umode_t) mode;
+	syscallarg(unsigned) dev;
+};
+check_syscall_args(linux_sys_mknodat)
+
+struct linux_sys_fchownat_args {
+	syscallarg(int) fd;
+	syscallarg(const char *) path;
+	syscallarg(uid_t) owner;
+	syscallarg(gid_t) group;
+	syscallarg(int) flag;
+};
+check_syscall_args(linux_sys_fchownat)
+
+struct linux_sys_fstatat64_args {
+	syscallarg(int) fd;
+	syscallarg(const char *) path;
+	syscallarg(struct linux_stat64 *) sp;
+	syscallarg(int) flag;
+};
+check_syscall_args(linux_sys_fstatat64)
+
+struct linux_sys_unlinkat_args {
+	syscallarg(int) fd;
+	syscallarg(const char *) path;
+	syscallarg(int) flag;
+};
+check_syscall_args(linux_sys_unlinkat)
+
+struct sys_renameat_args;
+
+struct linux_sys_linkat_args {
+	syscallarg(int) fd1;
+	syscallarg(const char *) name1;
+	syscallarg(int) fd2;
+	syscallarg(const char *) name2;
+	syscallarg(int) flags;
+};
+check_syscall_args(linux_sys_linkat)
+
+struct sys_symlinkat_args;
+
+struct sys_readlinkat_args;
+
+struct linux_sys_fchmodat_args {
+	syscallarg(int) fd;
+	syscallarg(const char *) path;
+	syscallarg(linux_umode_t) mode;
+};
+check_syscall_args(linux_sys_fchmodat)
+
+struct linux_sys_faccessat_args {
+	syscallarg(int) fd;
+	syscallarg(const char *) path;
+	syscallarg(int) amode;
+};
+check_syscall_args(linux_sys_faccessat)
+
 struct linux_sys_ppoll_args {
 	syscallarg(struct pollfd *) fds;
 	syscallarg(int) nfds;
@@ -1434,6 +1505,30 @@ int	linux_sys_utimes(struct lwp *, const
 
 int	linux_sys_fadvise64_64(struct lwp *, const struct linux_sys_fadvise64_64_args *, register_t *);
 
+int	linux_sys_openat(struct lwp *, const struct linux_sys_openat_args *, register_t *);
+
+int	sys_mkdirat(struct lwp *, const struct sys_mkdirat_args *, register_t *);
+
+int	linux_sys_mknodat(struct lwp *, const struct linux_sys_mknodat_args *, register_t *);
+
+int	linux_sys_fchownat(struct lwp *, const struct linux_sys_fchownat_args *, register_t *);
+
+int	linux_sys_fstatat64(struct lwp *, const struct linux_sys_fstatat64_args *, register_t *);
+
+int	linux_sys_unlinkat(struct lwp *, const struct linux_sys_unlinkat_args *, register_t *);
+
+int	sys_renameat(struct lwp *, const struct sys_renameat_args *, register_t *);
+
+int	linux_sys_linkat(struct lwp *, const struct linux_sys_linkat_args *, register_t *);
+
+int	sys_symlinkat(struct lwp *, const struct sys_symlinkat_args *, register_t *);
+
+int	sys_readlinkat(struct lwp *, const struct sys_readlinkat_args *, register_t *);
+
+int	linux_sys_fchmodat(struct lwp *, const struct linux_sys_fchmodat_args *, register_t *);
+
+int	linux_sys_faccessat(struct lwp *, const struct linux_sys_faccessat_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/arm/linux_syscalls.c
diff -u src/sys/compat/linux/arch/arm/linux_syscalls.c:1.55 src/sys/compat/linux/arch/arm/linux_syscalls.c:1.56
--- src/sys/compat/linux/arch/arm/linux_syscalls.c:1.55	Thu Nov  7 19:39:58 2013
+++ src/sys/compat/linux/arch/arm/linux_syscalls.c	Tue Nov 19 03:53:09 2013
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_syscalls.c,v 1.55 2013/11/07 19:39:58 njoly Exp $ */
+/* $NetBSD: linux_syscalls.c,v 1.56 2013/11/19 03:53:09 chs Exp $ */
 
 /*
  * System call names.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.52 2013/11/07 19:37:18 njoly Exp
+ * created from	NetBSD: syscalls.master,v 1.53 2013/11/19 03:52:07 chs Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.55 2013/11/07 19:39:58 njoly Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.56 2013/11/19 03:53:09 chs Exp $");
 
 #if defined(_KERNEL_OPT)
 #include <sys/param.h>
@@ -355,19 +355,19 @@ const char *const linux_syscallnames[] =
 	/* 319 */	"#319 (unimplemented mbind)",
 	/* 320 */	"#320 (unimplemented get_mempolicy)",
 	/* 321 */	"#321 (unimplemented set_mempolicy)",
-	/* 322 */	"#322 (unimplemented openat)",
-	/* 323 */	"#323 (unimplemented mkdirat)",
-	/* 324 */	"#324 (unimplemented mknodat)",
-	/* 325 */	"#325 (unimplemented fchownat)",
+	/* 322 */	"openat",
+	/* 323 */	"mkdirat",
+	/* 324 */	"mknodat",
+	/* 325 */	"fchownat",
 	/* 326 */	"#326 (unimplemented futimesat)",
-	/* 327 */	"#327 (unimplemented fstatat64)",
-	/* 328 */	"#328 (unimplemented unlinkat)",
-	/* 329 */	"#329 (unimplemented renameat)",
-	/* 330 */	"#330 (unimplemented linkat)",
-	/* 331 */	"#331 (unimplemented symlinkat)",
-	/* 332 */	"#332 (unimplemented readlinkat)",
-	/* 333 */	"#333 (unimplemented fchmodat)",
-	/* 334 */	"#334 (unimplemented faccessat)",
+	/* 327 */	"fstatat64",
+	/* 328 */	"unlinkat",
+	/* 329 */	"renameat",
+	/* 330 */	"linkat",
+	/* 331 */	"symlinkat",
+	/* 332 */	"readlinkat",
+	/* 333 */	"fchmodat",
+	/* 334 */	"faccessat",
 	/* 335 */	"#335 (unimplemented pselect6)",
 	/* 336 */	"ppoll",
 	/* 337 */	"#337 (unimplemented unshare)",
Index: src/sys/compat/linux/arch/arm/linux_sysent.c
diff -u src/sys/compat/linux/arch/arm/linux_sysent.c:1.55 src/sys/compat/linux/arch/arm/linux_sysent.c:1.56
--- src/sys/compat/linux/arch/arm/linux_sysent.c:1.55	Thu Nov  7 19:39:58 2013
+++ src/sys/compat/linux/arch/arm/linux_sysent.c	Tue Nov 19 03:53:09 2013
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_sysent.c,v 1.55 2013/11/07 19:39:58 njoly Exp $ */
+/* $NetBSD: linux_sysent.c,v 1.56 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.52 2013/11/07 19:37:18 njoly Exp
+ * created from	NetBSD: syscalls.master,v 1.53 2013/11/19 03:52:07 chs Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.55 2013/11/07 19:39:58 njoly Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.56 2013/11/19 03:53:09 chs Exp $");
 
 #include <sys/param.h>
 #include <sys/poll.h>
@@ -680,32 +680,32 @@ struct sysent linux_sysent[] = {
 	    linux_sys_nosys },			/* 320 = unimplemented get_mempolicy */
 	{ 0, 0, 0,
 	    linux_sys_nosys },			/* 321 = unimplemented set_mempolicy */
-	{ 0, 0, 0,
-	    linux_sys_nosys },			/* 322 = unimplemented openat */
-	{ 0, 0, 0,
-	    linux_sys_nosys },			/* 323 = unimplemented mkdirat */
-	{ 0, 0, 0,
-	    linux_sys_nosys },			/* 324 = unimplemented mknodat */
-	{ 0, 0, 0,
-	    linux_sys_nosys },			/* 325 = unimplemented fchownat */
+	{ ns(struct linux_sys_openat_args), SYCALL_ARG_PTR,
+	    (sy_call_t *)linux_sys_openat },	/* 322 = openat */
+	{ ns(struct sys_mkdirat_args), SYCALL_ARG_PTR,
+	    (sy_call_t *)sys_mkdirat },		/* 323 = mkdirat */
+	{ ns(struct linux_sys_mknodat_args), SYCALL_ARG_PTR,
+	    (sy_call_t *)linux_sys_mknodat },	/* 324 = mknodat */
+	{ ns(struct linux_sys_fchownat_args), SYCALL_ARG_PTR,
+	    (sy_call_t *)linux_sys_fchownat },	/* 325 = fchownat */
 	{ 0, 0, 0,
 	    linux_sys_nosys },			/* 326 = unimplemented futimesat */
-	{ 0, 0, 0,
-	    linux_sys_nosys },			/* 327 = unimplemented fstatat64 */
-	{ 0, 0, 0,
-	    linux_sys_nosys },			/* 328 = unimplemented unlinkat */
-	{ 0, 0, 0,
-	    linux_sys_nosys },			/* 329 = unimplemented renameat */
-	{ 0, 0, 0,
-	    linux_sys_nosys },			/* 330 = unimplemented linkat */
-	{ 0, 0, 0,
-	    linux_sys_nosys },			/* 331 = unimplemented symlinkat */
-	{ 0, 0, 0,
-	    linux_sys_nosys },			/* 332 = unimplemented readlinkat */
-	{ 0, 0, 0,
-	    linux_sys_nosys },			/* 333 = unimplemented fchmodat */
-	{ 0, 0, 0,
-	    linux_sys_nosys },			/* 334 = unimplemented faccessat */
+	{ ns(struct linux_sys_fstatat64_args), SYCALL_ARG_PTR,
+	    (sy_call_t *)linux_sys_fstatat64 },	/* 327 = fstatat64 */
+	{ ns(struct linux_sys_unlinkat_args), SYCALL_ARG_PTR,
+	    (sy_call_t *)linux_sys_unlinkat },	/* 328 = unlinkat */
+	{ ns(struct sys_renameat_args), SYCALL_ARG_PTR,
+	    (sy_call_t *)sys_renameat },	/* 329 = renameat */
+	{ ns(struct linux_sys_linkat_args), SYCALL_ARG_PTR,
+	    (sy_call_t *)linux_sys_linkat },	/* 330 = linkat */
+	{ ns(struct sys_symlinkat_args), SYCALL_ARG_PTR,
+	    (sy_call_t *)sys_symlinkat },	/* 331 = symlinkat */
+	{ ns(struct sys_readlinkat_args), SYCALL_ARG_PTR,
+	    (sy_call_t *)sys_readlinkat },	/* 332 = readlinkat */
+	{ ns(struct linux_sys_fchmodat_args), SYCALL_ARG_PTR,
+	    (sy_call_t *)linux_sys_fchmodat },	/* 333 = fchmodat */
+	{ ns(struct linux_sys_faccessat_args), SYCALL_ARG_PTR,
+	    (sy_call_t *)linux_sys_faccessat },	/* 334 = faccessat */
 	{ 0, 0, 0,
 	    linux_sys_nosys },			/* 335 = unimplemented pselect6 */
 	{ ns(struct linux_sys_ppoll_args), SYCALL_ARG_PTR,

Index: src/sys/compat/linux/arch/m68k/linux_syscall.h
diff -u src/sys/compat/linux/arch/m68k/linux_syscall.h:1.83 src/sys/compat/linux/arch/m68k/linux_syscall.h:1.84
--- src/sys/compat/linux/arch/m68k/linux_syscall.h:1.83	Thu Nov  7 19:39:58 2013
+++ src/sys/compat/linux/arch/m68k/linux_syscall.h	Tue Nov 19 03:53:09 2013
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscall.h,v 1.83 2013/11/07 19:39:58 njoly Exp $ */
+/* $NetBSD: linux_syscall.h,v 1.84 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.77 2013/11/07 19:37:19 njoly Exp
+ * created from	NetBSD: syscalls.master,v 1.78 2013/11/19 03:52:07 chs Exp
  */
 
 #ifndef _LINUX_SYS_SYSCALL_H_
@@ -648,6 +648,42 @@
 /* syscall: "fadvise64_64" ret: "int" args: "int" "linux_off_t" "linux_off_t" "int" */
 #define	LINUX_SYS_fadvise64_64	267
 
+/* syscall: "openat" ret: "int" args: "int" "const char *" "int" "..." */
+#define	LINUX_SYS_openat	288
+
+/* syscall: "mkdirat" ret: "int" args: "int" "const char *" "linux_umode_t" */
+#define	LINUX_SYS_mkdirat	289
+
+/* syscall: "mknodat" ret: "int" args: "int" "const char *" "linux_umode_t" "unsigned" */
+#define	LINUX_SYS_mknodat	290
+
+/* syscall: "fchownat" ret: "int" args: "int" "const char *" "uid_t" "gid_t" "int" */
+#define	LINUX_SYS_fchownat	291
+
+/* syscall: "fstatat64" ret: "int" args: "int" "const char *" "struct linux_stat64 *" "int" */
+#define	LINUX_SYS_fstatat64	293
+
+/* syscall: "unlinkat" ret: "int" args: "int" "const char *" "int" */
+#define	LINUX_SYS_unlinkat	294
+
+/* syscall: "renameat" ret: "int" args: "int" "const char *" "int" "const char *" */
+#define	LINUX_SYS_renameat	295
+
+/* syscall: "linkat" ret: "int" args: "int" "const char *" "int" "const char *" "int" */
+#define	LINUX_SYS_linkat	296
+
+/* syscall: "symlinkat" ret: "int" args: "const char *" "int" "const char *" */
+#define	LINUX_SYS_symlinkat	297
+
+/* syscall: "readlinkat" ret: "int" args: "int" "const char *" "char *" "size_t" */
+#define	LINUX_SYS_readlinkat	298
+
+/* syscall: "fchmodat" ret: "int" args: "int" "const char *" "linux_umode_t" */
+#define	LINUX_SYS_fchmodat	299
+
+/* syscall: "faccessat" ret: "int" args: "int" "const char *" "int" */
+#define	LINUX_SYS_faccessat	300
+
 /* syscall: "ppoll" ret: "int" args: "struct pollfd *" "int" "struct linux_timespec *" "linux_sigset_t *" */
 #define	LINUX_SYS_ppoll	302
 
Index: src/sys/compat/linux/arch/m68k/linux_syscalls.c
diff -u src/sys/compat/linux/arch/m68k/linux_syscalls.c:1.83 src/sys/compat/linux/arch/m68k/linux_syscalls.c:1.84
--- src/sys/compat/linux/arch/m68k/linux_syscalls.c:1.83	Thu Nov  7 19:39:58 2013
+++ src/sys/compat/linux/arch/m68k/linux_syscalls.c	Tue Nov 19 03:53:09 2013
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_syscalls.c,v 1.83 2013/11/07 19:39:58 njoly Exp $ */
+/* $NetBSD: linux_syscalls.c,v 1.84 2013/11/19 03:53:09 chs Exp $ */
 
 /*
  * System call names.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.77 2013/11/07 19:37:19 njoly Exp
+ * created from	NetBSD: syscalls.master,v 1.78 2013/11/19 03:52:07 chs Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.83 2013/11/07 19:39:58 njoly Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.84 2013/11/19 03:53:09 chs Exp $");
 
 #if defined(_KERNEL_OPT)
 #if defined(_KERNEL_OPT)
@@ -340,19 +340,19 @@ const char *const linux_syscallnames[] =
 	/* 285 */	"#285 (unimplemented inotify_add_watch)",
 	/* 286 */	"#286 (unimplemented inotify_rm_watch)",
 	/* 287 */	"#287 (unimplemented migrate_pages)",
-	/* 288 */	"#288 (unimplemented openat)",
-	/* 289 */	"#289 (unimplemented mkdirat)",
-	/* 290 */	"#290 (unimplemented mknodat)",
-	/* 291 */	"#291 (unimplemented fchownat)",
+	/* 288 */	"openat",
+	/* 289 */	"mkdirat",
+	/* 290 */	"mknodat",
+	/* 291 */	"fchownat",
 	/* 292 */	"#292 (unimplemented futimesat)",
-	/* 293 */	"#293 (unimplemented fstatat64)",
-	/* 294 */	"#294 (unimplemented unlinkat)",
-	/* 295 */	"#295 (unimplemented renameat)",
-	/* 296 */	"#296 (unimplemented linkat)",
-	/* 297 */	"#297 (unimplemented symlinkat)",
-	/* 298 */	"#298 (unimplemented readlinkat)",
-	/* 299 */	"#299 (unimplemented fchmodat)",
-	/* 300 */	"#300 (unimplemented faccessat)",
+	/* 293 */	"fstatat64",
+	/* 294 */	"unlinkat",
+	/* 295 */	"renameat",
+	/* 296 */	"linkat",
+	/* 297 */	"symlinkat",
+	/* 298 */	"readlinkat",
+	/* 299 */	"fchmodat",
+	/* 300 */	"faccessat",
 	/* 301 */	"#301 (unimplemented pselect6)",
 	/* 302 */	"ppoll",
 	/* 303 */	"#303 (unimplemented unshare)",
Index: src/sys/compat/linux/arch/m68k/linux_sysent.c
diff -u src/sys/compat/linux/arch/m68k/linux_sysent.c:1.83 src/sys/compat/linux/arch/m68k/linux_sysent.c:1.84
--- src/sys/compat/linux/arch/m68k/linux_sysent.c:1.83	Thu Nov  7 19:39:58 2013
+++ src/sys/compat/linux/arch/m68k/linux_sysent.c	Tue Nov 19 03:53:09 2013
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_sysent.c,v 1.83 2013/11/07 19:39:58 njoly Exp $ */
+/* $NetBSD: linux_sysent.c,v 1.84 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.77 2013/11/07 19:37:19 njoly Exp
+ * created from	NetBSD: syscalls.master,v 1.78 2013/11/19 03:52:07 chs Exp
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.83 2013/11/07 19:39:58 njoly Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.84 2013/11/19 03:53:09 chs Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_compat_netbsd.h"
@@ -635,32 +635,32 @@ struct sysent linux_sysent[] = {
 	    linux_sys_nosys },			/* 286 = unimplemented inotify_rm_watch */
 	{ 0, 0, 0,
 	    linux_sys_nosys },			/* 287 = unimplemented migrate_pages */
-	{ 0, 0, 0,
-	    linux_sys_nosys },			/* 288 = unimplemented openat */
-	{ 0, 0, 0,
-	    linux_sys_nosys },			/* 289 = unimplemented mkdirat */
-	{ 0, 0, 0,
-	    linux_sys_nosys },			/* 290 = unimplemented mknodat */
-	{ 0, 0, 0,
-	    linux_sys_nosys },			/* 291 = unimplemented fchownat */
+	{ ns(struct linux_sys_openat_args), SYCALL_ARG_PTR,
+	    (sy_call_t *)linux_sys_openat },	/* 288 = openat */
+	{ ns(struct sys_mkdirat_args), SYCALL_ARG_PTR,
+	    (sy_call_t *)sys_mkdirat },		/* 289 = mkdirat */
+	{ ns(struct linux_sys_mknodat_args), SYCALL_ARG_PTR,
+	    (sy_call_t *)linux_sys_mknodat },	/* 290 = mknodat */
+	{ ns(struct linux_sys_fchownat_args), SYCALL_ARG_PTR,
+	    (sy_call_t *)linux_sys_fchownat },	/* 291 = fchownat */
 	{ 0, 0, 0,
 	    linux_sys_nosys },			/* 292 = unimplemented futimesat */
-	{ 0, 0, 0,
-	    linux_sys_nosys },			/* 293 = unimplemented fstatat64 */
-	{ 0, 0, 0,
-	    linux_sys_nosys },			/* 294 = unimplemented unlinkat */
-	{ 0, 0, 0,
-	    linux_sys_nosys },			/* 295 = unimplemented renameat */
-	{ 0, 0, 0,
-	    linux_sys_nosys },			/* 296 = unimplemented linkat */
-	{ 0, 0, 0,
-	    linux_sys_nosys },			/* 297 = unimplemented symlinkat */
-	{ 0, 0, 0,
-	    linux_sys_nosys },			/* 298 = unimplemented readlinkat */
-	{ 0, 0, 0,
-	    linux_sys_nosys },			/* 299 = unimplemented fchmodat */
-	{ 0, 0, 0,
-	    linux_sys_nosys },			/* 300 = unimplemented faccessat */
+	{ ns(struct linux_sys_fstatat64_args), SYCALL_ARG_PTR,
+	    (sy_call_t *)linux_sys_fstatat64 },	/* 293 = fstatat64 */
+	{ ns(struct linux_sys_unlinkat_args), SYCALL_ARG_PTR,
+	    (sy_call_t *)linux_sys_unlinkat },	/* 294 = unlinkat */
+	{ ns(struct sys_renameat_args), SYCALL_ARG_PTR,
+	    (sy_call_t *)sys_renameat },	/* 295 = renameat */
+	{ ns(struct linux_sys_linkat_args), SYCALL_ARG_PTR,
+	    (sy_call_t *)linux_sys_linkat },	/* 296 = linkat */
+	{ ns(struct sys_symlinkat_args), SYCALL_ARG_PTR,
+	    (sy_call_t *)sys_symlinkat },	/* 297 = symlinkat */
+	{ ns(struct sys_readlinkat_args), SYCALL_ARG_PTR,
+	    (sy_call_t *)sys_readlinkat },	/* 298 = readlinkat */
+	{ ns(struct linux_sys_fchmodat_args), SYCALL_ARG_PTR,
+	    (sy_call_t *)linux_sys_fchmodat },	/* 299 = fchmodat */
+	{ ns(struct linux_sys_faccessat_args), SYCALL_ARG_PTR,
+	    (sy_call_t *)linux_sys_faccessat },	/* 300 = faccessat */
 	{ 0, 0, 0,
 	    linux_sys_nosys },			/* 301 = unimplemented pselect6 */
 	{ ns(struct linux_sys_ppoll_args), SYCALL_ARG_PTR,

Index: src/sys/compat/linux/arch/m68k/linux_syscallargs.h
diff -u src/sys/compat/linux/arch/m68k/linux_syscallargs.h:1.82 src/sys/compat/linux/arch/m68k/linux_syscallargs.h:1.83
--- src/sys/compat/linux/arch/m68k/linux_syscallargs.h:1.82	Thu Nov  7 19:39:58 2013
+++ src/sys/compat/linux/arch/m68k/linux_syscallargs.h	Tue Nov 19 03:53:09 2013
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscallargs.h,v 1.82 2013/11/07 19:39:58 njoly Exp $ */
+/* $NetBSD: linux_syscallargs.h,v 1.83 2013/11/19 03:53:09 chs Exp $ */
 
 /*
  * System call argument lists.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.77 2013/11/07 19:37:19 njoly Exp
+ * created from	NetBSD: syscalls.master,v 1.78 2013/11/19 03:52:07 chs Exp
  */
 
 #ifndef _LINUX_SYS_SYSCALLARGS_H_
@@ -955,6 +955,77 @@ struct linux_sys_fadvise64_64_args {
 };
 check_syscall_args(linux_sys_fadvise64_64)
 
+struct linux_sys_openat_args {
+	syscallarg(int) fd;
+	syscallarg(const char *) path;
+	syscallarg(int) flags;
+	syscallarg(linux_umode_t) mode;
+};
+check_syscall_args(linux_sys_openat)
+
+struct sys_mkdirat_args;
+
+struct linux_sys_mknodat_args {
+	syscallarg(int) fd;
+	syscallarg(const char *) path;
+	syscallarg(linux_umode_t) mode;
+	syscallarg(unsigned) dev;
+};
+check_syscall_args(linux_sys_mknodat)
+
+struct linux_sys_fchownat_args {
+	syscallarg(int) fd;
+	syscallarg(const char *) path;
+	syscallarg(uid_t) owner;
+	syscallarg(gid_t) group;
+	syscallarg(int) flag;
+};
+check_syscall_args(linux_sys_fchownat)
+
+struct linux_sys_fstatat64_args {
+	syscallarg(int) fd;
+	syscallarg(const char *) path;
+	syscallarg(struct linux_stat64 *) sp;
+	syscallarg(int) flag;
+};
+check_syscall_args(linux_sys_fstatat64)
+
+struct linux_sys_unlinkat_args {
+	syscallarg(int) fd;
+	syscallarg(const char *) path;
+	syscallarg(int) flag;
+};
+check_syscall_args(linux_sys_unlinkat)
+
+struct sys_renameat_args;
+
+struct linux_sys_linkat_args {
+	syscallarg(int) fd1;
+	syscallarg(const char *) name1;
+	syscallarg(int) fd2;
+	syscallarg(const char *) name2;
+	syscallarg(int) flags;
+};
+check_syscall_args(linux_sys_linkat)
+
+struct sys_symlinkat_args;
+
+struct sys_readlinkat_args;
+
+struct linux_sys_fchmodat_args {
+	syscallarg(int) fd;
+	syscallarg(const char *) path;
+	syscallarg(linux_umode_t) mode;
+};
+check_syscall_args(linux_sys_fchmodat)
+
+struct linux_sys_faccessat_args {
+	syscallarg(int) fd;
+	syscallarg(const char *) path;
+	syscallarg(int) amode;
+};
+check_syscall_args(linux_sys_faccessat)
+
 struct linux_sys_ppoll_args {
 	syscallarg(struct pollfd *) fds;
 	syscallarg(int) nfds;
@@ -1421,6 +1492,30 @@ int	linux_sys_utimes(struct lwp *, const
 
 int	linux_sys_fadvise64_64(struct lwp *, const struct linux_sys_fadvise64_64_args *, register_t *);
 
+int	linux_sys_openat(struct lwp *, const struct linux_sys_openat_args *, register_t *);
+
+int	sys_mkdirat(struct lwp *, const struct sys_mkdirat_args *, register_t *);
+
+int	linux_sys_mknodat(struct lwp *, const struct linux_sys_mknodat_args *, register_t *);
+
+int	linux_sys_fchownat(struct lwp *, const struct linux_sys_fchownat_args *, register_t *);
+
+int	linux_sys_fstatat64(struct lwp *, const struct linux_sys_fstatat64_args *, register_t *);
+
+int	linux_sys_unlinkat(struct lwp *, const struct linux_sys_unlinkat_args *, register_t *);
+
+int	sys_renameat(struct lwp *, const struct sys_renameat_args *, register_t *);
+
+int	linux_sys_linkat(struct lwp *, const struct linux_sys_linkat_args *, register_t *);
+
+int	sys_symlinkat(struct lwp *, const struct sys_symlinkat_args *, register_t *);
+
+int	sys_readlinkat(struct lwp *, const struct sys_readlinkat_args *, register_t *);
+
+int	linux_sys_fchmodat(struct lwp *, const struct linux_sys_fchmodat_args *, register_t *);
+
+int	linux_sys_faccessat(struct lwp *, const struct linux_sys_faccessat_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/mips/linux_syscall.h
diff -u src/sys/compat/linux/arch/mips/linux_syscall.h:1.52 src/sys/compat/linux/arch/mips/linux_syscall.h:1.53
--- src/sys/compat/linux/arch/mips/linux_syscall.h:1.52	Thu Nov  7 19:39:58 2013
+++ src/sys/compat/linux/arch/mips/linux_syscall.h	Tue Nov 19 03:53:09 2013
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscall.h,v 1.52 2013/11/07 19:39:58 njoly Exp $ */
+/* $NetBSD: linux_syscall.h,v 1.53 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.47 2013/11/07 19:37:19 njoly Exp  
+ * created from	NetBSD: syscalls.master,v 1.48 2013/11/19 03:52:07 chs Exp  
  */
 
 #ifndef _LINUX_SYS_SYSCALL_H_
@@ -631,6 +631,42 @@
 /* syscall: "set_thread_area" ret: "int" args: "void *" */
 #define	LINUX_SYS_set_thread_area	283
 
+/* syscall: "openat" ret: "int" args: "int" "const char *" "int" "..." */
+#define	LINUX_SYS_openat	288
+
+/* syscall: "mkdirat" ret: "int" args: "int" "const char *" "linux_umode_t" */
+#define	LINUX_SYS_mkdirat	289
+
+/* syscall: "mknodat" ret: "int" args: "int" "const char *" "linux_umode_t" "unsigned" */
+#define	LINUX_SYS_mknodat	290
+
+/* syscall: "fchownat" ret: "int" args: "int" "const char *" "uid_t" "gid_t" "int" */
+#define	LINUX_SYS_fchownat	291
+
+/* syscall: "fstatat64" ret: "int" args: "int" "const char *" "struct linux_stat64 *" "int" */
+#define	LINUX_SYS_fstatat64	293
+
+/* syscall: "unlinkat" ret: "int" args: "int" "const char *" "int" */
+#define	LINUX_SYS_unlinkat	294
+
+/* syscall: "renameat" ret: "int" args: "int" "const char *" "int" "const char *" */
+#define	LINUX_SYS_renameat	295
+
+/* syscall: "linkat" ret: "int" args: "int" "const char *" "int" "const char *" "int" */
+#define	LINUX_SYS_linkat	296
+
+/* syscall: "symlinkat" ret: "int" args: "const char *" "int" "const char *" */
+#define	LINUX_SYS_symlinkat	297
+
+/* syscall: "readlinkat" ret: "int" args: "int" "const char *" "char *" "size_t" */
+#define	LINUX_SYS_readlinkat	298
+
+/* syscall: "fchmodat" ret: "int" args: "int" "const char *" "linux_umode_t" */
+#define	LINUX_SYS_fchmodat	299
+
+/* syscall: "faccessat" ret: "int" args: "int" "const char *" "int" */
+#define	LINUX_SYS_faccessat	300
+
 /* syscall: "ppoll" ret: "int" args: "struct pollfd *" "int" "struct linux_timespec *" "linux_sigset_t *" */
 #define	LINUX_SYS_ppoll	302
 

Index: src/sys/compat/linux/arch/mips/linux_syscallargs.h
diff -u src/sys/compat/linux/arch/mips/linux_syscallargs.h:1.51 src/sys/compat/linux/arch/mips/linux_syscallargs.h:1.52
--- src/sys/compat/linux/arch/mips/linux_syscallargs.h:1.51	Thu Nov  7 19:39:58 2013
+++ src/sys/compat/linux/arch/mips/linux_syscallargs.h	Tue Nov 19 03:53:09 2013
@@ -1,10 +1,10 @@
-/* $NetBSD: linux_syscallargs.h,v 1.51 2013/11/07 19:39:58 njoly Exp $ */
+/* $NetBSD: linux_syscallargs.h,v 1.52 2013/11/19 03:53:09 chs Exp $ */
 
 /*
  * System call argument lists.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.47 2013/11/07 19:37:19 njoly Exp  
+ * created from	NetBSD: syscalls.master,v 1.48 2013/11/19 03:52:07 chs Exp  
  */
 
 #ifndef _LINUX_SYS_SYSCALLARGS_H_
@@ -930,6 +930,77 @@ struct linux_sys_set_thread_area_args {
 };
 check_syscall_args(linux_sys_set_thread_area)
 
+struct linux_sys_openat_args {
+	syscallarg(int) fd;
+	syscallarg(const char *) path;
+	syscallarg(int) flags;
+	syscallarg(linux_umode_t) mode;
+};
+check_syscall_args(linux_sys_openat)
+
+struct sys_mkdirat_args;
+
+struct linux_sys_mknodat_args {
+	syscallarg(int) fd;
+	syscallarg(const char *) path;
+	syscallarg(linux_umode_t) mode;
+	syscallarg(unsigned) dev;
+};
+check_syscall_args(linux_sys_mknodat)
+
+struct linux_sys_fchownat_args {
+	syscallarg(int) fd;
+	syscallarg(const char *) path;
+	syscallarg(uid_t) owner;
+	syscallarg(gid_t) group;
+	syscallarg(int) flag;
+};
+check_syscall_args(linux_sys_fchownat)
+
+struct linux_sys_fstatat64_args {
+	syscallarg(int) fd;
+	syscallarg(const char *) path;
+	syscallarg(struct linux_stat64 *) sp;
+	syscallarg(int) flag;
+};
+check_syscall_args(linux_sys_fstatat64)
+
+struct linux_sys_unlinkat_args {
+	syscallarg(int) fd;
+	syscallarg(const char *) path;
+	syscallarg(int) flag;
+};
+check_syscall_args(linux_sys_unlinkat)
+
+struct sys_renameat_args;
+
+struct linux_sys_linkat_args {
+	syscallarg(int) fd1;
+	syscallarg(const char *) name1;
+	syscallarg(int) fd2;
+	syscallarg(const char *) name2;
+	syscallarg(int) flags;
+};
+check_syscall_args(linux_sys_linkat)
+
+struct sys_symlinkat_args;
+
+struct sys_readlinkat_args;
+
+struct linux_sys_fchmodat_args {
+	syscallarg(int) fd;
+	syscallarg(const char *) path;
+	syscallarg(linux_umode_t) mode;
+};
+check_syscall_args(linux_sys_fchmodat)
+
+struct linux_sys_faccessat_args {
+	syscallarg(int) fd;
+	syscallarg(const char *) path;
+	syscallarg(int) amode;
+};
+check_syscall_args(linux_sys_faccessat)
+
 struct linux_sys_ppoll_args {
 	syscallarg(struct pollfd *) fds;
 	syscallarg(int) nfds;
@@ -1386,6 +1457,30 @@ int	linux_sys_utimes(struct lwp *, const
 
 int	linux_sys_set_thread_area(struct lwp *, const struct linux_sys_set_thread_area_args *, register_t *);
 
+int	linux_sys_openat(struct lwp *, const struct linux_sys_openat_args *, register_t *);
+
+int	sys_mkdirat(struct lwp *, const struct sys_mkdirat_args *, register_t *);
+
+int	linux_sys_mknodat(struct lwp *, const struct linux_sys_mknodat_args *, register_t *);
+
+int	linux_sys_fchownat(struct lwp *, const struct linux_sys_fchownat_args *, register_t *);
+
+int	linux_sys_fstatat64(struct lwp *, const struct linux_sys_fstatat64_args *, register_t *);
+
+int	linux_sys_unlinkat(struct lwp *, const struct linux_sys_unlinkat_args *, register_t *);
+
+int	sys_renameat(struct lwp *, const struct sys_renameat_args *, register_t *);
+
+int	linux_sys_linkat(struct lwp *, const struct linux_sys_linkat_args *, register_t *);
+
+int	sys_symlinkat(struct lwp *, const struct sys_symlinkat_args *, register_t *);
+
+int	sys_readlinkat(struct lwp *, const struct sys_readlinkat_args *, register_t *);
+
+int	linux_sys_fchmodat(struct lwp *, const struct linux_sys_fchmodat_args *, register_t *);
+
+int	linux_sys_faccessat(struct lwp *, const struct linux_sys_faccessat_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/mips/linux_syscalls.c
diff -u src/sys/compat/linux/arch/mips/linux_syscalls.c:1.51 src/sys/compat/linux/arch/mips/linux_syscalls.c:1.52
--- src/sys/compat/linux/arch/mips/linux_syscalls.c:1.51	Thu Nov  7 19:39:58 2013
+++ src/sys/compat/linux/arch/mips/linux_syscalls.c	Tue Nov 19 03:53:09 2013
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_syscalls.c,v 1.51 2013/11/07 19:39:58 njoly Exp $ */
+/* $NetBSD: linux_syscalls.c,v 1.52 2013/11/19 03:53:09 chs Exp $ */
 
 /*
  * System call names.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from	NetBSD: syscalls.master,v 1.47 2013/11/07 19:37:19 njoly Exp  
+ * created from	NetBSD: syscalls.master,v 1.48 2013/11/19 03:52:07 chs Exp  
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.51 2013/11/07 19:39:58 njoly Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.52 2013/11/19 03:53:09 chs Exp $");
 
 #if defined(_KERNEL_OPT)
 #include <sys/param.h>
@@ -316,19 +316,19 @@ const char *const linux_syscallnames[] =
 	/* 285 */	"#285 (unimplemented inotify_add_watch)",
 	/* 286 */	"#286 (unimplemented inotify_rm_watch)",
 	/* 287 */	"#287 (unimplemented migrate_pages)",
-	/* 288 */	"#288 (unimplemented openat)",
-	/* 289 */	"#289 (unimplemented mkdirat)",
-	/* 290 */	"#290 (unimplemented mknodat)",
-	/* 291 */	"#291 (unimplemented fchownat)",
+	/* 288 */	"openat",
+	/* 289 */	"mkdirat",
+	/* 290 */	"mknodat",
+	/* 291 */	"fchownat",
 	/* 292 */	"#292 (unimplemented futimesat)",
-	/* 293 */	"#293 (unimplemented fstatat64)",
-	/* 294 */	"#294 (unimplemented unlinkat)",
-	/* 295 */	"#295 (unimplemented renameat)",
-	/* 296 */	"#296 (unimplemented linkat)",
-	/* 297 */	"#297 (unimplemented symlinkat)",
-	/* 298 */	"#298 (unimplemented readlinkat)",
-	/* 299 */	"#299 (unimplemented fchmodat)",
-	/* 300 */	"#300 (unimplemented faccessat)",
+	/* 293 */	"fstatat64",
+	/* 294 */	"unlinkat",
+	/* 295 */	"renameat",
+	/* 296 */	"linkat",
+	/* 297 */	"symlinkat",
+	/* 298 */	"readlinkat",
+	/* 299 */	"fchmodat",
+	/* 300 */	"faccessat",
 	/* 301 */	"#301 (unimplemented pselect6)",
 	/* 302 */	"ppoll",
 	/* 303 */	"#303 (unimplemented unshare)",
Index: src/sys/compat/linux/arch/mips/linux_sysent.c
diff -u src/sys/compat/linux/arch/mips/linux_sysent.c:1.51 src/sys/compat/linux/arch/mips/linux_sysent.c:1.52
--- src/sys/compat/linux/arch/mips/linux_sysent.c:1.51	Thu Nov  7 19:39:58 2013
+++ src/sys/compat/linux/arch/mips/linux_sysent.c	Tue Nov 19 03:53:09 2013
@@ -1,14 +1,14 @@
-/* $NetBSD: linux_sysent.c,v 1.51 2013/11/07 19:39:58 njoly Exp $ */
+/* $NetBSD: linux_sysent.c,v 1.52 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.47 2013/11/07 19:37:19 njoly Exp  
+ * created from	NetBSD: syscalls.master,v 1.48 2013/11/19 03:52:07 chs Exp  
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.51 2013/11/07 19:39:58 njoly Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.52 2013/11/19 03:53:09 chs Exp $");
 
 #include <sys/param.h>
 #include <sys/poll.h>
@@ -606,32 +606,32 @@ struct sysent linux_sysent[] = {
 	    linux_sys_nosys },			/* 286 = unimplemented inotify_rm_watch */
 	{ 0, 0, 0,
 	    linux_sys_nosys },			/* 287 = unimplemented migrate_pages */
-	{ 0, 0, 0,
-	    linux_sys_nosys },			/* 288 = unimplemented openat */
-	{ 0, 0, 0,
-	    linux_sys_nosys },			/* 289 = unimplemented mkdirat */
-	{ 0, 0, 0,
-	    linux_sys_nosys },			/* 290 = unimplemented mknodat */
-	{ 0, 0, 0,
-	    linux_sys_nosys },			/* 291 = unimplemented fchownat */
+	{ ns(struct linux_sys_openat_args), SYCALL_ARG_PTR,
+	    (sy_call_t *)linux_sys_openat },	/* 288 = openat */
+	{ ns(struct sys_mkdirat_args), SYCALL_ARG_PTR,
+	    (sy_call_t *)sys_mkdirat },		/* 289 = mkdirat */
+	{ ns(struct linux_sys_mknodat_args), SYCALL_ARG_PTR,
+	    (sy_call_t *)linux_sys_mknodat },	/* 290 = mknodat */
+	{ ns(struct linux_sys_fchownat_args), SYCALL_ARG_PTR,
+	    (sy_call_t *)linux_sys_fchownat },	/* 291 = fchownat */
 	{ 0, 0, 0,
 	    linux_sys_nosys },			/* 292 = unimplemented futimesat */
-	{ 0, 0, 0,
-	    linux_sys_nosys },			/* 293 = unimplemented fstatat64 */
-	{ 0, 0, 0,
-	    linux_sys_nosys },			/* 294 = unimplemented unlinkat */
-	{ 0, 0, 0,
-	    linux_sys_nosys },			/* 295 = unimplemented renameat */
-	{ 0, 0, 0,
-	    linux_sys_nosys },			/* 296 = unimplemented linkat */
-	{ 0, 0, 0,
-	    linux_sys_nosys },			/* 297 = unimplemented symlinkat */
-	{ 0, 0, 0,
-	    linux_sys_nosys },			/* 298 = unimplemented readlinkat */
-	{ 0, 0, 0,
-	    linux_sys_nosys },			/* 299 = unimplemented fchmodat */
-	{ 0, 0, 0,
-	    linux_sys_nosys },			/* 300 = unimplemented faccessat */
+	{ ns(struct linux_sys_fstatat64_args), SYCALL_ARG_PTR,
+	    (sy_call_t *)linux_sys_fstatat64 },	/* 293 = fstatat64 */
+	{ ns(struct linux_sys_unlinkat_args), SYCALL_ARG_PTR,
+	    (sy_call_t *)linux_sys_unlinkat },	/* 294 = unlinkat */
+	{ ns(struct sys_renameat_args), SYCALL_ARG_PTR,
+	    (sy_call_t *)sys_renameat },	/* 295 = renameat */
+	{ ns(struct linux_sys_linkat_args), SYCALL_ARG_PTR,
+	    (sy_call_t *)linux_sys_linkat },	/* 296 = linkat */
+	{ ns(struct sys_symlinkat_args), SYCALL_ARG_PTR,
+	    (sy_call_t *)sys_symlinkat },	/* 297 = symlinkat */
+	{ ns(struct sys_readlinkat_args), SYCALL_ARG_PTR,
+	    (sy_call_t *)sys_readlinkat },	/* 298 = readlinkat */
+	{ ns(struct linux_sys_fchmodat_args), SYCALL_ARG_PTR,
+	    (sy_call_t *)linux_sys_fchmodat },	/* 299 = fchmodat */
+	{ ns(struct linux_sys_faccessat_args), SYCALL_ARG_PTR,
+	    (sy_call_t *)linux_sys_faccessat },	/* 300 = faccessat */
 	{ 0, 0, 0,
 	    linux_sys_nosys },			/* 301 = unimplemented pselect6 */
 	{ ns(struct linux_sys_ppoll_args), SYCALL_ARG_PTR,

Reply via email to