Searched refs:EBADF (Results 1 - 25 of 251) sorted by relevance

1234567891011

/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_close/
H A D3-2.c28 if (errno != EBADF) {
29 printf("errno != EBADF on invalid descriptor\n");
H A D3-3.c32 if (errno != EBADF) {
33 printf("errno != EBADF on invalid descriptor\n");
/external/ltp/testcases/kernel/syscalls/fadvise/
H A Dposix_fadvise02.c69 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 Dpipe03.c40 if (TEST_RETURN == -1 && errno == EBADF) {
49 if (TEST_RETURN == -1 && errno == EBADF) {
/external/bison/lib/
H A Dclose-stream.c65 fclose failed with EBADF. That can happen when a program like cp
70 if (prev_fail || (fclose_fail && (some_pending || errno != EBADF)))
H A Ddup2.c55 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 Dcloexec.c62 errno = EBADF;
66 /* errno is EBADF here. */
H A Dclose.c42 errno = EBADF;
H A Dspawn_faction_addclose.c44 return EBADF;
/external/syslinux/com32/lib/sys/
H A Disatty.c47 errno = EBADF;
H A Dscreensize.c10 errno = EBADF;
H A Dread.c46 errno = EBADF;
H A Dwrite.c46 errno = EBADF;
/external/valgrind/memcheck/tests/x86-solaris/
H A Dscalar.c16 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 Dlseek02.c159 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 Derrno-base.h12 #define EBADF 9 /* Bad file number */ macro
/external/ltp/testcases/kernel/syscalls/dup2/
H A Ddup201.c25 * 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 D10-1.c12 * [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 D5-1.c8 * [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 Derrno.h12 #define EBADF 9 /* Bad file number */ macro
/external/ltp/testcases/kernel/syscalls/sendfile/
H A Dsendfile03.c29 * 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 Ddirent_on_windows.c78 if (result == -1) /* map all errors to EBADF */
80 errno = EBADF;
95 errno = EBADF;
107 errno = EBADF;
/external/bsdiff/
H A Dfile.cc40 errno = EBADF;
52 errno = EBADF;
64 errno = EBADF;
84 errno = EBADF;
/external/ltp/testcases/kernel/syscalls/close/
H A Dclose02.c25 * 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 Dfchdir02.c34 * issue a PASS message if we get EBADF - errno 9
85 if (TEST_ERRNO == EBADF)
86 tst_resm(TPASS, "failed as expected with EBADF");

Completed in 558 milliseconds

1234567891011