int McAccess::close(int fd) { int res; WaitSema(_sema); mcClose(fd); mcSync(0, NULL, &res); SignalSema(_sema); return res; }
int mcIO::close(int fd) { int rv; #ifdef AIOMC_DEBUG printf("mcIO close\n"); #endif mcClose(fd); mcSync(MC_WAIT, NULL, &rv); return rv; }