From a9ff25c88198b789ac3b1f294dd878408629ef88 Mon Sep 17 00:00:00 2001 From: Stephen Rothwell Date: Sat, 14 Dec 2002 20:16:06 -0800 Subject: [PATCH] consolidate sys32_times - architecture independent This patch creates compat_sys_times and a few more compability types. --- include/linux/compat.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'include/linux') 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 @@ -10,6 +10,8 @@ #include +#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 */ -- cgit v1.2.3