Mail Archives: cygwin/1996/11/04/22:38:27
Message has been automatically signed by PGPsendmail 1.4,
available from ftp.atnf.csiro.au:pub/people/rgooch
-----BEGIN PGP SIGNED MESSAGE-----
> From: John Basrai <jbasrai AT Unify DOT Com>
> Date: Sat Oct 26, 10:12am
>
>
> > When I try to run my newly compiled xargs prog, I get "environment
> > is too large for exec". My environment is only 3K in size. I
> > looked at xargs.c and it's getting the maximum number of arguments
> > from _SC_MAX_ARGS, if defined. As it turns out, _SC_ARG_MAX is
> > defined as 0 in /i386-cygwin32/include/sys/unistd.h.
>
> _SC_ARG_MAX is an integer that is passed to sysconf() to get the
> acutal value
>
> argmax = sysconf(_SC_ARG_MAX);
>
> See man page on sysconf(). This allows you to get a number of system
> configuration parameters at run time so that you don't have compiled
> in limits in your code.
>
> -john
Does anyone know if sysconf() works properly on GNU-WIN32? I looked in the
FAQ and there seemed to be no mention of this. Also, the mailing list archive
has nothing as well (the mailing list archive only goes up to May 1, 1996).
Thanks for any help.
- --
Internet: dummy AT c2 DOT net In real life: Robert Brown,
URL: http://www.c2.net/~dummy in sunny Berkeley, CA
>> Ignorance isn't bliss -- it's good business. << waiting for The Big One
>> Thank you for not breeding. << (510) 464-4604
-----BEGIN PGP SIGNATURE-----
Version: 2.6.2
iQB1AwUBMn6ZMjZMMbnCKCB9AQEMowL/d/LqLUspyKwN+9fGgAwom3V5uNxqXVww
RCS0SKUwBLLB7oOKLCOGVrlpDXuIDaVptw2rG+woPeXh50A8nx4N4joksF/dIRio
G3/CSQMZho87ELXxGAp7F7JgxyExErvK
=QeA4
-----END PGP SIGNATURE-----
-
For help on using this list, send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".
- Raw text -