Home
last modified time | relevance | path

Searched refs:fds (Results 1 – 4 of 4) sorted by relevance

/unit/src/
H A Dnxt_socket_msg.h73 nxt_socket_msg_oob_init(nxt_send_oob_t *oob, int *fds) in nxt_socket_msg_oob_init() argument
97 nfds = (fds[0] != -1 ? 1 : 0) + (fds[1] != -1 ? 1 : 0); in nxt_socket_msg_oob_init()
120 nxt_memcpy(CMSG_DATA(cmsg), fds, nfds * sizeof(int)); in nxt_socket_msg_oob_init()
H A Dnxt_event_engine.c199 if (nxt_pipe_create(&engine->task, pipe->fds, 1, 0) != NXT_OK) { in nxt_event_engine_signal_pipe_create()
204 pipe->event.fd = pipe->fds[0]; in nxt_event_engine_signal_pipe_create()
229 nxt_pipe_close(pipe->event.task, pipe->fds); in nxt_event_engine_signal_pipe_free()
244 nxt_pipe_close(pipe->event.task, pipe->fds); in nxt_event_engine_signal_pipe_close()
284 (void) nxt_fd_write(engine->pipe->fds[1], &buf, 1); in nxt_event_engine_signal()
353 pipe->fds[0], pipe->fds[1]); in nxt_event_engine_signal_pipe_error()
356 nxt_pipe_close(pipe->event.task, pipe->fds); in nxt_event_engine_signal_pipe_error()
H A Dnxt_unit.c4616 struct pollfd fds[2]; in nxt_unit_read_buf() local
4660 fds[1].events = POLLIN; in nxt_unit_read_buf()
4669 fds[0].events = POLLIN; in nxt_unit_read_buf()
4670 fds[0].revents = 0; in nxt_unit_read_buf()
4672 fds[1].revents = 0; in nxt_unit_read_buf()
4674 nevents = poll(fds, nfds, -1); in nxt_unit_read_buf()
4683 fds[0].fd, fds[1].fd, strerror(err), err); in nxt_unit_read_buf()
4691 fds[0].fd, fds[1].fd, nevents, fds[0].revents, in nxt_unit_read_buf()
4692 fds[1].revents); in nxt_unit_read_buf()
4713 fds[0].fd, fds[1].fd, nevents, fds[0].revents, in nxt_unit_read_buf()
[all …]
H A Dnxt_event_engine.h414 nxt_fd_t fds[2]; member