Mail Archives: djgpp-workers/1997/09/16/19:41:42
> Of course I would agree also to use sysconf for determining
> the actual values, but I think this should be done then
> in limits.h.
According the POSIX, the correct thing to do is to NOT define ARG_MAX
at all in limits.h, if its value is indeterminate. In those cases,
applications may use #ifdef to detect if they should use ARG_MAX
(which, if defined, must be constant) or call sysconf().
It is not correct for limits.h to define ARG_MAX in terms of
sysconf().
- Raw text -