Lines Matching refs:pair
1134 _cleanup_close_pair_ int pair[2] = { -1, -1 }; in openpt_allocate_in_namespace() local
1144 if (socketpair(AF_UNIX, SOCK_DGRAM, 0, pair) < 0) in openpt_allocate_in_namespace()
1152 pair[0] = safe_close(pair[0]); in openpt_allocate_in_namespace()
1158 if (send_one_fd(pair[1], fd, 0) < 0) in openpt_allocate_in_namespace()
1164 pair[1] = safe_close(pair[1]); in openpt_allocate_in_namespace()
1172 fd = receive_one_fd(pair[0], 0); in openpt_allocate_in_namespace()
1187 _cleanup_close_pair_ int pair[2] = { -1, -1 }; in open_terminal_in_namespace() local
1195 if (socketpair(AF_UNIX, SOCK_DGRAM, 0, pair) < 0) in open_terminal_in_namespace()
1205 pair[0] = safe_close(pair[0]); in open_terminal_in_namespace()
1211 if (send_one_fd(pair[1], master, 0) < 0) in open_terminal_in_namespace()
1217 pair[1] = safe_close(pair[1]); in open_terminal_in_namespace()
1225 return receive_one_fd(pair[0], 0); in open_terminal_in_namespace()