NetBSD/lib/libutil
kre 63e182f423 snprintb(3) says that, in the new(?) Torek format, all fields specs end with \0
The F spec is one of those, it should be terminated with \0 just like all
the others (irrelevant that it has no extra data to delimit).

Fix <sys/mman.h> to define the snprintb() format string correctly (include
the missing \0's).   Fix the copy of that definition included into
snprintb(3) to match the updated mman.h version (ride the date bump
from the day before yesterday .. this is the same change, just corrected).

Undo the previous snprintb.c change ("off by one" fix) which was an
attempt to make the broken mman.h usage work (and did, but not the way
it should be done).   Also, after using the new * format (instead of only
when something has already matched) skip the associated data so we don't
attempt to interpret it as more field specifiers.  This func needs lots of TLC!

Fix the ATF tests for snprintb() to not assume that F format is really
exactly like f format, and has data after the field specifier.  It doesn't.
Add several more tests (including testing the '*' field operator
recently added).
2019-04-29 07:55:38 +00:00
..
compat
Makefile
disklabel_dkcksum.3
disklabel_dkcksum.c
disklabel_scan.3
disklabel_scan.c
efun.3
efun.c
getbootfile.3
getbootfile.c
getbyteorder.3
getbyteorder.c
getdiskrawname.3 s/ the the / the / 2019-03-08 08:12:39 +00:00
getdiskrawname.c
getfsspecname.3 Document "ROOT." syntax before documenting a generic . 2018-12-28 18:44:11 +00:00
getfsspecname.c No need to quadruple a buffer because strunvis(3) doesn't expand. 2018-12-27 21:35:48 +00:00
getfstypename.3
getlabelsector.3
getlabelsector.c
getmaxpartitions.3
getmaxpartitions.c
getmntopts.3
getmntopts.c
getrawpartition.3
getrawpartition.c
if_media.c
kinfo_getvmmap.3
kinfo_getvmmap.c
login.3
login.c
login_cap.3
login_cap.c
login_tty.c
loginx.3
loginx.c
logout.c
logoutx.c
logwtmp.c
logwtmpx.c
opendisk.3
opendisk.c
openpty.3
parsedate.3
parsedate.y
passwd.c
pidfile.3
pidfile.c
pidlock.3
pidlock.c
proc_compare.3
pty.c
pw_getconf.3
pw_init.3
pw_lock.3
raise_default_signal.3
raise_default_signal.c
secure_path.3
secure_path.c
shlib_version
snprintb.3 snprintb(3) says that, in the new(?) Torek format, all fields specs end with \0 2019-04-29 07:55:38 +00:00
sockaddr_snprintf.3
sockaddr_snprintf.c
stat_flags.3
stat_flags.c
strpct.3
strpct.c
ttyaction.3
ttyaction.c
ttymsg.3
ttymsg.c
util.3 s/ the the / the / 2019-03-08 08:12:39 +00:00