Regen: added pread(2), pwrite(2), preadv(2), pwritev(2).
This commit is contained in:
parent
f0dda0d383
commit
1f37d1d569
@ -1,10 +1,10 @@
|
||||
/* $NetBSD: init_sysent.c,v 1.91 1998/06/25 22:17:21 thorpej Exp $ */
|
||||
/* $NetBSD: init_sysent.c,v 1.92 1998/06/30 19:34:20 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* System call switch table.
|
||||
*
|
||||
* DO NOT EDIT-- this file is automatically generated.
|
||||
* created from NetBSD: syscalls.master,v 1.78 1998/06/25 22:16:40 thorpej Exp
|
||||
* created from NetBSD: syscalls.master,v 1.79 1998/06/30 19:33:11 thorpej Exp
|
||||
*/
|
||||
|
||||
#include "opt_ktrace.h"
|
||||
@ -437,10 +437,10 @@ struct sysent sysent[] = {
|
||||
#endif
|
||||
{ 0, 0,
|
||||
sys_nosys }, /* 172 = unimplemented */
|
||||
{ 0, 0,
|
||||
sys_nosys }, /* 173 = unimplemented */
|
||||
{ 0, 0,
|
||||
sys_nosys }, /* 174 = unimplemented */
|
||||
{ 4, s(struct sys_pread_args),
|
||||
sys_pread }, /* 173 = pread */
|
||||
{ 4, s(struct sys_pwrite_args),
|
||||
sys_pwrite }, /* 174 = pwrite */
|
||||
{ 1, s(struct sys_ntp_gettime_args),
|
||||
sys_ntp_gettime }, /* 175 = ntp_gettime */
|
||||
{ 1, s(struct sys_ntp_adjtime_args),
|
||||
@ -741,5 +741,9 @@ struct sysent sysent[] = {
|
||||
{ 0, 0,
|
||||
sys_nosys }, /* 288 = unimplemented */
|
||||
#endif
|
||||
{ 4, s(struct sys_preadv_args),
|
||||
sys_preadv }, /* 289 = preadv */
|
||||
{ 4, s(struct sys_pwritev_args),
|
||||
sys_pwritev }, /* 290 = pwritev */
|
||||
};
|
||||
|
||||
|
@ -1,10 +1,10 @@
|
||||
/* $NetBSD: syscalls.c,v 1.85 1998/06/25 22:17:22 thorpej Exp $ */
|
||||
/* $NetBSD: syscalls.c,v 1.86 1998/06/30 19:34:21 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* System call names.
|
||||
*
|
||||
* DO NOT EDIT-- this file is automatically generated.
|
||||
* created from NetBSD: syscalls.master,v 1.78 1998/06/25 22:16:40 thorpej Exp
|
||||
* created from NetBSD: syscalls.master,v 1.79 1998/06/30 19:33:11 thorpej Exp
|
||||
*/
|
||||
|
||||
#if defined(_KERNEL) && !defined(_LKM)
|
||||
@ -221,8 +221,8 @@ char *syscallnames[] = {
|
||||
"#171 (unimplemented 1.0 shmsys)", /* 171 = unimplemented 1.0 shmsys */
|
||||
#endif
|
||||
"#172 (unimplemented)", /* 172 = unimplemented */
|
||||
"#173 (unimplemented)", /* 173 = unimplemented */
|
||||
"#174 (unimplemented)", /* 174 = unimplemented */
|
||||
"pread", /* 173 = pread */
|
||||
"pwrite", /* 174 = pwrite */
|
||||
"ntp_gettime", /* 175 = ntp_gettime */
|
||||
"ntp_adjtime", /* 176 = ntp_adjtime */
|
||||
"#177 (unimplemented)", /* 177 = unimplemented */
|
||||
@ -382,4 +382,6 @@ char *syscallnames[] = {
|
||||
#else
|
||||
"#288 (unimplemented)", /* 288 = unimplemented */
|
||||
#endif
|
||||
"preadv", /* 289 = preadv */
|
||||
"pwritev", /* 290 = pwritev */
|
||||
};
|
||||
|
@ -1,10 +1,10 @@
|
||||
/* $NetBSD: syscall.h,v 1.85 1998/06/25 22:17:23 thorpej Exp $ */
|
||||
/* $NetBSD: syscall.h,v 1.86 1998/06/30 19:34:21 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* System call numbers.
|
||||
*
|
||||
* DO NOT EDIT-- this file is automatically generated.
|
||||
* created from NetBSD: syscalls.master,v 1.78 1998/06/25 22:16:40 thorpej Exp
|
||||
* created from NetBSD: syscalls.master,v 1.79 1998/06/30 19:33:11 thorpej Exp
|
||||
*/
|
||||
|
||||
/* syscall: "syscall" ret: "int" args: "int" "..." */
|
||||
@ -432,6 +432,12 @@
|
||||
|
||||
/* 171 is compat_10 oshmsys */
|
||||
|
||||
/* syscall: "pread" ret: "ssize_t" args: "int" "void *" "size_t" "off_t" */
|
||||
#define SYS_pread 173
|
||||
|
||||
/* syscall: "pwrite" ret: "ssize_t" args: "int" "const void *" "size_t" "off_t" */
|
||||
#define SYS_pwrite 174
|
||||
|
||||
/* syscall: "ntp_gettime" ret: "int" args: "struct ntptimeval *" */
|
||||
#define SYS_ntp_gettime 175
|
||||
|
||||
@ -623,4 +629,10 @@
|
||||
/* syscall: "fktrace" ret: "int" args: "const int" "int" "int" "int" */
|
||||
#define SYS_fktrace 288
|
||||
|
||||
#define SYS_MAXSYSCALL 289
|
||||
/* syscall: "preadv" ret: "ssize_t" args: "int" "const struct iovec *" "int" "off_t" */
|
||||
#define SYS_preadv 289
|
||||
|
||||
/* syscall: "pwritev" ret: "ssize_t" args: "int" "const struct iovec *" "int" "off_t" */
|
||||
#define SYS_pwritev 290
|
||||
|
||||
#define SYS_MAXSYSCALL 291
|
||||
|
@ -1,10 +1,10 @@
|
||||
/* $NetBSD: syscallargs.h,v 1.64 1998/06/25 22:17:23 thorpej Exp $ */
|
||||
/* $NetBSD: syscallargs.h,v 1.65 1998/06/30 19:34:21 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* System call argument lists.
|
||||
*
|
||||
* DO NOT EDIT-- this file is automatically generated.
|
||||
* created from NetBSD: syscalls.master,v 1.78 1998/06/25 22:16:40 thorpej Exp
|
||||
* created from NetBSD: syscalls.master,v 1.79 1998/06/30 19:33:11 thorpej Exp
|
||||
*/
|
||||
|
||||
#define syscallarg(x) union { x datum; register_t pad; }
|
||||
@ -743,6 +743,20 @@ struct compat_10_sys_shmsys_args {
|
||||
syscallarg(int) a4;
|
||||
};
|
||||
|
||||
struct sys_pread_args {
|
||||
syscallarg(int) fd;
|
||||
syscallarg(void *) buf;
|
||||
syscallarg(size_t) nbyte;
|
||||
syscallarg(off_t) offset;
|
||||
};
|
||||
|
||||
struct sys_pwrite_args {
|
||||
syscallarg(int) fd;
|
||||
syscallarg(const void *) buf;
|
||||
syscallarg(size_t) nbyte;
|
||||
syscallarg(off_t) offset;
|
||||
};
|
||||
|
||||
struct sys_ntp_gettime_args {
|
||||
syscallarg(struct ntptimeval *) ntvp;
|
||||
};
|
||||
@ -1088,6 +1102,20 @@ struct sys_fktrace_args {
|
||||
syscallarg(int) pid;
|
||||
};
|
||||
|
||||
struct sys_preadv_args {
|
||||
syscallarg(int) fd;
|
||||
syscallarg(const struct iovec *) iovp;
|
||||
syscallarg(int) iovcnt;
|
||||
syscallarg(off_t) offset;
|
||||
};
|
||||
|
||||
struct sys_pwritev_args {
|
||||
syscallarg(int) fd;
|
||||
syscallarg(const struct iovec *) iovp;
|
||||
syscallarg(int) iovcnt;
|
||||
syscallarg(off_t) offset;
|
||||
};
|
||||
|
||||
/*
|
||||
* System call prototypes.
|
||||
*/
|
||||
@ -1265,6 +1293,8 @@ int compat_10_sys_msgsys __P((struct proc *, void *, register_t *));
|
||||
int compat_10_sys_shmsys __P((struct proc *, void *, register_t *));
|
||||
#else
|
||||
#endif
|
||||
int sys_pread __P((struct proc *, void *, register_t *));
|
||||
int sys_pwrite __P((struct proc *, void *, register_t *));
|
||||
int sys_ntp_gettime __P((struct proc *, void *, register_t *));
|
||||
int sys_ntp_adjtime __P((struct proc *, void *, register_t *));
|
||||
int sys_setgid __P((struct proc *, void *, register_t *));
|
||||
@ -1357,3 +1387,5 @@ int sys_getsid __P((struct proc *, void *, register_t *));
|
||||
int sys_fktrace __P((struct proc *, void *, register_t *));
|
||||
#else
|
||||
#endif
|
||||
int sys_preadv __P((struct proc *, void *, register_t *));
|
||||
int sys_pwritev __P((struct proc *, void *, register_t *));
|
||||
|
Loading…
Reference in New Issue
Block a user