world: Staticize various variables and also remove a couple of unused ones.
libc - Adopt more linux-friendly basename() and dirname()* Essentially take the FreeBSD basename() and dirname() code, changing the API to be more linux-friendly. This reduces work required in d
libc - Adopt more linux-friendly basename() and dirname()* Essentially take the FreeBSD basename() and dirname() code, changing the API to be more linux-friendly. This reduces work required in dports.* Adjust numerous cases in our base code that assumed the old prototypes and side effects.* The passed-in string pointers are no longer const and can be modified in-place by the functions. The returned value is no longer sometimes dynamically allocated and will instead either return a constant string, a portion of the passed in string, or a modified portion of the passed-in string. The API unfortunately has to be declared to return a char * instead of a const char *, even though it sometimes returns pointers to constant strings. The API is now thread-safe.* The API is still a huge historical mess but at least the ports for the most part assume the above behavior now due to linux doing the same thing.Reviewed-by: multiple people
show more ...
devfsctl/mount_dirfs: Save some #include's by including <sys/param.h>.
Fix some self references in our manual pages.
Add __attribute__((__noreturn__)) to various function prototypes in sbin/.This general cleanup is useful in various ways. It helps the compileroptimize better and it also helps later GCCs detect b
Add __attribute__((__noreturn__)) to various function prototypes in sbin/.This general cleanup is useful in various ways. It helps the compileroptimize better and it also helps later GCCs detect better when to give-Wimplicit-fallthrough warnings and when not.Found-with: -Wsuggest-attribute=noreturn
devfsctl(8): syntax_error() never returns, so change it to 'void'.While here, fix indent a bit and add a copyright to devfsctl.h.
Remove unneeded inclusions of <sys/cdefs.h> throughout the tree.
manpages: Uniformly order the prologue macros by Dd/Dt/Os.This is the most widely used order and it also silences warningsin mandoc -Tlint output.
Add __printflike's where possible and fix all related bugs & issues.
Clean up some Makefiles (let the user decide which options they want).
devfsctl(8): Some style cleanup.
Fix some more typos in manual pages and messages.
DEVFS - Add rc.d script to load rules at startupThe script will load default rules from /etc/defaults/devfs.conf anduser supplied rules from /etc/devfs.conf
devfsctl(8) - move devfsctl to sbin* move devfsctl from usr/sbin to sbin and link into build.