Module Name:    src
Committed By:   njoly
Date:           Mon Jan 13 10:33:03 UTC 2014

Modified Files:
        src/sys/compat/linux/arch/alpha: syscalls.master
        src/sys/compat/linux/common: linux_time.c

Log Message:
Cleanup, and reduce diffs between arches. Make alpha use
linux_sys_{get,set}timeofday like others.


To generate a diff of this commit:
cvs rdiff -u -r1.82 -r1.83 src/sys/compat/linux/arch/alpha/syscalls.master
cvs rdiff -u -r1.36 -r1.37 src/sys/compat/linux/common/linux_time.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/compat/linux/arch/alpha/syscalls.master
diff -u src/sys/compat/linux/arch/alpha/syscalls.master:1.82 src/sys/compat/linux/arch/alpha/syscalls.master:1.83
--- src/sys/compat/linux/arch/alpha/syscalls.master:1.82	Fri Dec 27 14:17:11 2013
+++ src/sys/compat/linux/arch/alpha/syscalls.master	Mon Jan 13 10:33:03 2014
@@ -1,4 +1,4 @@
-	$NetBSD: syscalls.master,v 1.82 2013/12/27 14:17:11 njoly Exp $
+	$NetBSD: syscalls.master,v 1.83 2014/01/13 10:33:03 njoly Exp $
 ;
 ;	@(#)syscalls.master	8.1 (Berkeley) 7/19/93
 
@@ -580,11 +580,10 @@
 358	STD		{ int|linux_sys||select(int nfds, fd_set *readfds, \
 			    fd_set *writefds, fd_set *exceptfds, \
 			    struct timeval50 *timeout); }
-359	NOARGS		{ int|compat_50_sys||gettimeofday( \
-			    struct timeval50 *tp, struct timezone *tzp); }
-360	NOARGS		{ int|compat_50_sys||settimeofday( \
-			    const struct timeval50 *tp, \
-			    const struct timezone *tzp); }
+359	STD		{ int|linux_sys||gettimeofday(struct timeval50 *tp, \
+			    struct timezone *tzp); }
+360	STD		{ int|linux_sys||settimeofday(struct timeval50 *tp, \
+			    struct timezone *tzp); }
 361	NOARGS		{ int|compat_50_sys||getitimer(int which, \
 			    struct itimerval50 *itv); }
 362	NOARGS		{ int|compat_50_sys||setitimer(int which, \

Index: src/sys/compat/linux/common/linux_time.c
diff -u src/sys/compat/linux/common/linux_time.c:1.36 src/sys/compat/linux/common/linux_time.c:1.37
--- src/sys/compat/linux/common/linux_time.c:1.36	Tue Oct  2 01:44:28 2012
+++ src/sys/compat/linux/common/linux_time.c	Mon Jan 13 10:33:03 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: linux_time.c,v 1.36 2012/10/02 01:44:28 christos Exp $ */
+/*	$NetBSD: linux_time.c,v 1.37 2014/01/13 10:33:03 njoly Exp $ */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_time.c,v 1.36 2012/10/02 01:44:28 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_time.c,v 1.37 2014/01/13 10:33:03 njoly Exp $");
 
 #include <sys/param.h>
 #include <sys/ucred.h>
@@ -57,13 +57,6 @@ __KERNEL_RCSID(0, "$NetBSD: linux_time.c
 #include <compat/common/compat_util.h>
 
 /*
- * This is not implemented for alpha yet
- */
-#if defined (__i386__) || defined (__m68k__) || \
-    defined (__powerpc__) || defined (__mips__) || \
-    defined(__arm__) || defined(__amd64__)
-
-/*
  * Linux keeps track of a system timezone in the kernel. It is readen
  * by gettimeofday and set by settimeofday. This emulates this behavior
  * See linux/kernel/time.c
@@ -122,8 +115,6 @@ linux_sys_settimeofday(struct lwp *l, co
 	return (0);
 }
 
-#endif /* __i386__ || __m68k__ || __powerpc__ || __mips__ || __arm__ */
-
 void
 native_to_linux_timespec(struct linux_timespec *ltp, struct timespec *ntp)
 {

Reply via email to