Add schedctl(8) - a program to control scheduling of processes and threads.
Notes:
- This is supported only by SCHED_M2;
- Migration of LWP mechanism will be revisited;
Proposed on: <tech-kern>. Reviewed by: <ad>.
PR#23470, with minor updates by me. This is only the syscall support
from that PR, for now.
Changes: port over fix from FreeBSD for multicast address generation.
Changed bcopy to memcpy. For now, #ifdef notyet the portions of
kern_uuid.c that are meant to be used by (currently nonexistent) other
things in the kernel. Added syscall to COMPAT_FREEBSD as well, though
that's currently not useful, as any program new enough to use this call
also uses other syscalls we don't (yet) emulate.
support for kqueue(2) and kevent(2) in
this is temporary measure to ease testing of kqueue branch; the support
will be made unconditional once kqueue branch would be merged
* Require that the path to the C preprocessor be passed in the CPP
environemnt variable, and use it rather than hard-coding "cpp".
Provide the target's preprocessor when invoking makelintstub.
* Fix some quoting issues that turned up with Solaris 8's XPG4 sh and sed.
* Don't use echo -n. Instead, don't bother making the output pretty; the
whitespace isn't supposed to be syntactically significant anyhow.
per class of syscall stubs. This is much more efficient (though it's still
pretty inefficient).
This also fixes a problem with syscall.h and DESTDIR which was pretty
well buried in the old implementation.
From Chris Demetriou <cgd@pa.dec.com>.