Files
linux-kernel-module-cheat/userland/time_boot.c
Ciro Santilli 六四事件 法轮功 1a0d15ca86 userland: convert make to python
2019-03-12 10:01:38 +00:00

15 lines
284 B
C

/* https://github.com/cirosantilli/linux-kernel-module-cheat#time_boot-out */
#define _XOPEN_SOURCE 700
#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);
}