/libcore/luni/src/main/java/android/system/ |
D | OsConstants.java | 638 public static String errnoName(int errno) { in errnoName() argument 639 if (errno == E2BIG) { in errnoName() 642 if (errno == EACCES) { in errnoName() 645 if (errno == EADDRINUSE) { in errnoName() 648 if (errno == EADDRNOTAVAIL) { in errnoName() 651 if (errno == EAFNOSUPPORT) { in errnoName() 654 if (errno == EAGAIN) { in errnoName() 657 if (errno == EALREADY) { in errnoName() 660 if (errno == EBADF) { in errnoName() 663 if (errno == EBADMSG) { in errnoName() [all …]
|
D | ErrnoException.java | 34 public final int errno; field in ErrnoException 39 public ErrnoException(String functionName, int errno) { in ErrnoException() argument 41 this.errno = errno; in ErrnoException() 47 public ErrnoException(String functionName, int errno, Throwable cause) { in ErrnoException() argument 50 this.errno = errno; in ErrnoException() 59 String errnoName = OsConstants.errnoName(errno); in getMessage() 61 errnoName = "errno " + errno; in getMessage() 63 String description = Libcore.os.strerror(errno); in getMessage()
|
D | Os.java | 505 public static String strerror(int errno) { return Libcore.os.strerror(errno); } in strerror() argument
|
/libcore/luni/src/main/native/ |
D | java_io_File.cpp | 50 jniThrowIOException(env, errno); in File_canonicalizePath() 94 errno = 0; in next() 99 if (errno != 0) { in next()
|
D | java_lang_ProcessManager.cpp | 81 int error = errno; in AbortChild() 97 jniThrowIOException(env, errno); in ExecuteProcess() 115 jniThrowIOException(env, errno); in ExecuteProcess() 190 ALOGW("waitpid on failed exec failed: %s", strerror(errno)); in ExecuteProcess()
|
D | canonicalize_path.cpp | 51 errno = EINVAL; in canonicalize_path() 94 errno = ELOOP; in canonicalize_path()
|
D | NetFd.h | 63 if (fd.isClosed() || errno != EINTR) { \
|
D | Portability.h | 100 } while (_rc == -1 && errno == EINTR); \
|
D | AsynchronousCloseMonitor.cpp | 61 ALOGE("setting blocked thread signal handler failed: %s", strerror(errno)); in init()
|
D | java_util_zip_Inflater.cpp | 73 jniThrowIOException(env, errno); in Inflater_setFileInputImpl() 85 jniThrowIOException(env, errno); in Inflater_setFileInputImpl()
|
D | libcore_io_Posix.cpp | 116 if (_rc == -1 && errno == EAFNOSUPPORT && _salen && isIPv4MappedAddress(_sa)) { \ 149 _syscallErrno = errno; \ 184 _syscallErrno = errno; \ 228 int error = errno; in throwErrnoException() 242 if (errno != 0) { in throwGaiException() 607 errno = error; in process() 859 errno = 0; in Posix_android_getaddrinfo() 934 errno = 0; in Posix_getnameinfo() 1305 if (rc >= 0 || errno != EINTR) { in Posix_poll() 1358 while ((errno = posix_fallocate64(fd, offset, length)) == EINTR) { in Posix_posix_fallocate() [all …]
|
/libcore/luni/src/main/java/libcore/io/ |
D | IoBridge.java | 70 if (errnoException.errno == ENOTTY) { in available() 158 if (errnoException.errno != EINPROGRESS) { in connectErrno() 231 if (cause.errno == ETIMEDOUT) { in isConnected() 474 if (errnoException.errno == EAGAIN) { in read() 532 if (errnoException.errno == ECONNRESET || errnoException.errno == ECONNREFUSED) { in maybeThrowAfterSendto() 536 if (errnoException.errno == EAGAIN) { in maybeThrowAfterSendto() 585 if (errnoException.errno == EAGAIN) { in maybeThrowAfterRecvfrom() 591 if (isConnected && errnoException.errno == ECONNREFUSED) { in maybeThrowAfterRecvfrom() 593 } else if (errnoException.errno == EAGAIN) { in maybeThrowAfterRecvfrom()
|
D | ForwardingOs.java | 164 public String strerror(int errno) { return os.strerror(errno); } in strerror() argument
|
D | Os.java | 157 public String strerror(int errno); in strerror() argument
|
/libcore/support/src/test/java/tests/io/ |
D | MockOs.java | 113 public void enqueueFault(String methodName, final int errno) { in enqueueFault() argument 116 throw new ErrnoException(method.getName(), errno); in enqueueFault()
|
/libcore/luni/src/main/java/java/nio/ |
D | FileChannelImpl.java | 247 … if (S_ISREG(Libcore.os.fstat(fd).st_mode) || ftruncateException.errno != EINVAL) { in map() 315 if (errnoException.errno == EAGAIN) { in readImpl() 435 if (errnoException.errno != ENOSYS && errnoException.errno != EINVAL) { in transferTo()
|
D | ServerSocketChannelImpl.java | 94 if (((ErrnoException) cause).errno == EAGAIN) { in shouldThrowSocketTimeoutExceptionFromAccept()
|
D | SocketChannelImpl.java | 252 return ((ErrnoException) cause).errno == EINPROGRESS; in isEINPROGRESS()
|
/libcore/luni/src/main/java/java/io/ |
D | FileInputStream.java | 191 if (errnoException.errno == ESPIPE) { in skip()
|
D | File.java | 899 if (errnoException.errno == ENOENT) { in mkdirs() 903 } else if (errnoException.errno == EEXIST) { in mkdirs() 935 if (errnoException.errno == EEXIST) { in createNewFile()
|
/libcore/luni/src/test/java/libcore/io/ |
D | OsTest.java | 370 assertEquals("Expected EAFNOSUPPORT binding IPv4 socket to ::", EAFNOSUPPORT, expected.errno); in test_socketFamilies() 448 assertEquals(OsConstants.ENODATA, e.errno); in test_xattr() 459 assertEquals(OsConstants.EEXIST, e.errno); in test_xattr() 471 assertEquals(OsConstants.ENODATA, e.errno); in test_xattr()
|
/libcore/luni/src/main/java/java/net/ |
D | InetAddress.java | 463 if (((ErrnoException) gaiException.getCause()).errno == EACCES) { in lookupHostByName() 779 reached = (((ErrnoException) e.getCause()).errno == ECONNREFUSED); in isReachable()
|
D | NetworkInterface.java | 205 if (errnoException.errno != EADDRNOTAVAIL) { in collectIpv4Address()
|
D | PlainSocketImpl.java | 98 if (errnoException.errno == EAGAIN) { in accept()
|
/libcore/luni/src/main/java/java/lang/ |
D | ProcessManager.java | 102 if (errnoException.errno == ECHILD) { in watchChildren()
|