File: notes.c

package info (click to toggle)
libpulp 0.3.16-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,976 kB
  • sloc: ansic: 11,792; python: 1,216; sh: 881; makefile: 871; cpp: 582; asm: 387
file content (27 lines) | stat: -rw-r--r-- 285 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include <stdio.h>
#include <stdbool.h>
#include <unistd.h>

__attribute__((noinline))
bool
repeat()
{
  volatile bool ret = true;
  return ret;
}

int
main()
{
  puts("Ready.");

  while (repeat())
    usleep(100);

  puts("Livepatched");
  fflush(stdout);

  pause();

  return 0;
}