delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1996/11/04/22:38:27

From: dummy AT c2 DOT net (Robert)
Subject: the continuing xargs probs -- sysconf
4 Nov 1996 22:38:27 -0800 :
Sender: daemon AT cygnus DOT com
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <199611050135.RAA08301.cygnus.gnu-win32@blacklodge.c2.net>
References: <9610261712 DOT AA09664 AT sparrow DOT sac DOT unify DOT com>
XX-from: robert_brown AT acm DOT org (Robert)
X-Mailer: Mail User's Shell (7.2.6 alpha(3) 7/19/95)
Original-To: gnu-win32 AT cygnus DOT com
Original-Sender: owner-gnu-win32 AT cygnus DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019