Home
last modified time | relevance | path

Searched refs:rbytes (Results 1 – 20 of 20) sorted by relevance

/netbsd/src/usr.sbin/dumplfs/
Dmisc.c55 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/
Disns_thread.c130 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/
Dcgi-bozo.c119 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/
Ddrvstats.c115 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()
Ddrvstats.h46 u_int64_t *rbytes; /* # of bytes read. */ member
Dvmstat.c616 bytes = cur.rbytes[j] + cur.wbytes[j]; in choosedrives()
/netbsd/src/usr.sbin/iostat/
Diostat.c605 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/
Dtape.h54 uint64_t rbytes; member
69 uint64_t rbytes; /* total bytes read */ member
Diostat.h66 u_int64_t rbytes; member
/netbsd/src/external/cddl/osnet/dist/lib/libzpool/common/
Dutil.c76 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/
Dtre-match-parallel.c143 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/
Darchive_read_support_format_cab.c82 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 …]
Darchive_string.c2067 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()
Darchive_read_support_format_7zip.c2962 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()
Darchive_read_disk_windows.c713 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/
Dpassphrase.c86 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/
Dgzip.c1420 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/
Diostat.c268 rwords = cur.rbytes[dn] / 1024.0; in stats()
Dvmstat.c899 puthumanint_sticky((cur.rbytes[dn] + cur.wbytes[dn]) / dtime + 0.5, in dinfo()
/netbsd/src/sys/kern/
Dsubr_iostat.c451 sdrive.rbytes = stats->io_rbytes; in sysctl_hw_iostats()