freebsd-skq/lib/libc
phk 1c0399f798 Return length from fwopen() file callback instead of zero.
The symptom is that syslog() fails to log anything but the "ident"
string if LOG_PERROR is specified to openlog(3) and the extensible
printf is in action.

For unclear, likely quaint historical reasons, syslog uses fwopen()
on a stack buffer, rather than using the more straightforward
and faster snprintf().

Along the way, fflush(3) is called, and since the callback writer
function returns zero instead of the length "written", __SERR
naturally gets set on the filedescriptor.

The extensible printf, in difference from the normal printf refuses
to output anything to an __SERR marked filedescriptor, and thus
the actual syslog message is supressed.

MFC:	after 2 weeks
2006-08-07 20:12:18 +00:00
..
alpha Desupport the undocumented NO_QUAD option, just don't compile 2006-03-16 14:22:19 +00:00
amd64 Desupport the undocumented NO_QUAD option, just don't compile 2006-03-16 14:22:19 +00:00
arm GC old a.out and K&R support. 2006-05-23 02:52:14 +00:00
compat-43 Add each directory's symbol map file to SYM_MAPS. 2006-03-13 01:15:01 +00:00
db o dbm_close(3) returns void not zero or anything else. Touch .Dd. 2006-04-16 16:33:26 +00:00
gdtoa Don't export __gdtoa. The only known ports that rely on 2006-04-15 15:35:20 +00:00
gen Return length from fwopen() file callback instead of zero. 2006-08-07 20:12:18 +00:00
gmon Add each directory's symbol map file to SYM_MAPS. 2006-03-13 01:15:01 +00:00
i386 Replace absolute addressing in the call instructions with position-independend 2006-06-05 14:59:33 +00:00
ia64 Fix comment. 2006-03-16 14:27:17 +00:00
include Upgrade res_update(3) and the friends to BIND9's one excluding TSIG 2006-05-21 11:19:36 +00:00
inet It's not enough to provide symbol map files; you also have to add them 2006-03-23 16:55:13 +00:00
isc - Merge our local changes. 2006-03-21 15:37:16 +00:00
locale Fix a bug where, for 6-byte sequences, the top 6 bits get compared to 2006-03-30 09:04:12 +00:00
nameser Upgrade res_update(3) and the friends to BIND9's one excluding TSIG 2006-05-21 11:19:36 +00:00
net Respect MK_INET6_SUPPORT. 2006-07-26 08:36:46 +00:00
nls Add each directory's symbol map file to SYM_MAPS. 2006-03-13 01:15:01 +00:00
posix1e Following repo-copy of mac_is_present_np.3 to mac_is_present.3, remove 2006-07-07 14:02:17 +00:00
powerpc Add each directory's symbol map file to SYM_MAPS. 2006-03-13 01:15:01 +00:00
quad Add each directory's symbol map file to SYM_MAPS. 2006-03-13 01:15:01 +00:00
regex Add each directory's symbol map file to SYM_MAPS. 2006-03-13 01:15:01 +00:00
resolv Check if the filedes of kevent is expected one. Though our 2006-08-04 12:26:07 +00:00
rpc - Extend the nsswitch to support Services, Protocols and Rpc 2006-04-28 12:03:38 +00:00
softfloat Add each directory's symbol map file to SYM_MAPS. 2006-03-13 01:15:01 +00:00
sparc64 For _Qp_{fge,fgt,fle,flt}() the SCD states that "Exceptions mimic fcmpeq", 2006-04-16 14:32:53 +00:00
stdio Oops, correct the weak reference (s/fclose/fcloseall). 2006-04-22 16:47:59 +00:00
stdlib Conditionally expand the size_invs lookup table in arena_run_reg_dalloc() 2006-07-27 19:09:32 +00:00
stdtime Add each directory's symbol map file to SYM_MAPS. 2006-03-13 01:15:01 +00:00
string o Make grep ^strlcpy work: put a return value type on separate line. 2006-06-15 15:56:55 +00:00
sys Commit the results of the typo hunt by Darren Pilgrim. 2006-08-04 07:56:35 +00:00
uuid In DCE 1.1, the time_low value is defined as an unsigned 32-bit 2006-08-03 03:34:36 +00:00
xdr Add each directory's symbol map file to SYM_MAPS. 2006-03-13 01:15:01 +00:00
yp Add each directory's symbol map file to SYM_MAPS. 2006-03-13 01:15:01 +00:00
Makefile Remove pending actions asked in comments for SHLIB_MAJOR bump, done. 2006-05-22 05:12:44 +00:00
Versions.def Add symbol maps and initial symbol version definitions to libc. 2006-03-13 00:53:21 +00:00