Files
vasilito b9874d0941 feat: USB storage read/write proof + full Red Bear OS tree sync
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.
2026-05-03 23:03:24 +01:00

28 lines
932 B
C

#include <stdio.h>
#include <sys/resource.h>
int main(void) {
// Checks availability of constants specified in
// https://pubs.opengroup.org/onlinepubs/7908799/xsh/sysresource.h.html
printf("PRIO_PROCESS: %d\n", PRIO_PROCESS);
printf("PRIO_PGRP: %d\n", PRIO_PGRP);
printf("PRIO_USER: %d\n", PRIO_USER);
printf("RLIM_INFINITY: %lld\n", RLIM_INFINITY);
printf("RLIM_SAVED_MAX: %lld\n", RLIM_SAVED_MAX);
printf("RLIM_SAVED_CUR: %lld\n", RLIM_SAVED_CUR);
printf("RUSAGE_SELF: %lld\n", RUSAGE_SELF);
printf("RUSAGE_CHILDREN: %lld\n", RUSAGE_CHILDREN);
printf("RLIMIT_CORE: %d\n", RLIMIT_CORE);
printf("RLIMIT_CPU: %d\n", RLIMIT_CPU);
printf("RLIMIT_DATA: %d\n", RLIMIT_DATA);
printf("RLIMIT_FSIZE: %d\n", RLIMIT_FSIZE);
printf("RLIMIT_NOFILE: %d\n", RLIMIT_NOFILE);
printf("RLIMIT_STACK: %d\n", RLIMIT_STACK);
printf("RLIMIT_AS: %d\n", RLIMIT_AS);
return 0;
}