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.
24 lines
431 B
C
24 lines
431 B
C
#include <stdlib.h>
|
|
|
|
#include "test_helpers.h"
|
|
|
|
volatile float f;
|
|
volatile long double ld;
|
|
volatile unsigned long long ll;
|
|
lldiv_t mydivt;
|
|
|
|
int main(void) {
|
|
char* tmp;
|
|
f = strtof("gnu", &tmp);
|
|
ld = strtold("gnu", &tmp);
|
|
ll = strtoll("gnu", &tmp, 10);
|
|
ll = strtoull("gnu", &tmp, 10);
|
|
ll = llabs(10);
|
|
mydivt = lldiv(10,1);
|
|
ll = mydivt.quot;
|
|
ll = mydivt.rem;
|
|
ll = atoll("10");
|
|
_Exit(0);
|
|
}
|
|
|