Aaron Marcher
273d3db573
uptime: Separate function for readbility
il y a 6 ans
Aaron Marcher
faa52bdcc0
Format error messages properly
Make use of strerror(errno) and format all errors equally:
function ['parameters']: error message
il y a 6 ans
Aaron Marcher
e79d4932ea
More robust preprocessor switches
Replace #ifdef with #if defined() and #elif with #elif defined() as it
should only test if it is defined or not.
il y a 6 ans
Aaron Marcher
fc5d23212f
uptime: Port to OpenBSD.
In OpenBSD uptime gets fetched using sysctl now.
il y a 6 ans
Aaron Marcher
ebf5a35052
Build Linux-only functions only on Linux
il y a 6 ans
Laslo Hunhold
7246dc4381
Move components into dedicated subdirectory
This brings us a lot more tidiness.
il y a 7 ans
Aaron Marcher
11d4bec648
Added LICENSE statements to all source files
il y a 7 ans
Aaron Marcher
6820631175
Split into multiple files
For multiple reasons the program is now split:
- Make future porting to OpenBSD easier
- Assign header includes to individiual functions
- Make future program extensions easier
- Recompile only changed parts
il y a 7 ans