[4076] in testers

home help back first fref pref prev next nref lref last post

Re: /bin/athena/tcsh "unlimit" fails

daemon@ATHENA.MIT.EDU (Robert A Basch)
Thu May 20 19:03:49 1999

Message-Id: <199905202303.TAA06065@kiko.mit.edu>
To: Dan Winship <danw@MIT.EDU>
Cc: "Mark W. Eichin" <eichin@opus.mit.edu>, Marc Horowitz <marc@MIT.EDU>,
        testers@MIT.EDU
In-Reply-To: Your message of "Thu, 20 May 1999 17:18:12 EDT."
             <199905202118.VAA955597@antharia.mit.edu> 
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Thu, 20 May 1999 19:03:41 EDT
From: Robert A Basch <rbasch@MIT.EDU>

> The problem seems to be that sys/resource.h defines RLIM_INFINITY to
> 2^31-1 if you're using o32 and 2^63-1 if you're using n32, but
> setrlimit doesn't seem to be aware of this and fails (only on some
> limits?) if you set rlim_cur to the n32 RLIM_INFINITY. setrlimit64
> doesn't deal either.

I think this is a tcsh bug.  In sh.func.c, RLIM_TYPE is typedef'ed as an
unsigned long, instead of using rlim_t; resource.h (correctly) defines
the latter as 64 bits for n32.  I'll submit a patch which uses rlim_t for
sgi.  (It's already using rlim_t on Solaris).

Bob


home help back first fref pref prev next nref lref last post