Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/filesystems/fuse/
H A Dfusectl_test.c107 int abort_fd, test_fd, ret; in TEST_F() local
118 test_fd = open(path_buf, O_RDWR); in TEST_F()
119 ASSERT_GE(test_fd, 0); in TEST_F()
121 ret = read(test_fd, path_buf, sizeof(path_buf)); in TEST_F()
124 ret = write(test_fd, "test", sizeof("test")); in TEST_F()
127 ret = lseek(test_fd, 0, SEEK_SET); in TEST_F()
135 ret = read(test_fd, path_buf, sizeof(path_buf)); in TEST_F()
/linux/tools/testing/selftests/mm/
H A Dsoft-dirty.c140 int test_fd = 0; in test_mprotect()
149 test_fd = open(fname, O_RDWR | O_CREAT, 0664); in test_mprotect()
150 if (test_fd < 0) { in test_mprotect()
155 if (ftruncate(test_fd, pagesize) != 0) in test_mprotect()
158 MAP_SHARED, test_fd, 0); in test_mprotect()
187 close(test_fd); in test_merge()
138 int test_fd = 0; test_mprotect() local
H A Dprotection_keys.c767 int test_fd = open("/etc/passwd", O_RDONLY); in malloc_pkey_hugetlb()
768 __save_test_fd(test_fd); in malloc_pkey_hugetlb()
769 return test_fd; in malloc_pkey_hugetlb()
916 int test_fd = get_test_read_fd(); in test_pkey_alloc_free_attach_pkey0()
921 ret = read(test_fd, ptr, 1); in test_pkey_alloc_free_attach_pkey0()
929 int test_fd = get_test_read_fd(); in test_pkey_alloc_free_attach_pkey0()
932 ret = read(test_fd, ptr, 100); in test_pkey_alloc_free_attach_pkey0()
874 int test_fd = open("/etc/passwd", O_RDONLY); get_test_read_fd() local
1023 int test_fd = get_test_read_fd(); test_kernel_write_of_access_disabled_region() local
1036 int test_fd = get_test_read_fd(); test_kernel_write_of_write_disabled_region() local
/linux/tools/testing/selftests/net/
H A Dreuseport_addr_any.c247 int test_fd; test_proto() local
H A Dreuseport_dualstack.c132 int epfd, i, test_fd; in test()
149 test_fd = receive_once(epfd, proto); in test()
151 if (getsockopt(test_fd, SOL_SOCKET, SO_DOMAIN, &test_family, &len)) in test()
131 int epfd, i, test_fd; test() local
/linux/tools/testing/selftests/namespaces/
H A Dsiocgskns_test.c79 int sock_fd, netns_fd, test_fd; in TEST() local
185 test_fd = open(path, O_RDONLY); in TEST()
186 ASSERT_GE(test_fd, 0); in TEST()
187 close(test_fd); in TEST()
391 int test_fd = open(path, O_RDONLY); in TEST() local
392 ASSERT_GE(test_fd, 0); in TEST()
393 close(test_fd); in TEST()
531 int test_fd = ioctl(sock_fd, SIOCGSKNS); in TEST() local
532 ASSERT_GE(test_fd, 0); in TEST()
535 ASSERT_EQ(fstat(test_fd, &st_test), 0); in TEST()
[all …]