Lines Matching refs:rc

404   int rc;  in uv__statx()
406 rc = syscall(__NR_statx, dirfd, path, flags, mask, statxbuf); in uv__statx()
407 if (rc >= 0) in uv__statx()
410 return rc; in uv__statx()
419 ssize_t rc; in uv__getrandom()
421 rc = syscall(__NR_getrandom, buf, buflen, flags); in uv__getrandom()
422 if (rc >= 0) in uv__getrandom()
425 return rc; in uv__getrandom()
735 int rc; in uv__io_check_fd() local
741 rc = 0; in uv__io_check_fd()
744 rc = UV__ERR(errno); in uv__io_check_fd()
746 if (rc == 0) in uv__io_check_fd()
750 return rc; in uv__io_check_fd()
1174 int rc; in uv__poll_io_uring() local
1228 rc = uv__io_uring_enter(iou->ringfd, 0, 0, UV__IORING_ENTER_GETEVENTS); in uv__poll_io_uring()
1229 while (rc == -1 && errno == EINTR); in uv__poll_io_uring()
1231 if (rc < 0) in uv__poll_io_uring()
1291 int rc; in uv__epoll_ctl_flush() local
1299 rc = uv__io_uring_enter(ctl->ringfd, n, n, UV__IORING_ENTER_GETEVENTS); in uv__epoll_ctl_flush()
1300 while (rc == -1 && errno == EINTR); in uv__epoll_ctl_flush()
1302 if (rc < 0) in uv__epoll_ctl_flush()
1305 if (rc != (int) n) in uv__epoll_ctl_flush()
1662 int rc; in uv_resident_set_memory() local
1666 rc = uv__slurp("/proc/self/stat", buf, sizeof(buf)); in uv_resident_set_memory()
1667 if (rc < 0) in uv_resident_set_memory()
1668 return rc; in uv_resident_set_memory()
2044 uint64_t rc; in uv__read_proc_meminfo() local
2058 rc = 0; in uv__read_proc_meminfo()
2059 sscanf(p, "%" PRIu64 " kB", &rc); in uv__read_proc_meminfo()
2061 return rc * 1024; in uv__read_proc_meminfo()
2067 uint64_t rc; in uv_get_free_memory() local
2069 rc = uv__read_proc_meminfo("MemAvailable:"); in uv_get_free_memory()
2071 if (rc != 0) in uv_get_free_memory()
2072 return rc; in uv_get_free_memory()
2083 uint64_t rc; in uv_get_total_memory() local
2085 rc = uv__read_proc_meminfo("MemTotal:"); in uv_get_total_memory()
2087 if (rc != 0) in uv_get_total_memory()
2088 return rc; in uv_get_total_memory()
2099 uint64_t rc; in uv__read_uint64() local
2101 rc = 0; in uv__read_uint64()
2103 if (1 != sscanf(buf, "%" PRIu64, &rc)) in uv__read_uint64()
2105 rc = UINT64_MAX; in uv__read_uint64()
2107 return rc; in uv__read_uint64()