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

14 lines
258 B
C

/* https://github.com/cirosantilli/linux-kernel-module-cheat#time_boot-out */
#include <stdio.h>
#include <unistd.h>
int main(void) {
FILE *fp;
fp = fopen("/dev/kmsg", "w");
fputs(__FILE__ "\n", fp);
fclose(fp);
while (1)
sleep(0xFFFFFFFF);
}