Skip to contentSkip to conversation

IA-32 emulation patch: rlim.patch

Linux-ia64 Arun Sharma 2 participants 2 messages May 23, 2003 – May 29, 2003

lore
Share & tools
lore
#0 lore raw

rlim_cur/rlim_max should be defined as unsigned integers to be compatible with native i386.

-Arun

=== linux-ia64-2.4/arch/ia64/ia32/sys_ia32.c 1.16 vs edited ==--- 1.16/arch/ia64/ia32/sys_ia32.c Fri Apr 18 10:55:20 2003
+++ edited/linux-ia64-2.4/arch/ia64/ia32/sys_ia32.c Thu May 22 17:51:06 2003
@@ -1230,8 +1230,8 @@
#define RESOURCE32(x) ((x > RLIM_INFINITY32) ? RLIM_INFINITY32 : x)

struct rlimit32 {
- int rlim_cur;
- int rlim_max;
+ unsigned int rlim_cur;
+ unsigned int rlim_max;
};

extern asmlinkage long sys_getrlimit (unsigned int resource, struct rlimit *rlim);

#1 lore raw
Quoted 2 lines · Arun Sharma

rlim_cur/rlim_max should be defined as unsigned integers to be compatible with native i386.

I applied this for 2.4.