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
disklabel_dkcksum.3
disklabel_dkcksum.c
disklabel_scan.3
disklabel_scan.c
efun.3 Bump date for recent changes 2015-07-26 17:37:38 +00:00
efun.c Add ereallocarr(3) to libutil 2015-07-26 02:20:30 +00:00
getbootfile.3
getbootfile.c prefer <sys/cpu.h> instead of <machine/cpu.h> 2016-01-25 18:14:04 +00:00
getbyteorder.3 Merge riastradh-drm2 to HEAD. 2014-03-18 18:20:35 +00:00
getbyteorder.c
getdiskrawname.3 s/ the the / the / 2019-03-08 08:12:39 +00:00
getdiskrawname.c KNF, sign cast. 2014-09-17 23:54:42 +00:00
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 Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
getmntopts.c
getrawpartition.3
getrawpartition.c
if_media.c
kinfo_getvmmap.3 Add kinfo_getvmmap from FreeBSD 2015-09-24 14:39:20 +00:00
kinfo_getvmmap.c Stop including <sys/user.h> in userland libraries 2017-06-14 12:24:51 +00:00
login_cap.3 unsigned -> unsigned int 2016-01-23 07:21:18 +00:00
login_cap.c Correct typos in comments 2015-10-29 20:29:24 +00:00
login_tty.c
login.3
login.c
loginx.3
loginx.c
logout.c
logoutx.c
logwtmp.c
logwtmpx.c
Makefile Document opendisk1() - it has been around long enough. 2018-04-04 04:43:46 +00:00
opendisk.3 Use mdoc macros. 2018-04-05 11:07:00 +00:00
opendisk.c PR/51216: Instead of trying to open files in the current working 2016-06-06 17:50:19 +00:00
openpty.3
parsedate.3 parsedate.y: meaningless KNF of a comment (no code changes) 2017-03-22 18:17:42 +00:00
parsedate.y parsedate.y: meaningless KNF of a comment (no code changes) 2017-03-22 18:17:42 +00:00
passwd.c Prevent underflow buffer read in trim_whitespace() in libutil/passwd.c 2018-06-24 01:53:14 +00:00
pidfile.3 Add missing functions to the NAME section 2017-10-22 16:55:32 +00:00
pidfile.c Removed botched debug left over. 2016-04-12 20:40:43 +00:00
pidlock.3 Sort errors. 2017-10-23 01:05:10 +00:00
pidlock.c
proc_compare.3
pty.c Fix stack use after scope in libutil/pty 2018-06-24 09:30:26 +00:00
pw_getconf.3
pw_init.3 Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
pw_lock.3
raise_default_signal.3
raise_default_signal.c
secure_path.3
secure_path.c
shlib_version Bump libutil for new pidfile functions. 2016-04-11 08:44:40 +00:00
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 Make this portable to other OSs 2016-12-29 18:30:55 +00:00
stat_flags.3
stat_flags.c
strpct.3 Merge riastradh-drm2 to HEAD. 2014-03-18 18:20:35 +00:00
strpct.c
ttyaction.3
ttyaction.c
ttymsg.3
ttymsg.c
util.3 s/ the the / the / 2019-03-08 08:12:39 +00:00