Files
RedBear-OS/recipes/tests/unistd/sysconf.c
T
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

33 lines
624 B
C

#include <errno.h>
#include <stdio.h>
#include <unistd.h>
#include "test_helpers.h"
#define SC(N) \
do { \
errno = 0; \
printf("%s (%d): %ld (%d)\n", #N, _SC_ ## N, sysconf(_SC_ ## N), errno); \
} while (0)
int main(void) {
SC(ARG_MAX);
SC(CHILD_MAX);
SC(CLK_TCK);
SC(NGROUPS_MAX);
SC(OPEN_MAX);
SC(STREAM_MAX);
SC(TZNAME_MAX);
SC(VERSION);
SC(PAGESIZE);
SC(RE_DUP_MAX);
SC(LOGIN_NAME_MAX);
SC(TTY_NAME_MAX);
SC(SYMLOOP_MAX);
SC(HOST_NAME_MAX);
SC(NPROCESSORS_CONF);
SC(NPROCESSORS_ONLN);
SC(PHYS_PAGES);
SC(AVPHYS_PAGES);
}