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.
18 lines
393 B
C
18 lines
393 B
C
#include <stdio.h>
|
|
#include <sys/times.h>
|
|
#include <unistd.h>
|
|
|
|
#include "test_helpers.h"
|
|
|
|
int main(void) {
|
|
struct tms tms;
|
|
|
|
int status = times(&tms);
|
|
ERROR_IF(times, status, == (time_t)-1);
|
|
|
|
printf("tm_utime: %ld\n", tms.tms_utime);
|
|
printf("tm_stime: %ld\n", tms.tms_stime);
|
|
printf("tm_cutime: %ld\n", tms.tms_cutime);
|
|
printf("tm_cstime: %ld\n", tms.tms_cstime);
|
|
}
|