mactcp_poll();
static void mac_eventloop(void) {    Boolean gotevent;    EventRecord event;    RgnHandle cursrgn;    cursrgn = NewRgn();    for (;;) {    	mac_adjustcursor(cursrgn);	gotevent = WaitNextEvent(everyEvent, &event, LONG_MAX, cursrgn);	mac_adjustcursor(cursrgn);	if (gotevent)	    mac_event(&event);    }    DisposeRgn(cursrgn);}