Lines Matching refs:fds
375 int os_pipe(int *fds, int stream, int close_on_exec) in os_pipe() argument
379 err = socketpair(AF_UNIX, type, 0, fds); in os_pipe()
386 err = os_set_exec_close(fds[0]); in os_pipe()
390 err = os_set_exec_close(fds[1]); in os_pipe()
399 close(fds[1]); in os_pipe()
400 close(fds[0]); in os_pipe()
637 int os_sendmsg_fds(int fd, const void *buf, unsigned int len, const int *fds, in os_sendmsg_fds() argument
645 char control[CMSG_SPACE(sizeof(*fds) * OS_SENDMSG_MAX_FDS)]; in os_sendmsg_fds()
648 unsigned int fds_size = sizeof(*fds) * fds_num; in os_sendmsg_fds()
664 memcpy(CMSG_DATA(cmsg), fds, fds_size); in os_sendmsg_fds()
672 int os_poll(unsigned int n, const int *fds) in os_poll() argument
683 pollfds[i].fd = fds[i]; in os_poll()