/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_close/ |
H A D | 3-2.c | 28 if (errno != EBADF) { 29 printf("errno != EBADF on invalid descriptor\n");
|
H A D | 3-3.c | 32 if (errno != EBADF) { 33 printf("errno != EBADF on invalid descriptor\n");
|
/external/ltp/testcases/kernel/syscalls/fadvise/ |
H A D | 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/ |
H A D | pipe03.c | 40 if (TEST_RETURN == -1 && errno == EBADF) { 49 if (TEST_RETURN == -1 && errno == EBADF) {
|
/external/bison/lib/ |
H A D | close-stream.c | 65 fclose failed with EBADF. That can happen when a program like cp 70 if (prev_fail || (fclose_fail && (some_pending || errno != EBADF)))
|
H A D | dup2.c | 55 errno = EBADF; 65 errno = EBADF; 75 errno = EBADF; 96 /* On Linux kernels 2.6.26-2.6.29, dup2 (fd, fd) returns -EBADF. 107 errno = EBADF; 154 errno = EBADF;
|
H A D | cloexec.c | 62 errno = EBADF; 66 /* errno is EBADF here. */
|
H A D | close.c | 42 errno = EBADF;
|
H A D | spawn_faction_addclose.c | 44 return EBADF;
|
/external/syslinux/com32/lib/sys/ |
H A D | isatty.c | 47 errno = EBADF;
|
H A D | screensize.c | 10 errno = EBADF;
|
H A D | read.c | 46 errno = EBADF;
|
H A D | write.c | 46 errno = EBADF;
|
/external/valgrind/memcheck/tests/x86-solaris/ |
H A D | scalar.c | 16 SY(SYS_openat64, x0 - 1, x0, x0); FAILx(EBADF); 23 SY(SYS_openat64, x0 - 1, x0, x0 | O_CREAT, x0); FAILx(EBADF); 60 SY(SYS_fstatat64, x0 - 1, x0 + 1, x0, x0); FAILx(EBADF); 68 SY(SYS_llseek, x0 - 1, x0, x0); FAILx(EBADF); 93 SY(SYS_fstatvfs64, x0 - 1, x0 + 1); FAILx(EBADF); 105 SY(SYS_pread64, x0 - 1, x0, x0 + 1, x0, x0); FAILx(EBADF); 109 SY(SYS_pwrite64, x0 - 1, x0, x0 + 1, x0, x0); FAILx(EBADF);
|
/external/ltp/testcases/kernel/syscalls/lseek/ |
H A D | lseek02.c | 159 if (TEST_ERRNO == EBADF) 167 "lseek(-1, 1, SEEK_SET) Failed, errno=%d : %s, expected %d(EBADF)", 169 strerror(TEST_ERRNO), EBADF);
|
/external/kernel-headers/original/uapi/asm-generic/ |
H A D | errno-base.h | 12 #define EBADF 9 /* Bad file number */ macro
|
/external/ltp/testcases/kernel/syscalls/dup2/ |
H A D | 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, NUL [all...] |
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/ |
H A D | 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/ |
H A D | 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));
|
/external/syslinux/dos/ |
H A D | errno.h | 12 #define EBADF 9 /* Bad file number */ macro
|
/external/ltp/testcases/kernel/syscalls/sendfile/ |
H A D | sendfile03.c | 29 * 1. Call sendfile(2) with out_fd = -1, and expect EBADF to be returned. 30 * 2. Call sendfile(2) with in_fd = -1, and expect EBADF to be returned. 31 * 3. Call sendfile(2) with in_fd = out_fd = -1, and expect EBADF. 81 "Test for EBADF, in_fd = -1", NULL, 8, -1, NULL, 0, EBADF}, { 82 "Test for EBADF, out_fd = -1", NULL, -1, 7, NULL, 0, EBADF}, { 83 "Test for EBADF, in_fd = out_fd = -1", NULL, -1, -1, NULL, 84 0, EBADF}
|
/external/vulkan-validation-layers/loader/ |
H A D | dirent_on_windows.c | 78 if (result == -1) /* map all errors to EBADF */ 80 errno = EBADF; 95 errno = EBADF; 107 errno = EBADF;
|
/external/bsdiff/ |
H A D | file.cc | 40 errno = EBADF; 52 errno = EBADF; 64 errno = EBADF; 84 errno = EBADF;
|
/external/ltp/testcases/kernel/syscalls/close/ |
H A D | close02.c | 25 * Check that an invalid file descriptor returns EBADF 34 * if the errno == EBADF 86 if (TEST_ERRNO != EBADF) { 88 "to EBADF on an invalid fd, got %d", 91 tst_resm(TPASS, "call returned EBADF");
|
/external/ltp/testcases/kernel/syscalls/fchdir/ |
H A D | fchdir02.c | 34 * issue a PASS message if we get EBADF - errno 9 85 if (TEST_ERRNO == EBADF) 86 tst_resm(TPASS, "failed as expected with EBADF");
|