summaryrefslogtreecommitdiff
path: root/sys/compat
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2013-10-25 05:10:04 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2013-10-25 05:10:04 +0000
commite2615e2e8c3da9ea51285d53f99b109f9d395783 (patch)
tree029d55971a609a63903a52b7e03bc74673766bb5 /sys/compat
parentc50d473bd8453ac18350c7edbea09f8c7b879404 (diff)
Unimplement stime() and settimeofday(): why are you using a Linux-compat
binary to change the system time? ok pirofti@
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/linux/linux_misc.c29
-rw-r--r--sys/compat/linux/syscalls.master7
2 files changed, 4 insertions, 32 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;
diff --git a/sys/compat/linux/syscalls.master b/sys/compat/linux/syscalls.master
index c8eecd5dd2f..c847d820c81 100644
--- a/sys/compat/linux/syscalls.master
+++ b/sys/compat/linux/syscalls.master
@@ -1,4 +1,4 @@
- $OpenBSD: syscalls.master,v 1.73 2013/10/25 04:51:39 guenther Exp $
+ $OpenBSD: syscalls.master,v 1.74 2013/10/25 05:10:03 guenther Exp $
; $NetBSD: syscalls.master,v 1.15 1995/12/18 14:35:10 fvdl Exp $
; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
@@ -75,7 +75,7 @@
22 STD { int linux_sys_umount(char *specialfile); }
23 NOARGS linux_setuid16 { int sys_setuid(uid_t uid); }
24 STD linux_getuid16 { uid_t linux_sys_getuid(void); }
-25 STD { int linux_sys_stime(linux_time_t *t); }
+25 UNIMPL stime
#ifdef PTRACE
26 STD { int linux_sys_ptrace(void); }
#else
@@ -147,8 +147,7 @@
struct linux_rusage *rusage); }
78 STD { int linux_sys_gettimeofday(struct linux_timeval *tp, \
struct timezone *tzp); }
-79 NOARGS { int sys_settimeofday(struct timeval *tp, \
- struct timezone *tzp); }
+79 UNIMPL settimeofday
80 NOARGS linux_getgroups { int sys_getgroups(u_int gidsetsize, \
gid_t *gidset); }
81 NOARGS linux_setgroups { int sys_setgroups(u_int gidsetsize, \