Home
last modified time | relevance | path

Searched refs:EBADF (Results 1 – 25 of 335) sorted by relevance

12345678910>>...14

/third_party/ltp/testcases/kernel/syscalls/dup2/
Ddup201.c86 {&badfd, &goodfd, EBADF, NULL},
88 {&maxfd, &goodfd, EBADF, NULL},
90 {&mystdout, &badfd, EBADF, NULL},
92 {&mystdout, &maxfd, EBADF, NULL},
/third_party/NuttX/fs/vfs/
Dfs_read.c82 int ret = -EBADF; in file_read()
194 set_errno(EBADF); in read()
207 set_errno(EBADF); in read()
225 set_errno(EBADF); in read()
Dfs_write.c105 err = EBADF; in file_write()
215 set_errno(EBADF); in write()
230 set_errno(EBADF); in write()
244 set_errno(EBADF); in write()
Dfs_fcntl.c92 err = EBADF; in file_vfcntl()
201 err = EBADF; /* Only valid on socket descriptors */ in file_vfcntl()
324 ret = EBADF; in fcntl()
384 reval = EBADF; in fcntl64()
Dfs_dup2.c82 set_errno(EBADF); /* When net_dupsd2 is still closed,errno should set */ in dup2()
89 set_errno(EBADF); in dup2()
Dfs_dup.c97 set_errno(EBADF); /* When net_dupsd is still closed,errno should set */ in dup()
106 set_errno(EBADF); in dup()
Dfs_truncate64.c147 set_errno(EBADF); in ftruncate64()
165 set_errno(EBADF); in ftruncate64()
Dfs_truncate.c148 set_errno(EBADF); in ftruncate()
167 set_errno(EBADF); in ftruncate()
Dfs_ioctl.c121 err = EBADF; in fs_ioctl()
134 err = EBADF; in fs_ioctl()
/third_party/ltp/testcases/kernel/syscalls/fadvise/
Dposix_fadvise02.c56 if (TST_RET == EBADF) { in verify_fadvise()
64 tst_strerrno(TST_RET), EBADF); in verify_fadvise()
74 if (errno == EBADF) {} /* Good. Do nothing. */ in setup()
/third_party/mingw-w64/mingw-w64-crt/stdio/
Dftruncate64.c126 _set_errno(EBADF); in xp_getfilepath()
145 _set_errno(EBADF); in checkfreespace()
167 _set_errno(EBADF); in checkfreespace()
174 _set_errno(EBADF); in checkfreespace()
188 _set_errno(EBADF); in checkfreespace()
202 _set_errno(EBADF); in checkfreespace()
261 _set_errno(EBADF); in ftruncate64()
Dfseeko64.c56 { ERROR_ACCESS_DENIED, EACCES }, { ERROR_INVALID_HANDLE, EBADF },
68 { ERROR_DISK_FULL, ENOSPC }, { ERROR_INVALID_TARGET_HANDLE, EBADF },
70 { ERROR_CHILD_NOT_COMPLETE, ECHILD }, { ERROR_DIRECT_ACCESS_HANDLE, EBADF },
/third_party/ltp/testcases/kernel/syscalls/lseek/
Dlseek02.c35 {&bad_fd, SEEK_SET, EBADF},
36 {&bad_fd, SEEK_CUR, EBADF},
37 {&bad_fd, SEEK_END, EBADF},
/third_party/ltp/testcases/kernel/syscalls/splice/
Dsplice03.c56 { &badfd, NULL, &pipes[1], NULL, EBADF },
57 { &pipes[0], NULL, &badfd, NULL, EBADF },
58 { &wrfd, NULL, &pipes[1], NULL, EBADF },
/third_party/ltp/testcases/kernel/syscalls/io_submit/
Dio_submit01.c59 {&ctx, 1, inv_fd_iocbs, -EBADF, "invalid fd"},
60 {&ctx, 1, rdonly_fd_iocbs, -EBADF, "readonly fd for write"},
61 {&ctx, 1, wronly_fd_iocbs, -EBADF, "writeonly fd for read"},
/third_party/ltp/testcases/kernel/syscalls/sendfile/
Dsendfile03.c81 "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}, {
84 0, EBADF}
/third_party/ltp/testcases/kernel/syscalls/pipe/
Dpipe03.c28 if (TST_RET == -1 && errno == EBADF) { in verify_pipe()
37 if (TST_RET == -1 && errno == EBADF) { in verify_pipe()
/third_party/lwip/src/core/distributed_net/
Ddistributed_net_core.c41 CHECK_PARA(SOCKET_TO_INDEX(sock) >= 0 && SOCKET_TO_INDEX(sock) < NUM_SOCKETS, EBADF); in distributed_net_connect()
78 CHECK_PARA(SOCKET_TO_INDEX(sock) >= 0 && SOCKET_TO_INDEX(sock) < NUM_SOCKETS, EBADF); in distributed_net_close()
98 CHECK_PARA(SOCKET_TO_INDEX(sock) >= 0 && SOCKET_TO_INDEX(sock) < NUM_SOCKETS, EBADF); in distributed_net_sendto()
139 CHECK_PARA(SOCKET_TO_INDEX(sock) >= 0 && SOCKET_TO_INDEX(sock) < NUM_SOCKETS, EBADF); in distributed_net_sendmsg()
185 CHECK_PARA(SOCKET_TO_INDEX(sock) >= 0 && SOCKET_TO_INDEX(sock) < NUM_SOCKETS, EBADF); in distributed_net_recvfrom()
/third_party/ltp/testcases/kernel/syscalls/fsync/
Dfsync03.c36 {&pipe_fd[0], EBADF},
38 {&bad_fd, EBADF},
/third_party/ltp/testcases/kernel/syscalls/mq_timedreceive/
Dmq_timedreceive01.c75 .err = EBADF,
81 .err = EBADF,
87 .err = EBADF,
/third_party/ltp/testcases/kernel/syscalls/vmsplice/
Dvmsplice02.c48 { &notvalidfd, &ivc, 1, EBADF },
49 { &filefd, &ivc, 1, EBADF },
/third_party/ltp/testcases/kernel/syscalls/mq_timedsend/
Dmq_timedsend01.c68 .err = EBADF,
74 .err = EBADF,
80 .err = EBADF,
/third_party/ltp/testcases/kernel/syscalls/pwritev/
Dpwritev02.c68 {&fd3, wr_iovec2, 1, 0, EBADF},
69 {&fd2, wr_iovec2, 1, 0, EBADF},
/third_party/ltp/testcases/kernel/syscalls/readahead/
Dreadahead01.c59 check_errno(EBADF); in test_bad_fd()
69 check_errno(EBADF); in test_bad_fd()
/third_party/ltp/testcases/kernel/syscalls/mq_notify/
Dmq_notify01.c60 .err = EBADF,
66 .err = EBADF,
72 .err = EBADF,

12345678910>>...14