cvs commit: src/lib/libc/stdlib getenv.c

2008-08-07 Thread Sean Farley
scf 2008-08-08 00:49:28 UTC FreeBSD src repository Modified files:(Branch: RELENG_7) lib/libc/stdlib getenv.c Log: SVN rev 181407 on 2008-08-08 00:49:28Z by scf MFC: r181150, r181266 Detect if the application has cleared the environ variable by

cvs commit: src/lib/libc/stdlib getenv.c

2008-08-03 Thread Sean Farley
scf 2008-08-03 22:47:23 UTC FreeBSD src repository Modified files: lib/libc/stdlib getenv.c Log: SVN rev 181266 on 2008-08-03 22:47:23Z by scf Restructure and use different variables in the tests that involve environ[0] to be more obvious that environ is not NULL

cvs commit: src/lib/libc/stdlib getenv.c src/tools/regression/environ envctl.c envtest.t

2008-08-01 Thread Sean Farley
scf 2008-08-02 02:34:35 UTC FreeBSD src repository Modified files: lib/libc/stdlib getenv.c tools/regression/environ envctl.c envtest.t Log: SVN rev 181150 on 2008-08-02 02:34:35Z by scf Detect if the application has cleared the environ variable by setting

cvs commit: src/lib/libc/stdlib getenv.c

2008-03-06 Thread Sean Farley
scf 2008-03-06 15:14:36 UTC FreeBSD src repository Modified files:(Branch: RELENG_7) lib/libc/stdlib getenv.c Log: MFC: Replace the use of warnx() with direct output to stderr using _write(). This reduces the size of a statically-linked binary by

cvs commit: src/lib/libc/stdlib getenv.c

2008-02-27 Thread Sean Farley
scf 2008-02-28 04:09:08 UTC FreeBSD src repository Modified files: lib/libc/stdlib getenv.c Log: Replace the use of warnx() with direct output to stderr using _write(). This reduces the size of a statically-linked binary by approximately 100KB in a trivial return

Re: cvs commit: src/lib/libc/stdlib getenv.c

2007-09-28 Thread Sean C. Farley
On Tue, 25 Sep 2007, Bruce Evans wrote: On Sat, 22 Sep 2007, Sean C. Farley wrote: On Sat, 22 Sep 2007, Bruce Evans wrote: ... Partial analysis: - the size_t variable must have a small value that is representable as an int (else casting it to int would be a bug and/or printing a line

Re: cvs commit: src/lib/libc/stdlib getenv.c

2007-09-24 Thread Bruce Evans
On Sat, 22 Sep 2007, Sean C. Farley wrote: On Sat, 22 Sep 2007, Bruce Evans wrote: ... Partial analysis: - the size_t variable must have a small value that is representable as an int (else casting it to int would be a bug and/or printing a line of that length would be a style bug).

Re: cvs commit: src/lib/libc/stdlib getenv.c

2007-09-23 Thread Dag-Erling Smørgrav
Bruce Evans [EMAIL PROTECTED] writes: On Sat, 22 Sep 2007, [utf-8] Dag-Erling Smørgrav wrote: s/to remove the warning/to actually work/ Please be precise :-). s/to remove the warning ... on 64-bit platforms/to avoid undefined behaviour on platforms where size_t is not u_int, and to avoid

Re: cvs commit: src/lib/libc/stdlib getenv.c

2007-09-23 Thread Bruce Evans
On Sun, 23 Sep 2007, [utf-8] Dag-Erling Sm??rgrav wrote: Bruce Evans [EMAIL PROTECTED] writes: On Sat, 22 Sep 2007, [utf-8] Dag-Erling Sm??rgrav wrote: s/to remove the warning/to actually work/ Please be precise :-). s/to remove the warning ... on 64-bit platforms/to avoid undefined

Re: cvs commit: src/lib/libc/stdlib getenv.c

2007-09-22 Thread Dag-Erling Smørgrav
Sean Farley [EMAIL PROTECTED] writes: Log: The precision for a string argument in a call to warnx() needs to be cast to an int to remove the warning from using a size_t variable on 64-bit platforms. s/to remove the warning/to actually work/ DES -- Dag-Erling Smørgrav - [EMAIL

Re: cvs commit: src/lib/libc/stdlib getenv.c

2007-09-22 Thread Bruce Evans
On Sat, 22 Sep 2007, [utf-8] Dag-Erling Sm??rgrav wrote: Sean Farley [EMAIL PROTECTED] writes: Log: The precision for a string argument in a call to warnx() needs to be cast to an int to remove the warning from using a size_t variable on 64-bit platforms. s/to remove the warning/to

Re: cvs commit: src/lib/libc/stdlib getenv.c

2007-09-22 Thread Sean C. Farley
On Sat, 22 Sep 2007, Bruce Evans wrote: On Sat, 22 Sep 2007, [utf-8] Dag-Erling Smørgrav wrote: Sean Farley [EMAIL PROTECTED] writes: Log: The precision for a string argument in a call to warnx() needs to be cast to an int to remove the warning from using a size_t variable on 64-bit

cvs commit: src/lib/libc/stdlib getenv.c

2007-09-21 Thread Sean Farley
scf 2007-09-22 02:30:44 UTC FreeBSD src repository Modified files: lib/libc/stdlib getenv.c Log: The precision for a string argument in a call to warnx() needs to be cast to an int to remove the warning from using a size_t variable on 64-bit platforms.

cvs commit: src/lib/libc/stdlib getenv.c

2007-09-15 Thread Sean Farley
scf 2007-09-15 21:48:55 UTC FreeBSD src repository Modified files: lib/libc/stdlib getenv.c Log: Skip rebuilding environ in setenv() only upon reuse of an active variable; inactive variables should cause a rebuild of environ, otherwise, exec()'d processes will be