Lines Matching refs:len
106 static int read_exactly(int fd, void *buf, size_t len) in read_exactly() argument
109 while (len) { in read_exactly()
110 ssize_t r = read(fd, buf, len); in read_exactly()
112 assert(r <= len); in read_exactly()
113 len -= r; in read_exactly()
184 unsigned char * helper_allocbuf(int len, void *user) in helper_allocbuf() argument
186 return xmalloc(len); in helper_allocbuf()
189 static void transmit(const unsigned char *msg, int len, void *user) in transmit() argument
191 while (len) { in transmit()
192 int r = write(1, msg, len); in transmit()
195 assert(r <= len); in transmit()
196 len -= r; in transmit()
204 uint16_t len = len_in; in helper_transmitmsg() local
205 transmit((const void*)&len, sizeof(len), user); in helper_transmitmsg()
206 transmit(msg_freed, len, user); in helper_transmitmsg()