summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/kern/init_sysent.c10
-rw-r--r--sys/kern/syscalls.c7
-rw-r--r--sys/sys/syscall.h12
-rw-r--r--sys/sys/syscallargs.h16
4 files changed, 28 insertions, 17 deletions
diff --git a/sys/kern/init_sysent.c b/sys/kern/init_sysent.c
index c30dc405696..b4c8a67d1a7 100644
--- a/sys/kern/init_sysent.c
+++ b/sys/kern/init_sysent.c
@@ -1,10 +1,10 @@
-/* $OpenBSD: init_sysent.c,v 1.81 2004/07/13 21:06:33 millert Exp $ */
+/* $OpenBSD: init_sysent.c,v 1.82 2004/07/14 18:01:29 millert Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from; OpenBSD: syscalls.master,v 1.72 2004/07/13 21:04:29 millert Exp
+ * created from; OpenBSD: syscalls.master,v 1.73 2004/07/14 18:00:48 millert Exp
*/
#include <sys/param.h>
@@ -702,8 +702,8 @@ struct sysent sysent[] = {
sys_pipe }, /* 263 = pipe */
{ 2, s(struct sys_fhopen_args),
sys_fhopen }, /* 264 = fhopen */
- { 2, s(struct sys_fhstat_args),
- sys_fhstat }, /* 265 = fhstat */
+ { 2, s(struct compat_35_sys_fhstat_args),
+ compat_35(sys_fhstat) }, /* 265 = compat_35 fhstat */
{ 2, s(struct sys_fhstatfs_args),
sys_fhstatfs }, /* 266 = fhstatfs */
{ 5, s(struct sys_preadv_args),
@@ -787,5 +787,7 @@ struct sysent sysent[] = {
sys_fstat }, /* 292 = fstat */
{ 2, s(struct sys_lstat_args),
sys_lstat }, /* 293 = lstat */
+ { 2, s(struct sys_fhstat_args),
+ sys_fhstat }, /* 294 = fhstat */
};
diff --git a/sys/kern/syscalls.c b/sys/kern/syscalls.c
index 9a586fd7191..9954f238985 100644
--- a/sys/kern/syscalls.c
+++ b/sys/kern/syscalls.c
@@ -1,10 +1,10 @@
-/* $OpenBSD: syscalls.c,v 1.82 2004/07/13 21:06:33 millert Exp $ */
+/* $OpenBSD: syscalls.c,v 1.83 2004/07/14 18:01:29 millert Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from; OpenBSD: syscalls.master,v 1.72 2004/07/13 21:04:29 millert Exp
+ * created from; OpenBSD: syscalls.master,v 1.73 2004/07/14 18:00:48 millert Exp
*/
char *syscallnames[] = {
@@ -354,7 +354,7 @@ char *syscallnames[] = {
"fstatfs", /* 262 = fstatfs */
"pipe", /* 263 = pipe */
"fhopen", /* 264 = fhopen */
- "fhstat", /* 265 = fhstat */
+ "compat_35_fhstat", /* 265 = compat_35 fhstat */
"fhstatfs", /* 266 = fhstatfs */
"preadv", /* 267 = preadv */
"pwritev", /* 268 = pwritev */
@@ -401,4 +401,5 @@ char *syscallnames[] = {
"stat", /* 291 = stat */
"fstat", /* 292 = fstat */
"lstat", /* 293 = lstat */
+ "fhstat", /* 294 = fhstat */
};
diff --git a/sys/sys/syscall.h b/sys/sys/syscall.h
index 108bc9d37ec..49dc3bdb75b 100644
--- a/sys/sys/syscall.h
+++ b/sys/sys/syscall.h
@@ -1,10 +1,10 @@
-/* $OpenBSD: syscall.h,v 1.80 2004/07/13 21:06:33 millert Exp $ */
+/* $OpenBSD: syscall.h,v 1.81 2004/07/14 18:01:29 millert Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from; OpenBSD: syscalls.master,v 1.72 2004/07/13 21:04:29 millert Exp
+ * created from; OpenBSD: syscalls.master,v 1.73 2004/07/14 18:00:48 millert Exp
*/
/* syscall: "syscall" ret: "int" args: "int" "..." */
@@ -601,8 +601,7 @@
/* syscall: "fhopen" ret: "int" args: "const fhandle_t *" "int" */
#define SYS_fhopen 264
-/* syscall: "fhstat" ret: "int" args: "const fhandle_t *" "struct stat *" */
-#define SYS_fhstat 265
+ /* 265 is compat_35 fhstat */
/* syscall: "fhstatfs" ret: "int" args: "const fhandle_t *" "struct statfs *" */
#define SYS_fhstatfs 266
@@ -686,4 +685,7 @@
/* syscall: "lstat" ret: "int" args: "const char *" "struct stat *" */
#define SYS_lstat 293
-#define SYS_MAXSYSCALL 294
+/* syscall: "fhstat" ret: "int" args: "const fhandle_t *" "struct stat *" */
+#define SYS_fhstat 294
+
+#define SYS_MAXSYSCALL 295
diff --git a/sys/sys/syscallargs.h b/sys/sys/syscallargs.h
index 7c0e1d33ff9..084f50f68c8 100644
--- a/sys/sys/syscallargs.h
+++ b/sys/sys/syscallargs.h
@@ -1,10 +1,10 @@
-/* $OpenBSD: syscallargs.h,v 1.82 2004/07/13 21:06:33 millert Exp $ */
+/* $OpenBSD: syscallargs.h,v 1.83 2004/07/14 18:01:29 millert Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from; OpenBSD: syscalls.master,v 1.72 2004/07/13 21:04:29 millert Exp
+ * created from; OpenBSD: syscalls.master,v 1.73 2004/07/14 18:00:48 millert Exp
*/
#ifdef syscallarg
@@ -1082,9 +1082,9 @@ struct sys_fhopen_args {
syscallarg(int) flags;
};
-struct sys_fhstat_args {
+struct compat_35_sys_fhstat_args {
syscallarg(const fhandle_t *) fhp;
- syscallarg(struct stat *) sb;
+ syscallarg(struct stat35 *) sb;
};
struct sys_fhstatfs_args {
@@ -1249,6 +1249,11 @@ struct sys_lstat_args {
syscallarg(struct stat *) ub;
};
+struct sys_fhstat_args {
+ syscallarg(const fhandle_t *) fhp;
+ syscallarg(struct stat *) sb;
+};
+
/*
* System call prototypes.
*/
@@ -1518,7 +1523,7 @@ int sys_statfs(struct proc *, void *, register_t *);
int sys_fstatfs(struct proc *, void *, register_t *);
int sys_pipe(struct proc *, void *, register_t *);
int sys_fhopen(struct proc *, void *, register_t *);
-int sys_fhstat(struct proc *, void *, register_t *);
+int compat_35_sys_fhstat(struct proc *, void *, register_t *);
int sys_fhstatfs(struct proc *, void *, register_t *);
int sys_preadv(struct proc *, void *, register_t *);
int sys_pwritev(struct proc *, void *, register_t *);
@@ -1555,3 +1560,4 @@ int sys_semop(struct proc *, void *, register_t *);
int sys_stat(struct proc *, void *, register_t *);
int sys_fstat(struct proc *, void *, register_t *);
int sys_lstat(struct proc *, void *, register_t *);
+int sys_fhstat(struct proc *, void *, register_t *);