Searched refs:nread (Results 1 – 5 of 5) sorted by relevance
/busybox-1.35.0/coreutils/ |
D | tail.c | 213 int nread; in tail_main() local 266 while ((nread = tail_read(fd, buf, tailbufsize - taillen)) > 0) { in tail_main() 268 int nwrite = nread; in tail_main() 273 seen += nread; in tail_main() 285 xwrite(STDOUT_FILENO, buf + nread - nwrite, nwrite); in tail_main() 288 taillen += nread; in tail_main() 294 int k = nread; in tail_main() 306 taillen += nread; in tail_main() 308 int extra = (buf[nread-1] != '\n'); in tail_main() 319 taillen += nread - (s - tailbuf); in tail_main() [all …]
|
/busybox-1.35.0/networking/ |
D | nc.c | 260 int nread; in nc_main() local 268 nread = safe_read(pfds[fdidx].fd, iobuf, COMMON_BUFSIZE); in nc_main() 270 if (nread < 1) in nc_main() 274 if (nread < 1) { in nc_main() 282 xwrite(ofd, iobuf, nread); in nc_main()
|
D | tls.c | 2378 int nread; in tls_run_copy_loop() local 2388 nread = safe_read(STDIN_FILENO, buf, inbuf_size); in tls_run_copy_loop() 2389 if (nread < 1) { in tls_run_copy_loop() 2403 if (nread == inbuf_size) { in tls_run_copy_loop() 2411 tls_xwrite(tls, nread); in tls_run_copy_loop() 2417 nread = tls_xread_record(tls, "encrypted data"); in tls_run_copy_loop() 2418 if (nread < 1) { in tls_run_copy_loop() 2429 bad_record_die(tls, "encrypted data", nread); in tls_run_copy_loop() 2430 xwrite(STDOUT_FILENO, tls->inbuf + RECHDR_LEN, nread); in tls_run_copy_loop()
|
/busybox-1.35.0/loginutils/ |
D | getty.c | 413 int nread; in auto_baud() local 438 nread = safe_read(STDIN_FILENO, G.line_buf, sizeof(G.line_buf) - 1); in auto_baud() 439 if (nread > 0) { in auto_baud() 442 G.line_buf[nread] = '\0'; in auto_baud() 443 for (bp = G.line_buf; bp < G.line_buf + nread; bp++) { in auto_baud()
|
/busybox-1.35.0/libbb/ |
D | dump.c | 379 int need, nread; in get() local 394 nread = 0; in get() 407 && memcmp(dumper->get__curp, dumper->get__savp, nread) == 0 /* same data? */ in get() 413 memset(dumper->get__curp + nread, 0, need); in get() 414 dumper->eaddress = dumper->pub.address + nread; in get() 417 n = fread(dumper->get__curp + nread, sizeof(unsigned char), in get() 448 nread = 0; in get() 450 nread += n; in get()
|