diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-07-28 09:53:14 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-07-28 09:53:14 +0000 |
commit | 35812a899cf4871382cb0581cd1c35676fb4139f (patch) | |
tree | 5b8da4a94c1e429578397bf9f79045d3df7f6509 /sys/compat/sunos/sunos_misc.c | |
parent | 467805f64d7a080e68a367f1214528e260510eb2 (diff) |
stime; christos
Diffstat (limited to 'sys/compat/sunos/sunos_misc.c')
-rw-r--r-- | sys/compat/sunos/sunos_misc.c | 18 |
1 files changed, 17 insertions, 1 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)))); +} |