Home
last modified time | relevance | path

Searched refs:imsg (Results 1 – 7 of 7) sorted by relevance

/netbsd-src/external/bsd/tmux/dist/compat/
H A Dimsg.c130 imsg_get(struct imsgbuf *imsgbuf, struct imsg *imsg) in imsg_get() argument
132 struct imsg m; in imsg_get()
176 *imsg = m; in imsg_get()
181 imsg_get_ibuf(struct imsg *imsg, struct ibuf *ibuf) in imsg_get_ibuf() argument
183 if (imsg->buf == NULL) { in imsg_get_ibuf()
187 return ibuf_get_ibuf(imsg->buf, ibuf_size(imsg->buf), ibuf); in imsg_get_ibuf()
191 imsg_get_data(struct imsg *imsg, void *data, size_t len) in imsg_get_data() argument
197 if (imsg->buf == NULL || ibuf_size(imsg->buf) != len) { in imsg_get_data()
201 return ibuf_get(imsg->buf, data, len); in imsg_get_data()
205 imsg_get_fd(struct imsg *imsg) in imsg_get_fd() argument
[all …]
H A Dimsg.h72 struct imsg { struct
136 ssize_t imsg_get(struct imsgbuf *, struct imsg *);
137 int imsg_get_ibuf(struct imsg *, struct ibuf *);
138 int imsg_get_data(struct imsg *, void *, size_t);
139 int imsg_get_fd(struct imsg *);
140 uint32_t imsg_get_id(struct imsg *);
141 size_t imsg_get_len(struct imsg *);
142 pid_t imsg_get_pid(struct imsg *);
143 uint32_t imsg_get_type(struct imsg *);
144 int imsg_forward(struct imsgbuf *, struct imsg *);
[all …]
/netbsd-src/external/bsd/tmux/dist/
H A Dproc.c64 void (*dispatchcb)(struct imsg *, void *);
70 static int peer_check_version(struct tmuxpeer *, struct imsg *);
78 struct imsg imsg; in proc_event_cb() local
87 if ((n = imsg_get(&peer->ibuf, &imsg)) == -1) { in proc_event_cb()
93 log_debug("peer %p message %d", peer, imsg.hdr.type); in proc_event_cb()
95 if (peer_check_version(peer, &imsg) != 0) { in proc_event_cb()
96 fd = imsg_get_fd(&imsg); in proc_event_cb()
99 imsg_free(&imsg); in proc_event_cb()
103 peer->dispatchcb(&imsg, peer->arg); in proc_event_cb()
104 imsg_free(&imsg); in proc_event_cb()
[all …]
H A Dfile.c556 struct imsg *imsg, int allow_streams, int close_received, in file_write_open() argument
559 struct msg_write_open *msg = imsg->data; in file_write_open()
560 size_t msglen = imsg->hdr.len - IMSG_HEADER_SIZE; in file_write_open()
619 file_write_data(struct client_files *files, struct imsg *imsg) in file_write_data() argument
621 struct msg_write_data *msg = imsg->data; in file_write_data()
622 size_t msglen = imsg->hdr.len - IMSG_HEADER_SIZE; in file_write_data()
639 file_write_close(struct client_files *files, struct imsg *imsg) in file_write_close() argument
641 struct msg_write_close *msg = imsg->data; in file_write_close()
642 size_t msglen = imsg->hdr.len - IMSG_HEADER_SIZE; in file_write_close()
717 struct imsg *imsg, int allow_streams, int close_received, client_file_cb cb, in file_read_open() argument
[all …]
/netbsd-src/games/rogue/
H A Dmessage.c63 static short msg_col = 0, imsg = -1; variable
93 imsg = (imsg + 1) % NMESSAGES; in message()
94 (void)strlcpy(msgs[imsg], msg, sizeof(msgs[imsg])); in message()
126 if (imsg != -1) { in remessage()
129 while (c > imsg) { in remessage()
132 message(msgs[((imsg - c) % NMESSAGES)], 0); in remessage()
/netbsd-src/external/mpl/dhcp/dist/server/
H A Dfailover.c436 link -> imsg = dmalloc (sizeof (failover_message_t), MDL); in dhcp_failover_link_signal()
437 if (!link -> imsg) { in dhcp_failover_link_signal()
440 if (link -> imsg) { in dhcp_failover_link_signal()
441 failover_message_dereference (&link->imsg, in dhcp_failover_link_signal()
452 memset (link -> imsg, 0, sizeof (failover_message_t)); in dhcp_failover_link_signal()
453 link -> imsg -> refcnt = 1; in dhcp_failover_link_signal()
481 omapi_connection_copyout (&link -> imsg -> type, c, 1); in dhcp_failover_link_signal()
489 omapi_connection_get_uint32 (c, &link -> imsg -> time); in dhcp_failover_link_signal()
493 omapi_connection_get_uint32 (c, &link -> imsg -> xid); in dhcp_failover_link_signal()
498 if (link->imsg->type == FTM_CONTACT) in dhcp_failover_link_signal()
[all …]
/netbsd-src/external/mpl/dhcp/dist/includes/
H A Dfailover.h274 failover_message_t *imsg; member