summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/compat.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/include/linux/compat.h b/include/linux/compat.h
index 5aa29316f9d8..228bd4b13365 100644
--- a/include/linux/compat.h
+++ b/include/linux/compat.h
@@ -1,8 +1,8 @@
#ifndef _LINUX_COMPAT_H
#define _LINUX_COMPAT_H
/*
- * These are the type definitions for the arhitecure sepcific
- * compatibility layer.
+ * These are the type definitions for the architecture specific
+ * syscall compatibility layer.
*/
#include <linux/config.h>
@@ -10,6 +10,8 @@
#include <asm/compat.h>
+#define compat_jiffies_to_clock_t(x) ((x) / (HZ / COMPAT_USER_HZ))
+
struct compat_utimbuf {
compat_time_t actime;
compat_time_t modtime;
@@ -20,5 +22,12 @@ struct compat_itimerval {
struct compat_timeval it_value;
};
+struct compat_tms {
+ compat_clock_t tms_utime;
+ compat_clock_t tms_stime;
+ compat_clock_t tms_cutime;
+ compat_clock_t tms_cstime;
+};
+
#endif /* CONFIG_COMPAT */
#endif /* _LINUX_COMPAT_H */