Searched refs:sock_pair (Results 1 – 5 of 5) sorted by relevance
167 int sock_pair[5][2]; in StartSymbolizerSubprocess() local169 if (pipe(sock_pair[i]) == -1) { in StartSymbolizerSubprocess()171 internal_close(sock_pair[j][0]); in StartSymbolizerSubprocess()172 internal_close(sock_pair[j][1]); in StartSymbolizerSubprocess()177 } else if (sock_pair[i][0] > 2 && sock_pair[i][1] > 2) { in StartSymbolizerSubprocess()179 infd = sock_pair[i]; in StartSymbolizerSubprocess()181 outfd = sock_pair[i]; in StartSymbolizerSubprocess()183 if (sock_pair[j] == infd) continue; in StartSymbolizerSubprocess()184 internal_close(sock_pair[j][0]); in StartSymbolizerSubprocess()185 internal_close(sock_pair[j][1]); in StartSymbolizerSubprocess()
206 int sock_pair[2]; in IsAccessibleMemoryRange() local207 if (pipe(sock_pair)) in IsAccessibleMemoryRange()210 internal_write(sock_pair[1], reinterpret_cast<void *>(beg), size); in IsAccessibleMemoryRange()219 internal_close(sock_pair[0]); in IsAccessibleMemoryRange()220 internal_close(sock_pair[1]); in IsAccessibleMemoryRange()
103 int sock_pair[5][2]; in CreateTwoHighNumberedPipes() local105 if (pipe(sock_pair[i]) == -1) { in CreateTwoHighNumberedPipes()107 internal_close(sock_pair[j][0]); in CreateTwoHighNumberedPipes()108 internal_close(sock_pair[j][1]); in CreateTwoHighNumberedPipes()111 } else if (sock_pair[i][0] > 2 && sock_pair[i][1] > 2) { in CreateTwoHighNumberedPipes()113 infd = sock_pair[i]; in CreateTwoHighNumberedPipes()115 outfd = sock_pair[i]; in CreateTwoHighNumberedPipes()117 if (sock_pair[j] == infd) continue; in CreateTwoHighNumberedPipes()118 internal_close(sock_pair[j][0]); in CreateTwoHighNumberedPipes()119 internal_close(sock_pair[j][1]); in CreateTwoHighNumberedPipes()
277 int sock_pair[2]; in IsAccessibleMemoryRange() local278 if (pipe(sock_pair)) in IsAccessibleMemoryRange()281 internal_write(sock_pair[1], reinterpret_cast<void *>(beg), size); in IsAccessibleMemoryRange()290 internal_close(sock_pair[0]); in IsAccessibleMemoryRange()291 internal_close(sock_pair[1]); in IsAccessibleMemoryRange()
169 curl_socket_t sock_pair[2]; /* socket pair */ member210 if(tsd->sock_pair[1] != CURL_SOCKET_BAD) { in destroy_thread_sync_data()211 sclose(tsd->sock_pair[1]); in destroy_thread_sync_data()249 if(Curl_socketpair(AF_UNIX, SOCK_STREAM, 0, &tsd->sock_pair[0]) < 0) { in init_thread_sync_data()250 tsd->sock_pair[0] = CURL_SOCKET_BAD; in init_thread_sync_data()251 tsd->sock_pair[1] = CURL_SOCKET_BAD; in init_thread_sync_data()327 if(tsd->sock_pair[1] != CURL_SOCKET_BAD) { in getaddrinfo_thread()330 if(swrite(tsd->sock_pair[1], buf, sizeof(buf)) < 0) { in getaddrinfo_thread()387 curl_socket_t sock_rd = td->tsd.sock_pair[0]; in destroy_async_data()667 socks[0] = td->tsd.sock_pair[0]; in Curl_resolver_getsock()