diff options
| author | Jeff Garzik <jgarzik@pobox.com> | 2006-02-13 00:12:09 -0500 |
|---|---|---|
| committer | Jeff Garzik <jgarzik@pobox.com> | 2006-02-13 00:12:09 -0500 |
| commit | f1b318793dcd2d9ff6b5ac06e7762098fa079cee (patch) | |
| tree | 41ace7a3e453b82776b9f2a1d3b670b6afe5aa59 /include/linux | |
| parent | 49430f97dd952eda60848bf6bf161b4917ba103d (diff) | |
| parent | e9bb4c9929a63b23dcc637fae312b36b038bdc61 (diff) | |
Merge branch 'master'
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/compat.h | 20 | ||||
| -rw-r--r-- | include/linux/pci_ids.h | 1 | ||||
| -rw-r--r-- | include/linux/syscalls.h | 2 | ||||
| -rw-r--r-- | include/linux/time.h | 25 |
4 files changed, 47 insertions, 1 deletions
diff --git a/include/linux/compat.h b/include/linux/compat.h index f9ca534787..c9ab2a2634 100644 --- a/include/linux/compat.h +++ b/include/linux/compat.h | |||
| @@ -161,5 +161,25 @@ int copy_siginfo_to_user32(struct compat_siginfo __user *to, siginfo_t *from); | |||
| 161 | int get_compat_sigevent(struct sigevent *event, | 161 | int get_compat_sigevent(struct sigevent *event, |
| 162 | const struct compat_sigevent __user *u_event); | 162 | const struct compat_sigevent __user *u_event); |
| 163 | 163 | ||
| 164 | static inline int compat_timeval_compare(struct compat_timeval *lhs, | ||
| 165 | struct compat_timeval *rhs) | ||
| 166 | { | ||
| 167 | if (lhs->tv_sec < rhs->tv_sec) | ||
| 168 | return -1; | ||
| 169 | if (lhs->tv_sec > rhs->tv_sec) | ||
| 170 | return 1; | ||
| 171 | return lhs->tv_usec - rhs->tv_usec; | ||
| 172 | } | ||
| 173 | |||
| 174 | static inline int compat_timespec_compare(struct compat_timespec *lhs, | ||
| 175 | struct compat_timespec *rhs) | ||
| 176 | { | ||
| 177 | if (lhs->tv_sec < rhs->tv_sec) | ||
| 178 | return -1; | ||
| 179 | if (lhs->tv_sec > rhs->tv_sec) | ||
| 180 | return 1; | ||
| 181 | return lhs->tv_nsec - rhs->tv_nsec; | ||
| 182 | } | ||
| 183 | |||
| 164 | #endif /* CONFIG_COMPAT */ | 184 | #endif /* CONFIG_COMPAT */ |
| 165 | #endif /* _LINUX_COMPAT_H */ | 185 | #endif /* _LINUX_COMPAT_H */ |
diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index 7a61ccdcbc..82b83da25d 100644 --- a/include/linux/pci_ids.h +++ b/include/linux/pci_ids.h | |||
| @@ -1087,6 +1087,7 @@ | |||
| 1087 | #define PCI_DEVICE_ID_NVIDIA_GEFORCE4_MX_440_8X 0x0181 | 1087 | #define PCI_DEVICE_ID_NVIDIA_GEFORCE4_MX_440_8X 0x0181 |
| 1088 | #define PCI_DEVICE_ID_NVIDIA_GEFORCE4_MX_440SE_8X 0x0182 | 1088 | #define PCI_DEVICE_ID_NVIDIA_GEFORCE4_MX_440SE_8X 0x0182 |
| 1089 | #define PCI_DEVICE_ID_NVIDIA_GEFORCE4_MX_420_8X 0x0183 | 1089 | #define PCI_DEVICE_ID_NVIDIA_GEFORCE4_MX_420_8X 0x0183 |
| 1090 | #define PCI_DEVICE_ID_NVIDIA_GEFORCE4_MX_4000 0x0185 | ||
| 1090 | #define PCI_DEVICE_ID_NVIDIA_GEFORCE4_448_GO 0x0186 | 1091 | #define PCI_DEVICE_ID_NVIDIA_GEFORCE4_448_GO 0x0186 |
| 1091 | #define PCI_DEVICE_ID_NVIDIA_GEFORCE4_488_GO 0x0187 | 1092 | #define PCI_DEVICE_ID_NVIDIA_GEFORCE4_488_GO 0x0187 |
| 1092 | #define PCI_DEVICE_ID_NVIDIA_QUADRO4_580_XGL 0x0188 | 1093 | #define PCI_DEVICE_ID_NVIDIA_QUADRO4_580_XGL 0x0188 |
diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h index 3877209d23..d73501ba7e 100644 --- a/include/linux/syscalls.h +++ b/include/linux/syscalls.h | |||
| @@ -557,6 +557,8 @@ asmlinkage long sys_openat(int dfd, const char __user *filename, int flags, | |||
| 557 | int mode); | 557 | int mode); |
| 558 | asmlinkage long sys_newfstatat(int dfd, char __user *filename, | 558 | asmlinkage long sys_newfstatat(int dfd, char __user *filename, |
| 559 | struct stat __user *statbuf, int flag); | 559 | struct stat __user *statbuf, int flag); |
| 560 | asmlinkage long sys_fstatat64(int dfd, char __user *filename, | ||
| 561 | struct stat64 __user *statbuf, int flag); | ||
| 560 | asmlinkage long sys_readlinkat(int dfd, const char __user *path, char __user *buf, | 562 | asmlinkage long sys_readlinkat(int dfd, const char __user *path, char __user *buf, |
| 561 | int bufsiz); | 563 | int bufsiz); |
| 562 | asmlinkage long compat_sys_futimesat(unsigned int dfd, char __user *filename, | 564 | asmlinkage long compat_sys_futimesat(unsigned int dfd, char __user *filename, |
diff --git a/include/linux/time.h b/include/linux/time.h index 7b4dc36532..d9cdba54b7 100644 --- a/include/linux/time.h +++ b/include/linux/time.h | |||
| @@ -33,11 +33,34 @@ struct timezone { | |||
| 33 | #define NSEC_PER_SEC 1000000000L | 33 | #define NSEC_PER_SEC 1000000000L |
| 34 | #define NSEC_PER_USEC 1000L | 34 | #define NSEC_PER_USEC 1000L |
| 35 | 35 | ||
| 36 | static __inline__ int timespec_equal(struct timespec *a, struct timespec *b) | 36 | static inline int timespec_equal(struct timespec *a, struct timespec *b) |
| 37 | { | 37 | { |
| 38 | return (a->tv_sec == b->tv_sec) && (a->tv_nsec == b->tv_nsec); | 38 | return (a->tv_sec == b->tv_sec) && (a->tv_nsec == b->tv_nsec); |
| 39 | } | 39 | } |
| 40 | 40 | ||
| 41 | /* | ||
| 42 | * lhs < rhs: return <0 | ||
| 43 | * lhs == rhs: return 0 | ||
| 44 | * lhs > rhs: return >0 | ||
| 45 | */ | ||
| 46 | static inline int timespec_compare(struct timespec *lhs, struct timespec *rhs) | ||
| 47 | { | ||
| 48 | if (lhs->tv_sec < rhs->tv_sec) | ||
| 49 | return -1; | ||
| 50 | if (lhs->tv_sec > rhs->tv_sec) | ||
| 51 | return 1; | ||
| 52 | return lhs->tv_nsec - rhs->tv_nsec; | ||
| 53 | } | ||
| 54 | |||
| 55 | static inline int timeval_compare(struct timeval *lhs, struct timeval *rhs) | ||
| 56 | { | ||
| 57 | if (lhs->tv_sec < rhs->tv_sec) | ||
| 58 | return -1; | ||
| 59 | if (lhs->tv_sec > rhs->tv_sec) | ||
| 60 | return 1; | ||
| 61 | return lhs->tv_usec - rhs->tv_usec; | ||
| 62 | } | ||
| 63 | |||
| 41 | extern unsigned long mktime(const unsigned int year, const unsigned int mon, | 64 | extern unsigned long mktime(const unsigned int year, const unsigned int mon, |
| 42 | const unsigned int day, const unsigned int hour, | 65 | const unsigned int day, const unsigned int hour, |
| 43 | const unsigned int min, const unsigned int sec); | 66 | const unsigned int min, const unsigned int sec); |
