freebsd-nq/sys
Enji Cooper 1ef2a611de Revert r321969
My change had good intentions, but the implementation was incorrect:
- printf was returning the number of characters in the format string
  plus the NUL, but failed in two regards implementation wise:
-- the pathological case, printf(""), wasn't being handled properly since
   the pointer is always incremented, so the value returned would be
   off-by-one.
-- printf(3) reports the number of characters printed post-conversion via
   vfprintf, etc.
- putchar(3) should return the character printed or EOF, not the number
  of characters output to the screen.

My goal in making the change (again) was to increase parity, but as bde
pointed out these are freestanding functions, so they don't have to
conform to libc/POSIX. I argued that the functions should be named
differently since the implementation is different enough to warrant it
and to allow boot2 code to be usable when linked against sys/boot and
libstand and other libraries in base. I have no interest in pushing
this change forward more though, as the original concern I had behind
the change with zfsboottest was resolved in r321849 and r321852. The
next person that updates the toolchain gets to deal with the
inconsistency if it's flagged by a newer compiler.

MFC after:	1 month
Reported by:	ed, markj
2017-08-03 13:50:46 +00:00
..
amd64 Keep top page on CloudABI to work around AMD Ryzen stability issues. 2017-08-02 13:08:10 +00:00
arm arm64: Add Allwinner H5 SoC 2017-08-02 20:19:19 +00:00
arm64 arm64: Add Allwinner H5 SoC 2017-08-02 20:19:19 +00:00
boot Revert r321969 2017-08-03 13:50:46 +00:00
bsm
cam adaasync(): Set ADA_STATE_WCACHE based on ADA_FLAG_CAN_WCACHE 2017-07-27 07:28:29 +00:00
cddl spa_import_rootpool should be able to handle an imported root pool 2017-07-25 13:17:06 +00:00
compat Fix LinuxKPI regression after r321920. The mda_unit and si_drv0 fields are not 2017-08-02 14:27:27 +00:00
conf arm64: Add Allwinner H5 SoC 2017-08-02 20:19:19 +00:00
contrib Merge ena-com 1.1.4.2 2017-08-01 11:00:04 +00:00
crypto
ddb
dev Resolve locking issue for non-sleepable context in the mlx5core. 2017-08-03 09:14:43 +00:00
fs Implement proper Linux /dev/fd and /proc/self/fd behavior by adding 2017-08-01 03:40:19 +00:00
gdb
geom
gnu
i386 Do not call trapsignal() after handling usermode fault or interrupt, 2017-08-02 10:12:10 +00:00
isa
kern Amend r321884 to check the refcount and update the class with w_mtx held. 2017-08-01 23:14:38 +00:00
kgssapi
libkern
mips [ar71xx] get rid of ath_pci - it's built as a module now. 2017-07-28 01:17:38 +00:00
modules Add missing ofw_bus_if.h src file. 2017-08-02 15:16:40 +00:00
net Add inpcb pointer to struct ipsec_ctx_data and pass it to the pfil hook 2017-07-31 11:04:35 +00:00
net80211 sys/net8021: Add missing braces in setcurchan(). 2017-08-01 03:13:43 +00:00
netgraph
netinet After inpcb route caching was put back in place there is no need for 2017-07-27 13:03:36 +00:00
netinet6 After inpcb route caching was put back in place there is no need for 2017-07-27 13:03:36 +00:00
netipsec Add inpcb pointer to struct ipsec_ctx_data and pass it to the pfil hook 2017-07-31 11:04:35 +00:00
netpfil
netsmb
nfs Improve FHA locality control for NFS read/write requests. 2017-07-31 15:23:19 +00:00
nfsclient
nfsserver
nlm
ofed Change reject message type when destroying cm_id in ibore. 2017-08-03 09:31:10 +00:00
opencrypto
powerpc
riscv
rpc
security
sparc64
sys Rework and simplify the ksyms(4) implementation. 2017-08-03 00:38:13 +00:00
teken
tests
tools
ufs Avoid reading a snapshot block when it is already in the cache. 2017-07-31 20:41:45 +00:00
vm Mark pages after EOF as clean after pageout. 2017-07-26 20:07:05 +00:00
x86 Don't trace running threads that have interrupts disabled. 2017-07-31 17:57:54 +00:00
xdr
xen
Makefile