[kaffe] getrlimit on NetBSD/ppc 2-0
    Riccardo 
    zuse at libero.it
       
    Mon Apr 26 02:04:02 PDT 2004
    
    
  
Hey,
after modifying the test program this way:
int main(int argc, char **argv)
{
        struct rlimit rlim;
        if (getrlimit(RLIMIT_STACK, &rlim) < 0)
                perror("getrlimit");
        printf("cur=%lld  max=%lld\n", (long long int)rlim.rlim_cur, (
long long 
int)rlim.rlim_max);
        printf("infinity=%lld\n", (long long int)RLIM_INFINITY);
        
        return 0;
}
I get the following result:
cur=2097152  max=33554432
infinity=9223372036854775807
which is, I thing, much more meaningful (thanks for the help of the guys 
of NetBSD mailing list)
-Riccardo
    
    
More information about the kaffe
mailing list