aboutsummaryrefslogtreecommitdiff
path: root/sys/rt/dummy.c
blob: 0cef224b836a2d5ef76c100a38077416596a39a7 (plain)
1
2
3
4
5
6
7
8
9
#include <u.h>
#include <rt.h>

/* provide a dummy implementation if libc is not linked */
static int noop(int (*main)(), int argc, char **argv) { return 0; }
weakalias(noop, __libc_start_main);

static int noop2(void (*func)(void)) { return 0; }
weakalias(noop, atexit);