summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2003-08-02 18:37:11 +0000
committerderaadt <deraadt@openbsd.org>2003-08-02 18:37:11 +0000
commit804c4fc401eca9c6acb23c9c6d498da9e1f2351b (patch)
tree8d47ed828ef0f3ae93b5712cd76faf73d9b23f9e
parentwrong args for linux ftruncate64; marius@monkey.org (diff)
downloadwireguard-openbsd-804c4fc401eca9c6acb23c9c6d498da9e1f2351b.tar.xz
wireguard-openbsd-804c4fc401eca9c6acb23c9c6d498da9e1f2351b.zip
sync
-rw-r--r--sys/compat/linux/linux_syscall.h8
-rw-r--r--sys/compat/linux/linux_syscallargs.h11
-rw-r--r--sys/compat/linux/linux_syscalls.c6
-rw-r--r--sys/compat/linux/linux_sysent.c8
4 files changed, 19 insertions, 14 deletions
diff --git a/sys/compat/linux/linux_syscall.h b/sys/compat/linux/linux_syscall.h
index 4c312ffbdf1..5e5c70dc414 100644
--- a/sys/compat/linux/linux_syscall.h
+++ b/sys/compat/linux/linux_syscall.h
@@ -1,10 +1,10 @@
-/* $OpenBSD: linux_syscall.h,v 1.40 2003/07/23 17:42:39 tedu Exp $ */
+/* $OpenBSD: linux_syscall.h,v 1.41 2003/08/02 18:37:11 deraadt Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from OpenBSD: syscalls.master,v 1.39 2003/07/23 17:42:09 tedu Exp
+ * created from OpenBSD: syscalls.master,v 1.40 2003/08/02 18:37:06 deraadt Exp
*/
/* syscall: "syscall" ret: "int" args: */
@@ -598,8 +598,8 @@
/* syscall: "truncate64" ret: "int" args: "char *" "off_t" */
#define LINUX_SYS_truncate64 193
-/* syscall: "linux_ftruncate64" ret: "int" args: "int" "off_t" */
-#define LINUX_SYS_linux_ftruncate64 194
+/* syscall: "ftruncate64" ret: "int" args: "int" "off_t" */
+#define LINUX_SYS_ftruncate64 194
/* syscall: "stat64" ret: "int" args: "char *" "struct linux_stat64 *" */
#define LINUX_SYS_stat64 195
diff --git a/sys/compat/linux/linux_syscallargs.h b/sys/compat/linux/linux_syscallargs.h
index 5f4f8824a55..26176284781 100644
--- a/sys/compat/linux/linux_syscallargs.h
+++ b/sys/compat/linux/linux_syscallargs.h
@@ -1,10 +1,10 @@
-/* $OpenBSD: linux_syscallargs.h,v 1.42 2003/07/23 17:42:39 tedu Exp $ */
+/* $OpenBSD: linux_syscallargs.h,v 1.43 2003/08/02 18:37:11 deraadt Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from OpenBSD: syscalls.master,v 1.39 2003/07/23 17:42:09 tedu Exp
+ * created from OpenBSD: syscalls.master,v 1.40 2003/08/02 18:37:06 deraadt Exp
*/
#ifdef syscallarg
@@ -511,6 +511,11 @@ struct linux_sys_truncate64_args {
syscallarg(off_t) length;
};
+struct linux_sys_ftruncate64_args {
+ syscallarg(int) fd;
+ syscallarg(off_t) length;
+};
+
struct linux_sys_stat64_args {
syscallarg(char *) path;
syscallarg(struct linux_stat64 *) sp;
@@ -755,7 +760,7 @@ int sys_vfork(struct proc *, void *, register_t *);
int linux_sys_ugetrlimit(struct proc *, void *, register_t *);
int linux_sys_mmap2(struct proc *, void *, register_t *);
int linux_sys_truncate64(struct proc *, void *, register_t *);
-int sys_ftruncate(struct proc *, void *, register_t *);
+int linux_sys_ftruncate64(struct proc *, void *, register_t *);
int linux_sys_stat64(struct proc *, void *, register_t *);
int linux_sys_lstat64(struct proc *, void *, register_t *);
int linux_sys_fstat64(struct proc *, void *, register_t *);
diff --git a/sys/compat/linux/linux_syscalls.c b/sys/compat/linux/linux_syscalls.c
index dd8526a0b9f..b4972f5897d 100644
--- a/sys/compat/linux/linux_syscalls.c
+++ b/sys/compat/linux/linux_syscalls.c
@@ -1,10 +1,10 @@
-/* $OpenBSD: linux_syscalls.c,v 1.40 2003/07/23 17:42:39 tedu Exp $ */
+/* $OpenBSD: linux_syscalls.c,v 1.41 2003/08/02 18:37:11 deraadt Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from OpenBSD: syscalls.master,v 1.39 2003/07/23 17:42:09 tedu Exp
+ * created from OpenBSD: syscalls.master,v 1.40 2003/08/02 18:37:06 deraadt Exp
*/
char *linux_syscallnames[] = {
@@ -218,7 +218,7 @@ char *linux_syscallnames[] = {
"ugetrlimit", /* 191 = ugetrlimit */
"mmap2", /* 192 = mmap2 */
"truncate64", /* 193 = truncate64 */
- "linux_ftruncate64", /* 194 = linux_ftruncate64 */
+ "ftruncate64", /* 194 = ftruncate64 */
"stat64", /* 195 = stat64 */
"lstat64", /* 196 = lstat64 */
"fstat64", /* 197 = fstat64 */
diff --git a/sys/compat/linux/linux_sysent.c b/sys/compat/linux/linux_sysent.c
index 204087e418e..ac6fe734106 100644
--- a/sys/compat/linux/linux_sysent.c
+++ b/sys/compat/linux/linux_sysent.c
@@ -1,10 +1,10 @@
-/* $OpenBSD: linux_sysent.c,v 1.41 2003/07/23 17:42:39 tedu Exp $ */
+/* $OpenBSD: linux_sysent.c,v 1.42 2003/08/02 18:37:11 deraadt Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from OpenBSD: syscalls.master,v 1.39 2003/07/23 17:42:09 tedu Exp
+ * created from OpenBSD: syscalls.master,v 1.40 2003/08/02 18:37:06 deraadt Exp
*/
#include <sys/param.h>
@@ -429,8 +429,8 @@ struct sysent linux_sysent[] = {
linux_sys_mmap2 }, /* 192 = mmap2 */
{ 2, s(struct linux_sys_truncate64_args),
linux_sys_truncate64 }, /* 193 = truncate64 */
- { 2, s(struct sys_ftruncate_args),
- sys_ftruncate }, /* 194 = linux_ftruncate64 */
+ { 2, s(struct linux_sys_ftruncate64_args),
+ linux_sys_ftruncate64 }, /* 194 = ftruncate64 */
{ 2, s(struct linux_sys_stat64_args),
linux_sys_stat64 }, /* 195 = stat64 */
{ 2, s(struct linux_sys_lstat64_args),