Lines Matching refs:fds
380 int os_pipe(int *fds, int stream, int close_on_exec) in os_pipe() argument
384 err = socketpair(AF_UNIX, type, 0, fds); in os_pipe()
391 err = os_set_exec_close(fds[0]); in os_pipe()
395 err = os_set_exec_close(fds[1]); in os_pipe()
404 close(fds[1]); in os_pipe()
405 close(fds[0]); in os_pipe()
522 ssize_t os_rcv_fd_msg(int fd, int *fds, unsigned int n_fds, in os_rcv_fd_msg() argument
526 char buf[CMSG_SPACE(sizeof(*fds) * MAX_RCV_FDS)]; in os_rcv_fd_msg()
536 .msg_controllen = CMSG_SPACE(sizeof(*fds) * n_fds), in os_rcv_fd_msg()
553 memcpy(fds, CMSG_DATA(cmsg), cmsg->cmsg_len); in os_rcv_fd_msg()
658 int os_sendmsg_fds(int fd, const void *buf, unsigned int len, const int *fds, in os_sendmsg_fds() argument
666 char control[CMSG_SPACE(sizeof(*fds) * OS_SENDMSG_MAX_FDS)]; in os_sendmsg_fds()
669 unsigned int fds_size = sizeof(*fds) * fds_num; in os_sendmsg_fds()
685 memcpy(CMSG_DATA(cmsg), fds, fds_size); in os_sendmsg_fds()
693 int os_poll(unsigned int n, const int *fds) in os_poll() argument
704 pollfds[i].fd = fds[i]; in os_poll()