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 ebl...@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature