tst-pthread-getattr changes break sparc

Roland McGrath roland@hack.frob.com
Fri Jul 27 20:14:00 GMT 2012


> I kept this signed because I am checking it for < 0 later. Would you
> prefer size_t here and then a cast to ssize_t during the check? I don't
> really have a preference either way.

I'd just never set the global if sysconf returns -1.
Frankly, not bothering to check for sysconf failure is pretty reasonable here.

> > > +  stack_limit.rlim_cur = _MIN(stacksize - pagesize + 1,
> > > MAX_STACK_SIZE);
> > 
> > Space before paren.  Where does _MIN come from?
> 
> I have defined _MIN earlier in the test case.

Ok.  I think we always have MIN/MAX in <sys/param.h> on every configuration.


Thanks,
Roland



More information about the Libc-alpha mailing list