/libcore/luni/src/main/java/android/system/ |
H A D | ErrnoException.java | 25 * errno value, for comparison against the constants in {@link OsConstants}, should sophisticated 32 * The errno value, for comparison with the {@code E} constants in {@link OsConstants}. 34 public final int errno; field in class:ErrnoException 37 * Constructs an instance with the given function name and errno value. 39 public ErrnoException(String functionName, int errno) { argument 41 this.errno = errno; 45 * Constructs an instance with the given function name, errno value, and cause. 47 public ErrnoException(String functionName, int errno, Throwable cause) { argument 50 this.errno [all...] |
H A D | OsConstants.java | 601 * Returns the string name of an errno value. 602 * For example, "EACCES". See {@link Os#strerror} for human-readable errno descriptions. 604 public static String errnoName(int errno) { argument 605 if (errno == E2BIG) { 608 if (errno == EACCES) { 611 if (errno == EADDRINUSE) { 614 if (errno == EADDRNOTAVAIL) { 617 if (errno == EAFNOSUPPORT) { 620 if (errno == EAGAIN) { 623 if (errno [all...] |
H A D | Os.java | 464 public static String strerror(int errno) { return Libcore.os.strerror(errno); } argument
|
/libcore/luni/src/main/native/ |
H A D | canonicalize_path.cpp | 33 #include <errno.h> 51 errno = EINVAL; 94 errno = ELOOP;
|
H A D | NetFd.h | 63 if (fd.isClosed() || errno != EINTR) { \
|
H A D | java_io_File.cpp | 31 #include <errno.h> 50 jniThrowIOException(env, errno); 94 errno = 0; 99 if (errno != 0) {
|
H A D | AsynchronousCloseMonitor.cpp | 22 #include <errno.h> 61 ALOGE("setting blocked thread signal handler failed: %s", strerror(errno));
|
H A D | java_lang_ProcessManager.cpp | 20 #include <errno.h> 81 int error = errno; 97 jniThrowIOException(env, errno); 115 jniThrowIOException(env, errno); 190 ALOGW("waitpid on failed exec failed: %s", strerror(errno));
|
H A D | java_util_zip_Inflater.cpp | 25 #include <errno.h> 73 jniThrowIOException(env, errno); 85 jniThrowIOException(env, errno);
|
H A D | libcore_io_Posix.cpp | 37 #include <errno.h> 102 _syscallErrno = errno; \ 137 _syscallErrno = errno; \ 178 int error = errno; 192 if (errno != 0) { 193 // EAI_SYSTEM should mean "look at errno instead", but both glibc and bionic seem to 194 // mess this up. In particular, if you don't have INTERNET permission, errno will be EACCES 441 errno = error; 680 errno = 0; 755 errno [all...] |
/libcore/support/src/test/java/tests/io/ |
H A D | MockOs.java | 113 public void enqueueFault(String methodName, final int errno) { argument 116 throw new ErrnoException(method.getName(), errno);
|
/libcore/luni/src/main/java/libcore/io/ |
H A D | IoBridge.java | 70 if (errnoException.errno == ENOTTY) { 158 if (errnoException.errno != EINPROGRESS) { 228 if (errnoException.errno == EINTR) { 235 if (cause.errno == ETIMEDOUT) { 478 if (errnoException.errno == EAGAIN) { 536 if (errnoException.errno == ECONNRESET || errnoException.errno == ECONNREFUSED) { 540 if (errnoException.errno == EAGAIN) { 589 if (errnoException.errno == EAGAIN) { 595 if (isConnected && errnoException.errno [all...] |
H A D | ForwardingOs.java | 154 public String strerror(int errno) { return os.strerror(errno); } argument
|
H A D | Os.java | 147 public String strerror(int errno); argument
|
H A D | Posix.java | 228 public native String strerror(int errno); argument
|
/libcore/luni/src/main/java/java/io/ |
H A D | FileInputStream.java | 191 if (errnoException.errno == ESPIPE) {
|
H A D | File.java | 901 if (errnoException.errno == ENOENT) { 905 } else if (errnoException.errno == EEXIST) { 937 if (errnoException.errno == EEXIST) {
|
/libcore/luni/src/main/java/java/nio/ |
H A D | FileChannelImpl.java | 247 if (S_ISREG(Libcore.os.fstat(fd).st_mode) || ftruncateException.errno != EINVAL) { 315 if (errnoException.errno == EAGAIN) { 435 if (errnoException.errno != ENOSYS && errnoException.errno != EINVAL) {
|
H A D | ServerSocketChannelImpl.java | 94 if (((ErrnoException) cause).errno == EAGAIN) {
|
H A D | SelectorImpl.java | 186 if (errnoException.errno != EINTR) {
|
H A D | SocketChannelImpl.java | 252 return ((ErrnoException) cause).errno == EINPROGRESS;
|
/libcore/luni/src/main/java/java/net/ |
H A D | InetAddress.java | 450 if (((ErrnoException) gaiException.getCause()).errno == EACCES) { 766 reached = (((ErrnoException) e.getCause()).errno == ECONNREFUSED);
|
H A D | NetworkInterface.java | 205 if (errnoException.errno != EADDRNOTAVAIL) {
|
H A D | PlainSocketImpl.java | 98 if (errnoException.errno == EAGAIN) {
|
/libcore/luni/src/main/java/java/lang/ |
H A D | ProcessManager.java | 102 if (errnoException.errno == ECHILD) { 103 // Expected errno: there are no children to wait for.
|