Re: [PATCH] asm*/resource.h fix for glibc

Jakub Jelinek (jakub@redhat.com)
Thu, 16 Dec 1999 15:21:09 +0100


On Thu, Dec 16, 1999 at 02:52:30PM +0100, Thorsten Kukuk wrote:
>
> Hi,
>
> On Thu, Dec 16, Jakub Jelinek wrote:
>
> [...]
>
> > --- linux/include/asm-sparc/resource.h.jj Thu Dec 9 22:29:06 1999
> > +++ linux/include/asm-sparc/resource.h Thu Dec 16 11:13:26 1999
> > @@ -28,7 +28,9 @@
> > * SuS says limits have to be unsigned.
> > * Which makes a ton more sense anyway.
> > */
> > +#ifdef _LINUX_RESOURCE_H
> > #define RLIM_INFINITY (~0UL)
> > +#endif
> >
> > #ifdef __KERNEL__
> > #define INIT_RLIMITS \
>
> Since the old RLIM_INFINITY is the preferred value for SPARC, shouldn't
> we change this back in the kernel, too (like on ALPHA) ? Or the value
> from the kernel header is different then the value from the glibc header
> file for SPARC.

Sure, but this patch was done against 2.3.33 which will not run on SPARC
anyway.
That change is done in vger CVS, which is at the moment at 2.3.29.

BTW: Can you add #undef RLIM_INFINITY into bits/resource.h in your patch?
The above patch is just needed so that folks don't have to upgrade glibc
just because they installed a newer kernel.

Cheers,
Jakub
___________________________________________________________________
Jakub Jelinek | jakub@redhat.com | http://sunsite.mff.cuni.cz/~jj
Linux version 2.3.29 on a sparc64 machine (1343.49 BogoMips)
___________________________________________________________________

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/