/external/ltp/testcases/kernel/syscalls/fcntl/ |
D | fcntl31.c | 70 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 …]
|
D | fcntl29.c | 44 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()
|
D | fcntl30.c | 47 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/ |
D | msync04.c | 17 static int test_fd; variable 50 test_fd = SAFE_OPEN("msync04/testfile", O_CREAT | O_TRUNC | O_RDWR); in test_msync() 51 SAFE_WRITE(0, test_fd, STRING_TO_WRITE, sizeof(STRING_TO_WRITE) - 1); in test_msync() 53 MAP_SHARED, test_fd, 0); in test_msync() 54 SAFE_CLOSE(test_fd); in test_msync() 88 if (test_fd > 0) in cleanup() 89 SAFE_CLOSE(test_fd); in cleanup()
|
/external/grpc-grpc/test/core/iomgr/ |
D | pollset_set_test.cc | 97 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 …]
|
D | ev_epollsig_linux_test.cc | 43 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/ |
D | reuseport_addr_any.c | 243 int test_fd; in test_proto() local 245 test_fd = socket(AF_INET, proto, 0); in test_proto() 246 if (test_fd < 0) { in test_proto() 253 close(test_fd); in test_proto()
|
D | reuseport_dualstack.c | 131 int epfd, i, test_fd; in test() local 148 test_fd = receive_once(epfd, proto); in test() 150 if (getsockopt(test_fd, SOL_SOCKET, SO_DOMAIN, &test_family, &len)) in test()
|
/external/igt-gpu-tools/lib/tests/ |
D | igt_assert.c | 132 static void test_fd(void) in test_fd() function 158 test_fd();
|
/external/linux-kselftest/tools/testing/selftests/x86/ |
D | protection_keys.c | 975 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/pyfakefs/pyfakefs/tests/ |
D | fake_os_test.py | 1762 test_fd = test_file.fileno() 1764 self.os.fsync(test_fd) 1767 self.os.fsync, test_fd + 10) 1774 test_fd = test_file.fileno() 1776 self.os.fsync(test_fd) 1779 self.os.fsync, test_fd + 10) 1781 test_fd = test_file.fileno() 1782 self.assert_raises_os_error(errno.EBADF, self.os.fsync, test_fd) 1790 test_fd = test_file.fileno() 1792 self.os.fdatasync(test_fd) [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_os.py | 4079 def test_fd(self): member in TestScandir
|