consmirror.c: the BSD notice is replaced (Makronix's own file). Files with
changes of other sessions pending are left for their commit.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
userland/lib/mxlinux: what NetBSD's headers and libc have and glibc lacks,
in one place instead of per port. NetBSD's own sources where they run on
glibc unchanged (getopt, signalname/signalnumber/signalnext,
humanize_number, dehumanize_number, getbsize), ours where Linux's view is
needed (sys_signame from sigabbrev_np, fgetwln, LC_C_LOCALE);
include/mxlinux.h with the NetBSD header line each item stands in for.
The frame forces nbtool_config.h and mxlinux.h into every port and links
libmxlinux.a ahead of libc, so every program gets NetBSD's getopt (glibc's
permutes argv: env -i A=1 failed). SIGINFO is SIGPWR on Makronix,
system-wide (Konrad, 2026-11-11), named INFO in sys_signame: kill -INFO
makes sleep print NetBSD's "Between 2 and 3 seconds left".
The ports shrink to what is theirs: 23 are two lines again; stty keeps its
termios names, sleep -lm, fold _XOPEN_SOURCE, dirname MAN=. Clean rebuild
28/28, no warning; tests 28/28 under qemu and on the phone
(build/logs/userland-{qemu,phone}-mxlinux-2026-11-11.log).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
basename comm dirname echo env fold head hostname kill ln logname nice nohup
paste printenv pwd rev rmdir sleep stty sync tee test tty uniq wc yes, ported
by four opencode agents (deepseek-v4.1-flash) along docs/PORTING-USERLAND.md,
checked and rebuilt here with the toolchain of src/. src/ is unchanged;
what glibc lacks is carried per port and documented with the compiler error
it fixes (kill: sys_signame from sigabbrev_np; stty: NetBSD's termios names
and baud-rate codes; test: timespeccmp; sleep: timespecadd/sub, LC_C_LOCALE,
SIGINFO as SIGPWR; rev: fgetwln) -- libmxlinux material once shared.
Each test.sh carries NetBSD's own src/tests cases where they exist plus the
man page's; 28/28 suites (with cat) pass under qemu and on the phone
(7.0.14-makronix-unstable; build/logs/userland-{qemu,phone}-all-2026-11-11.log).
"[" is not installed yet (Makefile.host undefines LINKS).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>