Linux x86-64 compilation and static linking to gcc I have:
#include <sys/reboot.h>
if (str[0] == 'r')
reboot(0x1234567);
but I can't seem to find an equivalent function call to shutdown. I would also like to know the llvm function if it is different.
source
to share