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()
646 int os_sendmsg_fds(int fd, const void *buf, unsigned int len, const int *fds, in os_sendmsg_fds() argument
654 char control[CMSG_SPACE(sizeof(*fds) * OS_SENDMSG_MAX_FDS)]; in os_sendmsg_fds()
657 unsigned int fds_size = sizeof(*fds) * fds_num; in os_sendmsg_fds()
673 memcpy(CMSG_DATA(cmsg), fds, fds_size); in os_sendmsg_fds()
681 int os_poll(unsigned int n, const int *fds) in os_poll() argument
692 pollfds[i].fd = fds[i]; in os_poll()