Lines Matching refs:length
90 ssize_t length;
92 length = read(0, buf, 65536);
93 if (length <= 0) {
98 if (length > 4096) {
115 sent = sendto(sockfd, buf, length, 0,
117 RUNTIME_CHECK(sent == length);
203 ssize_t length;
205 length = read(0, buf, 65536);
206 if (length <= 0) {
211 if (length > 4096) {
222 if (length < 16) {
223 length = 16;
255 sent = sendto(listenfd, buf, length, 0,
257 RUNTIME_CHECK(sent == length);
288 length = recvfrom(listenfd, buf, 65536, 0,
292 sent = sendto(listenfd, buf, length, 0,
295 RUNTIME_CHECK(sent == length);
358 ssize_t length;
362 * To fuzz TCP client we have to put length at
365 length = read(0, buf+2, 65535);
366 buf[0] = length >> 8;
367 buf[1] = length & 0xff;
368 length += 2;
370 length = read(0, buf, 65535);
372 if (length <= 0) {
380 buf[length++]='\r';
381 buf[length++]='\n';
382 buf[length++]='\r';
383 buf[length++]='\n';
404 sent = write(sockfd, buf, length);
405 RUNTIME_CHECK(sent == length);