Home
last modified time | relevance | path

Searched refs:test_fd (Results 1 – 9 of 9) sorted by relevance

/external/ltp/testcases/kernel/syscalls/fcntl/
Dfcntl31.c70 static int test_fd; variable
113 test_fd = pipe_fds[0]; in setup()
114 if (fcntl(test_fd, F_SETFL, O_ASYNC) < 0) in setup()
131 TEST(fcntl(test_fd, F_GETOWN_EX, &orig_own_ex)); in setup()
140 TEST(fcntl(test_fd, F_GETOWN)); in setup()
160 TEST(fcntl(test_fd, F_SETOWN, pid)); in setown_pid_test()
167 TEST(fcntl(test_fd, F_SETOWN, orig_pid)); in setown_pid_test()
176 TEST(fcntl(test_fd, F_SETOWN, -pgrp_pid)); in setown_pgrp_test()
184 TEST(fcntl(test_fd, F_SETOWN, orig_pid)); in setown_pgrp_test()
194 TEST(fcntl(test_fd, F_SETOWN_EX, &orig_own_ex)); in setownex_cleanup()
[all …]
Dfcntl29.c44 static int test_fd; variable
57 TEST(fcntl(test_fd, F_DUPFD_CLOEXEC, 0)); in main()
99 test_fd = SAFE_CREAT(cleanup, "testfile", 0644); in setup()
104 if (test_fd > 0) in cleanup()
105 SAFE_CLOSE(NULL, test_fd); in cleanup()
Dfcntl30.c47 int pipe_fds[2], test_fd; in main() local
59 test_fd = pipe_fds[1]; in main()
61 TEST(fcntl(test_fd, F_GETPIPE_SZ)); in main()
69 TEST(fcntl(test_fd, F_SETPIPE_SZ, new_pipe_size)); in main()
75 TEST(fcntl(test_fd, F_GETPIPE_SZ)); in main()
/external/ltp/testcases/kernel/syscalls/msync/
Dmsync04.c29 static int test_fd; variable
62 test_fd = SAFE_OPEN("msync04/testfile", O_CREAT | O_TRUNC | O_RDWR); in test_msync()
63 SAFE_WRITE(0, test_fd, STRING_TO_WRITE, sizeof(STRING_TO_WRITE) - 1); in test_msync()
65 MAP_SHARED, test_fd, 0); in test_msync()
66 SAFE_CLOSE(test_fd); in test_msync()
100 if (test_fd > 0) in cleanup()
101 SAFE_CLOSE(test_fd); in cleanup()
/external/grpc-grpc/test/core/iomgr/
Dpollset_set_test.cc97 typedef struct test_fd { struct
103 } test_fd; argument
106 (static_cast<test_fd*>(tfd))->is_on_readable_called = true; in on_readable()
109 static void reset_test_fd(test_fd* tfd) { in reset_test_fd()
117 static void init_test_fds(test_fd* tfds, const int num_fds) { in init_test_fds()
126 static void cleanup_test_fds(test_fd* tfds, const int num_fds) { in cleanup_test_fds()
146 static void make_test_fds_readable(test_fd* tfds, const int num_fds) { in make_test_fds_readable()
152 static void verify_readable_and_reset(test_fd* tfds, const int num_fds) { in verify_readable_and_reset()
205 test_fd tfds[10]; in pollset_set_test_basic()
307 test_fd tfds[3]; in pollset_set_test_dup_fds()
[all …]
Dev_epollsig_linux_test.cc43 typedef struct test_fd { struct
46 } test_fd; argument
49 static void test_fd_init(test_fd* tfds, int* fds, int num_fds) { in test_fd_init()
73 static void test_fd_cleanup(test_fd* tfds, int num_fds) { in test_fd_cleanup()
133 test_fd tfds[NUM_FDS]; in test_add_fd_to_pollset()
/external/linux-kselftest/tools/testing/selftests/net/
Dreuseport_dualstack.c131 int epfd, i, test_fd; in test() local
148 test_fd = receive_once(epfd, proto); in test()
149 if (getsockopt(test_fd, SOL_SOCKET, SO_DOMAIN, &test_family, &len)) in test()
/external/linux-kselftest/tools/testing/selftests/x86/
Dprotection_keys.c975 int test_fd = open("/etc/passwd", O_RDONLY); in get_test_read_fd() local
976 __save_test_fd(test_fd); in get_test_read_fd()
977 return test_fd; in get_test_read_fd()
1041 int test_fd = get_test_read_fd(); in test_kernel_write_of_access_disabled_region() local
1046 ret = read(test_fd, ptr, 1); in test_kernel_write_of_access_disabled_region()
1053 int test_fd = get_test_read_fd(); in test_kernel_write_of_write_disabled_region() local
1056 ret = read(test_fd, ptr, 100); in test_kernel_write_of_write_disabled_region()
/external/python/cpython3/Lib/test/
Dtest_os.py3595 def test_fd(self): member in TestScandir