www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1997/09/16/19:41:42

Date: Tue, 16 Sep 1997 19:39:41 -0400 (EDT)
Message-Id: <199709162339.TAA28162@delorie.com>
From: DJ Delorie <dj AT delorie DOT com>
To: djgpp-workers AT delorie DOT com
Subject: Re: c1args.c patches

> 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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019