ref: 8a45afd47d2545b2d85aecf9ec5af90cba3905d3
dir: /sys/src/libc/9sys/callmain.c/
#include <u.h> #include <libc.h> void **_privates; int _nprivates; enum{ NPRIVATES=16, }; #pragma profile off void _callmain(void (*main)(int, char**), int argc, char *arg0) { void *privates[NPRIVATES]; _privates = privates; _nprivates = NPRIVATES; main(argc, &arg0); exits("main"); } #pragma profile on