/freebsd/tests/sys/file/ |
H A D | path_test.c | 119 ATF_REQUIRE_ERRNO(EBADF, fchmod(pathfd, 0666) == -1); in ATF_TC_BODY() 120 ATF_REQUIRE_ERRNO(EBADF, fchown(pathfd, getuid(), getgid()) == -1); in ATF_TC_BODY() 121 ATF_REQUIRE_ERRNO(EBADF, fchflags(pathfd, UF_NODUMP) == -1); in ATF_TC_BODY() 123 ATF_REQUIRE_ERRNO(EBADF, futimes(pathfd, tv) == -1); in ATF_TC_BODY() 125 ATF_REQUIRE_ERRNO(EBADF, futimens(pathfd, ts) == -1); in ATF_TC_BODY() 154 ATF_REQUIRE_ERRNO(EBADF, aio_read(&aio) == -1); in ATF_TC_BODY() 155 ATF_REQUIRE_ERRNO(EBADF, aio_write(&aio) == -1); in ATF_TC_BODY() 156 ATF_REQUIRE_ERRNO(EBADF, aio_fsync(O_SYNC, &aio) == -1); in ATF_TC_BODY() 157 ATF_REQUIRE_ERRNO(EBADF, aio_fsync(O_DSYNC, &aio) == -1); in ATF_TC_BODY() 316 ATF_REQUIRE_ERRNO(EBADF, error == -1); in ATF_TC_BODY() [all …]
|
/freebsd/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_dup.c | 148 ATF_REQUIRE_ERRNO(EBADF, dup2(-1, -1) == -1); in ATF_TC_BODY() 151 ATF_REQUIRE_ERRNO(EBADF, dup2(fd, -1) == -1); in ATF_TC_BODY() 154 ATF_REQUIRE_ERRNO(EBADF, dup2(-1, fd) == -1); in ATF_TC_BODY() 178 ATF_REQUIRE_ERRNO(EBADF, dup2(STDERR_FILENO, res.rlim_cur + 1) == -1); in ATF_TC_BODY() 227 ATF_REQUIRE_ERRNO(EBADF, dup3(fd, -1, O_CLOEXEC) == -1); in ATF_TC_BODY() 229 ATF_REQUIRE_ERRNO(EBADF, dup3(-1, -1, O_CLOEXEC) == -1); in ATF_TC_BODY() 233 ATF_REQUIRE_ERRNO(EBADF, dup3(fd, -1, O_CLOEXEC) == -1); in ATF_TC_BODY() 236 ATF_REQUIRE_ERRNO(EBADF, dup3(-1, fd, O_CLOEXEC) == -1); in ATF_TC_BODY() 258 ATF_REQUIRE_ERRNO(EBADF, dup3(STDERR_FILENO, in ATF_TC_BODY() 288 ATF_REQUIRE_ERRNO(EBADF, dup(-1) == -1); in ATF_TC_BODY()
|
H A D | t_posix_fallocate.c | 51 if (rc != EBADF) in ATF_TC_BODY() 53 strerror(saved), strerror(EBADF)); in ATF_TC_BODY()
|
/freebsd/contrib/ntp/include/ |
H A D | timepps-SCO.h | 230 errno = EBADF; in time_pps_create() 255 errno = EBADF; in time_pps_destroy() 278 errno = EBADF; in time_pps_setparams() 340 errno = EBADF; in time_pps_getparams() 368 errno = EBADF; in time_pps_getcap() 400 errno = EBADF; in time_pps_fetch() 492 errno = EBADF; in time_pps_kcbind()
|
H A D | timepps-SunOS.h | 231 errno = EBADF; in time_pps_create() 256 errno = EBADF; in time_pps_destroy() 279 errno = EBADF; in time_pps_setparams() 341 errno = EBADF; in time_pps_getparams() 369 errno = EBADF; in time_pps_getcap() 404 errno = EBADF; in time_pps_fetch() 493 errno = EBADF; in time_pps_kcbind()
|
H A D | timepps-Solaris.h | 289 errno = EBADF; in time_pps_destroy() 314 errno = EBADF; in time_pps_setparams() 406 errno = EBADF; in time_pps_getparams() 435 errno = EBADF; in time_pps_getcap() 472 errno = EBADF; in time_pps_fetch() 558 errno = EBADF; in time_pps_kcbind()
|
/freebsd/sys/dev/clk/ |
H A D | clk_link.c | 73 return (EBADF); in clknode_link_recalc() 83 return (EBADF); in clknode_link_set_freq() 92 return (EBADF); in clknode_link_set_mux() 101 return (EBADF); in clknode_link_set_gate()
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/ |
H A D | idmap_util.c | 303 int fd = -EBADF; in write_idmap() 524 fd = -EBADF; in userns_fd_from_idmap() 546 int tree_fd = -EBADF, path_fd = -EBADF; in is_idmap_supported() 549 .userns_fd = -EBADF, in is_idmap_supported() 574 ret = openat(-EBADF, path, O_DIRECTORY | O_CLOEXEC); in is_idmap_supported() 653 int tree_fd = -EBADF, source_fd = -EBADF; in do_idmap_mount() 656 .userns_fd = -EBADF, in do_idmap_mount() 663 ret = openat(-EBADF, source, O_DIRECTORY | O_CLOEXEC); in do_idmap_mount() 693 ret = sys_move_mount(tree_fd, "", -EBADF, target == NULL ? in do_idmap_mount()
|
/freebsd/lib/libc/stdio/ |
H A D | fclose.c | 92 errno = EBADF; in fdclose() 103 errno = EBADF; in fdclose() 125 errno = EBADF; in fclose()
|
/freebsd/sys/contrib/openzfs/cmd/zed/ |
H A D | zed_file.c | 37 errno = EBADF; in zed_file_lock() 64 errno = EBADF; in zed_file_unlock() 90 errno = EBADF; in zed_file_is_locked()
|
/freebsd/tools/regression/doat/ |
H A D | doat.c | 199 tests[0].tests[0].result = EBADF; in setup() 204 tests[0].tests[1].result = EBADF; in setup() 239 tests[1].tests[0].result = EBADF; in setup() 274 tests[2].tests[0].result = EBADF; in setup() 315 tests[3].tests[0].result = EBADF; in setup() 350 tests[4].tests[0].result = EBADF; in setup() 371 tests[5].tests[0].result = EBADF; in setup() 377 tests[5].tests[1].result = EBADF; in setup() 418 tests[6].tests[0].result = EBADF; in setup() 435 tests[7].tests[0].result = EBADF; in setup() [all …]
|
/freebsd/tools/test/stress2/testcases/openat/ |
H A D | doat.c | 196 tests[0].tests[0].result = EBADF; in setup() 201 tests[0].tests[1].result = EBADF; in setup() 236 tests[1].tests[0].result = EBADF; in setup() 271 tests[2].tests[0].result = EBADF; in setup() 312 tests[3].tests[0].result = EBADF; in setup() 347 tests[4].tests[0].result = EBADF; in setup() 368 tests[5].tests[0].result = EBADF; in setup() 374 tests[5].tests[1].result = EBADF; in setup() 415 tests[6].tests[0].result = EBADF; in setup() 432 tests[7].tests[0].result = EBADF; in setup() [all …]
|
/freebsd/contrib/libfido2/fuzz/ |
H A D | preload-snoop.c | 145 errno = EBADF; in close() 172 errno = EBADF; in read() 181 errno = EBADF; in read() 205 errno = EBADF; in write()
|
/freebsd/contrib/netbsd-tests/lib/librumpclient/ |
H A D | t_fd.c | 83 ATF_REQUIRE_ERRNO(EBADF, fstat(0, &sb) == -1); in ATF_TC_BODY() 84 ATF_REQUIRE_ERRNO(EBADF, fstat(1, &sb) == -1); in ATF_TC_BODY() 85 ATF_REQUIRE_ERRNO(EBADF, fstat(2, &sb) == -1); in ATF_TC_BODY()
|
/freebsd/contrib/netbsd-tests/lib/libc/stdio/ |
H A D | t_fflush.c | 70 ATF_REQUIRE_ERRNO(EBADF, fflush(f) == EOF); in ATF_TC_BODY() 75 ATF_REQUIRE_ERRNO(EBADF, fflush(f) == EOF); in ATF_TC_BODY() 157 ATF_REQUIRE_ERRNO(EBADF, fpurge(f) == EOF); in ATF_TC_BODY()
|
/freebsd/contrib/netbsd-tests/lib/libc/gen/ |
H A D | t_ttyname.c | 60 ATF_REQUIRE(errno == EBADF); in ATF_TC_BODY() 65 ATF_REQUIRE(errno == EBADF); in ATF_TC_BODY() 112 ATF_REQUIRE(rv == EBADF); in ATF_TC_BODY()
|
/freebsd/lib/libc/iconv/ |
H A D | bsd_iconv.c | 97 errno = EBADF; in __bsd_iconv_close() 113 errno = EBADF; in __bsd_iconv() 135 errno = EBADF; in __bsd___iconv() 263 errno = EBADF; in __bsd_iconvctl()
|
/freebsd/lib/libc/gen/ |
H A D | posix_spawn.c | 171 if (errno == EBADF) in process_file_actions_entry() 172 return (EBADF); in process_file_actions_entry() 436 return (EBADF); in posix_spawn_file_actions_addopen() 466 return (EBADF); in posix_spawn_file_actions_adddup2() 489 return (EBADF); in posix_spawn_file_actions_addclose() 534 return (EBADF); in posix_spawn_file_actions_addfchdir_np() 555 return (EBADF); in posix_spawn_file_actions_addclosefrom_np()
|
/freebsd/stand/libsa/ |
H A D | close.c | 71 errno = EBADF; in close() 87 err1 = EBADF; in close()
|
/freebsd/tools/test/stress2/misc/ |
H A D | fdatasync.sh | 149 if (errno != EBADF && errno != ENOSPC && 154 if (errno != EBADF) 157 if (errno != EBADF)
|
H A D | fdatasync2.sh | 147 if (errno != EBADF && errno != ENOSPC && 152 if (errno != EBADF) 155 if (errno != EBADF)
|
H A D | tmpfs16.sh | 154 if (errno != EBADF && errno != ENOSPC) 157 if (errno != EBADF) 160 if (errno != EBADF)
|
H A D | ftruncate2.sh | 158 if (errno != EBADF && errno != ENOSPC && errno != E2BIG && 162 if (errno != EBADF) 165 if (errno != EBADF)
|
/freebsd/sys/dev/mlx5/mlx5_core/ |
H A D | mlx5_fwdump.c | 417 error = EBADF; in mlx5_ctl_ioctl() 429 error = EBADF; in mlx5_ctl_ioctl() 439 error = EBADF; in mlx5_ctl_ioctl() 450 error = EBADF; in mlx5_ctl_ioctl() 480 error = EBADF; in mlx5_ctl_ioctl() 491 error = EBADF; in mlx5_ctl_ioctl()
|
/freebsd/sys/kern/ |
H A D | sys_capability.c | 242 return (EBADF); in kern_cap_rights_limit() 327 return (EBADF); in sys___cap_rights_get() 435 error = EBADF; in kern_cap_ioctls_limit() 511 error = EBADF; in sys_cap_ioctls_get() 596 return (EBADF); in sys_cap_fcntls_limit() 629 return (EBADF); in sys_cap_fcntls_get()
|