C functions to ease the use of sysctl