#include <linux/errno.h>
#include <linux/smp_lock.h>
#include <asm/uaccess.h>
+#include <asm/unistd.h>
/*
* The timezone where the local system is located. Used as a default by some
EXPORT_SYMBOL(sys_tz);
-#if !defined(__alpha__) && !defined(__ia64__)
+#ifdef __ARCH_WANT_SYS_TIME
/*
* sys_time() can be implemented in user-level using
*
* XXX This function is NOT 64-bit clean!
*/
-asmlinkage long sys_time(int * tloc)
+asmlinkage long sys_time(int __user * tloc)
{
int i;
struct timeval tv;
* architectures that need it).
*/
-asmlinkage long sys_stime(time_t *tptr)
+asmlinkage long sys_stime(time_t __user *tptr)
{
struct timespec tv;
return 0;
}
-#endif
+#endif /* __ARCH_WANT_SYS_TIME */
asmlinkage long sys_gettimeofday(struct timeval __user *tv, struct timezone __user *tz)
{