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.
33 lines
843 B
C
33 lines
843 B
C
#include "../test_helpers.h"
|
|
#include <signal.h>
|
|
|
|
/*
|
|
* This is a test to ensure all required items for signal.h are defined.
|
|
* The definitions follow the order described in
|
|
* <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/signal.h.html>
|
|
*/
|
|
|
|
void handler(int sig_num)
|
|
{
|
|
(void)sig_num;
|
|
}
|
|
|
|
void action(int sig_num, siginfo_t *info, void *context)
|
|
{
|
|
(void)sig_num;
|
|
(void)info;
|
|
(void)context;
|
|
}
|
|
|
|
int main()
|
|
{
|
|
int (*sh)(int) __attribute__((unused)) = sighold;
|
|
int (*sigig)(int) __attribute__((unused)) = sigignore;
|
|
int (*sigintr)(int, int) __attribute__((unused)) = siginterrupt;
|
|
int (*paws)(int) __attribute__((unused)) = sigpause;
|
|
int (*srls)(int) __attribute__((unused)) = sigrelse;
|
|
void (*(*sset)(int, void (*)(int)))(int) __attribute__((unused)) = sigset;
|
|
|
|
return EXIT_SUCCESS;
|
|
}
|