summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2010-10-28 15:03:52 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2010-10-28 15:03:52 +0000
commit9da18b5faf25171ee3c37e419b036700c8f35939 (patch)
tree308284f36bdfe922f5d7aa2324e89465f023e0ef
parentad39b297930f7aeb9f57f3283cb31dad08c3a9ac (diff)
Regen for new getdirentries.
-rw-r--r--sys/kern/init_sysent.c10
-rw-r--r--sys/kern/syscalls.c7
-rw-r--r--sys/sys/syscall.h13
-rw-r--r--sys/sys/syscallargs.h16
4 files changed, 30 insertions, 16 deletions
diff --git a/sys/kern/init_sysent.c b/sys/kern/init_sysent.c
index 91ff2de39d7..9991bf22684 100644
--- a/sys/kern/init_sysent.c
+++ b/sys/kern/init_sysent.c
@@ -1,10 +1,10 @@
-/* $OpenBSD: init_sysent.c,v 1.115 2010/09/20 07:20:35 deraadt Exp $ */
+/* $OpenBSD: init_sysent.c,v 1.116 2010/10/28 15:03:51 millert Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from; OpenBSD: syscalls.master,v 1.103 2010/09/20 07:18:03 deraadt Exp
+ * created from; OpenBSD: syscalls.master,v 1.104 2010/10/28 15:02:41 millert Exp
*/
#include <sys/param.h>
@@ -493,8 +493,8 @@ struct sysent sysent[] = {
sys_getrlimit }, /* 194 = getrlimit */
{ 2, s(struct sys_setrlimit_args), 0,
sys_setrlimit }, /* 195 = setrlimit */
- { 4, s(struct sys_getdirentries_args), 0,
- sys_getdirentries }, /* 196 = getdirentries */
+ { 4, s(struct sys_ogetdirentries_args), 0,
+ sys_ogetdirentries }, /* 196 = ogetdirentries */
{ 7, s(struct sys_mmap_args), 0,
sys_mmap }, /* 197 = mmap */
{ 0, 0, 0,
@@ -821,5 +821,7 @@ struct sysent sysent[] = {
sys_setrtable }, /* 310 = setrtable */
{ 0, 0, 0,
sys_getrtable }, /* 311 = getrtable */
+ { 4, s(struct sys_getdirentries_args), 0,
+ sys_getdirentries }, /* 312 = getdirentries */
};
diff --git a/sys/kern/syscalls.c b/sys/kern/syscalls.c
index d1634fcd915..6d07f7754f7 100644
--- a/sys/kern/syscalls.c
+++ b/sys/kern/syscalls.c
@@ -1,10 +1,10 @@
-/* $OpenBSD: syscalls.c,v 1.116 2010/09/20 07:20:35 deraadt Exp $ */
+/* $OpenBSD: syscalls.c,v 1.117 2010/10/28 15:03:51 millert Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from; OpenBSD: syscalls.master,v 1.103 2010/09/20 07:18:03 deraadt Exp
+ * created from; OpenBSD: syscalls.master,v 1.104 2010/10/28 15:02:41 millert Exp
*/
char *syscallnames[] = {
@@ -239,7 +239,7 @@ char *syscallnames[] = {
"swapctl", /* 193 = swapctl */
"getrlimit", /* 194 = getrlimit */
"setrlimit", /* 195 = setrlimit */
- "getdirentries", /* 196 = getdirentries */
+ "ogetdirentries", /* 196 = ogetdirentries */
"mmap", /* 197 = mmap */
"__syscall", /* 198 = __syscall */
"lseek", /* 199 = lseek */
@@ -421,4 +421,5 @@ char *syscallnames[] = {
"fhstatfs", /* 309 = fhstatfs */
"setrtable", /* 310 = setrtable */
"getrtable", /* 311 = getrtable */
+ "getdirentries", /* 312 = getdirentries */
};
diff --git a/sys/sys/syscall.h b/sys/sys/syscall.h
index 2377e0e64b7..09883418f52 100644
--- a/sys/sys/syscall.h
+++ b/sys/sys/syscall.h
@@ -1,10 +1,10 @@
-/* $OpenBSD: syscall.h,v 1.115 2010/09/20 07:20:35 deraadt Exp $ */
+/* $OpenBSD: syscall.h,v 1.116 2010/10/28 15:03:51 millert Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from; OpenBSD: syscalls.master,v 1.103 2010/09/20 07:18:03 deraadt Exp
+ * created from; OpenBSD: syscalls.master,v 1.104 2010/10/28 15:02:41 millert Exp
*/
/* syscall: "syscall" ret: "int" args: "int" "..." */
@@ -472,8 +472,8 @@
/* syscall: "setrlimit" ret: "int" args: "int" "const struct rlimit *" */
#define SYS_setrlimit 195
-/* syscall: "getdirentries" ret: "int" args: "int" "char *" "int" "long *" */
-#define SYS_getdirentries 196
+/* syscall: "ogetdirentries" ret: "int" args: "int" "char *" "int" "long *" */
+#define SYS_ogetdirentries 196
/* syscall: "mmap" ret: "void *" args: "void *" "size_t" "int" "int" "int" "long" "off_t" */
#define SYS_mmap 197
@@ -687,4 +687,7 @@
/* syscall: "getrtable" ret: "int" args: */
#define SYS_getrtable 311
-#define SYS_MAXSYSCALL 312
+/* syscall: "getdirentries" ret: "int" args: "int" "char *" "int" "off_t *" */
+#define SYS_getdirentries 312
+
+#define SYS_MAXSYSCALL 313
diff --git a/sys/sys/syscallargs.h b/sys/sys/syscallargs.h
index ba328630d66..e7e562c893d 100644
--- a/sys/sys/syscallargs.h
+++ b/sys/sys/syscallargs.h
@@ -1,10 +1,10 @@
-/* $OpenBSD: syscallargs.h,v 1.117 2010/09/20 07:20:35 deraadt Exp $ */
+/* $OpenBSD: syscallargs.h,v 1.118 2010/10/28 15:03:51 millert Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from; OpenBSD: syscalls.master,v 1.103 2010/09/20 07:18:03 deraadt Exp
+ * created from; OpenBSD: syscalls.master,v 1.104 2010/10/28 15:02:41 millert Exp
*/
#ifdef syscallarg
@@ -835,7 +835,7 @@ struct sys_setrlimit_args {
syscallarg(const struct rlimit *) rlp;
};
-struct sys_getdirentries_args {
+struct sys_ogetdirentries_args {
syscallarg(int) fd;
syscallarg(char *) buf;
syscallarg(int) count;
@@ -1221,6 +1221,13 @@ struct sys_setrtable_args {
syscallarg(int) rtableid;
};
+struct sys_getdirentries_args {
+ syscallarg(int) fd;
+ syscallarg(char *) buf;
+ syscallarg(int) count;
+ syscallarg(off_t *) basep;
+};
+
/*
* System call prototypes.
*/
@@ -1415,7 +1422,7 @@ int sys_fpathconf(struct proc *, void *, register_t *);
int sys_swapctl(struct proc *, void *, register_t *);
int sys_getrlimit(struct proc *, void *, register_t *);
int sys_setrlimit(struct proc *, void *, register_t *);
-int sys_getdirentries(struct proc *, void *, register_t *);
+int sys_ogetdirentries(struct proc *, void *, register_t *);
int sys_mmap(struct proc *, void *, register_t *);
int sys_lseek(struct proc *, void *, register_t *);
int sys_truncate(struct proc *, void *, register_t *);
@@ -1533,3 +1540,4 @@ int sys_fstatfs(struct proc *, void *, register_t *);
int sys_fhstatfs(struct proc *, void *, register_t *);
int sys_setrtable(struct proc *, void *, register_t *);
int sys_getrtable(struct proc *, void *, register_t *);
+int sys_getdirentries(struct proc *, void *, register_t *);