bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: findutils on interix


From: Eric Blake
Subject: Re: findutils on interix
Date: Wed, 27 Oct 2010 17:20:14 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100921 Fedora/3.1.4-1.fc13 Mnenhy/0.8.3 Thunderbird/3.1.4

On 10/27/2010 05:12 PM, James Youngman wrote:
> 
>> AFAIK, the maximum environment size
>> on interix is 32K, if that's of any interest to you...
> 
> Does it express the size of this limit in a way that's relevant to the
> POSIX programming interface?

Windows in general has a 32k limit on arguments, and a separate 32k
limit on environment vars.  Unlike on Unix, these are separate pools, so
a large environment has no effect on command line argument length.

I don't know how well this plays into Interix.

When building for cygwin, I use with ./configure
DEFAULT_ARG_SIZE='(32u*1024)', which sets an overall 32k limit for both
args and environment (as reporting 64k would be lying, since the two
pools are not shared).  Perhaps that will work for Interix as well?

But cygwin is unique in that it has unlimited args and environment size
when invoking another cygwin program (rather than go through the windows
pools, cygwin processes use arbitrarily large shared memory for
communicating between parent and child processes).  So cygwin only has
to worry about hitting the 32k limits when invoking a non-cygwin program.

-- 
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]