b9874d0941
Add redbear-usb-storage-check in-guest binary that validates USB mass storage read and write I/O: discovers /scheme/disk/ devices, writes a test pattern to sector 2048, reads it back, verifies match, restores original content. Updates test-usb-storage-qemu.sh with write-proof verification step. Includes all accumulated Red Bear OS work: kernel patches, relibc patches, driver infrastructure, DRM/GPU, KDE recipes, firmware, validation tooling, build system hardening, and documentation.
15 lines
616 B
C
15 lines
616 B
C
#include <inttypes.h>
|
|
#include <stdio.h>
|
|
#include <wchar.h>
|
|
|
|
int main(void) {
|
|
wchar_t *nptr;
|
|
wchar_t *endptr;
|
|
uintmax_t j;
|
|
int base = 10;
|
|
nptr = L"10110134932";
|
|
printf("nptr = `%ls`\n", nptr);
|
|
j = wcstoumax(nptr, &endptr, base);
|
|
printf("wcstoumax = %ju\n", j);
|
|
printf("Stopped scan at `%ls`\n", endptr);
|
|
}
|