diff options
| author | Randolph Chung <tausq@debian.org> | 2003-04-16 07:45:43 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2003-04-16 07:45:43 -0700 |
| commit | b95baca05436d2f31984a5bf0a064b2b8e0cfc42 (patch) | |
| tree | d86c626f7b4de0bdbcaf0c503375adcf6b730f53 /include | |
| parent | 98af522fee77e0a109a0a07221fbdce5e0b00116 (diff) | |
[PATCH] getrlimit,setrlimit,getrusage,wait4 unification
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-parisc/compat.h | 2 | ||||
| -rw-r--r-- | include/asm-ppc64/compat.h | 3 | ||||
| -rw-r--r-- | include/asm-s390/compat.h | 3 | ||||
| -rw-r--r-- | include/asm-sparc64/compat.h | 2 | ||||
| -rw-r--r-- | include/asm-x86_64/compat.h | 3 | ||||
| -rw-r--r-- | include/linux/compat.h | 24 |
6 files changed, 37 insertions, 0 deletions
diff --git a/include/asm-parisc/compat.h b/include/asm-parisc/compat.h index 2940a9757a64..3a3ac178498d 100644 --- a/include/asm-parisc/compat.h +++ b/include/asm-parisc/compat.h @@ -99,6 +99,8 @@ struct compat_statfs { s32 f_spare[6]; }; +#define COMPAT_RLIM_INFINITY 0xffffffff + typedef u32 compat_old_sigset_t; /* at least 32 bits */ #define _COMPAT_NSIG 64 diff --git a/include/asm-ppc64/compat.h b/include/asm-ppc64/compat.h index 4934e9315e76..913cbd936dd9 100644 --- a/include/asm-ppc64/compat.h +++ b/include/asm-ppc64/compat.h @@ -93,6 +93,9 @@ struct compat_statfs { int f_spare[6]; }; +#define COMPAT_RLIM_OLD_INFINITY 0x7fffffff +#define COMPAT_RLIM_INFINITY 0xffffffff + typedef u32 compat_old_sigset_t; #define _COMPAT_NSIG 64 diff --git a/include/asm-s390/compat.h b/include/asm-s390/compat.h index 55966b41d290..b010629a46e9 100644 --- a/include/asm-s390/compat.h +++ b/include/asm-s390/compat.h @@ -96,6 +96,9 @@ struct compat_statfs { s32 f_spare[6]; }; +#define COMPAT_RLIM_OLD_INFINITY 0x7fffffff +#define COMPAT_RLIM_INFINITY 0xffffffff + typedef u32 compat_old_sigset_t; /* at least 32 bits */ #define _COMPAT_NSIG 64 diff --git a/include/asm-sparc64/compat.h b/include/asm-sparc64/compat.h index dc174a7ef925..6503e10e5a75 100644 --- a/include/asm-sparc64/compat.h +++ b/include/asm-sparc64/compat.h @@ -95,6 +95,8 @@ struct compat_statfs { int f_spare[6]; }; +#define COMPAT_RLIM_INFINITY 0x7fffffff + typedef u32 compat_old_sigset_t; #define _COMPAT_NSIG 64 diff --git a/include/asm-x86_64/compat.h b/include/asm-x86_64/compat.h index 06c27d32eae5..90265acf71b2 100644 --- a/include/asm-x86_64/compat.h +++ b/include/asm-x86_64/compat.h @@ -102,6 +102,9 @@ struct compat_statfs { int f_spare[6]; }; +#define COMPAT_RLIM_OLD_INFINITY 0x7fffffff +#define COMPAT_RLIM_INFINITY 0xffffffff + typedef u32 compat_old_sigset_t; /* at least 32 bits */ #define _COMPAT_NSIG 64 diff --git a/include/linux/compat.h b/include/linux/compat.h index 305b8f0411a5..bc69ea28d7e9 100644 --- a/include/linux/compat.h +++ b/include/linux/compat.h @@ -47,5 +47,29 @@ struct compat_iovec { compat_size_t iov_len; }; +struct compat_rlimit { + compat_ulong_t rlim_cur; + compat_ulong_t rlim_max; +}; + +struct compat_rusage { + struct compat_timeval ru_utime; + struct compat_timeval ru_stime; + compat_long_t ru_maxrss; + compat_long_t ru_ixrss; + compat_long_t ru_idrss; + compat_long_t ru_isrss; + compat_long_t ru_minflt; + compat_long_t ru_majflt; + compat_long_t ru_nswap; + compat_long_t ru_inblock; + compat_long_t ru_oublock; + compat_long_t ru_msgsnd; + compat_long_t ru_msgrcv; + compat_long_t ru_nsignals; + compat_long_t ru_nvcsw; + compat_long_t ru_nivcsw; +}; + #endif /* CONFIG_COMPAT */ #endif /* _LINUX_COMPAT_H */ |
