Lines Matching refs:pair

171                 int pair[2];  in TEST()  local
199 assert_se(socketpair(AF_UNIX, SOCK_STREAM, 0, pair) >= 0); in TEST()
201 assert_se(getpeercred(pair[0], &ucred) >= 0); in TEST()
210 r = getpeergroups(pair[0], &peer_groups); in TEST()
219 safe_close_pair(pair); in TEST()
226 _cleanup_close_pair_ int pair[2] = { -1, -1 }; in TEST() local
229 assert_se(socketpair(AF_UNIX, SOCK_DGRAM, 0, pair) >= 0); in TEST()
236 pair[0] = safe_close(pair[0]); in TEST()
245 assert_se(send_one_fd(pair[1], tmpfd, MSG_DONTWAIT) == 0); in TEST()
254 pair[1] = safe_close(pair[1]); in TEST()
256 assert_se(receive_one_fd_iov(pair[0], &iov, 1, MSG_DONTWAIT, &fd) == 0); in TEST()
266 _cleanup_close_pair_ int pair[2] = { -1, -1 }; in TEST() local
271 assert_se(socketpair(AF_UNIX, SOCK_DGRAM, 0, pair) >= 0); in TEST()
281 pair[0] = safe_close(pair[0]); in TEST()
289 assert_se(send_one_fd_iov(pair[1], tmpfd, &iov, 1, MSG_DONTWAIT) > 0); in TEST()
299 pair[1] = safe_close(pair[1]); in TEST()
301 k = receive_one_fd_iov(pair[0], &iov, 1, MSG_DONTWAIT, &fd); in TEST()
314 _cleanup_close_pair_ int pair[2] = { -1, -1 }; in TEST() local
318 assert_se(socketpair(AF_UNIX, SOCK_DGRAM, 0, pair) >= 0); in TEST()
327 pair[0] = safe_close(pair[0]); in TEST()
329 assert_se(send_one_fd_iov(pair[1], -1, &iov, 1, MSG_DONTWAIT) > 0); in TEST()
339 pair[1] = safe_close(pair[1]); in TEST()
341 k = receive_one_fd_iov(pair[0], &iov, 1, MSG_DONTWAIT, &fd); in TEST()
351 _cleanup_close_pair_ int pair[2] = { -1, -1 }; in TEST() local
354 assert_se(socketpair(AF_UNIX, SOCK_DGRAM, 0, pair) >= 0); in TEST()
361 pair[0] = safe_close(pair[0]); in TEST()
363 assert_se(send_one_fd_iov(pair[1], -1, NULL, 0, MSG_DONTWAIT) == -EINVAL); in TEST()
373 pair[1] = safe_close(pair[1]); in TEST()
375 k = receive_one_fd_iov(pair[0], &iov, 1, MSG_DONTWAIT, &fd); in TEST()
384 _cleanup_close_pair_ int pair[2] = { -1, -1 }; in TEST() local
387 assert_se(socketpair(AF_UNIX, SOCK_DGRAM, 0, pair) >= 0); in TEST()
397 pair[0] = safe_close(pair[0]); in TEST()
400 assert_se(send_one_fd_iov(pair[1], -1, &iov, 1, MSG_DONTWAIT) == 0); in TEST()
410 pair[1] = safe_close(pair[1]); in TEST()
412 k = receive_one_fd_iov(pair[0], &iov, 1, MSG_DONTWAIT, &fd); in TEST()