Home
last modified time | relevance | path

Searched refs:errno (Results 1 – 25 of 27) sorted by relevance

12

/libcore/luni/src/main/java/android/system/
DOsConstants.java638 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 …]
DErrnoException.java34 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()
DOs.java505 public static String strerror(int errno) { return Libcore.os.strerror(errno); } in strerror() argument
/libcore/luni/src/main/native/
Djava_io_File.cpp50 jniThrowIOException(env, errno); in File_canonicalizePath()
94 errno = 0; in next()
99 if (errno != 0) { in next()
Djava_lang_ProcessManager.cpp81 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()
Dcanonicalize_path.cpp51 errno = EINVAL; in canonicalize_path()
94 errno = ELOOP; in canonicalize_path()
DNetFd.h63 if (fd.isClosed() || errno != EINTR) { \
DPortability.h100 } while (_rc == -1 && errno == EINTR); \
DAsynchronousCloseMonitor.cpp61 ALOGE("setting blocked thread signal handler failed: %s", strerror(errno)); in init()
Djava_util_zip_Inflater.cpp73 jniThrowIOException(env, errno); in Inflater_setFileInputImpl()
85 jniThrowIOException(env, errno); in Inflater_setFileInputImpl()
Dlibcore_io_Posix.cpp116 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/
DIoBridge.java70 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()
DForwardingOs.java164 public String strerror(int errno) { return os.strerror(errno); } in strerror() argument
DOs.java157 public String strerror(int errno); in strerror() argument
/libcore/support/src/test/java/tests/io/
DMockOs.java113 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/
DFileChannelImpl.java247 … 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()
DServerSocketChannelImpl.java94 if (((ErrnoException) cause).errno == EAGAIN) { in shouldThrowSocketTimeoutExceptionFromAccept()
DSocketChannelImpl.java252 return ((ErrnoException) cause).errno == EINPROGRESS; in isEINPROGRESS()
/libcore/luni/src/main/java/java/io/
DFileInputStream.java191 if (errnoException.errno == ESPIPE) { in skip()
DFile.java899 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/
DOsTest.java370 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/
DInetAddress.java463 if (((ErrnoException) gaiException.getCause()).errno == EACCES) { in lookupHostByName()
779 reached = (((ErrnoException) e.getCause()).errno == ECONNREFUSED); in isReachable()
DNetworkInterface.java205 if (errnoException.errno != EADDRNOTAVAIL) { in collectIpv4Address()
DPlainSocketImpl.java98 if (errnoException.errno == EAGAIN) { in accept()
/libcore/luni/src/main/java/java/lang/
DProcessManager.java102 if (errnoException.errno == ECHILD) { in watchChildren()

12