main() { handle sbcr_hdl, pbddr_hdl, pbdr_hdl; pbddr_hdl = _sys_open(_SYS_OPEN_INTERFACE, PBDDR); _sys_write(pbddr_hdl, 0x8); _sys_close(pbddr_hdl); pbdr_hdl = _sys_open(_SYS_OPEN_INTERFACE, PBDR); while(1) { _sys_write(pbdr_hdl, 0x0); _sys_write(pbdr_hdl, 0x8); } }
int close(int d) { int retval; pthread_t self; self = pthread__self(); TESTCANCEL(self); retval = _sys_close(d); TESTCANCEL(self); return retval; }
extern "C" int _close(int file) { return _sys_close(file); }