Lines Matching refs:fd2
62 static void assert_equal_fd(int fd1, int fd2) { in assert_equal_fd() argument
70 y = read(fd2, b, sizeof(b)); in assert_equal_fd()
83 _cleanup_close_ int fd1 = -1, fd2 = -1; in TEST() local
91 fd2 = copy_data_fd(fd1); in TEST()
92 assert_se(fd2 >= 0); in TEST()
95 assert_equal_fd(fd1, fd2); in TEST()
99 fd2 = safe_close(fd2); in TEST()
104 fd2 = copy_data_fd(fd1); in TEST()
105 assert_se(fd2 >= 0); in TEST()
111 assert_equal_fd(fd1, fd2); in TEST()
114 fd2 = safe_close(fd2); in TEST()
136 fd2 = copy_data_fd(sfd[0]); in TEST()
137 assert_se(fd2 >= 0); in TEST()
141 assert_se(read(fd2, &j, sizeof(j)) == sizeof(j)); in TEST()
145 assert_se(read(fd2, &j, sizeof(j)) == 0); in TEST()