Lines Matching defs:fd
45 static int send_request(int fd, int sendStdio, int argc, const char **argv)
93 ret = sendmsg(fd, &msg, MSG_NOSIGNAL);
100 // Only send the fd's once
125 ret = sendmsg(fd, &msg, MSG_NOSIGNAL);
145 ret = recvmsg(fd, &msg, MSG_NOSIGNAL | MSG_WAITALL);
164 int fd;
169 fd = socket_local_client(ZYGOTE_SOCKET,
172 if (fd < 0) {
181 pid = send_request(fd, 1, argc + 1, newargv);
190 err = read(fd, &dummy, sizeof(dummy));
194 err = close(fd);
218 int fd = -1;
226 for (retries = 0; (fd < 0) && (retries < ZYGOTE_RETRY_COUNT); retries++) {
237 fd = socket_local_client(ZYGOTE_SOCKET, AF_LOCAL,
241 if (fd < 0) {
245 pid = send_request(fd, 0, newargc, newargv);
248 err = close(fd);