A minimalist system information fetcher for UNIX and Linux-based systems, written in C.
This project is created for deep-dive learning of low-level POSIX system calls.
- No bloated libraries: Directly invokes
<sys/utsname.h>for pure performance. - Buffer-safe: Formats strings using
snprintfto prevent any potential memory corruption. - Type-safe: Properly manages return types and stream operations with
fwrite.
To compile and execute:
gcc sysf.c -o sysf
./sysfOS Name: Darwin
Version: 25.6.0
CPU Arch: arm64
This project is dedicated to the public domain under the Unlicense. Feel free to use, modify, or break it.