int McAccess::write(int fd, const void *buf, int size) { int res; WaitSema(_sema); mcWrite(fd, buf, size); mcSync(0, NULL, &res); SignalSema(_sema); return res; }
int mcIO::write(int fd, const unsigned char *buffer, int size) { int rv; #ifdef AIOMC_DEBUG printf("mcIO write\n"); #endif mcWrite(fd, buffer, size); mcSync(MC_WAIT, NULL, &rv); return rv; }