Lines Matching defs:fds
184 static void close_fds(int *fds, unsigned int num_fds)
187 close(fds[index]);
190 static void send_fds(xcb_connection_t *c, int *fds, unsigned int num_fds)
198 * tries to send fds, too). Thanks to this, we can atomically write out FDs.
205 * potentially allows other threads to interfere with their own fds.
217 c->out.out_fd.fd[c->out.out_fd.nfd++] = fds[0];
218 fds++;
222 close_fds(fds, num_fds);
226 const xcb_protocol_request_t *req, unsigned int num_fds, int *fds)
234 close_fds(fds, num_fds);
255 close_fds(fds, num_fds);
286 close_fds(fds, num_fds);
320 send_fds(c, fds, num_fds);
346 const xcb_protocol_request_t *req, unsigned int num_fds, int *fds)
348 return xcb_send_request_with_fds64(c, flags, vector, req, num_fds, fds);
365 int fds[1] = { fd };
372 send_fds(c, &fds[0], 1);