summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-07-28 09:53:24 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-07-28 09:53:24 +0000
commit22fa71a86979ef09fdde050533f98468b9d16a1a (patch)
tree87b02652adbb33f48cf4f41258828795f898b412
parent35812a899cf4871382cb0581cd1c35676fb4139f (diff)
sync
-rw-r--r--sys/compat/sunos/sunos_syscall.h3
-rw-r--r--sys/compat/sunos/sunos_syscallargs.h7
-rw-r--r--sys/compat/sunos/sunos_syscalls.c4
-rw-r--r--sys/compat/sunos/sunos_sysent.c6
4 files changed, 13 insertions, 7 deletions
diff --git a/sys/compat/sunos/sunos_syscall.h b/sys/compat/sunos/sunos_syscall.h
index 66f7107d64c..f15adb185eb 100644
--- a/sys/compat/sunos/sunos_syscall.h
+++ b/sys/compat/sunos/sunos_syscall.h
@@ -2,7 +2,7 @@
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from OpenBSD: syscalls.master,v 1.6 1997/01/26 23:52:03 downsj Exp
+ * created from OpenBSD: syscalls.master,v 1.7 1997/07/28 09:53:13 deraadt Exp
*/
#define SUNOS_SYS_syscall 0
@@ -29,6 +29,7 @@
/* 21 is obsolete sunos_old_mount */
#define SUNOS_SYS_setuid 23
#define SUNOS_SYS_getuid 24
+#define SUNOS_SYS_stime 25
#define SUNOS_SYS_ptrace 26
#define SUNOS_SYS_access 33
#define SUNOS_SYS_sync 36
diff --git a/sys/compat/sunos/sunos_syscallargs.h b/sys/compat/sunos/sunos_syscallargs.h
index d219212252f..be86482043e 100644
--- a/sys/compat/sunos/sunos_syscallargs.h
+++ b/sys/compat/sunos/sunos_syscallargs.h
@@ -2,7 +2,7 @@
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from OpenBSD: syscalls.master,v 1.6 1997/01/26 23:52:03 downsj Exp
+ * created from OpenBSD: syscalls.master,v 1.7 1997/07/28 09:53:13 deraadt Exp
*/
#define syscallarg(x) union { x datum; register_t pad; }
@@ -36,6 +36,10 @@ struct sunos_sys_mknod_args {
syscallarg(int) dev;
};
+struct sunos_sys_stime_args {
+ syscallarg(time_t *) tp;
+};
+
struct sunos_sys_ptrace_args {
syscallarg(int) req;
syscallarg(pid_t) pid;
@@ -230,6 +234,7 @@ int compat_43_sys_lseek __P((struct proc *, void *, register_t *));
int sys_getpid __P((struct proc *, void *, register_t *));
int sys_setuid __P((struct proc *, void *, register_t *));
int sys_getuid __P((struct proc *, void *, register_t *));
+int sunos_sys_stime __P((struct proc *, void *, register_t *));
int sunos_sys_ptrace __P((struct proc *, void *, register_t *));
int sunos_sys_access __P((struct proc *, void *, register_t *));
int sys_sync __P((struct proc *, void *, register_t *));
diff --git a/sys/compat/sunos/sunos_syscalls.c b/sys/compat/sunos/sunos_syscalls.c
index 4eda2341117..ee6bac0e56c 100644
--- a/sys/compat/sunos/sunos_syscalls.c
+++ b/sys/compat/sunos/sunos_syscalls.c
@@ -2,7 +2,7 @@
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from OpenBSD: syscalls.master,v 1.6 1997/01/26 23:52:03 downsj Exp
+ * created from OpenBSD: syscalls.master,v 1.7 1997/07/28 09:53:13 deraadt Exp
*/
char *sunos_syscallnames[] = {
@@ -31,7 +31,7 @@ char *sunos_syscallnames[] = {
"#22 (unimplemented System V umount)", /* 22 = unimplemented System V umount */
"setuid", /* 23 = setuid */
"getuid", /* 24 = getuid */
- "#25 (unimplemented sunos_stime)", /* 25 = unimplemented sunos_stime */
+ "stime", /* 25 = stime */
"ptrace", /* 26 = ptrace */
"#27 (unimplemented sunos_alarm)", /* 27 = unimplemented sunos_alarm */
"#28 (unimplemented sunos_fstat)", /* 28 = unimplemented sunos_fstat */
diff --git a/sys/compat/sunos/sunos_sysent.c b/sys/compat/sunos/sunos_sysent.c
index 8c18c333929..069aa8c55ae 100644
--- a/sys/compat/sunos/sunos_sysent.c
+++ b/sys/compat/sunos/sunos_sysent.c
@@ -2,7 +2,7 @@
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from OpenBSD: syscalls.master,v 1.6 1997/01/26 23:52:03 downsj Exp
+ * created from OpenBSD: syscalls.master,v 1.7 1997/07/28 09:53:13 deraadt Exp
*/
#include <sys/param.h>
@@ -85,8 +85,8 @@ struct sysent sunos_sysent[] = {
sys_setuid }, /* 23 = setuid */
{ 0, 0,
sys_getuid }, /* 24 = getuid */
- { 0, 0,
- sys_nosys }, /* 25 = unimplemented sunos_stime */
+ { 1, s(struct sunos_sys_stime_args),
+ sunos_sys_stime }, /* 25 = stime */
{ 5, s(struct sunos_sys_ptrace_args),
sunos_sys_ptrace }, /* 26 = ptrace */
{ 0, 0,