Lines Matching defs:m_out
49 struct m_out {
57 } m_out;
338 p->m_out.pos = 0;
339 p->m_out.type = type;
340 p->m_out.peerid = peerid;
341 p->m_out.pid = pid;
342 p->m_out.fd = fd;
348 if (imsg_compose(&p->imsgbuf, p->m_out.type, p->m_out.peerid,
349 p->m_out.pid, p->m_out.fd, p->m_out.buf, p->m_out.pos) == -1)
361 if (p->m_out.pos + len + IMSG_HEADER_SIZE > MAX_IMSGSIZE)
364 alloc = p->m_out.alloc ? p->m_out.alloc : 128;
365 while (p->m_out.pos + len > alloc)
367 if (alloc != p->m_out.alloc) {
368 tmp = recallocarray(p->m_out.buf, p->m_out.alloc, alloc, 1);
371 p->m_out.alloc = alloc;
372 p->m_out.buf = tmp;
375 memmove(p->m_out.buf + p->m_out.pos, data, len);
376 p->m_out.pos += len;