This commit is contained in:
christos 2009-02-26 21:09:00 +00:00
parent 6d029d549a
commit 4538aa34ee
4 changed files with 52 additions and 11 deletions

View File

@ -1,10 +1,10 @@
/* $NetBSD: netbsd32_syscall.h,v 1.85 2009/01/13 22:33:11 pooka Exp $ */
/* $NetBSD: netbsd32_syscall.h,v 1.86 2009/02/26 21:09:00 christos Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.77 2009/01/13 22:27:43 pooka Exp
* created from NetBSD: syscalls.master,v 1.78 2009/02/26 21:08:48 christos Exp
*/
#ifndef _NETBSD32_SYS_SYSCALL_H_
@ -495,12 +495,17 @@
/* syscall: "netbsd32_pwrite" ret: "netbsd32_ssize_t" args: "int" "netbsd32_voidp" "netbsd32_size_t" "int" "off_t" */
#define NETBSD32_SYS_netbsd32_pwrite 174
#if defined(NTP) || !defined(_KERNEL_OPT)
/* syscall: "compat_30_netbsd32_ntp_gettime" ret: "int" args: "netbsd32_ntptimeval50p_t" */
#define NETBSD32_SYS_compat_30_netbsd32_ntp_gettime 175
/* syscall: "netbsd32_ntp_adjtime" ret: "int" args: "netbsd32_timexp_t" */
#define NETBSD32_SYS_netbsd32_ntp_adjtime 176
#else
/* 175 is excluded ntp_gettime */
/* 176 is excluded ntp_adjtime */
#endif
/* syscall: "netbsd32_setgid" ret: "int" args: "gid_t" */
#define NETBSD32_SYS_netbsd32_setgid 181
@ -1068,9 +1073,13 @@
/* syscall: "compat_30_netbsd32___fhstat30" ret: "int" args: "netbsd32_fhandlep_t" "netbsd32_stat50p_t" */
#define NETBSD32_SYS_compat_30_netbsd32___fhstat30 392
#if defined(NTP) || !defined(_KERNEL_OPT)
/* syscall: "compat_50_netbsd32_ntp_gettime" ret: "int" args: "netbsd32_ntptimeval50p_t" */
#define NETBSD32_SYS_compat_50_netbsd32_ntp_gettime 393
#else
/* 393 is excluded __ntp_gettime30 */
#endif
/* syscall: "netbsd32___socket30" ret: "int" args: "int" "int" "int" */
#define NETBSD32_SYS_netbsd32___socket30 394

View File

@ -1,10 +1,10 @@
/* $NetBSD: netbsd32_syscallargs.h,v 1.85 2009/01/13 22:33:11 pooka Exp $ */
/* $NetBSD: netbsd32_syscallargs.h,v 1.86 2009/02/26 21:09:00 christos Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.77 2009/01/13 22:27:43 pooka Exp
* created from NetBSD: syscalls.master,v 1.78 2009/02/26 21:08:48 christos Exp
*/
#ifndef _NETBSD32_SYS_SYSCALLARGS_H_
@ -924,6 +924,7 @@ struct netbsd32_pwrite_args {
syscallarg(off_t) offset;
};
check_syscall_args(netbsd32_pwrite)
#if defined(NTP) || !defined(_KERNEL_OPT)
struct compat_30_netbsd32_ntp_gettime_args {
syscallarg(netbsd32_ntptimeval50p_t) ntvp;
@ -934,6 +935,8 @@ struct netbsd32_ntp_adjtime_args {
syscallarg(netbsd32_timexp_t) tp;
};
check_syscall_args(netbsd32_ntp_adjtime)
#else
#endif
struct netbsd32_setgid_args {
syscallarg(gid_t) gid;
@ -2039,11 +2042,14 @@ struct compat_30_netbsd32___fhstat30_args {
syscallarg(netbsd32_stat50p_t) sb;
};
check_syscall_args(compat_30_netbsd32___fhstat30)
#if defined(NTP) || !defined(_KERNEL_OPT)
struct compat_50_netbsd32_ntp_gettime_args {
syscallarg(netbsd32_ntptimeval50p_t) ntvp;
};
check_syscall_args(compat_50_netbsd32_ntp_gettime)
#else
#endif
struct netbsd32___socket30_args {
syscallarg(int) domain;
@ -2653,10 +2659,13 @@ int netbsd32_pread(struct lwp *, const struct netbsd32_pread_args *, register_t
int netbsd32_pwrite(struct lwp *, const struct netbsd32_pwrite_args *, register_t *);
#if defined(NTP) || !defined(_KERNEL_OPT)
int compat_30_netbsd32_ntp_gettime(struct lwp *, const struct compat_30_netbsd32_ntp_gettime_args *, register_t *);
int netbsd32_ntp_adjtime(struct lwp *, const struct netbsd32_ntp_adjtime_args *, register_t *);
#else
#endif
int netbsd32_setgid(struct lwp *, const struct netbsd32_setgid_args *, register_t *);
int netbsd32_setegid(struct lwp *, const struct netbsd32_setegid_args *, register_t *);
@ -3023,8 +3032,11 @@ int netbsd32___getdents30(struct lwp *, const struct netbsd32___getdents30_args
int compat_30_netbsd32___fhstat30(struct lwp *, const struct compat_30_netbsd32___fhstat30_args *, register_t *);
#if defined(NTP) || !defined(_KERNEL_OPT)
int compat_50_netbsd32_ntp_gettime(struct lwp *, const struct compat_50_netbsd32_ntp_gettime_args *, register_t *);
#else
#endif
int netbsd32___socket30(struct lwp *, const struct netbsd32___socket30_args *, register_t *);
int netbsd32___getfh30(struct lwp *, const struct netbsd32___getfh30_args *, register_t *);

View File

@ -1,14 +1,14 @@
/* $NetBSD: netbsd32_syscalls.c,v 1.84 2009/01/13 22:33:11 pooka Exp $ */
/* $NetBSD: netbsd32_syscalls.c,v 1.85 2009/02/26 21:09:00 christos Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.77 2009/01/13 22:27:43 pooka Exp
* created from NetBSD: syscalls.master,v 1.78 2009/02/26 21:08:48 christos Exp
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: netbsd32_syscalls.c,v 1.84 2009/01/13 22:33:11 pooka Exp $");
__KERNEL_RCSID(0, "$NetBSD: netbsd32_syscalls.c,v 1.85 2009/02/26 21:09:00 christos Exp $");
#if defined(_KERNEL_OPT)
#if defined(_KERNEL_OPT)
@ -217,8 +217,13 @@ const char *const netbsd32_syscallnames[] = {
/* 172 */ "#172 (unimplemented)",
/* 173 */ "netbsd32_pread",
/* 174 */ "netbsd32_pwrite",
#if defined(NTP) || !defined(_KERNEL_OPT)
/* 175 */ "compat_30_netbsd32_ntp_gettime",
/* 176 */ "netbsd32_ntp_adjtime",
#else
/* 175 */ "#175 (excluded ntp_gettime)",
/* 176 */ "#176 (excluded ntp_adjtime)",
#endif
/* 177 */ "#177 (unimplemented)",
/* 178 */ "#178 (unimplemented)",
/* 179 */ "#179 (unimplemented)",
@ -488,7 +493,11 @@ const char *const netbsd32_syscallnames[] = {
/* 390 */ "netbsd32___getdents30",
/* 391 */ "#391 (ignored old posix fadvise)",
/* 392 */ "compat_30_netbsd32___fhstat30",
#if defined(NTP) || !defined(_KERNEL_OPT)
/* 393 */ "compat_50_netbsd32_ntp_gettime",
#else
/* 393 */ "#393 (excluded __ntp_gettime30)",
#endif
/* 394 */ "netbsd32___socket30",
/* 395 */ "netbsd32___getfh30",
/* 396 */ "netbsd32___fhopen40",

View File

@ -1,14 +1,14 @@
/* $NetBSD: netbsd32_sysent.c,v 1.84 2009/01/13 22:33:11 pooka Exp $ */
/* $NetBSD: netbsd32_sysent.c,v 1.85 2009/02/26 21:09:00 christos Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.77 2009/01/13 22:27:43 pooka Exp
* created from NetBSD: syscalls.master,v 1.78 2009/02/26 21:08:48 christos Exp
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: netbsd32_sysent.c,v 1.84 2009/01/13 22:33:11 pooka Exp $");
__KERNEL_RCSID(0, "$NetBSD: netbsd32_sysent.c,v 1.85 2009/02/26 21:09:00 christos Exp $");
#if defined(_KERNEL_OPT)
#include "opt_compat_netbsd.h"
@ -475,10 +475,17 @@ struct sysent netbsd32_sysent[] = {
(sy_call_t *)netbsd32_pread }, /* 173 = netbsd32_pread */
{ ns(struct netbsd32_pwrite_args), 0,
(sy_call_t *)netbsd32_pwrite }, /* 174 = netbsd32_pwrite */
#if defined(NTP) || !defined(_KERNEL_OPT)
{ ns(struct compat_30_netbsd32_ntp_gettime_args), 0,
(sy_call_t *)compat_30(netbsd32_ntp_gettime) },/* 175 = compat_30_netbsd32_ntp_gettime */
{ ns(struct netbsd32_ntp_adjtime_args), 0,
(sy_call_t *)netbsd32_ntp_adjtime },/* 176 = netbsd32_ntp_adjtime */
#else
{ 0, 0, 0,
sys_nosys }, /* 175 = excluded ntp_gettime */
{ 0, 0, 0,
sys_nosys }, /* 176 = excluded ntp_adjtime */
#endif
{ 0, 0, 0,
sys_nosys }, /* 177 = unimplemented */
{ 0, 0, 0,
@ -993,8 +1000,13 @@ struct sysent netbsd32_sysent[] = {
(sy_call_t *)nullop }, /* 391 = ignored old posix fadvise */
{ ns(struct compat_30_netbsd32___fhstat30_args), 0,
(sy_call_t *)compat_30(netbsd32___fhstat30) },/* 392 = compat_30_netbsd32___fhstat30 */
#if defined(NTP) || !defined(_KERNEL_OPT)
{ ns(struct compat_50_netbsd32_ntp_gettime_args), 0,
(sy_call_t *)compat_50(netbsd32_ntp_gettime) },/* 393 = compat_50_netbsd32_ntp_gettime */
#else
{ 0, 0, 0,
sys_nosys }, /* 393 = excluded __ntp_gettime30 */
#endif
{ ns(struct netbsd32___socket30_args), 0,
(sy_call_t *)netbsd32___socket30 }, /* 394 = netbsd32___socket30 */
{ ns(struct netbsd32___getfh30_args), 0,
@ -1257,4 +1269,3 @@ struct sysent netbsd32_sysent[] = {
{ 0, 0, 0,
sys_nosys }, /* 511 = filler */
};