your inits are belongz to uz

This commit is contained in:
Ciro Santilli
2017-09-30 21:27:12 +01:00
parent 32f9455956
commit cbea7cc02c
8 changed files with 53 additions and 14 deletions

View File

@@ -0,0 +1,11 @@
/* Userspace is for the weak. Die.
* https://stackoverflow.com/questions/28812514/how-to-shutdown-linux-using-c-or-qt-without-call-to-system */
#include <stdio.h>
#include <sys/reboot.h>
#include <unistd.h>
int main(void) {
puts(__FILE__);
reboot(RB_POWER_OFF);
}