summaryrefslogtreecommitdiff
path: root/lib/libutil/Makefile
AgeCommit message (Collapse)Author
2023-06-03bsd.own.mk: rename GCC_NO_* to CC_WNO_*lukem
Rename compiler-warning-disable variables from GCC_NO_warning to CC_WNO_warning where warning is the full warning name as used by the compiler. GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH Using the convention CC_compilerflag, where compilerflag is based on the full compiler flag name.
2023-03-28lint: warn about extern declarations outside headersrillig
https://mail-index.netbsd.org/tech-userlevel/2023/03/15/msg013727.html
2019-10-13introduce some common variables for use in GCC warning disables:mrg
GCC_NO_FORMAT_TRUNCATION -Wno-format-truncation (GCC 7/8) GCC_NO_STRINGOP_TRUNCATION -Wno-stringop-truncation (GCC 8) GCC_NO_STRINGOP_OVERFLOW -Wno-stringop-overflow (GCC 8) GCC_NO_CAST_FUNCTION_TYPE -Wno-cast-function-type (GCC 8) use these to turn off warnings for most GCC-8 complaints. many of these are false positives, most of the real bugs are already commited, or are yet to come. we plan to introduce versions of (some?) of these that use the "-Wno-error=" form, which still displays the warnings but does not make it an error, and all of the above will be re-considered as either being "fix me" (warning still displayed) or "warning is wrong."
2019-10-08-Wstringop-truncation is only gcc.christos
2019-10-04Ignore strncpy(foo, bar, sizeof(foo)) for the wtmp fields where we don'tchristos
want NUL termination. We can't use pragma's because the old gcc complains about the new warnings it does not understand.
2018-04-04Document opendisk1() - it has been around long enough.kre
(pity about the name...) XXX pullup-8
2017-04-01Add man page links for:abhinav
EV_SET to kqueue(2) getmntoptstr, getmntoptnum, freemntopts to getmntopts(3) Reviewed by wiz@
2016-12-29Make this portable to other OSschristos
2016-04-10Implement pidfile_lock, pidfile_read and pidfile_clean.roy
Discussed on tech-net@, ok core@.
2015-09-24Add kinfo_getvmmap from FreeBSDchristos
2015-07-26Add ereallocarr(3) to libutilkamil
ereallocarr(3) wraps reallocarr(3) and embeds return status validation. Older version reviewed by <riastradh> and <christos>
2015-01-18add estro{i,u} (Kamil Rytarowski)christos
2013-06-20document login_getpwclass(3)christos
2013-05-02Add getbyteorder() call.matt
2012-04-07- add getdiskrawname.christos
- exit on error for lint.
2012-04-07add getfsspecnamechristos
2012-03-21These directories default to WARNS?=5matt
2012-01-07- add strspctchristos
- be explicit about string not being NUL terminated if bufsiz == 0
2011-11-13add manual pagechristos
2011-10-21Add proc_comparechristos
2011-10-21Don't use = to assing SRCS, but += so that we can remove snprintb.c,christos
which was added elsewhere.
2011-08-30Add getlabelusesmbr(), as proposed inbouyer
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.
2011-08-29Build libutil(3) as a link to util(3).jruoho
2011-08-28add strpct, requested by joergchristos
2010-01-27retire pw_policy(3) -- it is not found useful, there are otherdrochner
(more common) ways to enforce a password strength policy approved by elad
2009-06-20add a link to pw_copyx; from anon ymouschristos
2009-05-13Implement snprintb_m(3) to provide multi-line bit/bit-field decode.pgoyette
Discussed on tech-kern.
2009-01-18WARNS=4lukem
2009-01-11merge christos-time_tchristos
2008-12-26document pw_getpwconf.christos
2008-12-16move snprintb to commonchristos
2007-09-25Add raise_default_signal(3) -- raise the default signal handler.lukem
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@.
2007-07-01add estrndup()pooka
2006-12-14moved string_to_flags and flags_to_string from ls to libutil.christos
2006-11-20rename getdate to parsedate to avoid conflict with posix functionchristos
2006-11-17add getdate.christos
2006-10-20include ecalloc() from our anonymous user.christos
2006-08-26Add efun(3)christos
2005-09-14Add pw_policy.3.elad
From Hisashi T Fujinaka, thanks!
2005-09-14Introduce pw_policy(3), an easily extendable way of defining passwordelad
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.
2004-12-11WARNS=3; fix cast-qual issues.christos
2004-11-20Add a manual page.christos
2004-11-19Add sockaddr_snprintf; XXX: Needs a man page.christos
2004-11-11Add if_media.c, functions for converting media to/from strings.dsl
(from ifconfig.c)
2003-03-22move getmntopts(3) to libutil, build and install also it's manpagejdolecek
bump libutil minor adjust individual mount_*/Makefile to use libutil getmntopts(3)
2002-12-12Add getlabelsector() and getlabeloffset() as wrappers around thescw
KERN_LABELSECTOR and KERN_LABELOFFSET sysctls.
2002-11-30- Migrate fparseln(3) from libutil to libc, where it should have been inlukem
the first place... - Bump libutil major (to 7.0) and libc minor (to 12.91).
2002-10-12Added two functions disklabel_dkcksum() and disklabel_scan() to libutilelric
so that they can be shared by disklabel(8) and cgdconfig(8).
2002-09-27put utmpx/wtmpx routines to separate files, so that programs overriding thejdolecek
utmp/wtmp routines could still be linked static fixes e.g. static build of ftpd
2002-09-27Add documentation for utmpx and some related functions.wiz
Thanks for some explanations to christos, and for some STANDARDS hints to Klaus Klein.