History log of /src/include/util.h |
Revision | | Date | Author | Comments |
1.70 |
| 02-Nov-2024 |
riastradh | <util.h>: Need <sys/featuretest.h> for _POSIX_C_SOURCE.
PR lib/58752: various header files test _*_SOURCE macros but don't include sys/featuretest.h
|
1.69 |
| 10-Apr-2016 |
roy | branches: 1.69.28; Implement pidfile_lock, pidfile_read and pidfile_clean.
Discussed on tech-net@, ok core@.
|
1.68 |
| 24-Sep-2015 |
christos | add kinfo_getvmmap() decl
|
1.67 |
| 26-Jul-2015 |
kamil | Add ereallocarr(3) to libutil
ereallocarr(3) wraps reallocarr(3) and embeds return status validation.
Older version reviewed by <riastradh> and <christos>
|
1.66 |
| 18-Jan-2015 |
christos | add estrto{i,u} (Kamil Rytarowski)
|
1.65 |
| 02-May-2013 |
matt | Add getbyteorder(void) prototype.
|
1.64 |
| 04-Nov-2012 |
christos | Over the years this header gained a lot of disparate functionality and willy nilly people kept adding headers appropriate to the new functionality So we reached where we are today, this header causes lots of namespace conflicts (for example you cannot use util.h from a lex file, because ECHO is macro used in lex, and ECHO is defined to 8 in termios). Roll back time, and remove all the unnecessary includes, leaving it to the program to include the ancillary headers they need.
|
1.63 |
| 07-Apr-2012 |
christos | branches: 1.63.2; add getdisk{raw,cooked}name
|
1.62 |
| 07-Apr-2012 |
christos | add getfsspecname
|
1.61 |
| 07-Jan-2012 |
christos | strspct
|
1.60 |
| 13-Nov-2011 |
christos | getfstypename addition
|
1.59 |
| 30-Aug-2011 |
bouyer | branches: 1.59.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.58 |
| 28-Aug-2011 |
christos | prototype for strpct
|
1.57 |
| 26-Aug-2011 |
joerg | pw_error is documented to be dead
|
1.56 |
| 17-Jul-2011 |
joerg | Retire varargs.h support. Move machine/stdarg.h logic into MI sys/stdarg.h and expect compiler to provide proper builtins, defaulting to the GCC interface. lint still has a special fallback. Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and derive va_list as required by standards.
|
1.55 |
| 25-Feb-2010 |
joerg | Consistently use __printflike and __scanflike.
|
1.54 |
| 27-Jan-2010 |
drochner | branches: 1.54.2; retire pw_policy(3) -- it is not found useful, there are other (more common) ways to enforce a password strength policy approved by elad
|
1.53 |
| 13-Oct-2009 |
pooka | In a furious blaze of *facepalm* / "what was i thinking?", fix the open routine function pointer prototype of opendisk1() to match the prototype of open().
|
1.52 |
| 08-Sep-2009 |
pooka | Add opendisk1(), which functions like opendisk(), but takes a function pointer to the routine to be used for open().
|
1.51 |
| 13-May-2009 |
pgoyette | Implement snprintb_m(3) to provide multi-line bit/bit-field decode. Discussed on tech-kern.
|
1.50 |
| 11-Jan-2009 |
christos | branches: 1.50.2; merge christos-time_t
|
1.49 |
| 14-Dec-2007 |
christos | branches: 1.49.12; 1.49.14; 1.49.18; humanize_number was the only function in <util.h> that is not in libutil. Move it to stdlib.h and add dehumanize_number.
|
1.48 |
| 30-Oct-2007 |
christos | don't use u_long because it is present only with _NETBSD_SOURCE
|
1.47 |
| 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@.
|
1.46 |
| 01-Jul-2007 |
pooka | branches: 1.46.4; add estrndup()
|
1.45 |
| 14-Dec-2006 |
christos | moved string_to_flags and flags_to_string from ls to libutil.
|
1.44 |
| 20-Nov-2006 |
christos | getdate -> parsedate
|
1.43 |
| 17-Nov-2006 |
christos | constify getdate
|
1.42 |
| 17-Nov-2006 |
christos | add getdate.
|
1.41 |
| 26-Aug-2006 |
christos | Add efun(3)
|
1.40 |
| 18-Feb-2006 |
elad | Don't expose struct pw_policy and use pw_policy_t, use malloc, man-page fixups.
As discussed on source-changes@.
Okay yamt@, thorpej@.
|
1.39 |
| 18-Feb-2006 |
elad | Add the struct pw_policy forgotten in previous commit.
|
1.38 |
| 14-Sep-2005 |
elad | Forgot these when imported pw_policy(3). Thanks to Hisashi T Fujinaka for noticing.
|
1.37 |
| 27-Aug-2005 |
uwe | Get rid of the #if !HAVE_NBTOOL_CONFIG_H kludge. None of host tools uses this header now.
|
1.36 |
| 12-Jun-2005 |
dyoung | Make disklabel(8) and fdisk(8) into "host tools " last step: build and install ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-disklabel, ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-fdisk by "reaching over" to the sources in ${NETBSDSRCDIR}/sbin/{disklabel fdisk}/.
To avoid clashes with a build-host's header files, especially on *BSD, the host-tools versions of fdisk and disklabel search for #includes such as disklabel.h, disklabel_acorn.h, disklabel_gpt.h, and bootinfo.h in a new #includes namespace, nbinclude/. That is, they #include <nbinclude/sys/disklabel.h>, <nbinclude/machine/disklabel.h>, <nbinclude/sparc64/disklabel.h>, instead of <sys/disklabel.h> and such. I have also updated the system headers to #include from nbinclude/-space when HAVE_NBTOOL_CONFIG_H is #defined.
|
1.35 |
| 15-May-2005 |
thorpej | u_short -> uint16_t
|
1.34 |
| 12-Jan-2005 |
christos | branches: 1.34.2; add pw_getpwconf()
|
1.33 |
| 19-Nov-2004 |
christos | Add sockaddr_snprintf()
|
1.32 |
| 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.
|
1.31 |
| 07-Aug-2003 |
agc | Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22270, verified by myself.
|
1.30 |
| 24-Jan-2003 |
fvdl | Bump daddr_t to 64 bits. Replace it with int32_t in all places where it was used on-disk, so that on-disk formats remain the same. Remove ufs_daddr_t and ufs_lbn_t for the time being.
|
1.29 |
| 12-Dec-2002 |
scw | Add getlabelsector() and getlabeloffset() as wrappers around the KERN_LABELSECTOR and KERN_LABELOFFSET sysctls.
|
1.28 |
| 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.27 |
| 12-Oct-2002 |
elric | add prototypes for disklabel_dkcksum() and disklabel_scan().
|
1.26 |
| 20-Sep-2002 |
christos | Add snprintb(3)
|
1.25 |
| 15-Aug-2002 |
enami | Cosmetic changes.
|
1.24 |
| 08-Aug-2002 |
abs | Add humanize_number.3 from Tomas Svensson in PR lib/15508. Bump version of libutil
|
1.23 |
| 27-Jul-2002 |
christos | add utmpx/wtmpx processing routines
|
1.22 |
| 22-May-2002 |
itojun | change return type of pidfile(3) to int (-1 on error), to inform caller of errors. behavior now in sync with openbsd implementation. (see tech-userlevel and bsd-api-discuss)
|
1.21 |
| 18-Aug-2001 |
ad | branches: 1.21.2; Add two arguments to pw_mkdb(), a la OpenBSD. This is to allow us to pass the -u and -s options to pwd_mkdb.
|
1.20 |
| 06-Apr-2001 |
wiz | add getbootfile(3)
|
1.19 |
| 06-Dec-2000 |
tron | branches: 1.19.2; 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.18 |
| 18-Sep-2000 |
ad | - Sort function decls. - Remove duplicate decl. - First arg to secure_path() is now constant.
|
1.17 |
| 07-Jul-2000 |
ad | Remove decl for parseuserspec(), a local modification which acidentally got comitted.
|
1.16 |
| 06-Jul-2000 |
ad | - Declare pw_getconf(). - ANSIfy.
|
1.15 |
| 12-Jan-2000 |
mjl | branches: 1.15.4; Add necessary support routines for login.conf.
|
1.14 |
| 12-Jun-1999 |
christos | - provide forward struct declarations for all functions. - const poison login(). - XXX: we should not include all these files here. We only need stdio.h and sys/types.h! But I am not rm'ing them now because too many things will break.
|
1.13 |
| 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.
|
1.12 |
| 26-Jul-1998 |
mycroft | const poisoning.
|
1.11 |
| 08-Jun-1998 |
lukem | move pw_scan from util.h to pwd.h, add _PASSWORD_{OLDFMT,NOWARN} flags
|
1.10 |
| 01-Dec-1997 |
lukem | add flags arg to fparseln(), and define FPARSELN_UNESC{ESC,CONT,COMM,REST,ALL}
|
1.9 |
| 16-Nov-1997 |
lukem | fix retval of fparseln
|
1.8 |
| 16-Nov-1997 |
christos | Add fparseln(3)
|
1.7 |
| 11-Oct-1997 |
cjs | Add prototypes and defines for pidlock/ttylock/ttyunlock.
|
1.6 |
| 25-Sep-1997 |
lukem | implement opendisk(3), as discussed with Jason Thorpe
|
1.5 |
| 24-Jul-1997 |
phil | Update pw_copy prototype for changes for PR3806, 3807.
|
1.4 |
| 30-Jun-1997 |
christos | forgot to commit this.
|
1.3 |
| 14-Nov-1996 |
gwr | Add declaration for ttyaction().
|
1.2 |
| 16-May-1996 |
thorpej | Prototypes for getmaxpartitions(3) and getrawpartition(3).
|
1.1 |
| 15-May-1996 |
jtc | Added new header files for functions in libutil. Added macro for master passwd lock file. From Greg Hudson <ghudson@MIT.EDU>.
|
1.15.4.1 |
| 26-Feb-2002 |
he | Pull up revisions 1.16-1.18 (via patch, requested by jonathan): Add support for local MD5-encrypted passwords.
|
1.19.2.11 |
| 19-Dec-2002 |
thorpej | Sync with HEAD.
|
1.19.2.10 |
| 18-Dec-2002 |
martin | Catch up to -current.
|
1.19.2.9 |
| 10-Dec-2002 |
thorpej | Sync with HEAD.
|
1.19.2.8 |
| 18-Oct-2002 |
nathanw | Catch up to -current.
|
1.19.2.7 |
| 20-Sep-2002 |
thorpej | Sync with HEAD.
|
1.19.2.6 |
| 27-Aug-2002 |
nathanw | Catch up to -current.
|
1.19.2.5 |
| 13-Aug-2002 |
nathanw | Catch up to -current.
|
1.19.2.4 |
| 01-Aug-2002 |
nathanw | Catch up to -current.
|
1.19.2.3 |
| 21-Jun-2002 |
nathanw | Catch up to -current.
|
1.19.2.2 |
| 08-Oct-2001 |
nathanw | Catch up to -current.
|
1.19.2.1 |
| 08-Apr-2001 |
nathanw | Merge trunk onto branch.
|
1.21.2.1 |
| 25-Oct-2003 |
cyber | Pull up revision 1.27 (requested by jmc in ticket #1461): add prototypes for disklabel_dkcksum() and disklabel_scan().
|
1.34.2.1 |
| 19-May-2005 |
tron | Pull up revision 1.35 (requested by thorpej in ticket #309): u_short -> uint16_t
|
1.46.4.2 |
| 09-Jan-2008 |
matt | sync with HEAD
|
1.46.4.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
1.49.18.1 |
| 21-Apr-2010 |
matt | sync to netbsd-5
|
1.49.14.1 |
| 28-Dec-2008 |
christos | more compat changes - new functions - adjust utmp size.
|
1.49.12.2 |
| 14-Oct-2009 |
sborrill | Pull up the following revisions(s) (requested by pooka in ticket #1089): include/util.h: revision 1.53 lib/libutil/opendisk.c: revision 1.12
Fix the open routine function pointer prototype of opendisk1() to match the prototype of open().
|
1.49.12.1 |
| 05-Oct-2009 |
sborrill | Pull up the following revisions(s) (requested by pooka in ticket #1047): include/util.h: revision 1.52 lib/libutil/opendisk.c: revision 1.11 Add opendisk1(), which functions like opendisk(), but takes a function pointer to the routine to be used for open().
|
1.50.2.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
|
1.54.2.1 |
| 30-Apr-2010 |
uebayasi | Sync with HEAD.
|
1.59.2.3 |
| 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.59.2.2 |
| 16-Jan-2013 |
yamt | sync with (a bit old) head
|
1.59.2.1 |
| 17-Apr-2012 |
yamt | sync with head
|
1.63.2.2 |
| 23-Jun-2013 |
tls | resync from head
|
1.63.2.1 |
| 20-Nov-2012 |
tls | Resync to 2012-11-19 00:00:00 UTC
|
1.69.28.1 |
| 02-Aug-2025 |
perseant | Sync with HEAD
|