Lines Matching defs:rc
141 int rc;
155 rc = wait_for_sem(c->wake_scheduled_sleep, &until);
156 if (0 == rc)
158 if (-1 == rc && ETIMEDOUT == errno)
452 int rc;
456 rc = read(c->resp_read_pipe, scratch, sizeof(scratch));
457 while (-1 == rc && EINTR == errno);
546 int rc;
567 rc = pipe_socketpair(&pipe_ends[0], &is_pipe);
568 if (0 != rc) {
580 rc = fcntl(c->resp_read_pipe, F_SETFL, O_NONBLOCK | flags);
581 if (-1 == rc) {
591 rc = pthread_attr_getstacksize(&thr_attr, &ostacksize);
592 if (0 != rc) {
595 strerror(rc));
604 rc = pthread_attr_setstacksize(&thr_attr, nstacksize);
605 if (0 != rc)
609 strerror(rc));
620 rc = pthread_create(&c->thr_table[0], &thr_attr,
624 if (0 != rc) {
626 strerror(rc));
790 DWORD rc;
811 rc = WaitForSingleObject(sem->shnd, msec);
812 if (WAIT_OBJECT_0 == rc)
814 if (WAIT_TIMEOUT == rc) {
818 msyslog(LOG_ERR, "WaitForSingleObject unexpected 0x%x", rc);
824 int rc = -1;
828 rc = sem_wait(sem);
830 rc = sem_timedwait(sem, timeout);
831 } while (rc == -1 && errno == EINTR);
835 return rc;