/frameworks/base/core/java/android/os/ |
ProxyFileDescriptorCallback.java | 35 * <li>{@link android.system.OsConstants#EBADF} if the file doesn't allow read/write operations 50 throw new ErrnoException("onGetSize", OsConstants.EBADF); 65 throw new ErrnoException("onRead", OsConstants.EBADF); 79 throw new ErrnoException("onWrite", OsConstants.EBADF);
|
/bionic/libc/bionic/ |
nl_types.cpp | 43 errno = EBADF;
|
fchmod.cpp | 43 if (result == 0 || errno != EBADF) { 54 // on O_PATH file descriptors as returning EBADF. 57 errno = EBADF;
|
fgetxattr.cpp | 44 if (result != -1 || errno != EBADF) { 53 errno = EBADF;
|
flistxattr.cpp | 43 if (result != -1 || errno != EBADF) { 52 errno = EBADF;
|
fsetxattr.cpp | 43 if (result == 0 || errno != EBADF) { 52 errno = EBADF;
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_close/ |
3-2.c | 28 if (errno != EBADF) { 29 printf("errno != EBADF on invalid descriptor\n");
|
3-3.c | 32 if (errno != EBADF) { 33 printf("errno != EBADF on invalid descriptor\n");
|
/external/ltp/testcases/kernel/syscalls/fadvise/ |
posix_fadvise02.c | 69 WRONG_FD, 0, 0, POSIX_FADV_NORMAL, EBADF}, { 70 WRONG_FD, 0, 0, POSIX_FADV_SEQUENTIAL, EBADF}, { 71 WRONG_FD, 0, 0, POSIX_FADV_RANDOM, EBADF}, { 72 WRONG_FD, 0, 0, POSIX_FADV_NOREUSE, EBADF}, { 73 WRONG_FD, 0, 0, POSIX_FADV_WILLNEED, EBADF}, { 74 WRONG_FD, 0, 0, POSIX_FADV_DONTNEED, EBADF},}; 157 if (errno == EBADF) ; /* Good. Do nothing. */
|
/external/ltp/testcases/kernel/syscalls/pipe/ |
pipe03.c | 40 if (TEST_RETURN == -1 && errno == EBADF) { 49 if (TEST_RETURN == -1 && errno == EBADF) {
|
/bionic/tests/libs/ |
preinit_syscall_test_helper.cpp | 38 CHECK(g_errno == EBADF);
|
/bionic/tests/ |
nl_types_test.cpp | 30 ASSERT_EQ(EBADF, errno);
|
error_test.cpp | 63 ASSERT_EXIT(error(22, EBADF, "x%c", 'y'), ::testing::ExitedWithCode(22), ": xy: Bad file descriptor"); 71 ASSERT_EXIT(error_at_line(22, EBADF, "a.c", 123, "x%c", 'y'), ::testing::ExitedWithCode(22), ":a.c:123: xy: Bad file descriptor");
|
/external/libchrome/base/files/ |
scoped_file.cc | 35 // https://crbug.com/603354 is caused by EBADF or a network filesystem 43 // close other than EBADF do not indicate failure to actually close the fd. 44 if (ret != 0 && errno != EBADF)
|
/external/syslinux/com32/lib/sys/ |
isatty.c | 47 errno = EBADF;
|
screensize.c | 10 errno = EBADF;
|
read.c | 46 errno = EBADF;
|
/external/valgrind/memcheck/tests/mips32/ |
fadvise64.c | 17 if (x != EBADF)
|
/external/valgrind/memcheck/tests/mips64/ |
fadvise64.c | 17 if (x != EBADF)
|
/external/valgrind/memcheck/tests/x86-solaris/ |
scalar.c | 17 SY(SYS_openat64, x0 - 1, x0, x0); FAILx(EBADF); 24 SY(SYS_openat64, x0 - 1, x0, x0 | O_CREAT, x0); FAILx(EBADF); 61 SY(SYS_fstatat64, x0 - 1, x0 + 1, x0, x0); FAILx(EBADF); 73 SY(SYS_llseek, x0 - 1, x0, x0, x0); FAILx(EBADF); 98 SY(SYS_fstatvfs64, x0 - 1, x0 + 1); FAILx(EBADF); 110 SY(SYS_pread64, x0 - 1, x0, x0 + 1, x0, x0); FAILx(EBADF); 114 SY(SYS_pwrite64, x0 - 1, x0, x0 + 1, x0, x0); FAILx(EBADF);
|
/bionic/libc/kernel/uapi/asm-generic/ |
errno-base.h | 29 #define EBADF 9
|
/external/kernel-headers/original/uapi/asm-generic/ |
errno-base.h | 13 #define EBADF 9 /* Bad file number */
|
/external/ltp/testcases/kernel/syscalls/dup2/ |
dup201.c | 25 * Negative tests for dup2() with bad fd (EBADF) 37 * for EBADF. 88 /* First fd argument is less than 0 - EBADF */ 90 &badfd, &goodfd, EBADF, NULL}, 91 /* First fd argument is getdtablesize() - EBADF */ 93 &maxfd, &goodfd, EBADF, NULL}, 94 /* Second fd argument is less than 0 - EBADF */ 96 &mystdout, &badfd, EBADF, NULL}, 97 /* Second fd argument is getdtablesize() - EBADF */ 99 &mystdout, &maxfd, EBADF, NULL},} [all...] |
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/ |
10-1.c | 12 * [EBADF] The fildes argument is not a valid descriptor. 16 * use -1 as fildes and check return value is -1 and errno is EBADF 46 if (errno != EBADF) { 47 printf(TNAME " errno is not EBADF %s\n", strerror(errno));
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/fsync/ |
5-1.c | 8 * [EBADF] The fildes argument is not a valid descriptor. 31 if (fsync(fd) == -1 && errno == EBADF) { 32 printf("Got EBADF when fd=-1\n"); 36 printf("Test FAILED: Expect EBADF, get: %s\n", strerror(errno));
|