Article View: comp.bugs.sys5
Article #402Re: putenv() is clobbering static data! NCR 3xxx NCR OS 2.0 (SVR4)
From: wd
Date: Mon, 14 Dec 1992 06:15
Date: Mon, 14 Dec 1992 06:15
22 lines
1628 bytes
1628 bytes
rick@rei.com (Richard J. Barton) writes: >You may want to check the amount of combination argv, envp string space >that's being used. Then look at the kernel parameter ARG_MAX (usually >defaults to about 5K). If you're repetitively doing putenv() this may >be a problem. This is just a hunch... Not in any implementation of putenv() I can look at (and this in- cludes SVR4). If necessary putenv() realloc's what it needs. Wolfgang ================================================================== Name : Wolfgang Denk (+49)-89-68004-288 Company : PCS GmbH, Pfaelzer-Wald-Str. 36, 8000 Munich, Germany. UUCP : ..[pyramid ;uunet!unido]!pcsbst!wd (PYRAMID PREFERRED!!) DOMAIN : wd@pcsbst.pcs.[ COM From rest of world; DE From Europe ] ################################################################### # "UNIX was not designed to stop you from doing stupid things, # # because that would also stop you from doing clever things." # # -- Doug Gwyn # ###################################################################
Technical Details
Message-ID:
<wd.724313735@tukan>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!Germany.EU.net!pcsbst!wdReferences:
<1992Dec9.091253.26269@informix.com> <1992Dec11.164336.11037@rei.com>Show Full Headers
Complete Article Headers
Newsgroups: comp.bugs.sys5 Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!Germany.EU.net!pcsbst!wd From: wd@pcsbst.pcs.com (wd) Subject: Re: putenv() is clobbering static data! NCR 3xxx NCR OS 2.0 (SVR4) Organization: PCS Computer Systeme GmbH Date: Mon, 14 Dec 1992 06:15:35 GMT Message-ID: <wd.724313735@tukan> References: <1992Dec9.091253.26269@informix.com> <1992Dec11.164336.11037@rei.com> Sender: @pcsbst.pcs.com Lines: 22