Lines Matching refs:rc
130 int rc;
144 rc = wait_for_sem(c->wake_scheduled_sleep, &until);
145 if (0 == rc)
147 if (-1 == rc && ETIMEDOUT == errno)
439 int rc;
443 rc = read(c->resp_read_pipe, scratch, sizeof(scratch));
444 while (-1 == rc && EINTR == errno);
533 int rc;
554 rc = pipe_socketpair(&pipe_ends[0], &is_pipe);
555 if (0 != rc) {
567 rc = fcntl(c->resp_read_pipe, F_SETFL, O_NONBLOCK | flags);
568 if (-1 == rc) {
578 rc = pthread_attr_getstacksize(&thr_attr, &ostacksize);
579 if (0 != rc) {
582 strerror(rc));
591 rc = pthread_attr_setstacksize(&thr_attr, nstacksize);
592 if (0 != rc)
596 strerror(rc));
607 rc = pthread_create(&c->thr_table[0], &thr_attr,
611 if (0 != rc) {
613 strerror(rc));
777 DWORD rc;
798 rc = WaitForSingleObject(sem->shnd, msec);
799 if (WAIT_OBJECT_0 == rc)
801 if (WAIT_TIMEOUT == rc) {
805 msyslog(LOG_ERR, "WaitForSingleObject unexpected 0x%x", rc);
811 int rc = -1;
815 rc = sem_wait(sem);
817 rc = sem_timedwait(sem, timeout);
818 } while (rc == -1 && errno == EINTR);
822 return rc;