This content has been marked as final. Show 3 replies
After some more googling, I learned that apparently this is not a bug but a feature called sysconf(3). Damn newfangled stuff..
int main(int argc, char** argv)
holger>gcc argmax.c -o argmax
So ARG_MAX should be obtained via sysconf, if possible.
thanks for looking into this. AFAIK newer Fedora systems should have glibc 2.8; we had similar problems when compiling the Erlang VM. ;)
Btw - just to make sure - I think the original allocation was on the stack. This might end in unhappy ways when the returned value is too large.