Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 05 Jan 2002 03:19:39 -0800
From:      Terry Lambert <tlambert2@mindspring.com>
To:        David Miller <dmiller@sparks.net>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Overriding ARG_MAX
Message-ID:  <3C36E14B.1FF8523C@mindspring.com>
References:  <Pine.BSF.4.21.0201042248520.27496-100000@search.sparks.net>

next in thread | previous in thread | raw e-mail | index | archive | help
David Miller wrote:
> > Probably, you are doing something whic you aren't telling us,
> > like saying "ls *.c | wc -l" or otherwise using globbing that
> > the shell expands to too large a list.
> >
> > The easy answer is "use ``find'' instead of ``ls''".
> 
> Indeed, but it doesn't answer the basic questions, which was: Is there any
> easy way to override ARG_MAX (or arbitrary other paramaters) in make.conf
> or a config file, or something else altogether?

No, there is no easy way.  The limit is there in the POSIX
standard, and it exists because of the need to pass data
from a parent to a child over a fork + exec.

The correct answer is to use "find", and either pipe or
call "xargs" on the output.

No matter what you do, you are going to not overcome the
limit on programs that are already built (like your shell),
which includded the header file and referenced the manifest
constant where the limit is defined.  So compatability with
exiting binary apoplications already limits any change you
might want to make to this.

-- Terry

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C36E14B.1FF8523C>