[GRASS5] Re: [winGRASS] ARG_MAX and parser.c

Glynn Clements glynn.clements at virgin.net
Wed Aug 8 13:59:28 EDT 2001


Markus Neteler wrote:

> may someone clarify below?
> 
> On Tue, Aug 07, 2001 at 04:07:06AM -0600, John Huddleston wrote:
> > Wingrass,
> > 
> > I see that someone checked in src/libes/gis/parser.c with ARG_MAX
> > It used to be 1024 in size.  The Posix size is 4096.   Normally this is
> > in the limits.h file.   Maybe we can put something in out gis.h header.
> > The char *G_recreate_command (void) function uses it lines 1365
> > and 1369.
> > 
> > #ifndef ARG_MAX
> > #define ARG_MAX 4096
> > #endif
> > 
> > Is that too large a size?

I have no idea which version of src/libes/gis/parser.c this refers to.

It isn't the version in releasebranch_11_april_2001_5_0_0. That
version doesn't reference ARG_MAX; instead, it uses G_realloc to
enlarge the buffer as required.

-- 
Glynn Clements <glynn.clements at virgin.net>



More information about the grass-dev mailing list