Regen for pread and pwrite

This commit is contained in:
dsl 2008-02-02 22:57:49 +00:00
parent 543ce18e89
commit 9d820ef01c
4 changed files with 42 additions and 16 deletions

View File

@ -1,10 +1,10 @@
/* $NetBSD: linux32_syscall.h,v 1.30 2008/01/15 22:40:16 njoly Exp $ */
/* $NetBSD: linux32_syscall.h,v 1.31 2008/02/02 22:57:49 dsl Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.27 2008/01/15 22:38:35 njoly Exp
* created from NetBSD: syscalls.master,v 1.28 2008/02/02 22:57:05 dsl Exp
*/
#ifndef _LINUX32_SYS_SYSCALL_H_
@ -385,6 +385,12 @@
/* syscall: "rt_sigsuspend" ret: "int" args: "linux32_sigsetp_t" "netbsd32_size_t" */
#define LINUX32_SYS_rt_sigsuspend 179
/* syscall: "pread" ret: "int" args: "int" "char *" "netbsd32_size_t" "int32_t" */
#define LINUX32_SYS_pread 180
/* syscall: "pwrite" ret: "int" args: "int" "char *" "netbsd32_size_t" "int32_t" */
#define LINUX32_SYS_pwrite 181
/* syscall: "chown16" ret: "int" args: "const netbsd32_charp" "linux32_uid16_t" "linux32_gid16_t" */
#define LINUX32_SYS_chown16 182

View File

@ -1,10 +1,10 @@
/* $NetBSD: linux32_syscallargs.h,v 1.30 2008/01/15 22:40:16 njoly Exp $ */
/* $NetBSD: linux32_syscallargs.h,v 1.31 2008/02/02 22:57:49 dsl Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.27 2008/01/15 22:38:35 njoly Exp
* created from NetBSD: syscalls.master,v 1.28 2008/02/02 22:57:05 dsl Exp
*/
#ifndef _LINUX32_SYS_SYSCALLARGS_H_
@ -515,6 +515,22 @@ struct linux32_sys_rt_sigsuspend_args {
};
check_syscall_args(linux32_sys_rt_sigsuspend)
struct linux32_sys_pread_args {
syscallarg(int) fd;
syscallarg(char *) buf;
syscallarg(netbsd32_size_t) nbyte;
syscallarg(int32_t) offset;
};
check_syscall_args(linux32_sys_pread)
struct linux32_sys_pwrite_args {
syscallarg(int) fd;
syscallarg(char *) buf;
syscallarg(netbsd32_size_t) nbyte;
syscallarg(int32_t) offset;
};
check_syscall_args(linux32_sys_pwrite)
struct linux32_sys_chown16_args {
syscallarg(const netbsd32_charp) path;
syscallarg(linux32_uid16_t) uid;
@ -867,6 +883,10 @@ int linux32_sys_rt_sigprocmask(struct lwp *, const struct linux32_sys_rt_sigproc
int linux32_sys_rt_sigsuspend(struct lwp *, const struct linux32_sys_rt_sigsuspend_args *, register_t *);
int linux32_sys_pread(struct lwp *, const struct linux32_sys_pread_args *, register_t *);
int linux32_sys_pwrite(struct lwp *, const struct linux32_sys_pwrite_args *, register_t *);
int linux32_sys_chown16(struct lwp *, const struct linux32_sys_chown16_args *, register_t *);
int netbsd32___getcwd(struct lwp *, const struct netbsd32___getcwd_args *, register_t *);

View File

@ -1,14 +1,14 @@
/* $NetBSD: linux32_syscalls.c,v 1.30 2008/01/15 22:40:16 njoly Exp $ */
/* $NetBSD: linux32_syscalls.c,v 1.31 2008/02/02 22:57:49 dsl Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.27 2008/01/15 22:38:35 njoly Exp
* created from NetBSD: syscalls.master,v 1.28 2008/02/02 22:57:05 dsl Exp
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: linux32_syscalls.c,v 1.30 2008/01/15 22:40:16 njoly Exp $");
__KERNEL_RCSID(0, "$NetBSD: linux32_syscalls.c,v 1.31 2008/02/02 22:57:49 dsl Exp $");
#if defined(_KERNEL_OPT)
#if defined(_KERNEL_OPT)
@ -216,8 +216,8 @@ const char *const linux32_syscallnames[] = {
/* 177 */ "#177 (unimplemented rt_sigtimedwait)",
/* 178 */ "#178 (unimplemented rt_queueinfo)",
/* 179 */ "rt_sigsuspend",
/* 180 */ "#180 (unimplemented pread)",
/* 181 */ "#181 (unimplemented pwrite)",
/* 180 */ "pread",
/* 181 */ "pwrite",
/* 182 */ "chown16",
/* 183 */ "netbsd32___getcwd",
/* 184 */ "#184 (unimplemented capget)",

View File

@ -1,14 +1,14 @@
/* $NetBSD: linux32_sysent.c,v 1.30 2008/01/15 22:40:17 njoly Exp $ */
/* $NetBSD: linux32_sysent.c,v 1.31 2008/02/02 22:57:50 dsl Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.27 2008/01/15 22:38:35 njoly Exp
* created from NetBSD: syscalls.master,v 1.28 2008/02/02 22:57:05 dsl Exp
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: linux32_sysent.c,v 1.30 2008/01/15 22:40:17 njoly Exp $");
__KERNEL_RCSID(0, "$NetBSD: linux32_sysent.c,v 1.31 2008/02/02 22:57:50 dsl Exp $");
#if defined(_KERNEL_OPT)
#include "opt_compat_43.h"
@ -398,10 +398,10 @@ struct sysent linux32_sysent[] = {
linux_sys_nosys }, /* 178 = unimplemented rt_queueinfo */
{ ns(struct linux32_sys_rt_sigsuspend_args), 0,
(sy_call_t *)linux32_sys_rt_sigsuspend },/* 179 = rt_sigsuspend */
{ 0, 0, 0,
linux_sys_nosys }, /* 180 = unimplemented pread */
{ 0, 0, 0,
linux_sys_nosys }, /* 181 = unimplemented pwrite */
{ ns(struct linux32_sys_pread_args), 0,
(sy_call_t *)linux32_sys_pread }, /* 180 = pread */
{ ns(struct linux32_sys_pwrite_args), 0,
(sy_call_t *)linux32_sys_pwrite }, /* 181 = pwrite */
{ ns(struct linux32_sys_chown16_args), 0,
(sy_call_t *)linux32_sys_chown16 }, /* 182 = chown16 */
{ ns(struct netbsd32___getcwd_args), 0,