Searched refs:errno (Results 1 - 25 of 50) sorted by path

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
H A DDatagramChannelTest.java2542 if (OsConstants.ENOTCONN != expected.errno) {
/libcore/luni/src/main/java/android/system/
H A DErrnoException.java25 * 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 DOs.java511 public static String strerror(int errno) { return Libcore.os.strerror(errno); } argument
H A DOsConstants.java643 * 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 DForwardingOs.java165 public String strerror(int errno) { return os.strerror(errno); } argument
H A DIoBridge.java72 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 DOs.java158 public String strerror(int errno); argument
H A DPosix.java242 public native String strerror(int errno); argument
/libcore/luni/src/main/native/
H A DNetFd.h63 if (fd.isClosed() || errno != EINTR) { \
H A DPortability.h46 } while (_rc == -1 && errno == EINTR); \
H A Dandroid_system_OsConstants.cpp23 #include <errno.h>
H A Dcanonicalize_path.cpp33 #include <errno.h>
51 errno = EINVAL;
94 errno = ELOOP;
H A Dlibcore_icu_ICU.cpp54 #include <errno.h>
825 ALOGE("Couldn't " s " '%s': %s", path.c_str(), strerror(errno)); \
H A Dlibcore_io_Memory.cpp25 #include <errno.h>
H A Dlibcore_io_Posix.cpp35 #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 DOsTest.java377 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 DFileInputStreamTest.java258 if (e.errno != OsConstants.ENOENT) {
/libcore/luni/src/test/native/
H A Dlibcore_java_io_FileTest.cpp35 jniThrowIOException(env, errno);
43 jniThrowIOException(env, errno);
H A Dlibcore_java_lang_ThreadTest.cpp69 exception_message->append(strerror(errno));
/libcore/ojluni/src/main/java/java/net/
H A DInet6AddressImpl.java118 if (((ErrnoException) gaiException.getCause()).errno == EACCES) {
/libcore/ojluni/src/main/native/
H A DDatagramChannelImpl.c36 #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 DDatagramDispatcher.c57 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 DFileChannelImpl.c69 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 DFileDispatcherImpl.c122 if (errno == EINTR)
191 if ((cmd == F_SETLK64) && (errno == EAGAIN || errno == EACCES))
193 if (errno == EINTR)
H A DFileInputStream.c80 if (errno == ESPIPE) {
108 if (errno == ENOTTY) {

Completed in 680 milliseconds

12