unsigned short notmain ( void ) { uart_init(); hexstring(0x1234); if(limit_test()) hexstring(0xBAD); hexstring(0x1234); return(0); }
int main(int argc, char *argv[]) { int superuser; start(46); superuser = (geteuid() == 0); if(!superuser) { if(!(setuid(0) || seteuid(0))) { printf("Test 46 has to be run as root; test aborted\n"); exit(1); } } limit_test(); /* Perform some tests on POSIX limits */ api_test(); /* Perform some very basic API tests */ group_test(); /* Perform some tests that mimic actual use */ quit(); return(-1); /* Unreachable */ }