| Age | Commit message (Collapse) | Author |
|
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.
|
|
https://mail-index.netbsd.org/tech-userlevel/2023/03/15/msg013727.html
|
|
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."
|
|
|
|
want NUL termination. We can't use pragma's because the old gcc complains
about the new warnings it does not understand.
|
|
(pity about the name...)
XXX pullup-8
|
|
EV_SET to kqueue(2)
getmntoptstr, getmntoptnum, freemntopts to getmntopts(3)
Reviewed by wiz@
|
|
|
|
Discussed on tech-net@, ok core@.
|
|
|
|
ereallocarr(3) wraps reallocarr(3) and embeds return status validation.
Older version reviewed by <riastradh> and <christos>
|
|
|
|
|
|
|
|
- exit on error for lint.
|
|
|
|
|
|
- be explicit about string not being NUL terminated if bufsiz == 0
|
|
|
|
|
|
which was added elsewhere.
|
|
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.
|
|
|
|
|
|
(more common) ways to enforce a password strength policy
approved by elad
|
|
|
|
Discussed on tech-kern.
|
|
|
|
|
|
|
|
|
|
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@.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
From Hisashi T Fujinaka, thanks!
|
|
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.
|
|
|
|
|
|
|
|
(from ifconfig.c)
|
|
bump libutil minor
adjust individual mount_*/Makefile to use libutil getmntopts(3)
|
|
KERN_LABELSECTOR and KERN_LABELOFFSET sysctls.
|
|
the first place...
- Bump libutil major (to 7.0) and libc minor (to 12.91).
|
|
so that they can be shared by disklabel(8) and cgdconfig(8).
|
|
utmp/wtmp routines could still be linked static
fixes e.g. static build of ftpd
|
|
Thanks for some explanations to christos, and for some STANDARDS hints
to Klaus Klein.
|