Linux x86-64 compiling and statically linking with gcc I have:
#include <sys/reboot.h>
if (str[0] == 'r')
reboot(0x1234567);
but I can't seem to find the equivalent function call for shutdown. I'd also like to know the llvm function if different.