Searched refs:bytes_read (Results 1 – 5 of 5) sorted by relevance
/busybox-1.35.0/coreutils/ |
D | split.c | 98 ssize_t bytes_read, to_write; in split_main() local 141 bytes_read = safe_read(STDIN_FILENO, read_buffer, READ_BUFFER_SIZE); in split_main() 142 if (!bytes_read) in split_main() 144 if (bytes_read < 0) in split_main() 158 to_write = (bytes_read < remaining) ? bytes_read : remaining; in split_main() 164 char *end = memchr(src, '\n', bytes_read); in split_main() 169 to_write = bytes_read; in split_main() 174 bytes_read -= to_write; in split_main() 176 } while (bytes_read); in split_main()
|
D | sum.c | 56 size_t bytes_read = safe_read(fd, buf, COMMON_BUFSIZE); in sum_file() local 58 if ((ssize_t)bytes_read <= 0) { in sum_file() 60 if (!bytes_read && !r) in sum_file() 67 total_bytes += bytes_read; in sum_file() 69 do s += buf[--bytes_read]; while (bytes_read); in sum_file() 76 } while (--bytes_read); in sum_file()
|
D | cksum.c | 67 int bytes_read = safe_read(fd, read_buf, COMMON_BUFSIZE); in cksum_main() local 68 if (bytes_read < 0) in cksum_main() 70 if (bytes_read > 0) { in cksum_main() 71 IF_CKSUM(filesize += bytes_read;) in cksum_main() 84 read_buf[bytes_read++] = (uint8_t)t; in cksum_main() 89 …crc = (IS_CKSUM ? crc32_block_endian1 : crc32_block_endian0)(crc, read_buf, bytes_read, crc32_tabl… in cksum_main()
|
/busybox-1.35.0/scripts/kconfig/lxdialog/ |
D | textbox.c | 30 static int hscroll, fd, file_size, bytes_read; variable 68 if ((bytes_read = read(fd, buf, BUF_SIZE)) == -1) { in dialog_textbox() 73 buf[bytes_read] = '\0'; /* mark end of valid data */ in dialog_textbox() 137 if (fpos > bytes_read) { /* Yes, we have to read it in */ in dialog_textbox() 144 if ((bytes_read = in dialog_textbox() 150 buf[bytes_read] = '\0'; in dialog_textbox() 175 if ((bytes_read = in dialog_textbox() 181 buf[bytes_read] = '\0'; in dialog_textbox() 183 page = buf + bytes_read; in dialog_textbox() 324 if (fpos > bytes_read) { /* Not beginning of file yet */ in back_lines() [all …]
|
/busybox-1.35.0/miscutils/ |
D | conspy.c | 425 int bytes_read; in conspy_main() local 498 bytes_read = 0; in conspy_main() 512 bytes_read = read(G.kbd_fd, k, COMMON_BUFSIZE - G.key_count); in conspy_main() 513 if (bytes_read < 0) in conspy_main() 518 for (i = 0; i < bytes_read; i++) { in conspy_main() 533 G.key_count += bytes_read; in conspy_main()
|