summaryrefslogtreecommitdiff
path: root/sys/compat/sunos
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-07-28 09:53:14 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-07-28 09:53:14 +0000
commit35812a899cf4871382cb0581cd1c35676fb4139f (patch)
tree5b8da4a94c1e429578397bf9f79045d3df7f6509 /sys/compat/sunos
parent467805f64d7a080e68a367f1214528e260510eb2 (diff)
stime; christos
Diffstat (limited to 'sys/compat/sunos')
-rw-r--r--sys/compat/sunos/sunos_misc.c18
-rw-r--r--sys/compat/sunos/syscalls.master4
2 files changed, 19 insertions, 3 deletions
diff --git a/sys/compat/sunos/sunos_misc.c b/sys/compat/sunos/sunos_misc.c
index 5f509ad15b4..1af211391e0 100644
--- a/sys/compat/sunos/sunos_misc.c
+++ b/sys/compat/sunos/sunos_misc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sunos_misc.c,v 1.10 1997/06/17 11:11:11 deraadt Exp $ */
+/* $OpenBSD: sunos_misc.c,v 1.11 1997/07/28 09:53:12 deraadt Exp $ */
/* $NetBSD: sunos_misc.c,v 1.65 1996/04/22 01:44:31 christos Exp $ */
/*
@@ -1218,3 +1218,19 @@ sunos_sys_sigvec(p, v, retval)
}
return (0);
}
+
+int
+sunos_sys_stime(p, v, retval)
+ struct proc *p;
+ void *v;
+ register_t *retval;
+{
+ struct sunos_sys_stime_args /* {
+ time_t *tp;
+ } */ *uap = v;
+ struct timeval tv;
+
+ *retval = 0;
+ microtime(&tv);
+ return copyout(&tv.tv_sec, SCARG(uap, tp), sizeof(*(SCARG(uap, tp))));
+}
diff --git a/sys/compat/sunos/syscalls.master b/sys/compat/sunos/syscalls.master
index 89a4af16df6..5f36e6d009b 100644
--- a/sys/compat/sunos/syscalls.master
+++ b/sys/compat/sunos/syscalls.master
@@ -1,4 +1,4 @@
- $OpenBSD: syscalls.master,v 1.6 1997/01/26 23:52:03 downsj Exp $
+ $OpenBSD: syscalls.master,v 1.7 1997/07/28 09:53:13 deraadt Exp $
; $NetBSD: syscalls.master,v 1.33 1996/02/28 16:05:43 pk Exp $
; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
@@ -68,7 +68,7 @@
22 UNIMPL System V umount
23 NOARGS { int sys_setuid(uid_t uid); }
24 NOARGS { uid_t sys_getuid(void); }
-25 UNIMPL sunos_stime
+25 STD { int sunos_sys_stime(time_t *tp); }
26 STD { long sunos_sys_ptrace(int req, pid_t pid, \
caddr_t addr, int data, char *addr2); }
27 UNIMPL sunos_alarm