Lines Matching refs:rc

265 static rc_t throwIfMinusOne(JNIEnv* env, const char* name, rc_t rc) {  in throwIfMinusOne()  argument
266 if (rc == rc_t(-1)) { in throwIfMinusOne()
269 return rc; in throwIfMinusOne()
671 int rc = isLstat ? TEMP_FAILURE_RETRY(lstat(path.c_str(), &sb)) in doStat() local
673 if (rc == -1) { in doStat()
686 int rc = is_sockname ? TEMP_FAILURE_RETRY(getsockname(fd, sa, &byteCount)) in doGetSockName() local
688 if (rc == -1) { in doGetSockName()
750 int rc = TEMP_FAILURE_RETRY(access(path.c_str(), mode)); in Posix_access() local
751 if (rc == -1) { in Posix_access()
754 return (rc == 0); in Posix_access()
887 int rc = IO_FAILURE_RETRY(env, int, fcntl, javaFd, cmd, &lock); in Posix_fcntlFlock() local
888 if (rc != -1) { in Posix_fcntlFlock()
895 return rc; in Posix_fcntlFlock()
916 int rc = TEMP_FAILURE_RETRY(fstat(fd, &sb)); in Posix_fstat() local
917 if (rc == -1) { in Posix_fstat()
927 int rc = TEMP_FAILURE_RETRY(fstatvfs(fd, &sb)); in Posix_fstatvfs() local
928 if (rc == -1) { in Posix_fstatvfs()
970 int rc = android_getaddrinfofornet(node.c_str(), NULL, &hints, netId, 0, &addressList); in Posix_android_getaddrinfo() local
972 if (rc != 0) { in Posix_android_getaddrinfo()
973 throwGaiException(env, "android_getaddrinfo", rc); in Posix_android_getaddrinfo()
1045 … int rc = getnameinfo(reinterpret_cast<sockaddr*>(&ss), sa_len, buf, sizeof(buf), NULL, 0, flags); in Posix_getnameinfo() local
1046 if (rc != 0) { in Posix_getnameinfo()
1047 throwGaiException(env, "getnameinfo", rc); in Posix_getnameinfo()
1100 int rc = TEMP_FAILURE_RETRY(getsockopt(fd, level, option, &sa->sin_addr, &size)); in Posix_getsockoptInAddr() local
1101 if (rc == -1) { in Posix_getsockoptInAddr()
1121 int rc = TEMP_FAILURE_RETRY(getsockopt(fd, level, option, &l, &size)); in Posix_getsockoptLinger() local
1122 if (rc == -1) { in Posix_getsockoptLinger()
1134 int rc = TEMP_FAILURE_RETRY(getsockopt(fd, level, option, &tv, &size)); in Posix_getsockoptTimeval() local
1135 if (rc == -1) { in Posix_getsockoptTimeval()
1147 int rc = TEMP_FAILURE_RETRY(getsockopt(fd, level, option, &u, &size)); in Posix_getsockoptUcred() local
1148 if (rc == -1) { in Posix_getsockoptUcred()
1219 int rc = throwIfMinusOne(env, "ioctl", TEMP_FAILURE_RETRY(ioctl(fd, cmd, &req))); in Posix_ioctlInetAddress() local
1220 if (rc == -1) { in Posix_ioctlInetAddress()
1232 int rc = throwIfMinusOne(env, "ioctl", TEMP_FAILURE_RETRY(ioctl(fd, cmd, &arg))); in Posix_ioctlInt() local
1236 return rc; in Posix_ioctlInt()
1396 int rc; in Posix_poll() local
1401 rc = poll(fds.get(), count, timeoutMs); in Posix_poll()
1402 if (rc >= 0 || errno != EINTR) { in Posix_poll()
1421 rc = 0; // We have less than 1ms left anyway, so just time out. in Posix_poll()
1432 if (rc == -1) { in Posix_poll()
1445 return rc; in Posix_poll()
1719 int rc = TEMP_FAILURE_RETRY(setsockopt(fd, level, option, &req, sizeof(req))); in Posix_setsockoptGroupReq() local
1720 if (rc == -1 && errno == EINVAL) { in Posix_setsockoptGroupReq()
1732 rc = TEMP_FAILURE_RETRY(setsockopt(fd, level, option, &req64, sizeof(req64))); in Posix_setsockoptGroupReq()
1734 throwIfMinusOne(env, "setsockopt", rc); in Posix_setsockoptGroupReq()
1759 int rc = TEMP_FAILURE_RETRY(setsockopt(fd, level, option, &req, sizeof(req))); in Posix_setsockoptGroupSourceReq() local
1760 if (rc == -1 && errno == EINVAL) { in Posix_setsockoptGroupSourceReq()
1774 rc = TEMP_FAILURE_RETRY(setsockopt(fd, level, option, &req64, sizeof(req64))); in Posix_setsockoptGroupSourceReq()
1776 throwIfMinusOne(env, "setsockopt", rc); in Posix_setsockoptGroupSourceReq()
1839 …int rc = throwIfMinusOne(env, "socketpair", TEMP_FAILURE_RETRY(socketpair(domain, type, protocol, … in Posix_socketpair() local
1840 if (rc != -1) { in Posix_socketpair()
1856 int rc = TEMP_FAILURE_RETRY(statvfs(path.c_str(), &sb)); in Posix_statvfs() local
1857 if (rc == -1) { in Posix_statvfs()
1936 int rc = throwIfMinusOne(env, "waitpid", TEMP_FAILURE_RETRY(waitpid(pid, &status, options))); in Posix_waitpid() local
1937 if (rc != -1) { in Posix_waitpid()
1941 return rc; in Posix_waitpid()