| /netbsd/src/usr.sbin/dumplfs/ |
| D | misc.c | 55 int rbytes; in get() local 59 if ((rbytes = read(fd, p, len)) < 0) in get() 61 if (rbytes != len) in get() 62 errx(1, "%s: short read (%d, not %lu)", special, rbytes, in get()
|
| /netbsd/src/lib/libisns/ |
| D | isns_thread.c | 130 ssize_t rbytes; in isns_kevent_pipe() local 137 rbytes = read(cfg_p->pipe_fds[0], &cmd_type, in isns_kevent_pipe() 139 if (rbytes < 0) { in isns_kevent_pipe() 145 pipe_nbytes -= (int)rbytes; in isns_kevent_pipe() 153 rbytes = read(cfg_p->pipe_fds[0], &trans_id, in isns_kevent_pipe() 155 if (rbytes < 0) in isns_kevent_pipe() 158 else if (rbytes != sizeof(trans_id)) in isns_kevent_pipe() 163 pipe_nbytes -= (int)rbytes; in isns_kevent_pipe()
|
| /netbsd/src/libexec/httpd/ |
| D | cgi-bozo.c | 119 ssize_t rbytes; in finish_cgi_output() local 186 while ((rbytes = read(in, buf, sizeof buf)) > 0) { in finish_cgi_output() 189 while (rbytes) { in finish_cgi_output() 191 (size_t)rbytes); in finish_cgi_output() 193 rbytes -= wbytes; in finish_cgi_output() 383 ssize_t rbytes; in bozo_process_cgi() local 655 while ((rbytes = bozo_read(httpd, STDIN_FILENO, buf, sizeof buf)) > 0) { in bozo_process_cgi() 658 while (rbytes) { in bozo_process_cgi() 659 wbytes = write(sv[0], buf, (size_t)rbytes); in bozo_process_cgi() 661 rbytes -= wbytes; in bozo_process_cgi()
|
| /netbsd/src/usr.bin/vmstat/ |
| D | drvstats.c | 115 last.rbytes[i] = cur.rbytes[i]; in drvswap() 129 SWAP(rbytes[i]); in drvswap() 215 COPYF(rbytes, i, j); in drvreadstats() 347 cur.rbytes = calloc(ndrive, sizeof(u_int64_t)); in drvinit() 358 last.rbytes = calloc(ndrive, sizeof(u_int64_t)); in drvinit() 367 cur.seek == NULL || cur.rbytes == NULL || in drvinit() 373 last.seek == NULL || last.rbytes == NULL || in drvinit()
|
| D | drvstats.h | 46 u_int64_t *rbytes; /* # of bytes read. */ member
|
| D | vmstat.c | 616 bytes = cur.rbytes[j] + cur.wbytes[j]; in choosedrives()
|
| /netbsd/src/usr.sbin/iostat/ |
| D | iostat.c | 605 cur.rbytes[dn] == 0 && in drive_stats() 620 mbps = ((cur.rbytes[dn] + cur.wbytes[dn]) / in drive_stats() 633 mbps = (cur.rbytes[dn] + cur.wbytes[dn]) / in drive_stats() 669 cur.rbytes[dn] == 0 && in drive_stats2() 686 (cur.rbytes[dn] + cur.wbytes[dn]) / in drive_stats2() 711 if (cur.rbytes[dn] == 0 && cur.rxfer[dn] == 0 && in drive_statsx() 722 kbps = (cur.rbytes[dn] / 1024.0) / cur.rxfer[dn]; in drive_statsx() 739 cur.rbytes[dn] / (1024.0 * 1024) / dtime); in drive_statsx() 820 if (cur.rbytes[dn] == 0 && cur.rxfer[dn] == 0 && in drive_statsy() 838 drive_statsy_io(dtime, cur.rxfer[dn], cur.rbytes[dn]); in drive_statsy()
|
| /netbsd/src/sys/sys/ |
| D | tape.h | 54 uint64_t rbytes; member 69 uint64_t rbytes; /* total bytes read */ member
|
| D | iostat.h | 66 u_int64_t rbytes; member
|
| /netbsd/src/external/cddl/osnet/dist/lib/libzpool/common/ |
| D | util.c | 76 char rops[6], wops[6], rbytes[6], wbytes[6], rerr[6], werr[6], cerr[6]; in show_vdev_stats() local 102 nicenum(vs->vs_bytes[ZIO_TYPE_READ] / sec, rbytes); in show_vdev_stats() 115 rops, wops, rbytes, wbytes, rerr, werr, cerr); in show_vdev_stats()
|
| /netbsd/src/external/bsd/tre/dist/lib/ |
| D | tre-match-parallel.c | 143 size_t tbytes, rbytes, pbytes, xbytes, total_bytes; in tre_tnfa_run_parallel() local 161 rbytes = sizeof(*reach_next) * (tnfa->num_states + 1); in tre_tnfa_run_parallel() 166 + (rbytes + xbytes * tnfa->num_states) * 2 + tbytes + pbytes; in tre_tnfa_run_parallel() 183 tmp_buf += rbytes; in tre_tnfa_run_parallel() 186 tmp_buf += rbytes; in tre_tnfa_run_parallel()
|
| /netbsd/src/external/bsd/libarchive/dist/libarchive/ |
| D | archive_read_support_format_cab.c | 82 unsigned char rbytes[4]; member 1767 int64_t cbytes, rbytes; in cab_consume_cfdata() local 1770 rbytes = cab_minimum_consume_cfdata(a, consumed_bytes); in cab_consume_cfdata() 1771 if (rbytes < 0) in cab_consume_cfdata() 1775 while (rbytes > 0) { in cab_consume_cfdata() 1785 if (cbytes > rbytes) in cab_consume_cfdata() 1786 cbytes = rbytes; in cab_consume_cfdata() 1787 rbytes -= cbytes; in cab_consume_cfdata() 1809 rbytes = 0; in cab_consume_cfdata() 1860 int64_t cbytes, rbytes; in cab_minimum_consume_cfdata() local [all …]
|
| D | archive_string.c | 2067 size_t rbytes; in iconv_strncat_in_locale() local 2069 rbytes = sizeof(utf8_replacement_char); in iconv_strncat_in_locale() 2071 rbytes = 2; in iconv_strncat_in_locale() 2073 if (avail < rbytes) { in iconv_strncat_in_locale() 2076 (remaining * to_size) + rbytes; in iconv_strncat_in_locale() 2090 outp += rbytes; in iconv_strncat_in_locale() 2091 avail -= rbytes; in iconv_strncat_in_locale()
|
| D | archive_read_support_format_7zip.c | 2962 header_bytes(struct archive_read *a, size_t rbytes) in header_bytes() argument 2967 if (zip->header_bytes_remaining < rbytes) in header_bytes() 2973 p = __archive_read_ahead(a, rbytes, NULL); in header_bytes() 2976 zip->header_bytes_remaining -= rbytes; in header_bytes() 2977 zip->pack_stream_bytes_unconsumed = rbytes; in header_bytes() 2982 bytes = read_stream(a, &buff, rbytes, rbytes); in header_bytes() 2990 zip->header_crc32 = crc32(zip->header_crc32, p, (unsigned)rbytes); in header_bytes()
|
| D | archive_read_disk_windows.c | 713 DWORD buffbytes, rbytes; in start_next_async_read() local 774 if (!ReadFile(t->entry_fh, olp->buff, buffbytes, &rbytes, &(olp->ol))) { in start_next_async_read() 795 olp->bytes_transferred = rbytes; in start_next_async_read()
|
| /netbsd/src/external/bsd/libarchive/dist/libarchive_fe/ |
| D | passphrase.c | 86 DWORD mode, rbytes; in readpassphrase() local 111 success = ReadFile(hStdin, buf, (DWORD)bufsiz - 1, &rbytes, NULL); in readpassphrase() 115 buf[rbytes] = '\0'; in readpassphrase()
|
| /netbsd/src/usr.bin/gzip/ |
| D | gzip.c | 1420 ssize_t rbytes; in file_uncompress() local 1455 rbytes = read(fd, fourbytes, sizeof fourbytes); in file_uncompress() 1456 if (rbytes != sizeof fourbytes) { in file_uncompress() 1462 if (rbytes == -1) in file_uncompress() 1468 infile_newdata(rbytes); in file_uncompress() 1495 rbytes = pread(fd, name, sizeof(name) - 1, GZIP_ORIGNAME); in file_uncompress() 1496 if (rbytes < 0) { in file_uncompress() 1504 name[rbytes] = '\0'; in file_uncompress() 1521 file, (int) rbytes, nf); in file_uncompress()
|
| /netbsd/src/usr.bin/systat/ |
| D | iostat.c | 268 rwords = cur.rbytes[dn] / 1024.0; in stats()
|
| D | vmstat.c | 899 puthumanint_sticky((cur.rbytes[dn] + cur.wbytes[dn]) / dtime + 0.5, in dinfo()
|
| /netbsd/src/sys/kern/ |
| D | subr_iostat.c | 451 sdrive.rbytes = stats->io_rbytes; in sysctl_hw_iostats()
|