Files
linux-kernel-module-cheat/userland/linux/poweroff.c
Ciro Santilli 六四事件 法轮功 aea97698c3 bak
2019-05-05 00:00:00 +00:00

10 lines
194 B
C

/* https://github.com/cirosantilli/linux-kernel-module-cheat#poweroff-out */
#define _XOPEN_SOURCE 700
#include <sys/reboot.h>
#include <unistd.h>
int main(void) {
reboot(RB_POWER_OFF);
}