Files
linux-kernel-module-cheat/packages/kernel_modules/userland/poweroff.c
Ciro Santilli 六四事件 法轮功 76b486c274 Build userland examples separately
2018-10-12 09:30:33 +01:00

10 lines
191 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);
}