diff options
| author | Stephen Rothwell <sfr@canb.auug.org.au> | 2002-12-14 20:16:06 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-12-14 20:16:06 -0800 |
| commit | a9ff25c88198b789ac3b1f294dd878408629ef88 (patch) | |
| tree | 156f46c17208351495e3a450c7311b51b0f0ad0d /include/linux | |
| parent | 136839a1b4597a6b99a4286586d04a16b5d30295 (diff) | |
[PATCH] consolidate sys32_times - architecture independent
This patch creates compat_sys_times and a few more compability types.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/compat.h | 13 |
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 */ |
