/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
H A D | DatagramChannelTest.java | 2542 if (OsConstants.ENOTCONN != expected.errno) {
|
/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 | Os.java | 511 public static String strerror(int errno) { return Libcore.os.strerror(errno); } argument
|
H A D | OsConstants.java | 643 * Returns the string name of an errno value. 644 * For example, "EACCES". See {@link Os#strerror} for human-readable errno descriptions. 646 public static String errnoName(int errno) { argument 647 if (errno == E2BIG) { 650 if (errno == EACCES) { 653 if (errno == EADDRINUSE) { 656 if (errno == EADDRNOTAVAIL) { 659 if (errno == EAFNOSUPPORT) { 662 if (errno == EAGAIN) { 665 if (errno [all...] |
/libcore/luni/src/main/java/libcore/io/ |
H A D | ForwardingOs.java | 165 public String strerror(int errno) { return os.strerror(errno); } argument
|
H A D | IoBridge.java | 72 if (errnoException.errno == ENOTTY) { 160 if (errnoException.errno != EINPROGRESS) { 234 if (cause.errno == ETIMEDOUT) { 477 if (errnoException.errno == EAGAIN) { 535 if (errnoException.errno == ECONNRESET || errnoException.errno == ECONNREFUSED) { 539 if (errnoException.errno == EAGAIN) { 588 if (errnoException.errno == EAGAIN) { 594 if (isConnected && errnoException.errno == ECONNREFUSED) { 596 } else if (errnoException.errno [all...] |
H A D | Os.java | 158 public String strerror(int errno); argument
|
H A D | Posix.java | 242 public native String strerror(int errno); argument
|
/libcore/luni/src/main/native/ |
H A D | NetFd.h | 63 if (fd.isClosed() || errno != EINTR) { \
|
H A D | Portability.h | 46 } while (_rc == -1 && errno == EINTR); \
|
H A D | android_system_OsConstants.cpp | 23 #include <errno.h>
|
H A D | canonicalize_path.cpp | 33 #include <errno.h> 51 errno = EINVAL; 94 errno = ELOOP;
|
H A D | libcore_icu_ICU.cpp | 54 #include <errno.h> 825 ALOGE("Couldn't " s " '%s': %s", path.c_str(), strerror(errno)); \
|
H A D | libcore_io_Memory.cpp | 25 #include <errno.h>
|
H A D | libcore_io_Posix.cpp | 35 #include <errno.h> 118 if (_rc == -1 && errno == EAFNOSUPPORT && _salen && isIPv4MappedAddress(_sa)) { \ 151 _syscallErrno = errno; \ 166 /* If the syscall failed, re-set errno: throwing an exception might have modified it. */ \ 167 errno = _syscallErrno; \ 190 _syscallErrno = errno; \ 205 /* If the syscall failed, re-set errno: throwing an exception might have modified it. */ \ 206 errno = _syscallErrno; \ 238 int error = errno; 252 if (errno ! [all...] |
/libcore/luni/src/test/java/libcore/io/ |
H A D | OsTest.java | 377 assertEquals("Expected EAFNOSUPPORT binding IPv4 socket to ::", EAFNOSUPPORT, expected.errno); 458 assertEquals(OsConstants.ENOENT, e.errno); 477 if (OsConstants.ENOTCONN != expected.errno) { 513 assertEquals(OsConstants.ENODATA, e.errno); 524 assertEquals(OsConstants.EEXIST, e.errno); 536 assertEquals(OsConstants.ENODATA, e.errno);
|
/libcore/luni/src/test/java/libcore/java/io/ |
H A D | FileInputStreamTest.java | 258 if (e.errno != OsConstants.ENOENT) {
|
/libcore/luni/src/test/native/ |
H A D | libcore_java_io_FileTest.cpp | 35 jniThrowIOException(env, errno); 43 jniThrowIOException(env, errno);
|
H A D | libcore_java_lang_ThreadTest.cpp | 69 exception_message->append(strerror(errno));
|
/libcore/ojluni/src/main/java/java/net/ |
H A D | Inet6AddressImpl.java | 118 if (((ErrnoException) gaiException.getCause()).errno == EACCES) {
|
/libcore/ojluni/src/main/native/ |
H A D | DatagramChannelImpl.c | 36 #include <errno.h> 120 if (rv < 0 && errno == EADDRNOTAVAIL) 121 rv = errno = 0; 127 handleSocketError(env, errno); 154 if (errno == EWOULDBLOCK) { 157 if (errno == EINTR) { 160 if (errno == ECONNREFUSED) { 169 return handleSocketError(env, errno); 246 if (errno == EAGAIN) { 249 if (errno [all...] |
H A D | DatagramDispatcher.c | 57 if (result < 0 && errno == ECONNREFUSED) { 90 if (result < 0 && errno == ECONNREFUSED) { 104 if (result < 0 && errno == ECONNREFUSED) { 135 if (result < 0 && errno == ECONNREFUSED) {
|
H A D | FileChannelImpl.c | 69 if (errno == EINTR) 106 if (errno == ENOMEM) { 166 if (errno == EAGAIN) 168 if ((errno == EINVAL) && ((ssize_t)count >= 0)) 170 if (errno == EINTR) { 195 if (errno == EAGAIN) 197 if (errno == EOPNOTSUPP) 199 if ((errno == EINVAL) && ((ssize_t)count >= 0)) 201 if (errno == EINTR) 221 if (errno [all...] |
H A D | FileDispatcherImpl.c | 122 if (errno == EINTR) 191 if ((cmd == F_SETLK64) && (errno == EAGAIN || errno == EACCES)) 193 if (errno == EINTR)
|
H A D | FileInputStream.c | 80 if (errno == ESPIPE) { 108 if (errno == ENOTTY) {
|