Why is ARG_MAX not defined via limits.h?

Posted by Josh Matthews on Stack Overflow See other posts from Stack Overflow or by Josh Matthews
Published on 2008-09-05T19:39:37Z Indexed on 2010/04/23 11:13 UTC
Read the original article Hit count: 288

Filed under:
|

On Fedora Core 7, I'm writing some code that relies on ARG_MAX. However, even if I #include <limits.h>, the constant is still not defined. My investigations show that it's present in <sys/linux/limits.h>, but this is supposed to be portable across Win32/Mac/Linux, so directly including it isn't an option. What's going on here?

© Stack Overflow or respective owner

Related posts about linux

Related posts about limits