NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
PR/59811 CVS commit: src
The following reply was made to PR lib/59811; it has been noted by GNATS.
From: "Robert Elz" <kre%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc:
Subject: PR/59811 CVS commit: src
Date: Sun, 14 Dec 2025 16:28:06 +0000
Module Name: src
Committed By: kre
Date: Sun Dec 14 16:28:05 UTC 2025
Modified Files:
src/bin/df: df.c
src/distrib/sets/lists/base: shl.mi
src/distrib/sets/lists/debug: shl.mi
src/doc: CHANGES
src/include: util.h
src/lib/libutil: shlib_version strpct.3 strpct.c util.expsym
Log Message:
PR lib/59811 allow any rounding in strpct(3).
Add str[s]pct_r (same as str[s]pct with an addition "how to round" param) and
strpct_round to set the rounding used by the older str[s]pct functions.
The default remains rounding down (toward zero) for compatibility.
See the PR (and the updated man page) for the details.
For df(1) use "round away from zero" mode, as POSIX requires.
XXX pullup -11
To generate a diff of this commit:
cvs rdiff -u -r1.104 -r1.105 src/bin/df/df.c
cvs rdiff -u -r1.1017 -r1.1018 src/distrib/sets/lists/base/shl.mi
cvs rdiff -u -r1.378 -r1.379 src/distrib/sets/lists/debug/shl.mi
cvs rdiff -u -r1.3206 -r1.3207 src/doc/CHANGES
cvs rdiff -u -r1.70 -r1.71 src/include/util.h
cvs rdiff -u -r1.54 -r1.55 src/lib/libutil/shlib_version
cvs rdiff -u -r1.7 -r1.8 src/lib/libutil/strpct.3
cvs rdiff -u -r1.6 -r1.7 src/lib/libutil/strpct.c
cvs rdiff -u -r1.1 -r1.2 src/lib/libutil/util.expsym
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index