From ca96c02a3614d21e3cf6bb33205eafd77fb0e282 Mon Sep 17 00:00:00 2001 From: Mario Fetka Date: Wed, 17 Jun 2026 20:55:58 +0000 Subject: [PATCH] nwnss: audit support headers and extend coverage --- nwnss-audit.md | 80 ++++++++++++------------ tests/nwnss/headers/test_nwnss_headers.c | 39 ++++++++++++ 2 files changed, 79 insertions(+), 40 deletions(-) diff --git a/nwnss-audit.md b/nwnss-audit.md index f41b87c..7a9aab0 100644 --- a/nwnss-audit.md +++ b/nwnss-audit.md @@ -34,9 +34,9 @@ Status legend: Current inventory summary: -- `AUDITED`: 320 files +- `AUDITED`: 358 files - `PARTIAL`: 19 files -- `TODO`: 182 files +- `TODO`: 144 files - `TEMP`: 4 files - Total listed files: 525 @@ -352,49 +352,49 @@ even if it already compiles or has indirect test coverage. | Status | Kind | Test coverage | File | Notes | |---|---:|---|---|---| -| TODO | ORIG header? | not yet classified | `include/nwnss/support/lnxmbINC/aesproc.h` | Must be compared against original source and classified. | -| TODO | ORIG header? | not yet classified | `include/nwnss/support/lnxmbINC/alert.h` | Must be compared against original source and classified. | -| TODO | ORIG header? | not yet classified | `include/nwnss/support/lnxmbINC/bindery.h` | Must be compared against original source and classified. | -| TODO | ORIG header? | not yet classified | `include/nwnss/support/lnxmbINC/bits.h` | Must be compared against original source and classified. | -| TODO | ORIG header? | not yet classified | `include/nwnss/support/lnxmbINC/command.h` | Must be compared against original source and classified. | -| TODO | ORIG header? | not yet classified | `include/nwnss/support/lnxmbINC/config.h` | Must be compared against original source and classified. | -| TODO | ORIG header? | not yet classified | `include/nwnss/support/lnxmbINC/connect.h` | Must be compared against original source and classified. | -| TODO | ORIG header? | not yet classified | `include/nwnss/support/lnxmbINC/connexp.h` | Must be compared against original source and classified. | -| TODO | ORIG header? | not yet classified | `include/nwnss/support/lnxmbINC/enable.h` | Must be compared against original source and classified. | -| TODO | ORIG header? | not yet classified | `include/nwnss/support/lnxmbINC/encp.h` | Must be compared against original source and classified. | -| TODO | ORIG header? | not yet classified | `include/nwnss/support/lnxmbINC/errors.h` | Must be compared against original source and classified. | -| TODO | ORIG header? | not yet classified | `include/nwnss/support/lnxmbINC/event.h` | Must be compared against original source and classified. | -| TODO | ORIG header? | not yet classified | `include/nwnss/support/lnxmbINC/fshooks.h` | Must be compared against original source and classified. | -| TODO | ORIG header? | not yet classified | `include/nwnss/support/lnxmbINC/fsproto.h` | Must be compared against original source and classified. | -| TODO | ORIG header? | not yet classified | `include/nwnss/support/lnxmbINC/ins.h` | Must be compared against original source and classified. | -| TODO | ORIG header? | not yet classified | `include/nwnss/support/lnxmbINC/lanconf.h` | Must be compared against original source and classified. | -| TODO | ORIG header? | not yet classified | `include/nwnss/support/lnxmbINC/lfsproto.h` | Must be compared against original source and classified. | -| TODO | ORIG header? | not yet classified | `include/nwnss/support/lnxmbINC/loader.h` | Must be compared against original source and classified. | -| TODO | ORIG header? | not yet classified | `include/nwnss/support/lnxmbINC/locks.h` | Must be compared against original source and classified. | -| TODO | ORIG header? | not yet classified | `include/nwnss/support/lnxmbINC/maapi.h` | Must be compared against original source and classified. | -| TODO | ORIG header? | not yet classified | `include/nwnss/support/lnxmbINC/manss.h` | Must be compared against original source and classified. | -| TODO | ORIG header? | not yet classified | `include/nwnss/support/lnxmbINC/masv.h` | Must be compared against original source and classified. | -| TODO | ORIG header? | not yet classified | `include/nwnss/support/lnxmbINC/mmpublic.h` | Must be compared against original source and classified. | -| TODO | ORIG header? | not yet classified | `include/nwnss/support/lnxmbINC/modify.h` | Must be compared against original source and classified. | -| TODO | ORIG header? | not yet classified | `include/nwnss/support/lnxmbINC/mpktypes.h` | Must be compared against original source and classified. | -| TODO | ORIG header? | not yet classified | `include/nwnss/support/lnxmbINC/nameserv.h` | Must be compared against original source and classified. | -| TODO | ORIG header? | not yet classified | `include/nwnss/support/lnxmbINC/nmevents.h` | Must be compared against original source and classified. | -| TODO | ORIG header? | not yet classified | `include/nwnss/support/lnxmbINC/nspace.h` | Must be compared against original source and classified. | -| TODO | ORIG header? | not yet classified | `include/nwnss/support/lnxmbINC/portable.h` | Must be compared against original source and classified. | -| TODO | ORIG header? | not yet classified | `include/nwnss/support/lnxmbINC/procdefs.h` | Must be compared against original source and classified. | -| TODO | ORIG header? | not yet classified | `include/nwnss/support/lnxmbINC/scs.h` | Must be compared against original source and classified. | -| TODO | ORIG header? | not yet classified | `include/nwnss/support/lnxmbINC/setparms.h` | Must be compared against original source and classified. | -| TODO | ORIG header? | not yet classified | `include/nwnss/support/lnxmbINC/subjects.h` | Must be compared against original source and classified. | -| TODO | ORIG header? | not yet classified | `include/nwnss/support/lnxmbINC/version.h` | Must be compared against original source and classified. | -| TODO | ORIG header? | not yet classified | `include/nwnss/support/lnxmbINC/volstruc.h` | Must be compared against original source and classified. | +| AUDITED | ORIG+FIX | nwnss.headers | `include/nwnss/support/lnxmbINC/aesproc.h` | Original `shared/support/lnxmbINC/aesproc.h` is an empty placeholder; imported file remains an empty newline-only placeholder. | +| AUDITED | ORIG+FIX | nwnss.headers | `include/nwnss/support/lnxmbINC/alert.h` | Compared with original `shared/support/lnxmbINC/alert.h`; definitions/prototypes kept. Differences are whitespace/diff-check cleanup only. | +| AUDITED | ORIG+FIX | nwnss.headers | `include/nwnss/support/lnxmbINC/bindery.h` | Compared with original `shared/support/lnxmbINC/bindery.h`; definitions/prototypes kept. Differences are whitespace/diff-check cleanup only. | +| AUDITED | ORIG | nwnss.headers | `include/nwnss/support/lnxmbINC/bits.h` | Byte-identical to original `shared/support/lnxmbINC/bits.h`. | +| AUDITED | ORIG+FIX | nwnss.headers | `include/nwnss/support/lnxmbINC/command.h` | Original `shared/support/lnxmbINC/command.h` is an empty placeholder; imported file remains an empty newline-only placeholder. | +| AUDITED | ORIG+FIX | nwnss.headers | `include/nwnss/support/lnxmbINC/config.h` | Compared with original `shared/support/lnxmbINC/config.h`; definitions/prototypes kept. Differences are whitespace/diff-check cleanup only. | +| AUDITED | ORIG+FIX | nwnss.headers | `include/nwnss/support/lnxmbINC/connect.h` | Compared with original `shared/support/lnxmbINC/connect.h`; definitions/prototypes kept. Differences are whitespace/diff-check cleanup only. | +| AUDITED | ORIG+FIX | nwnss.headers | `include/nwnss/support/lnxmbINC/connexp.h` | Compared with original `shared/support/lnxmbINC/connexp.h`; definitions/prototypes kept. Differences are whitespace/diff-check cleanup only. | +| AUDITED | ORIG+FIX | nwnss.headers | `include/nwnss/support/lnxmbINC/enable.h` | Compared with original `shared/support/lnxmbINC/enable.h`; definitions/prototypes kept. Differences are whitespace/diff-check cleanup only. | +| AUDITED | ORIG+FIX | nwnss.headers | `include/nwnss/support/lnxmbINC/encp.h` | Compared with original `shared/support/lnxmbINC/encp.h`; definitions/prototypes kept. Differences are whitespace/diff-check cleanup only. | +| AUDITED | ORIG+FIX | nwnss.headers | `include/nwnss/support/lnxmbINC/errors.h` | Compared with original `shared/support/lnxmbINC/errors.h`; definitions/prototypes kept. Differences are whitespace/diff-check cleanup only. | +| AUDITED | ORIG+FIX | nwnss.headers | `include/nwnss/support/lnxmbINC/event.h` | Compared with original `shared/support/lnxmbINC/event.h`; definitions/prototypes kept. Differences are whitespace/diff-check cleanup only. | +| AUDITED | ORIG+FIX | nwnss.headers | `include/nwnss/support/lnxmbINC/fshooks.h` | Compared with original `shared/support/lnxmbINC/fshooks.h`; definitions/prototypes kept. Differences are whitespace/diff-check cleanup only. | +| AUDITED | ORIG+FIX | nwnss.headers | `include/nwnss/support/lnxmbINC/fsproto.h` | Compared with original `shared/support/lnxmbINC/fsproto.h`; definitions/prototypes kept. Differences are whitespace/diff-check cleanup only. | +| AUDITED | ORIG+FIX | nwnss.headers | `include/nwnss/support/lnxmbINC/ins.h` | Compared with original `shared/support/lnxmbINC/ins.h`; definitions/prototypes kept. Differences are whitespace/diff-check cleanup only. | +| AUDITED | ORIG+FIX | nwnss.headers | `include/nwnss/support/lnxmbINC/lanconf.h` | Original `shared/support/lnxmbINC/lanconf.h` is an empty placeholder; imported file remains an empty newline-only placeholder. | +| AUDITED | ORIG+FIX | nwnss.headers | `include/nwnss/support/lnxmbINC/lfsproto.h` | Compared with original `shared/support/lnxmbINC/lfsproto.h`; definitions/prototypes kept. Differences are whitespace/diff-check cleanup only. | +| AUDITED | ORIG+FIX | nwnss.headers | `include/nwnss/support/lnxmbINC/loader.h` | Compared with original `shared/support/lnxmbINC/loader.h`; definitions/prototypes kept. Differences are whitespace/diff-check cleanup only. | +| AUDITED | ORIG | nwnss.headers | `include/nwnss/support/lnxmbINC/locks.h` | Byte-identical to original `shared/support/lnxmbINC/locks.h`. | +| AUDITED | ORIG+FIX | nwnss.headers | `include/nwnss/support/lnxmbINC/maapi.h` | Compared with original `shared/support/lnxmbINC/maapi.h`; definitions/prototypes kept. Differences are whitespace/diff-check cleanup only. | +| AUDITED | ORIG+FIX | nwnss.headers | `include/nwnss/support/lnxmbINC/manss.h` | Compared with original `shared/support/lnxmbINC/manss.h`; definitions/prototypes kept. Differences are whitespace/diff-check cleanup only. | +| AUDITED | ORIG+FIX | nwnss.headers | `include/nwnss/support/lnxmbINC/masv.h` | Compared with original `shared/support/lnxmbINC/masv.h`; definitions/prototypes kept. Differences are whitespace/diff-check cleanup only. | +| AUDITED | ORIG+FIX/PORT | nwnss.headers | `include/nwnss/support/lnxmbINC/mmpublic.h` | Compared with original `shared/support/lnxmbINC/mmpublic.h`; Object-manager definitions kept; only include-path normalization to `library/omni.h` plus whitespace cleanup. | +| AUDITED | ORIG+FIX | nwnss.headers | `include/nwnss/support/lnxmbINC/modify.h` | Compared with original `shared/support/lnxmbINC/modify.h`; definitions/prototypes kept. Differences are whitespace/diff-check cleanup only. | +| AUDITED | ORIG+FIX | nwnss.headers | `include/nwnss/support/lnxmbINC/mpktypes.h` | Compared with original `shared/support/lnxmbINC/mpktypes.h`; definitions/prototypes kept. Differences are whitespace/diff-check cleanup only. | +| AUDITED | ORIG | nwnss.headers | `include/nwnss/support/lnxmbINC/nameserv.h` | Byte-identical to original `shared/support/lnxmbINC/nameserv.h`. | +| AUDITED | ORIG+FIX | nwnss.headers | `include/nwnss/support/lnxmbINC/nmevents.h` | Original `shared/support/lnxmbINC/nmevents.h` is an empty placeholder; imported file remains an empty newline-only placeholder. | +| AUDITED | ORIG+FIX | nwnss.headers | `include/nwnss/support/lnxmbINC/nspace.h` | Compared with original `shared/support/lnxmbINC/nspace.h`; definitions/prototypes kept. Differences are whitespace/diff-check cleanup only. | +| AUDITED | ORIG+FIX | nwnss.headers | `include/nwnss/support/lnxmbINC/portable.h` | Compared with original `shared/support/lnxmbINC/portable.h`; definitions/prototypes kept. Differences are whitespace/diff-check cleanup only. | +| AUDITED | ORIG+FIX/PORT | nwnss.headers | `include/nwnss/support/lnxmbINC/procdefs.h` | Compared with original `shared/support/lnxmbINC/procdefs.h`; Userspace wrapper replaces the kernel `linuxmpk.h`/scheduler/procedure surface with the imported NSS base types required by userspace COMN imports; this is a deliberate kernel-boundary port, not an original header copy. | +| AUDITED | ORIG+FIX | nwnss.headers | `include/nwnss/support/lnxmbINC/scs.h` | Original `shared/support/lnxmbINC/scs.h` is an empty placeholder; imported file remains an empty newline-only placeholder. | +| AUDITED | ORIG+FIX | nwnss.headers | `include/nwnss/support/lnxmbINC/setparms.h` | Compared with original `shared/support/lnxmbINC/setparms.h`; definitions/prototypes kept. Differences are whitespace/diff-check cleanup only. | +| AUDITED | ORIG+FIX | nwnss.headers | `include/nwnss/support/lnxmbINC/subjects.h` | Compared with original `shared/support/lnxmbINC/subjects.h`; definitions/prototypes kept. Differences are whitespace/diff-check cleanup only. | +| AUDITED | ORIG | nwnss.headers | `include/nwnss/support/lnxmbINC/version.h` | Byte-identical to original `shared/support/lnxmbINC/version.h`. | +| AUDITED | ORIG+FIX/PORT | nwnss.headers | `include/nwnss/support/lnxmbINC/volstruc.h` | Compared with original `shared/support/lnxmbINC/volstruc.h`; Original volume structures/constants kept; userspace guard prevents VOLUME_* macro collisions with imported NSS public volume constants. | ### Headers: support/ndssdkINC_kern | Status | Kind | Test coverage | File | Notes | |---|---:|---|---|---| -| TODO | ORIG header? | not yet classified | `include/nwnss/support/ndssdkINC_kern/dconst.h` | Must be compared against original source and classified. | -| TODO | ORIG header? | not yet classified | `include/nwnss/support/ndssdkINC_kern/dtypes.h` | Must be compared against original source and classified. | -| TODO | ORIG header? | not yet classified | `include/nwnss/support/ndssdkINC_kern/nwdserr.h` | Must be compared against original source and classified. | +| AUDITED | ORIG+FIX | nwnss.headers | `include/nwnss/support/ndssdkINC_kern/dconst.h` | Compared with original `shared/support/ndssdkINC_kern/dconst.h`; constants kept. Differences are whitespace/diff-check cleanup only. | +| AUDITED | ORIG+FIX | nwnss.headers | `include/nwnss/support/ndssdkINC_kern/dtypes.h` | Compared with original `shared/support/ndssdkINC_kern/dtypes.h`; type definitions kept. Differences are whitespace/diff-check cleanup only. | +| AUDITED | ORIG+FIX | nwnss.headers | `include/nwnss/support/ndssdkINC_kern/nwdserr.h` | Compared with original `shared/support/ndssdkINC_kern/nwdserr.h`; error definitions kept. Differences are whitespace/diff-check cleanup only. | ### Sources: root/transition diff --git a/tests/nwnss/headers/test_nwnss_headers.c b/tests/nwnss/headers/test_nwnss_headers.c index 9181f43..67a1f19 100644 --- a/tests/nwnss/headers/test_nwnss_headers.c +++ b/tests/nwnss/headers/test_nwnss_headers.c @@ -91,6 +91,45 @@ #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + int main(void) { char *end = NULL;