mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* compat_sys_old_getrlimit() depends on sys_old_getrlimit()
@ 2003-06-24  0:01 David Mosberger
  2003-06-27 22:49 ` Adrian Bunk
  0 siblings, 1 reply; 2+ messages in thread
From: David Mosberger @ 2003-06-24  0:01 UTC (permalink / raw)
  To: torvalds; +Cc: linux-kernel

compat_sys_old_getrlimit() depends on sys_old_getrlimit() and the patch
below updates the guarding #ifdef accordingly.

	--david

===== kernel/sys.c 1.47 vs edited =====
--- 1.47/kernel/sys.c	Thu Jun 12 15:53:14 2003
+++ edited/kernel/sys.c	Mon Jun 23 16:01:39 2003
@@ -5,6 +5,7 @@
  */
 
 #include <linux/config.h>
+#include <linux/compat.h>
 #include <linux/module.h>
 #include <linux/mm.h>
 #include <linux/utsname.h>
@@ -1219,7 +1220,7 @@
 			? -EFAULT : 0;
 }
 
-#if !defined(__ia64__) && !defined(CONFIG_V850)
+#if defined(COMPAT_RLIM_OLD_INFINITY) || !(defined(CONFIG_IA64) || defined(CONFIG_V850))
 
 /*
  *	Back compatibility for getrlimit. Needed for some apps.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: compat_sys_old_getrlimit() depends on sys_old_getrlimit()
  2003-06-24  0:01 compat_sys_old_getrlimit() depends on sys_old_getrlimit() David Mosberger
@ 2003-06-27 22:49 ` Adrian Bunk
  0 siblings, 0 replies; 2+ messages in thread
From: Adrian Bunk @ 2003-06-27 22:49 UTC (permalink / raw)
  To: davidm; +Cc: torvalds, linux-kernel

On Mon, Jun 23, 2003 at 05:01:18PM -0700, David Mosberger wrote:
> compat_sys_old_getrlimit() depends on sys_old_getrlimit() and the patch
> below updates the guarding #ifdef accordingly.
> 
> 	--david
> 
> ===== kernel/sys.c 1.47 vs edited =====
> --- 1.47/kernel/sys.c	Thu Jun 12 15:53:14 2003
> +++ edited/kernel/sys.c	Mon Jun 23 16:01:39 2003
> @@ -5,6 +5,7 @@
>   */
>  
>  #include <linux/config.h>
> +#include <linux/compat.h>
>  #include <linux/module.h>
>  #include <linux/mm.h>
>  #include <linux/utsname.h>
> @@ -1219,7 +1220,7 @@
>  			? -EFAULT : 0;
>  }
>  
> -#if !defined(__ia64__) && !defined(CONFIG_V850)
> +#if defined(COMPAT_RLIM_OLD_INFINITY) || !(defined(CONFIG_IA64) || defined(CONFIG_V850))
> 
>  /*
>   *	Back compatibility for getrlimit. Needed for some apps.

s/||/&&/  ?

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-06-27 22:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-24  0:01 compat_sys_old_getrlimit() depends on sys_old_getrlimit() David Mosberger
2003-06-27 22:49 ` Adrian Bunk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®