summaryrefslogtreecommitdiff
path: root/usrbin/main.c
blob: 2e409fd745bfb17fcd89baf4b18aa4b9999ed8b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <signal.h>
#include <stdint.h>
#include <stdio.h>
#include <time.h>
#include <unistd.h>

void sig_handler(int s) {
  printf("Handled the signal!\n");
}

void main(void) {
  int x = 0;

  /* signal(0, &sig_handler); */
  printf("We did it ma!\n");

  while(1) {
    /* sleep(1); */
    printf("0x%04x:0x%08x: 0x%08x, 0x%08x\n", getpid(), (uint32_t) getpdir(), time(), x++);
  }
}