]> git.lizzy.rs Git - plan9front.git/commit
libstdio: sync bits of vfprintf from APE
authorkvik <kvik@a-b.xyz>
Fri, 19 Feb 2021 22:04:09 +0000 (23:04 +0100)
committerkvik <kvik@a-b.xyz>
Fri, 19 Feb 2021 22:04:09 +0000 (23:04 +0100)
commitbc1cc79225f0b006dd66d4fd81030d06f83bfca2
treeae537e5a96031a355e0f294bbecd114f9c248880
parent1ce6f0f2ab1896e35869f0e9e5079fc20dd981fc
libstdio: sync bits of vfprintf from APE

* Add the %ll length modifier,
* Convert nil to "<nil>" under %s (not in APE),
* Cast void* to uintptr under %p,
* Use "0x" hex prefix under %p,
* Fix manual page mentions of %P to %p,
* Fix empty result for fp conversions,
* Fix zero padding of left-aligned fp conversions,
* Remove deprecated #pragma ref uses.

Most of these were introduced in APE prior to 9front.

I've omitted the %z conversion specifier since Plan 9 code
rarely uses the usize type. This may need to be added later
for the benefit of native ports of alien code.
sys/man/2/fprintf
sys/src/libstdio/vfprintf.c