master
exec.c provided indirection for multiple exec formats. ELF-only now, so...
options(4), config(8): drop dst/timezone knobs; ok kettenis@ deraadt@ jca@
remove prototypes with no matching function and externs with no var partly checked by millert@
allow comments, to be used with bsd.re-config. ok kn
remove sys/param.h includes by stopping use of NODEV, ALIGNED and ALIGN(). The latter two exposed a large block allocator on top of malloc() which doesn't really make sense in this decade (the objects are never freed, so not quite like the famous openssl allocator) ok millert jsg
remove clause 3 and 4. -moj
For open/openat, if the flags parameter does not contain O_CREAT, the 3rd (variadic) mode_t parameter is irrelevant. Many developers in the past have passed mode_t (0, 044, 0644, or such), which might lead future people to copy this broken idiom, and perhaps even believe this parameter has some meaning or implication or application. Delete them all. This comes out of a conversation where tb@ noticed that a strange (but intentional) pledge behaviour is to always knock-out high-bits from mode_t on a number of system calls as a safety factor, and his bewilderment that this appeared to be happening against valid modes (at least visually), but no sorry, they are all irrelevant junk. They could all be 0xdeafbeef. ok millert
Replace <sys/param.h> with <limits.h> and other less dirty headers where possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
When cmdfile is specified, use lines from it for all input, not just commands. This allows complex actions like changing device parameters to be done with a command file.
allow specifying a cmdfile instead of trying to pipe in commands for -ef. ok deraadt
Use the err(3) family of functions more consistently.
Adjust mkioconf so the emitted extern struct cfattach are const.
Remove newbsd.gdb rather than bsd.gdb from reorder_kernel
remove unneeded conf.h include
Convert two K&R function definitions to ANSI
error on long locator lines, don't overflow buffers found with afl, feedback and ok millert@
config -eu uses a second copy of the nlist array[], which should never become different or the #define's for the slots could diverge. To avoid this, make one a copy of the other at runtime.
Add printf format attributes to the custom error functions.