Home
last modified time | relevance | path

Searched refs:F_GETFD (Results 1 - 25 of 129) sorted by relevance

123456

/third_party/ltp/testcases/kernel/syscalls/close_range/
H A Dclose_range02.c54 TST_EXP_FAIL(fcntl(fd, F_GETFD), EBADF, in run()
55 "fcntl(%d, F_GETFD)", fd); in run()
56 TST_EXP_FAIL(fcntl(100, F_GETFD), EBADF); in run()
77 TST_EXP_FD_SILENT(fcntl(fd, F_GETFD), "fcntl(%d, F_GETFD)", fd); in run()
95 TST_EXP_FAIL(fcntl(fd, F_GETFD), EBADF, in run()
96 "fcntl(%d, F_GETFD)", fd); in run()
102 TST_EXP_PASS(fcntl(fd, F_GETFD), "%d is open", fd); in run()
H A Dclose_range01.c73 int present = SAFE_FCNTL(fd[i], F_GETFD) & FD_CLOEXEC; in check_cloexec()
87 if (fcntl(fd[i], F_GETFD) > -1) in check_closed()
/third_party/ltp/testcases/kernel/syscalls/epoll_wait/
H A Depoll_wait05.c110 if (fcntl(sockfd_client, F_GETFD) > 0) in cleanup()
113 if (fcntl(sockfd_server, F_GETFD) > 0) in cleanup()
116 if (fcntl(epfd, F_GETFD) > 0) in cleanup()
/third_party/ltp/testcases/kernel/syscalls/eventfd2/
H A Deventfd2_01.c25 flags = SAFE_FCNTL(fd, F_GETFD); in run()
30 flags = SAFE_FCNTL(fd, F_GETFD); in run()
/third_party/ltp/testcases/kernel/syscalls/inotify_init/
H A Dinotify_init1_01.c28 fd_flags = SAFE_FCNTL(fd, F_GETFD); in run()
34 fd_flags = SAFE_FCNTL(fd, F_GETFD); in run()
/third_party/ltp/testcases/kernel/syscalls/pipe2/
H A Dpipe2_01.c29 {0, F_GETFD, 1, "Test pipe2 with 0 flag"},
30 {O_CLOEXEC, F_GETFD, 1, "Test pipe2 using O_CLOEXEC flag"},
/third_party/musl/libc-test/src/functionalext/supplement/linux/linux_gtest/
H A Dlinux_eventfd_test.cpp26 int flags = fcntl(eventFd, F_GETFD); in HWTEST_F()
43 int flags = fcntl(eventFd, F_GETFD); in HWTEST_F()
/third_party/ltp/testcases/kernel/syscalls/signalfd4/
H A Dsignalfd4_01.c145 coe = fcntl(fd, F_GETFD); in main()
163 coe = fcntl(fd, F_GETFD); in main()
/third_party/ltp/testcases/kernel/syscalls/socketpair/
H A Dsocketpair02.c33 {SOCK_STREAM, 0, F_GETFD, "no close-on-exec"},
34 {SOCK_STREAM | SOCK_CLOEXEC, FD_CLOEXEC, F_GETFD, "close-on-exec"},
/third_party/ltp/testcases/kernel/syscalls/socket/
H A Dsocket02.c30 {SOCK_STREAM, 0, F_GETFD, "no close-on-exec"},
31 {SOCK_STREAM | SOCK_CLOEXEC, FD_CLOEXEC, F_GETFD, "close-on-exec"},
/third_party/ltp/testcases/kernel/syscalls/timerfd/
H A Dtimerfd02.c141 coe = fcntl(fd, F_GETFD); in main()
159 coe = fcntl(fd, F_GETFD); in main()
/third_party/curl/src/
H A Dtool_main.c88 * fcntl's F_GETFD instruction returns -1 if the file descriptor is closed,
95 while((fcntl(STDIN_FILENO, F_GETFD) == -1) || in main_checkfds()
96 (fcntl(STDOUT_FILENO, F_GETFD) == -1) || in main_checkfds()
97 (fcntl(STDERR_FILENO, F_GETFD) == -1)) in main_checkfds()
/third_party/ltp/testcases/kernel/syscalls/fcntl/
H A Dfcntl01.c143 if ((flags = fcntl(fd[2], F_GETFD, 0)) < 0) in main()
145 "fcntl(.., F_GETFD, ..) #1 failed"); in main()
151 if ((flags = fcntl(fd[2], F_GETFD, 0)) == -1) in main()
153 "fcntl(.., F_GETFD, ..) #2 failed"); in main()
/third_party/musl/porting/liteos_a/user/src/legacy/
H A Disastream.c7 return fcntl(fd, F_GETFD) < 0 ? -1 : 0; in isastream()
/third_party/musl/src/legacy/
H A Disastream.c8 return fcntl(fd, F_GETFD) < 0 ? -1 : 0; in isastream()
/third_party/musl/src/unistd/
H A Dfchdir.c9 if (ret != -EBADF || __syscall(SYS_fcntl, fd, F_GETFD) < 0) in fchdir()
H A Ddup2.c13 r = __syscall(SYS_fcntl, old, F_GETFD); in dup2()
/third_party/musl/src/stat/
H A Dfchmod.c9 if (ret != -EBADF || __syscall(SYS_fcntl, fd, F_GETFD) < 0) in fchmod()
/third_party/musl/porting/liteos_m/kernel/include/bits/
H A Dfcntl.h23 #define F_GETFD 1 macro
/third_party/musl/porting/liteos_a/kernel/include/bits/
H A Dfcntl.h28 #define F_GETFD 1 macro
/third_party/musl/porting/liteos_m_iccarm/kernel/include/bits/
H A Dfcntl.h23 #define F_GETFD 1 macro
/third_party/musl/porting/liteos_m/user/include/bits/
H A Dfcntl.h23 #define F_GETFD 1 macro
/third_party/musl/porting/uniproton/kernel/include/bits/
H A Dfcntl.h23 #define F_GETFD 1 macro
/third_party/ltp/testcases/kernel/syscalls/pidfd_open/
H A Dpidfd_open01.c28 flag = SAFE_FCNTL(pidfd, F_GETFD); in run()
/third_party/musl/arch/aarch64/bits/
H A Dfcntl.h23 #define F_GETFD 1 macro

Completed in 6 milliseconds

123456