Sean Farley
7f08f0dd77
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 (0)" test application. readelf -S was used to verify
that the .text section was reduced and that using strlen() saved a few
more bytes over using sizeof(). Since the section of code is only called
when environ is corrupt (program bug), I went with fewer bytes over fewer
cycles.
I made minor edits to the submitted patch to make the output resemble
warnx().
Submitted by: kib bz
Approved by: wes (mentor)
MFC after: 5 days
2008-02-28 04:09:08 +00:00
..
2006-09-30 10:34:13 +00:00
2006-05-19 19:06:38 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-10-19 06:23:39 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-07-04 00:00:41 +00:00
2008-02-28 04:09:08 +00:00
2005-01-20 09:17:07 +00:00
2006-09-23 14:48:31 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2008-01-15 18:55:52 +00:00
2005-01-20 09:17:07 +00:00
2008-01-13 02:11:10 +00:00
2005-12-24 22:37:59 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2005-01-20 09:17:07 +00:00
2007-07-04 00:00:41 +00:00
2008-02-17 17:09:24 +00:00
2008-02-17 18:34:17 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-03-28 04:32:51 +00:00
2007-01-09 00:28:16 +00:00
2008-01-14 09:21:34 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-12-11 20:39:32 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2005-09-12 19:52:42 +00:00
2007-12-16 21:19:28 +00:00
2007-01-09 00:28:16 +00:00
2007-04-10 11:17:00 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2006-09-30 10:34:13 +00:00
2006-03-14 19:53:03 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-05-22 05:28:40 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2006-06-23 13:36:33 +00:00