summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2012-04-12 11:10:07 +0000
committerderaadt <deraadt@openbsd.org>2012-04-12 11:10:07 +0000
commit86e67bdb35231b8024320e5536d3dd0b8e213d95 (patch)
treee5e859f36b700e67b5232a849a98fe9484ea3662
parentNew system call: getdtablecount(2) returns the number of file (diff)
downloadwireguard-openbsd-86e67bdb35231b8024320e5536d3dd0b8e213d95.tar.xz
wireguard-openbsd-86e67bdb35231b8024320e5536d3dd0b8e213d95.zip
sync
-rw-r--r--sys/kern/init_sysent.c6
-rw-r--r--sys/kern/syscalls.c6
-rw-r--r--sys/sys/syscall.h8
-rw-r--r--sys/sys/syscallargs.h5
4 files changed, 14 insertions, 11 deletions
diff --git a/sys/kern/init_sysent.c b/sys/kern/init_sysent.c
index be822ad146e..cfbd7db4cf7 100644
--- a/sys/kern/init_sysent.c
+++ b/sys/kern/init_sysent.c
@@ -1,10 +1,10 @@
-/* $OpenBSD: init_sysent.c,v 1.132 2012/01/17 02:34:18 guenther Exp $ */
+/* $OpenBSD: init_sysent.c,v 1.133 2012/04/12 11:10:07 deraadt Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from; OpenBSD: syscalls.master,v 1.119 2011/10/15 23:35:29 guenther Exp
+ * created from; OpenBSD: syscalls.master,v 1.121 2012/04/12 11:07:19 deraadt Exp
*/
#include <sys/param.h>
@@ -62,7 +62,7 @@ struct sysent sysent[] = {
{ 1, s(struct sys_obreak_args), 0,
sys_obreak }, /* 17 = break */
{ 0, 0, 0,
- sys_nosys }, /* 18 = obsolete getfsstat25 */
+ sys_getdtablecount }, /* 18 = getdtablecount */
{ 0, 0, 0,
sys_nosys }, /* 19 = obsolete olseek */
{ 0, 0, SY_NOLOCK | 0,
diff --git a/sys/kern/syscalls.c b/sys/kern/syscalls.c
index a7880b9ef64..fcab62513a2 100644
--- a/sys/kern/syscalls.c
+++ b/sys/kern/syscalls.c
@@ -1,10 +1,10 @@
-/* $OpenBSD: syscalls.c,v 1.133 2012/01/17 02:34:18 guenther Exp $ */
+/* $OpenBSD: syscalls.c,v 1.134 2012/04/12 11:10:07 deraadt Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from; OpenBSD: syscalls.master,v 1.119 2011/10/15 23:35:29 guenther Exp
+ * created from; OpenBSD: syscalls.master,v 1.121 2012/04/12 11:07:19 deraadt Exp
*/
char *syscallnames[] = {
@@ -26,7 +26,7 @@ char *syscallnames[] = {
"chmod", /* 15 = chmod */
"chown", /* 16 = chown */
"break", /* 17 = break */
- "#18 (obsolete getfsstat25)", /* 18 = obsolete getfsstat25 */
+ "getdtablecount", /* 18 = getdtablecount */
"#19 (obsolete olseek)", /* 19 = obsolete olseek */
"getpid", /* 20 = getpid */
"mount", /* 21 = mount */
diff --git a/sys/sys/syscall.h b/sys/sys/syscall.h
index ccd89b97435..4f0bd51d0d9 100644
--- a/sys/sys/syscall.h
+++ b/sys/sys/syscall.h
@@ -1,10 +1,10 @@
-/* $OpenBSD: syscall.h,v 1.132 2012/01/17 02:34:18 guenther Exp $ */
+/* $OpenBSD: syscall.h,v 1.133 2012/04/12 11:10:07 deraadt Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from; OpenBSD: syscalls.master,v 1.119 2011/10/15 23:35:29 guenther Exp
+ * created from; OpenBSD: syscalls.master,v 1.121 2012/04/12 11:07:19 deraadt Exp
*/
/* syscall: "syscall" ret: "int" args: "int" "..." */
@@ -57,7 +57,9 @@
/* syscall: "break" ret: "int" args: "char *" */
#define SYS_break 17
- /* 18 is obsolete getfsstat25 */
+/* syscall: "getdtablecount" ret: "int" args: */
+#define SYS_getdtablecount 18
+
/* 19 is obsolete olseek */
/* syscall: "getpid" ret: "pid_t" args: */
#define SYS_getpid 20
diff --git a/sys/sys/syscallargs.h b/sys/sys/syscallargs.h
index f43f66d46f3..2c94e279551 100644
--- a/sys/sys/syscallargs.h
+++ b/sys/sys/syscallargs.h
@@ -1,10 +1,10 @@
-/* $OpenBSD: syscallargs.h,v 1.134 2012/01/17 02:34:18 guenther Exp $ */
+/* $OpenBSD: syscallargs.h,v 1.135 2012/04/12 11:10:07 deraadt Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from; OpenBSD: syscalls.master,v 1.119 2011/10/15 23:35:29 guenther Exp
+ * created from; OpenBSD: syscalls.master,v 1.121 2012/04/12 11:07:19 deraadt Exp
*/
#ifdef syscallarg
@@ -1073,6 +1073,7 @@ int sys_mknod(struct proc *, void *, register_t *);
int sys_chmod(struct proc *, void *, register_t *);
int sys_chown(struct proc *, void *, register_t *);
int sys_obreak(struct proc *, void *, register_t *);
+int sys_getdtablecount(struct proc *, void *, register_t *);
int sys_getpid(struct proc *, void *, register_t *);
int sys_mount(struct proc *, void *, register_t *);
int sys_unmount(struct proc *, void *, register_t *);