Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [netbsd-11] src



Module Name:    src
Committed By:   martin
Date:           Sat Dec 20 13:51:20 UTC 2025

Modified Files:
        src/bin/df [netbsd-11]: df.c
        src/distrib/sets/lists/base [netbsd-11]: shl.mi
        src/distrib/sets/lists/debug [netbsd-11]: shl.mi
        src/include [netbsd-11]: util.h
        src/lib/libutil [netbsd-11]: shlib_version strpct.3 strpct.c
            util.expsym
        src/tests/bin/df [netbsd-11]: t_df.sh

Log Message:
Pull up following revision(s) (requested by kre in ticket #134):

        lib/libutil/util.expsym: revision 1.2
        lib/libutil/shlib_version: revision 1.55
        distrib/sets/lists/base/shl.mi: revision 1.1018
        lib/libutil/strpct.c: revision 1.7
        lib/libutil/strpct.3: revision 1.8
        distrib/sets/lists/debug/shl.mi: revision 1.379
        tests/bin/df/t_df.sh: revision 1.4
        bin/df/df.c: revision 1.105
        include/util.h: revision 1.71

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.

Adjust expected df output percentages (PR lib/59811 related)
df now rounds percentages up, as POSIX specifies, rather than
down, as it used to.   Adjust the expected output (add 1 to many
of the entries in the percentage column) to compensate for this
change.


To generate a diff of this commit:
cvs rdiff -u -r1.104 -r1.104.2.1 src/bin/df/df.c
cvs rdiff -u -r1.1008.2.1 -r1.1008.2.2 src/distrib/sets/lists/base/shl.mi
cvs rdiff -u -r1.367.2.2 -r1.367.2.3 src/distrib/sets/lists/debug/shl.mi
cvs rdiff -u -r1.70 -r1.70.2.1 src/include/util.h
cvs rdiff -u -r1.54 -r1.54.30.1 src/lib/libutil/shlib_version
cvs rdiff -u -r1.7 -r1.7.2.1 src/lib/libutil/strpct.3
cvs rdiff -u -r1.6 -r1.6.2.1 src/lib/libutil/strpct.c
cvs rdiff -u -r1.1 -r1.1.2.1 src/lib/libutil/util.expsym
cvs rdiff -u -r1.3 -r1.3.4.1 src/tests/bin/df/t_df.sh

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