| #
1.55 |
|
14-Dec-2025 |
kre |
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
|
|
Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base netbsd-10-1-RELEASE perseant-exfatfs-base-20240630 perseant-exfatfs-base netbsd-8-3-RELEASE netbsd-9-4-RELEASE netbsd-10-0-RELEASE netbsd-10-0-RC6 netbsd-10-0-RC5 netbsd-10-0-RC4 netbsd-10-0-RC3 netbsd-10-0-RC2 netbsd-10-0-RC1 netbsd-10-base netbsd-9-3-RELEASE cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 netbsd-9-2-RELEASE cjep_staticlib_x-base netbsd-9-1-RELEASE phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406 netbsd-8-2-RELEASE netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609 netbsd-8-1-RELEASE netbsd-8-1-RC1 pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 netbsd-8-0-RELEASE phil-wifi-base pgoyette-compat-0625 netbsd-8-0-RC2 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 netbsd-8-0-RC1 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
|
| #
1.54 |
|
11-Apr-2016 |
roy |
branches: 1.54.30; Bump libutil for new pidfile functions.
|
| #
1.53 |
|
24-Sep-2015 |
christos |
Add kinfo_getvmmap from FreeBSD
|
| #
1.52 |
|
26-Jul-2015 |
kamil |
Bump shlib minor for new function: ereallocarr(3)
Noted by <mrg>
|
|
Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7 yamt-pagecache-base6 tls-maxphys-base yamt-pagecache-base5 yamt-pagecache-base4
|
| #
1.51 |
|
07-Apr-2012 |
christos |
- add getdiskrawname. - exit on error for lint.
|
| #
1.50 |
|
07-Apr-2012 |
christos |
add getfsspecname
|
|
Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 netbsd-6-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
|
| #
1.49 |
|
30-Aug-2011 |
bouyer |
branches: 1.49.2; Add getlabelusesmbr(), as proposed in http://mail-index.netbsd.org/tech-userlevel/2011/08/25/msg005404.html This is used by disk tools such as disklabel(8) to dynamically decide is the undelyling platform uses a disklabel-in-mbr-partition or not (instead of using a compile-time list of ports). getlabelusesmbr() reads the sysctl kern.labelusesmbr, takes its value from the machdep #define LABELUSESMBR. For evbmips, make LABELUSESMBR 1 if the platform uses pmon as bootloader, and 0 (the previous value) otherwise.
|
| #
1.48 |
|
28-Aug-2011 |
christos |
add strpct, requested by joerg
|
|
Revision tags: cherry-xenmp-base bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231 matt-premerge-20091211 jym-xensuspend-nbase jym-xensuspend-base
|
| #
1.47 |
|
13-May-2009 |
pgoyette |
Implement snprintb_m(3) to provide multi-line bit/bit-field decode. Discussed on tech-kern.
|
| #
1.46 |
|
11-Jan-2009 |
christos |
branches: 1.46.2; merge christos-time_t
|
|
Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base netbsd-5-1-RELEASE netbsd-5-1-RC4 matt-nb5-mips64-k15 netbsd-5-1-RC3 netbsd-5-1-RC2 netbsd-5-1-RC1 netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 netbsd-5-0-1-RELEASE netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 netbsd-5-0-RC1 christos-time_t-base netbsd-5-base matt-mips64-base2 mjf-devfs2-base wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-baseX yamt-pf42-base2 wrstuden-revivesa-base yamt-pf42-base keiichi-mipv6-base matt-armv6-nbase cube-autoconf-base matt-armv6-base hpcarm-cleanup-base
|
| #
1.45 |
|
25-Sep-2007 |
lukem |
Add raise_default_signal(3) -- raise the default signal handler. Can be used by applications that have their own SIGINT (et al) handlers and want to exit in a manner that correctly signals to the parent that the process was terminated by a signal. See http://www.cons.org/cracauer/sigint.html for more info. Discussed on tech-userlevel@.
|
|
Revision tags: matt-mips64-base
|
| #
1.44 |
|
01-Jul-2007 |
pooka |
branches: 1.44.4; add estrndup()
|
| #
1.43 |
|
04-Feb-2007 |
elad |
Add support for per-user /tmp.
Enabled via per_user_tmp in /etc/rc.conf (default off).
See security(8) and rc.conf(5) for more details.
Lots of input from thorpej@ & christos@, thanks!
|
| #
1.42 |
|
14-Dec-2006 |
he |
Complete the move of string_to_flags() and flags_to_string() from the bin/ls sources to libutil: o Bump libutil minor version number o Fix uses to include <util.h> to pick up the function definitions o Fix most uses of flags_to_string() to release the now-malloc()ed result
|
|
Revision tags: netbsd-4-0-1-RELEASE wrstuden-fixsa-newbase wrstuden-fixsa-base-1 netbsd-4-0-RELEASE netbsd-4-0-RC5 netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 wrstuden-fixsa-base netbsd-4-base
|
| #
1.41 |
|
17-Nov-2006 |
christos |
add getdate.
|
| #
1.40 |
|
26-Aug-2006 |
christos |
Add efun(3)
|
|
Revision tags: abandoned-netbsd-4-base
|
| #
1.39 |
|
18-Feb-2006 |
elad |
Some stuff that's been sitting in my tree for too long...
Improve the pw_policy(3) API by splitting it to two functions, one to load the policy from /etc/passwd.conf and another to test passwords against the policy.
Some bug fixes, more consistent code, and man-page updates.
Minor for libutil bumped.
|
| #
1.38 |
|
20-Dec-2005 |
christos |
make setuserenv and setuserpath take an environment setting function and an environment pointer and expose them. bump version.
|
| #
1.37 |
|
14-Sep-2005 |
elad |
Introduce pw_policy(3), an easily extendable way of defining password policies and enforcing them in programs.
Man-page written with much help and tips from David Maxwell, Hubert Feyrer, and Thomas Klausner.
This bumps libutil minor to 7.
XXX: Need default policy to go in /etc/passwd.conf, and integration into local/yp/PAM password changing code.
PR/10206.
|
|
Revision tags: netbsd-3-1-1-RELEASE netbsd-3-0-3-RELEASE netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-3-base
|
| #
1.36 |
|
12-Jan-2005 |
christos |
add pw_getpwconf(), bump.
|
| #
1.35 |
|
19-Nov-2004 |
christos |
Add sockaddr_snprintf; XXX: Needs a man page.
|
| #
1.34 |
|
03-Aug-2004 |
thorpej |
- Rename pw_copy() to pw_copyx(), make it return a success/failure code, and add "errbuf" and "errbufsz" parameters so that errors can be handled gracefully, rather than simply exiting the process. - Add a pw_copy() wrapper around pw_copyx() to preserve old behavior for apps that use it. - Bump shlib version to 7.4.
|
|
Revision tags: netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
|
| #
1.33 |
|
11-Apr-2003 |
christos |
add functions to retrieve option values.
|
| #
1.32 |
|
22-Mar-2003 |
jdolecek |
move getmntopts(3) to libutil, build and install also it's manpage bump libutil minor adjust individual mount_*/Makefile to use libutil getmntopts(3)
|
|
Revision tags: fvdl_fs64_base
|
| #
1.31 |
|
12-Dec-2002 |
scw |
Bump minor number for getlabel{sector,offset}() addition.
|
| #
1.30 |
|
30-Nov-2002 |
lukem |
- Migrate fparseln(3) from libutil to libc, where it should have been in the first place... - Bump libutil major (to 7.0) and libc minor (to 12.91).
|
| #
1.29 |
|
20-Sep-2002 |
christos |
Add snprintb(3) inspired from bitmask_snprintf(9), but made to look like more like snprintf(3). Discussed with thorpej.
|
| #
1.28 |
|
23-Aug-2002 |
tron |
Bump minor number to 3 because there are already systems with "libutil.so.6.2" to avoid further problems.
|
| #
1.27 |
|
22-Aug-2002 |
abs |
Move humanize_number(3) from libutil to libc as per discussion on tech-misc Revert minor number bump on libutil (with note to skip it next update), and bump libc.
|
| #
1.26 |
|
10-Aug-2002 |
thorpej |
Actually bump the shlib version to 6.2 as abs intended to.
|
| #
1.25 |
|
27-Jul-2002 |
christos |
add utmpx/wtmpx processing routines.
|
|
Revision tags: netbsd-1-6-PATCH001 netbsd-1-6-PATCH001-RELEASE netbsd-1-6-PATCH001-RC3 netbsd-1-6-PATCH001-RC2 netbsd-1-6-PATCH001-RC1 netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
|
| #
1.24 |
|
18-Aug-2001 |
ad |
branches: 1.24.2; Bump libutil major for pw_mkdb() change.
|
| #
1.23 |
|
06-Apr-2001 |
wiz |
Add getbootfile(3) to libutil, and a man page. Bump libutil version to 5.5.
|
| #
1.22 |
|
06-Dec-2000 |
tron |
Add two new passwd file update functions: - The pw_setprefix() function defines the root directory used for passwd file updates. If the prefix is set to /newroot pw_lock() will operate on /newroot/etc/ptmp afterwards. The default prefix is an empty string. - The pw_getprefix() function returns the root directory which is currently used for passwd file updates.
|
| #
1.21 |
|
06-Jul-2000 |
ad |
Bump libutil minor (pw_getconf()).
|
|
Revision tags: netbsd-1-5-PATCH002 netbsd-1-5-PATCH001 netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-5-ALPHA2 netbsd-1-5-base minoura-xpg4dl-base
|
| #
1.20 |
|
12-Jan-2000 |
mjl |
branches: 1.20.4; Add necessary support routines for login.conf.
|
|
Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base comdex-fall-1999-base
|
| #
1.19 |
|
06-Jun-1999 |
thorpej |
Add pidfile(3), which write a pid file in /var/run, and arranges for it to be removed on normal exit.
|
|
Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
|
| #
1.18 |
|
25-Feb-1999 |
abs |
Add a note to update src/distrib/sets/lists/base/shl.*, and add a missing RCS Id.
|
| #
1.17 |
|
15-Jan-1999 |
bouyer |
Move the bswap functions from libutil to libc (this bups the minor of libc and the major of libutil). For little-endian architectures merge the bnswap() assembly versions with nto* and hton* using symbols aliasing. Use symbol renaming for the bswap function in this case to avoid namespace pollution. Declare bswap* in machine/bswap.h, not machine/endian.h. For little-endian machines, common code for inline macros go in machine/byte_swap.h Sync libkern with libc. Adjust #include in kernel sources for machine/bswap.h.
|
| #
1.16 |
|
27-Jun-1998 |
thorpej |
Put pw_scan() back into libutil and pretent that libutil.so.5.0 never existed.
|
| #
1.15 |
|
09-Jun-1998 |
lukem |
actually, bump major for pw_scan() removal, even when it was moved to -lc
|
| #
1.14 |
|
08-Jun-1998 |
lukem |
bump minor (because pw_scan() moved to libc, and old binaries that use libutil.so.4.4 and libc.so.12.26 won't work otherwise)
|
| #
1.13 |
|
18-Mar-1998 |
bouyer |
Add bswap{16,32,64} functions to libutil. Because of this, bump minor.
|
| #
1.12 |
|
05-Jan-1998 |
perry |
RCSID Police.
|
| #
1.11 |
|
16-Nov-1997 |
christos |
Increase minor number for fparseln
|
|
Revision tags: netbsd-1-3-PATCH003 netbsd-1-3-PATCH003-CANDIDATE2 netbsd-1-3-PATCH003-CANDIDATE1 netbsd-1-3-PATCH003-CANDIDATE0 netbsd-1-3-PATCH002 netbsd-1-3-PATCH001 netbsd-1-3-RELEASE netbsd-1-3-BETA netbsd-1-3-base
|
| #
1.10 |
|
11-Oct-1997 |
cjs |
Add pidlock, ttylock, ttyunlock functions.
|
| #
1.9 |
|
25-Sep-1997 |
lukem |
implement opendisk(3), as discussed with Jason Thorpe
|
| #
1.8 |
|
24-Jul-1997 |
phil |
Change pw_copy to take an optional 4th parameter (old_pw), a pointer to a passwd structure. If a good pointer, make sure old entry in file is identical to passed passwd (old_pw). If not, abort.
Update documentation, bump major version due to change to pw_copy.
|
| #
1.7 |
|
14-Nov-1996 |
gwr |
Increment minor version for new function ttyaction().
|
|
Revision tags: netbsd-1-2-PATCH001 netbsd-1-2-RELEASE netbsd-1-2-BETA netbsd-1-2-base
|
| #
1.6 |
|
15-May-1996 |
jtc |
Minor reorganization of libutil, including the addition of passward locking and editing functions. From Greg Hudson <ghudson@MIT.EDU>
|
|
Revision tags: netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
|
| #
1.5 |
|
04-May-1994 |
cgd |
minor cleanup; kill unnecessary casts
|
| #
1.4 |
|
27-Mar-1994 |
cgd |
_double_ major number bump! joy!
|
| #
1.3 |
|
27-Jan-1994 |
cgd |
get rid of stuff that doesn't belong here
|
| #
1.2 |
|
25-Jan-1994 |
cgd |
kill the 'prog' arg to getbsize(); it's unneeded. minor rev bump.
|
| #
1.1 |
|
08-Nov-1993 |
cgd |
add shlib_version file, with version 0.0
|