Searched refs:errno (Results 1 - 25 of 28) sorted by relevance

12

/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 DOsConstants.java601 * 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 DOs.java464 public static String strerror(int errno) { return Libcore.os.strerror(errno); } argument
/libcore/luni/src/main/native/
H A Dcanonicalize_path.cpp33 #include <errno.h>
51 errno = EINVAL;
94 errno = ELOOP;
H A DNetFd.h63 if (fd.isClosed() || errno != EINTR) { \
H A Djava_io_File.cpp31 #include <errno.h>
50 jniThrowIOException(env, errno);
94 errno = 0;
99 if (errno != 0) {
H A DAsynchronousCloseMonitor.cpp22 #include <errno.h>
61 ALOGE("setting blocked thread signal handler failed: %s", strerror(errno));
H A Djava_lang_ProcessManager.cpp20 #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 Djava_util_zip_Inflater.cpp25 #include <errno.h>
73 jniThrowIOException(env, errno);
85 jniThrowIOException(env, errno);
H A Dlibcore_io_Posix.cpp37 #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 DMockOs.java113 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 DIoBridge.java70 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 DForwardingOs.java154 public String strerror(int errno) { return os.strerror(errno); } argument
H A DOs.java147 public String strerror(int errno); argument
H A DPosix.java228 public native String strerror(int errno); argument
/libcore/luni/src/main/java/java/io/
H A DFileInputStream.java191 if (errnoException.errno == ESPIPE) {
H A DFile.java901 if (errnoException.errno == ENOENT) {
905 } else if (errnoException.errno == EEXIST) {
937 if (errnoException.errno == EEXIST) {
/libcore/luni/src/main/java/java/nio/
H A DFileChannelImpl.java247 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 DServerSocketChannelImpl.java94 if (((ErrnoException) cause).errno == EAGAIN) {
H A DSelectorImpl.java186 if (errnoException.errno != EINTR) {
H A DSocketChannelImpl.java252 return ((ErrnoException) cause).errno == EINPROGRESS;
/libcore/luni/src/main/java/java/net/
H A DInetAddress.java450 if (((ErrnoException) gaiException.getCause()).errno == EACCES) {
766 reached = (((ErrnoException) e.getCause()).errno == ECONNREFUSED);
H A DNetworkInterface.java205 if (errnoException.errno != EADDRNOTAVAIL) {
H A DPlainSocketImpl.java98 if (errnoException.errno == EAGAIN) {
/libcore/luni/src/main/java/java/lang/
H A DProcessManager.java102 if (errnoException.errno == ECHILD) {
103 // Expected errno: there are no children to wait for.

Completed in 5108 milliseconds

12