affects all sorts of things, like timeval and itimerval. */
extern struct timezone sys_tz;
-extern int do_getitimer(int which, struct itimerval *value);
-extern int do_setitimer(int which, struct itimerval *, struct itimerval *);
extern asmlinkage int sys_utimes(char *, struct timeval *);
extern int do_adjtimex(struct timex *);
return 0;
}
-extern int do_setitimer(int which, struct itimerval *value,
- struct itimerval *ovalue);
-
static inline void jiffiestotv(unsigned long jiffies, struct timeval *value)
{
value->tv_usec = (jiffies % HZ) * (1000000 / HZ);
return err;
}
-extern int do_setitimer(int which, struct itimerval *, struct itimerval *);
-
asmlinkage long
sys32_alarm(unsigned int seconds)
{
extern int do_posix_clock_monotonic_gettime(struct timespec *tp);
extern long do_nanosleep(struct timespec *t);
extern long do_utimes(char __user * filename, struct timeval * times);
+struct itimerval;
+extern int do_setitimer(int which, struct itimerval *value, struct itimerval *ovalue);
+extern int do_getitimer(int which, struct itimerval *value);
static inline void
set_normalized_timespec (struct timespec *ts, time_t sec, long nsec)
__put_user(i->it_value.tv_usec, &o->it_value.tv_usec)));
}
-extern int do_getitimer(int which, struct itimerval *value);
-
asmlinkage long compat_sys_getitimer(int which, struct compat_itimerval *it)
{
struct itimerval kit;
return error;
}
-extern int do_setitimer(int which, struct itimerval *, struct itimerval *);
-
asmlinkage long compat_sys_setitimer(int which, struct compat_itimerval *in,
struct compat_itimerval *out)
{
#include <linux/mm.h>
#include <linux/smp_lock.h>
#include <linux/interrupt.h>
+#include <linux/time.h>
#include <asm/uaccess.h>
#if !defined(__alpha__) && !defined(__ia64__)
-extern int do_setitimer(int, struct itimerval *, struct itimerval *);
-
/*
* For backwards compatibility? This can be done in libc so Alpha
* and all newer ports shouldn't need it.