History log of /netbsd-src/include/util.h (Results 1 – 25 of 70)
Revision Date Author Comments
# 01acfb82 02-Nov-2024 riastradh <riastradh@NetBSD.org>

<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


# 6b9006e8 10-Apr-2016 roy <roy@NetBSD.org>

Implement pidfile_lock, pidfile_read and pidfile_clean.

Discussed on tech-net@, ok core@.


# 3762d08e 24-Sep-2015 christos <christos@NetBSD.org>

add kinfo_getvmmap() decl


# 2cf5f6af 26-Jul-2015 kamil <kamil@NetBSD.org>

Add ereallocarr(3) to libutil

ereallocarr(3) wraps reallocarr(3) and embeds return status validation.

Older version reviewed by <riastradh> and <christos>


# 0a09d1cc 18-Jan-2015 christos <christos@NetBSD.org>

add estrto{i,u} (Kamil Rytarowski)


# 8c629cb4 02-May-2013 matt <matt@NetBSD.org>

Add getbyteorder(void) prototype.


# 8abc3de5 04-Nov-2012 christos <christos@NetBSD.org>

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 cause

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.

show more ...


# 86307570 07-Apr-2012 christos <christos@NetBSD.org>

add getdisk{raw,cooked}name


# 29484ab2 07-Apr-2012 christos <christos@NetBSD.org>

add getfsspecname


# 423a6f5e 07-Jan-2012 christos <christos@NetBSD.org>

strspct


# 80b0f3a5 13-Nov-2011 christos <christos@NetBSD.org>

getfstypename addition


# a47e2eb7 30-Aug-2011 bouyer <bouyer@NetBSD.org>

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 pla

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.

show more ...


# b8788050 28-Aug-2011 christos <christos@NetBSD.org>

prototype for strpct


# ed20f4b6 26-Aug-2011 joerg <joerg@NetBSD.org>

pw_error is documented to be dead


# 3eb244d8 17-Jul-2011 joerg <joerg@NetBSD.org>

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 a

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.

show more ...


# 8a601553 25-Feb-2010 joerg <joerg@NetBSD.org>

Consistently use __printflike and __scanflike.


# 70337075 27-Jan-2010 drochner <drochner@NetBSD.org>

retire pw_policy(3) -- it is not found useful, there are other
(more common) ways to enforce a password strength policy
approved by elad


# 363b1455 13-Oct-2009 pooka <pooka@NetBSD.org>

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().


# aaaf93f1 08-Sep-2009 pooka <pooka@NetBSD.org>

Add opendisk1(), which functions like opendisk(), but takes a function
pointer to the routine to be used for open().


# 28469fc2 13-May-2009 pgoyette <pgoyette@NetBSD.org>

Implement snprintb_m(3) to provide multi-line bit/bit-field decode.
Discussed on tech-kern.


# 50728e78 11-Jan-2009 christos <christos@NetBSD.org>

merge christos-time_t


# 03dcf031 14-Dec-2007 christos <christos@NetBSD.org>

humanize_number was the only function in <util.h> that is not in libutil.
Move it to stdlib.h and add dehumanize_number.


# dc2d7f4f 30-Oct-2007 christos <christos@NetBSD.org>

don't use u_long because it is present only with _NETBSD_SOURCE


# e9aa053c 25-Sep-2007 lukem <lukem@NetBSD.org>

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 par

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@.

show more ...


# 060d8639 01-Jul-2007 pooka <pooka@NetBSD.org>

add estrndup()


123