This commit is contained in:
matt 2012-01-31 22:53:28 +00:00
parent 886e1e0fe1
commit 1c72d69ada
4 changed files with 279 additions and 62 deletions

View File

@ -1,10 +1,10 @@
/* $NetBSD: netbsd32_syscall.h,v 1.96 2011/11/08 10:59:44 njoly Exp $ */
/* $NetBSD: netbsd32_syscall.h,v 1.97 2012/01/31 22:53:28 matt Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.88 2011/11/08 10:59:12 njoly Exp
* created from NetBSD: syscalls.master,v 1.89 2012/01/31 22:52:19 matt Exp
*/
#ifndef _NETBSD32_SYS_SYSCALL_H_
@ -1208,6 +1208,57 @@
/* syscall: "netbsd32_kqueue1" ret: "int" args: "int" */
#define NETBSD32_SYS_netbsd32_kqueue1 455
#define NETBSD32_SYS_MAXSYSCALL 456
/* syscall: "netbsd32_paccept" ret: "int" args: "int" "netbsd32_sockaddrp_t" "netbsd32_socklenp_t" "const netbsd32_sigsetp_t" "int" */
#define NETBSD32_SYS_netbsd32_paccept 456
/* syscall: "netbsd32_linkat" ret: "int" args: "int" "const netbsd32_charp" "int" "const netbsd32_charp" "int" */
#define NETBSD32_SYS_netbsd32_linkat 457
/* syscall: "netbsd32_renameat" ret: "int" args: "int" "const netbsd32_charp" "int" "const netbsd32_charp" */
#define NETBSD32_SYS_netbsd32_renameat 458
/* syscall: "netbsd32_mkfifoat" ret: "int" args: "int" "const netbsd32_charp" "mode_t" */
#define NETBSD32_SYS_netbsd32_mkfifoat 459
/* syscall: "netbsd32_mknodat" ret: "int" args: "int" "const netbsd32_charp" "mode_t" "uint32_t" */
#define NETBSD32_SYS_netbsd32_mknodat 460
/* syscall: "netbsd32_mkdirat" ret: "int" args: "int" "const netbsd32_charp" "mode_t" */
#define NETBSD32_SYS_netbsd32_mkdirat 461
/* syscall: "netbsd32_faccessat" ret: "int" args: "int" "const netbsd32_charp" "int" "int" */
#define NETBSD32_SYS_netbsd32_faccessat 462
/* syscall: "netbsd32_fchmodat" ret: "int" args: "int" "const netbsd32_charp" "mode_t" "int" */
#define NETBSD32_SYS_netbsd32_fchmodat 463
/* syscall: "netbsd32_fchownat" ret: "int" args: "int" "const netbsd32_charp" "uid_t" "gid_t" "int" */
#define NETBSD32_SYS_netbsd32_fchownat 464
/* syscall: "netbsd32_fexecve" ret: "int" args: "int" "netbsd32_charpp" "netbsd32_charpp" */
#define NETBSD32_SYS_netbsd32_fexecve 465
/* syscall: "netbsd32_fstatat" ret: "int" args: "int" "const netbsd32_charp" "netbsd32_statp_t" "int" */
#define NETBSD32_SYS_netbsd32_fstatat 466
/* syscall: "netbsd32_utimensat" ret: "int" args: "int" "const netbsd32_charp" "const netbsd32_timespecp_t" "int" */
#define NETBSD32_SYS_netbsd32_utimensat 467
/* syscall: "netbsd32_openat" ret: "int" args: "int" "const netbsd32_charp" "int" "..." */
#define NETBSD32_SYS_netbsd32_openat 468
/* syscall: "netbsd32_readlinkat" ret: "int" args: "int" "const netbsd32_charp" "netbsd32_charp" "size_t" */
#define NETBSD32_SYS_netbsd32_readlinkat 469
/* syscall: "netbsd32_symlinkat" ret: "int" args: "const netbsd32_charp" "int" "const netbsd32_charp" */
#define NETBSD32_SYS_netbsd32_symlinkat 470
/* syscall: "netbsd32_unlinkat" ret: "int" args: "int" "const netbsd32_charp" "int" */
#define NETBSD32_SYS_netbsd32_unlinkat 471
/* syscall: "netbsd32_futimens" ret: "int" args: "int" "const netbsd32_timespecp_t" */
#define NETBSD32_SYS_netbsd32_futimens 472
#define NETBSD32_SYS_MAXSYSCALL 473
#define NETBSD32_SYS_NSYSENT 512
#endif /* _NETBSD32_SYS_SYSCALL_H_ */

View File

@ -1,10 +1,10 @@
/* $NetBSD: netbsd32_syscallargs.h,v 1.96 2011/11/08 10:59:45 njoly Exp $ */
/* $NetBSD: netbsd32_syscallargs.h,v 1.97 2012/01/31 22:53:28 matt Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.88 2011/11/08 10:59:12 njoly Exp
* created from NetBSD: syscalls.master,v 1.89 2012/01/31 22:52:19 matt Exp
*/
#ifndef _NETBSD32_SYS_SYSCALLARGS_H_
@ -2327,6 +2327,138 @@ struct netbsd32_kqueue1_args {
};
check_syscall_args(netbsd32_kqueue1)
struct netbsd32_paccept_args {
syscallarg(int) s;
syscallarg(netbsd32_sockaddrp_t) name;
syscallarg(netbsd32_socklenp_t) anamelen;
syscallarg(const netbsd32_sigsetp_t) mask;
syscallarg(int) flags;
};
check_syscall_args(netbsd32_paccept)
struct netbsd32_linkat_args {
syscallarg(int) fd1;
syscallarg(const netbsd32_charp) name1;
syscallarg(int) fd2;
syscallarg(const netbsd32_charp) name2;
syscallarg(int) flags;
};
check_syscall_args(netbsd32_linkat)
struct netbsd32_renameat_args {
syscallarg(int) fromfd;
syscallarg(const netbsd32_charp) from;
syscallarg(int) tofd;
syscallarg(const netbsd32_charp) to;
};
check_syscall_args(netbsd32_renameat)
struct netbsd32_mkfifoat_args {
syscallarg(int) fd;
syscallarg(const netbsd32_charp) path;
syscallarg(mode_t) mode;
};
check_syscall_args(netbsd32_mkfifoat)
struct netbsd32_mknodat_args {
syscallarg(int) fd;
syscallarg(const netbsd32_charp) path;
syscallarg(mode_t) mode;
syscallarg(uint32_t) dev;
};
check_syscall_args(netbsd32_mknodat)
struct netbsd32_mkdirat_args {
syscallarg(int) fd;
syscallarg(const netbsd32_charp) path;
syscallarg(mode_t) mode;
};
check_syscall_args(netbsd32_mkdirat)
struct netbsd32_faccessat_args {
syscallarg(int) fd;
syscallarg(const netbsd32_charp) path;
syscallarg(int) amode;
syscallarg(int) flag;
};
check_syscall_args(netbsd32_faccessat)
struct netbsd32_fchmodat_args {
syscallarg(int) fd;
syscallarg(const netbsd32_charp) path;
syscallarg(mode_t) mode;
syscallarg(int) flag;
};
check_syscall_args(netbsd32_fchmodat)
struct netbsd32_fchownat_args {
syscallarg(int) fd;
syscallarg(const netbsd32_charp) path;
syscallarg(uid_t) owner;
syscallarg(gid_t) group;
syscallarg(int) flag;
};
check_syscall_args(netbsd32_fchownat)
struct netbsd32_fexecve_args {
syscallarg(int) fd;
syscallarg(netbsd32_charpp) argp;
syscallarg(netbsd32_charpp) envp;
};
check_syscall_args(netbsd32_fexecve)
struct netbsd32_fstatat_args {
syscallarg(int) fd;
syscallarg(const netbsd32_charp) path;
syscallarg(netbsd32_statp_t) buf;
syscallarg(int) flag;
};
check_syscall_args(netbsd32_fstatat)
struct netbsd32_utimensat_args {
syscallarg(int) fd;
syscallarg(const netbsd32_charp) path;
syscallarg(const netbsd32_timespecp_t) tptr;
syscallarg(int) flag;
};
check_syscall_args(netbsd32_utimensat)
struct netbsd32_openat_args {
syscallarg(int) fd;
syscallarg(const netbsd32_charp) path;
syscallarg(int) oflags;
syscallarg(mode_t) mode;
};
check_syscall_args(netbsd32_openat)
struct netbsd32_readlinkat_args {
syscallarg(int) fd;
syscallarg(const netbsd32_charp) path;
syscallarg(netbsd32_charp) buf;
syscallarg(size_t) bufsize;
};
check_syscall_args(netbsd32_readlinkat)
struct netbsd32_symlinkat_args {
syscallarg(const netbsd32_charp) path1;
syscallarg(int) fd;
syscallarg(const netbsd32_charp) path2;
};
check_syscall_args(netbsd32_symlinkat)
struct netbsd32_unlinkat_args {
syscallarg(int) fd;
syscallarg(const netbsd32_charp) path;
syscallarg(int) flag;
};
check_syscall_args(netbsd32_unlinkat)
struct netbsd32_futimens_args {
syscallarg(int) fd;
syscallarg(const netbsd32_timespecp_t) tptr;
};
check_syscall_args(netbsd32_futimens)
/*
* System call prototypes.
*/
@ -3111,4 +3243,38 @@ int netbsd32_dup3(struct lwp *, const struct netbsd32_dup3_args *, register_t *)
int netbsd32_kqueue1(struct lwp *, const struct netbsd32_kqueue1_args *, register_t *);
int netbsd32_paccept(struct lwp *, const struct netbsd32_paccept_args *, register_t *);
int netbsd32_linkat(struct lwp *, const struct netbsd32_linkat_args *, register_t *);
int netbsd32_renameat(struct lwp *, const struct netbsd32_renameat_args *, register_t *);
int netbsd32_mkfifoat(struct lwp *, const struct netbsd32_mkfifoat_args *, register_t *);
int netbsd32_mknodat(struct lwp *, const struct netbsd32_mknodat_args *, register_t *);
int netbsd32_mkdirat(struct lwp *, const struct netbsd32_mkdirat_args *, register_t *);
int netbsd32_faccessat(struct lwp *, const struct netbsd32_faccessat_args *, register_t *);
int netbsd32_fchmodat(struct lwp *, const struct netbsd32_fchmodat_args *, register_t *);
int netbsd32_fchownat(struct lwp *, const struct netbsd32_fchownat_args *, register_t *);
int netbsd32_fexecve(struct lwp *, const struct netbsd32_fexecve_args *, register_t *);
int netbsd32_fstatat(struct lwp *, const struct netbsd32_fstatat_args *, register_t *);
int netbsd32_utimensat(struct lwp *, const struct netbsd32_utimensat_args *, register_t *);
int netbsd32_openat(struct lwp *, const struct netbsd32_openat_args *, register_t *);
int netbsd32_readlinkat(struct lwp *, const struct netbsd32_readlinkat_args *, register_t *);
int netbsd32_symlinkat(struct lwp *, const struct netbsd32_symlinkat_args *, register_t *);
int netbsd32_unlinkat(struct lwp *, const struct netbsd32_unlinkat_args *, register_t *);
int netbsd32_futimens(struct lwp *, const struct netbsd32_futimens_args *, register_t *);
#endif /* _NETBSD32_SYS_SYSCALLARGS_H_ */

View File

@ -1,14 +1,14 @@
/* $NetBSD: netbsd32_syscalls.c,v 1.95 2011/11/08 10:59:45 njoly Exp $ */
/* $NetBSD: netbsd32_syscalls.c,v 1.96 2012/01/31 22:53:28 matt Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.88 2011/11/08 10:59:12 njoly Exp
* created from NetBSD: syscalls.master,v 1.89 2012/01/31 22:52:19 matt Exp
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: netbsd32_syscalls.c,v 1.95 2011/11/08 10:59:45 njoly Exp $");
__KERNEL_RCSID(0, "$NetBSD: netbsd32_syscalls.c,v 1.96 2012/01/31 22:53:28 matt Exp $");
#if defined(_KERNEL_OPT)
#if defined(_KERNEL_OPT)
@ -567,23 +567,23 @@ const char *const netbsd32_syscallnames[] = {
/* 453 */ "netbsd32_pipe2",
/* 454 */ "netbsd32_dup3",
/* 455 */ "netbsd32_kqueue1",
/* 456 */ "# filler",
/* 457 */ "# filler",
/* 458 */ "# filler",
/* 459 */ "# filler",
/* 460 */ "# filler",
/* 461 */ "# filler",
/* 462 */ "# filler",
/* 463 */ "# filler",
/* 464 */ "# filler",
/* 465 */ "# filler",
/* 466 */ "# filler",
/* 467 */ "# filler",
/* 468 */ "# filler",
/* 469 */ "# filler",
/* 470 */ "# filler",
/* 471 */ "# filler",
/* 472 */ "# filler",
/* 456 */ "netbsd32_paccept",
/* 457 */ "netbsd32_linkat",
/* 458 */ "netbsd32_renameat",
/* 459 */ "netbsd32_mkfifoat",
/* 460 */ "netbsd32_mknodat",
/* 461 */ "netbsd32_mkdirat",
/* 462 */ "netbsd32_faccessat",
/* 463 */ "netbsd32_fchmodat",
/* 464 */ "netbsd32_fchownat",
/* 465 */ "netbsd32_fexecve",
/* 466 */ "netbsd32_fstatat",
/* 467 */ "netbsd32_utimensat",
/* 468 */ "netbsd32_openat",
/* 469 */ "netbsd32_readlinkat",
/* 470 */ "netbsd32_symlinkat",
/* 471 */ "netbsd32_unlinkat",
/* 472 */ "netbsd32_futimens",
/* 473 */ "# filler",
/* 474 */ "# filler",
/* 475 */ "# filler",

View File

@ -1,14 +1,14 @@
/* $NetBSD: netbsd32_sysent.c,v 1.95 2011/11/08 10:59:45 njoly Exp $ */
/* $NetBSD: netbsd32_sysent.c,v 1.96 2012/01/31 22:53:28 matt Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.88 2011/11/08 10:59:12 njoly Exp
* created from NetBSD: syscalls.master,v 1.89 2012/01/31 22:52:19 matt Exp
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: netbsd32_sysent.c,v 1.95 2011/11/08 10:59:45 njoly Exp $");
__KERNEL_RCSID(0, "$NetBSD: netbsd32_sysent.c,v 1.96 2012/01/31 22:53:28 matt Exp $");
#if defined(_KERNEL_OPT)
#include "opt_compat_netbsd.h"
@ -1138,40 +1138,40 @@ struct sysent netbsd32_sysent[] = {
(sy_call_t *)netbsd32_dup3 }, /* 454 = netbsd32_dup3 */
{ ns(struct netbsd32_kqueue1_args), 0,
(sy_call_t *)netbsd32_kqueue1 }, /* 455 = netbsd32_kqueue1 */
{ 0, 0, 0,
sys_nosys }, /* 456 = filler */
{ 0, 0, 0,
sys_nosys }, /* 457 = filler */
{ 0, 0, 0,
sys_nosys }, /* 458 = filler */
{ 0, 0, 0,
sys_nosys }, /* 459 = filler */
{ 0, 0, 0,
sys_nosys }, /* 460 = filler */
{ 0, 0, 0,
sys_nosys }, /* 461 = filler */
{ 0, 0, 0,
sys_nosys }, /* 462 = filler */
{ 0, 0, 0,
sys_nosys }, /* 463 = filler */
{ 0, 0, 0,
sys_nosys }, /* 464 = filler */
{ 0, 0, 0,
sys_nosys }, /* 465 = filler */
{ 0, 0, 0,
sys_nosys }, /* 466 = filler */
{ 0, 0, 0,
sys_nosys }, /* 467 = filler */
{ 0, 0, 0,
sys_nosys }, /* 468 = filler */
{ 0, 0, 0,
sys_nosys }, /* 469 = filler */
{ 0, 0, 0,
sys_nosys }, /* 470 = filler */
{ 0, 0, 0,
sys_nosys }, /* 471 = filler */
{ 0, 0, 0,
sys_nosys }, /* 472 = filler */
{ ns(struct netbsd32_paccept_args), 0,
(sy_call_t *)netbsd32_paccept }, /* 456 = netbsd32_paccept */
{ ns(struct netbsd32_linkat_args), 0,
(sy_call_t *)netbsd32_linkat }, /* 457 = netbsd32_linkat */
{ ns(struct netbsd32_renameat_args), 0,
(sy_call_t *)netbsd32_renameat }, /* 458 = netbsd32_renameat */
{ ns(struct netbsd32_mkfifoat_args), 0,
(sy_call_t *)netbsd32_mkfifoat }, /* 459 = netbsd32_mkfifoat */
{ ns(struct netbsd32_mknodat_args), 0,
(sy_call_t *)netbsd32_mknodat }, /* 460 = netbsd32_mknodat */
{ ns(struct netbsd32_mkdirat_args), 0,
(sy_call_t *)netbsd32_mkdirat }, /* 461 = netbsd32_mkdirat */
{ ns(struct netbsd32_faccessat_args), 0,
(sy_call_t *)netbsd32_faccessat }, /* 462 = netbsd32_faccessat */
{ ns(struct netbsd32_fchmodat_args), 0,
(sy_call_t *)netbsd32_fchmodat }, /* 463 = netbsd32_fchmodat */
{ ns(struct netbsd32_fchownat_args), 0,
(sy_call_t *)netbsd32_fchownat }, /* 464 = netbsd32_fchownat */
{ ns(struct netbsd32_fexecve_args), 0,
(sy_call_t *)netbsd32_fexecve }, /* 465 = netbsd32_fexecve */
{ ns(struct netbsd32_fstatat_args), 0,
(sy_call_t *)netbsd32_fstatat }, /* 466 = netbsd32_fstatat */
{ ns(struct netbsd32_utimensat_args), 0,
(sy_call_t *)netbsd32_utimensat }, /* 467 = netbsd32_utimensat */
{ ns(struct netbsd32_openat_args), 0,
(sy_call_t *)netbsd32_openat }, /* 468 = netbsd32_openat */
{ ns(struct netbsd32_readlinkat_args), 0,
(sy_call_t *)netbsd32_readlinkat }, /* 469 = netbsd32_readlinkat */
{ ns(struct netbsd32_symlinkat_args), 0,
(sy_call_t *)netbsd32_symlinkat }, /* 470 = netbsd32_symlinkat */
{ ns(struct netbsd32_unlinkat_args), 0,
(sy_call_t *)netbsd32_unlinkat }, /* 471 = netbsd32_unlinkat */
{ ns(struct netbsd32_futimens_args), 0,
(sy_call_t *)netbsd32_futimens }, /* 472 = netbsd32_futimens */
{ 0, 0, 0,
sys_nosys }, /* 473 = filler */
{ 0, 0, 0,