Lines Matching refs:rc

611   long rc;  in uv__close_nocancel()
613 rc = syscall(SYS_close, fd); in uv__close_nocancel()
614 __sanitizer_syscall_post_close(rc, fd); in uv__close_nocancel()
615 return rc; in uv__close_nocancel()
626 int rc; in uv__close_nocheckstdio() local
631 rc = uv__close_nocancel(fd); in uv__close_nocheckstdio()
632 if (rc == -1) { in uv__close_nocheckstdio()
633 rc = UV__ERR(errno); in uv__close_nocheckstdio()
634 if (rc == UV_EINTR || rc == UV__ERR(EINPROGRESS)) in uv__close_nocheckstdio()
635 rc = 0; /* The close is in progress, not an error. */ in uv__close_nocheckstdio()
639 return rc; in uv__close_nocheckstdio()
724 ssize_t rc; in uv__recvmsg() local
725 rc = recvmsg(fd, msg, flags | MSG_CMSG_CLOEXEC); in uv__recvmsg()
726 if (rc == -1) in uv__recvmsg()
728 return rc; in uv__recvmsg()
733 ssize_t rc; in uv__recvmsg()
734 rc = recvmsg(fd, msg, flags); in uv__recvmsg()
735 if (rc == -1) in uv__recvmsg()
738 return rc; in uv__recvmsg()
746 return rc; in uv__recvmsg()
1794 int rc; in uv_sleep() local
1800 rc = nanosleep(&timeout, &timeout); in uv_sleep()
1801 while (rc == -1 && errno == EINTR); in uv_sleep()
1803 assert(rc == 0); in uv_sleep()
1886 int rc; in uv__cpu_count() local
1889 rc = 0; in uv__cpu_count()
1895 rc++; in uv__cpu_count()
1898 return rc; in uv__cpu_count()
1903 long rc = -1; in uv_available_parallelism() local
1915 rc = uv__cpu_count(&set); in uv_available_parallelism()
1917 rc = __get_num_online_cpus(); in uv_available_parallelism()
1918 if (rc < 1) in uv_available_parallelism()
1919 rc = 1; in uv_available_parallelism()
1921 return (unsigned) rc; in uv_available_parallelism()
1928 rc = uv__cpu_count(&set); in uv_available_parallelism()
1933 rc = uv__cpu_count(&set); in uv_available_parallelism()
1950 rc = nprocs; in uv_available_parallelism()
1969 rc = nprocs; in uv_available_parallelism()
1975 if (rc < 0) in uv_available_parallelism()
1976 rc = sysconf(_SC_NPROCESSORS_ONLN); in uv_available_parallelism()
1985 if (rc_with_cgroup < rc) in uv_available_parallelism()
1986 rc = (long)rc_with_cgroup; /* Casting is safe since rc_with_cgroup < rc < LONG_MAX */ in uv_available_parallelism()
1991 if (rc < 1) in uv_available_parallelism()
1992 rc = 1; in uv_available_parallelism()
1994 return (unsigned) rc; in uv_available_parallelism()