summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_misc.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2013-10-25 05:10:03 +0000
committerguenther <guenther@openbsd.org>2013-10-25 05:10:03 +0000
commite35a8cffbbd0da7d18ad5d8a34f71781d335b959 (patch)
tree7df8f677019d4cdb473327b601c19dfe56181c96 /sys/compat/linux/linux_misc.c
parentregen (diff)
downloadwireguard-openbsd-e35a8cffbbd0da7d18ad5d8a34f71781d335b959.tar.xz
wireguard-openbsd-e35a8cffbbd0da7d18ad5d8a34f71781d335b959.zip
Unimplement stime() and settimeofday(): why are you using a Linux-compat
binary to change the system time? ok pirofti@
Diffstat (limited to 'sys/compat/linux/linux_misc.c')
-rw-r--r--sys/compat/linux/linux_misc.c29
1 files changed, 1 insertions, 28 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c
index 48d41a20c6e..1947a3d3507 100644
--- a/sys/compat/linux/linux_misc.c
+++ b/sys/compat/linux/linux_misc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_misc.c,v 1.82 2013/10/25 04:51:39 guenther Exp $ */
+/* $OpenBSD: linux_misc.c,v 1.83 2013/10/25 05:10:03 guenther Exp $ */
/* $NetBSD: linux_misc.c,v 1.27 1996/05/20 01:59:21 fvdl Exp $ */
/*-
@@ -1522,33 +1522,6 @@ linux_sys_nice(p, v, retval)
}
int
-linux_sys_stime(p, v, retval)
- struct proc *p;
- void *v;
- register_t *retval;
-{
- struct linux_sys_time_args /* {
- linux_time_t *t;
- } */ *uap = v;
- struct timespec ats;
- linux_time_t tt;
- int error;
-
- if ((error = suser(p, 0)) != 0)
- return (error);
-
- if ((error = copyin(SCARG(uap, t), &tt, sizeof(tt))) != 0)
- return (error);
-
- ats.tv_sec = tt;
- ats.tv_nsec = 0;
-
- error = settime(&ats);
-
- return (error);
-}
-
-int
linux_sys_getpid(p, v, retval)
struct proc *p;
void *v;