diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1995-11-14 08:00:00 +0000 |
---|---|---|
committer | <ralf@linux-mips.org> | 1995-11-14 08:00:00 +0000 |
commit | e7c2a72e2680827d6a733931273a93461c0d8d1b (patch) | |
tree | c9abeda78ef7504062bb2e816bcf3e3c9d680112 /include/linux/time.h | |
parent | ec6044459060a8c9ce7f64405c465d141898548c (diff) |
Import of Linux/MIPS 1.3.0
Diffstat (limited to 'include/linux/time.h')
-rw-r--r-- | include/linux/time.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/include/linux/time.h b/include/linux/time.h index 65891b748..a6ce36c8c 100644 --- a/include/linux/time.h +++ b/include/linux/time.h @@ -2,8 +2,8 @@ #define _LINUX_TIME_H struct timeval { - long tv_sec; /* seconds */ - long tv_usec; /* microseconds */ + int tv_sec; /* seconds */ + int tv_usec; /* microseconds */ }; struct timezone { @@ -13,11 +13,22 @@ struct timezone { #define NFDBITS __NFDBITS +#ifdef __KERNEL__ +void do_gettimeofday(struct timeval *tv); +#include <asm/bitops.h> +#include <linux/string.h> +#define FD_SETSIZE __FD_SETSIZE +#define FD_SET(fd,fdsetp) set_bit(fd,fdsetp) +#define FD_CLR(fd,fdsetp) clear_bit(fd,fdsetp) +#define FD_ISSET(fd,fdsetp) (0 != test_bit(fd,fdsetp)) +#define FD_ZERO(fdsetp) memset(fdsetp, 0, sizeof(struct fd_set)) +#else #define FD_SETSIZE __FD_SETSIZE #define FD_SET(fd,fdsetp) __FD_SET(fd,fdsetp) #define FD_CLR(fd,fdsetp) __FD_CLR(fd,fdsetp) #define FD_ISSET(fd,fdsetp) __FD_ISSET(fd,fdsetp) #define FD_ZERO(fdsetp) __FD_ZERO(fdsetp) +#endif /* * Names of the interval timers, and structure |