Searched refs:throwIfMinusOne (Results 1 – 1 of 1) sorted by relevance
/libcore/luni/src/main/native/ |
D | libcore_io_Linux.cpp | 288 static rc_t throwIfMinusOne(JNIEnv* env, const char* name, rc_t rc) { in throwIfMinusOne() function 1153 throwIfMinusOne(env, "capset", capset(&cap_header, &cap_data[0])); in Linux_capset() 1161 throwIfMinusOne(env, "chmod", TEMP_FAILURE_RETRY(chmod(path.c_str(), mode))); in Linux_chmod() 1169 throwIfMinusOne(env, "chown", TEMP_FAILURE_RETRY(chown(path.c_str(), uid, gid))); in Linux_chown() 1188 throwIfMinusOne(env, "close", android_fdsan_close_with_tag(fd, ownerId)); in Linux_close() 1193 throwIfMinusOne(env, "close", close(fd)); in Linux_close() 1266 int newFd = throwIfMinusOne(env, "dup", TEMP_FAILURE_RETRY(dup(oldFd))); in Linux_dup() 1272 int fd = throwIfMinusOne(env, "dup2", TEMP_FAILURE_RETRY(dup2(oldFd, newFd))); in Linux_dup2() 1308 throwIfMinusOne(env, "fchmod", TEMP_FAILURE_RETRY(fchmod(fd, mode))); in Linux_fchmod() 1313 throwIfMinusOne(env, "fchown", TEMP_FAILURE_RETRY(fchown(fd, uid, gid))); in Linux_fchown() [all …]
|