freebsd-skq/lib/libc
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
..
amd64 Add an alternative view of the bits in an 80-bit long double (64+16 2008-01-17 16:39:07 +00:00
arm Arrange so that the NaN returned by strtod("nan", NULL) is the same as 2007-12-16 21:15:09 +00:00
compat-43 Use C comments since we now preprocess these files with CPP. 2007-04-29 14:05:22 +00:00
db getopt(3) returns -1, not EOF. 2008-02-18 03:19:25 +00:00
gdtoa Export gdtoa's __ULto{x,Q}_D2A routine in a private namespace so 2007-12-16 21:15:57 +00:00
gen stdio is currently limited to file descriptors not greater than 2008-02-27 05:56:57 +00:00
gmon Remove .mcount from gmon's Symbol map and add it to the appropriate 2007-05-13 14:16:55 +00:00
i386 Add an alternative view of the bits in an 80-bit long double (64+16 2008-01-17 16:39:07 +00:00
ia64 Add an alternative view of the bits in an 80-bit long double (64+16 2008-01-17 16:39:07 +00:00
include Add pthread_mutex_isowned_np() so there is no need for an additional 2008-02-06 20:42:35 +00:00
inet Fix issues which allow snooping on ptys. [08:01] 2008-01-14 22:56:05 +00:00
isc Merge BIND 9.4.1 into main chunk. 2007-06-03 17:20:27 +00:00
locale Fix longstanding mb/wc functions segfault if error occurse 2008-01-23 03:05:35 +00:00
nameser This commit was generated by cvs2svn to compensate for changes in r174223, 2007-12-03 15:07:58 +00:00
net Remove incomplete support of AI_ALL and AI_V4MAPPED. 2008-02-03 19:07:55 +00:00
nls Use C comments since we now preprocess these files with CPP. 2007-04-29 14:05:22 +00:00
posix1e Some libc symbol map cleanups. 2007-05-31 13:01:34 +00:00
powerpc Let PowerPC world optionally build with -msoft-float. For FPU-less PowerPC 2008-02-24 19:22:53 +00:00
quad Fix a typo that prevented the quad symbols from being exported 2007-07-06 13:42:24 +00:00
regex getopt(3) returns -1, not EOF. 2008-02-18 03:19:25 +00:00
resolv Allow underscore in domain names while resolving. While having underscore 2008-02-16 00:16:49 +00:00
rpc Use intermediate pointers to avoid strict alias type check failures 2007-11-20 01:51:20 +00:00
softfloat Use C comments since we now preprocess these files with CPP. 2007-04-29 14:05:22 +00:00
sparc64 Add a new union member to access the exponent and sign of a long double 2008-01-18 21:25:51 +00:00
stdio Add <limits.h> for SHRT_MAX. 2008-02-27 21:25:19 +00:00
stdlib Replace the use of warnx() with direct output to stderr using _write(). 2008-02-28 04:09:08 +00:00
stdtime Reduce lock contention for simple cases. 2007-12-19 04:30:10 +00:00
string Remove license clause 3 to agree with the now-standard BSD license. 2007-12-12 18:33:06 +00:00
sys Added the "restrict" type-qualifier to the readlink() prototype. 2008-02-26 20:33:52 +00:00
uuid Use C comments since we now preprocess these files with CPP. 2007-04-29 14:05:22 +00:00
xdr Use C comments since we now preprocess these files with CPP. 2007-04-29 14:05:22 +00:00
yp Set timeout for all NIS RPC requests to 1 second and not just for 2007-07-24 13:06:08 +00:00
Makefile Fixed "make checkdpadd" (missing library dependencies). 2007-10-01 18:15:11 +00:00
Versions.def Increment the version namespace for 8.0-current. New symbols and 2007-12-14 20:49:06 +00:00