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.
21 lines
437 B
C
21 lines
437 B
C
#define _OPEN_SYS
|
|
#include <stdio.h>
|
|
#include <signal.h>
|
|
#include <errno.h>
|
|
#include <stdlib.h>
|
|
#include "../test_helpers.h"
|
|
|
|
// test to make sure that if you pass an invalid signal to sigismember it will return EINVAL
|
|
|
|
int main() {
|
|
sigset_t sigset;
|
|
int status;
|
|
|
|
sigfillset(&sigset);
|
|
status = sigismember(&sigset, -1);
|
|
ERROR_IF(sigismember, status, != -1);
|
|
ERROR_IF(sigismember, errno, != EINVAL);
|
|
|
|
return EXIT_SUCCESS;
|
|
|
|
} |