Home
last modified time | relevance | path

Searched refs:bytes_read (Results 1 – 25 of 27) sorted by relevance

12

/onnv-gate/usr/src/cmd/ntfsprogs/
H A Dntfscat.c338 s64 bytes_read, written; in cat() local
365 bytes_read = ntfs_attr_mst_pread(attr, offset, 1, block_size, buffer); in cat()
366 if (bytes_read > 0) in cat()
367 bytes_read *= block_size; in cat()
369 bytes_read = ntfs_attr_pread(attr, offset, bufsize, buffer); in cat()
372 if (bytes_read == -1) { in cat()
376 if (!bytes_read) in cat()
379 written = fwrite(buffer, 1, bytes_read, stdout); in cat()
380 if (written != bytes_read) { in cat()
384 offset += bytes_read; in cat()
H A Dntfsinfo.c990 s64 data_size, bytes_read; in ntfs_dump_attr_security_descriptor() local
998 bytes_read = ntfs_rl_pread(vol, rl, 0, in ntfs_dump_attr_security_descriptor()
1000 if (bytes_read != data_size) { in ntfs_dump_attr_security_descriptor()
1923 s64 bytes_read; in ntfs_dump_attr_ea() local
1930 bytes_read = ntfs_rl_pread(vol, rl, 0, data_size, buf); in ntfs_dump_attr_ea()
1931 if (bytes_read != data_size) { in ntfs_dump_attr_ea()
/onnv-gate/usr/src/cmd/luxadm/
H A Dfabric_conf.c102 unsigned int bytes_read; in read_repos_file() local
138 bytes_read = 0; in read_repos_file()
139 while (bytes_read < filesize) { in read_repos_file()
141 while (bytes_read < filesize && *tmp_ptr != '\n') { in read_repos_file()
142 bytes_read++; in read_repos_file()
148 bytes_read++; in read_repos_file()
H A Dfcalupdate.c137 int fbuf_idx, fd1, bytes_read; in fcal_update() local
164 while (!strfound && ((bytes_read = read(fd1, in fcal_update()
166 for (fbuf_idx = 0; fbuf_idx < bytes_read; in fcal_update()
/onnv-gate/usr/src/common/openssl/apps/
H A Ds_time.c182 static long bytes_read=0; variable
205 bytes_read=0; in s_time_init()
499 bytes_read=0; in MAIN()
522 bytes_read+=i; in MAIN()
556 …f connections/user sec, bytes read %ld\n", nConn, totalTime, ((double)nConn/totalTime),bytes_read); in MAIN()
557 …onds, %ld bytes read per connection\n",nConn,(long)time(NULL)-finishtime+maxTime,bytes_read/nConn); in MAIN()
592 bytes_read=0; in MAIN()
615 bytes_read+=i; in MAIN()
646 …f connections/user sec, bytes read %ld\n", nConn, totalTime, ((double)nConn/totalTime),bytes_read); in MAIN()
647 …onds, %ld bytes read per connection\n",nConn,(long)time(NULL)-finishtime+maxTime,bytes_read/nConn); in MAIN()
/onnv-gate/usr/src/uts/common/io/scsi/adapters/iscsi/
H A Dnvfile.c1084 int bytes_read; in nvf_parse() local
1105 bytes_read = nvf_read(file, (char *)&hdr, sizeof (hdr)); in nvf_parse()
1106 if (bytes_read != sizeof (hdr)) { in nvf_parse()
1141 bytes_read = nvf_read(file, buf, hdr.nvfh_size); in nvf_parse()
1142 if (bytes_read != hdr.nvfh_size) { in nvf_parse()
1145 if (bytes_read < 0) { in nvf_parse()
1147 "to read %s bytes:%d", filename, bytes_read); in nvf_parse()
1151 bytes_read, (longlong_t)hdr.nvfh_size); in nvf_parse()
1159 bytes_read = nvf_read(file, &overfill, 1); in nvf_parse()
1161 if (bytes_read > 0) { in nvf_parse()
/onnv-gate/usr/src/lib/libntfs/common/libntfs/
H A Dcrypto.c1411 s64 bytes_read, offset, total, length; in ntfs_crypto_attr_pread() local
1459 bytes_read = ntfs_rl_pread(na->ni->vol, na->rl, offset, in ntfs_crypto_attr_pread()
1461 if (!bytes_read) in ntfs_crypto_attr_pread()
1463 if (bytes_read != NTFS_EFS_SECTOR_SIZE) { in ntfs_crypto_attr_pread()
1465 "bytes", "ntfs_crypto_attr_pread", bytes_read); in ntfs_crypto_attr_pread()
1469 offset)) < bytes_read) { in ntfs_crypto_attr_pread()
1472 i, (long long)bytes_read, in ntfs_crypto_attr_pread()
1489 offset += bytes_read; in ntfs_crypto_attr_pread()
H A Drunlist.c1038 s64 bytes_read, to_read, ofs, total; in ntfs_rl_pread() local
1073 bytes_read = ntfs_pread(vol->u.dev, (rl->lcn << in ntfs_rl_pread()
1076 if (bytes_read > 0) { in ntfs_rl_pread()
1077 total += bytes_read; in ntfs_rl_pread()
1078 count -= bytes_read; in ntfs_rl_pread()
1079 b = (u8*)b + bytes_read; in ntfs_rl_pread()
1083 if (bytes_read == (s64)-1 && errno == EINTR) in ntfs_rl_pread()
1085 if (bytes_read == (s64)-1) in ntfs_rl_pread()
H A Dvolume.c730 int bytes_read, ret = -1; in ntfs_volume_check_hiberfile() local
750 bytes_read = ntfs_attr_pread(na, 0, NTFS_HIBERFILE_HEADER_SIZE, buf); in ntfs_volume_check_hiberfile()
751 if (bytes_read == -1) { in ntfs_volume_check_hiberfile()
755 if (bytes_read < NTFS_HIBERFILE_HEADER_SIZE) { in ntfs_volume_check_hiberfile()
H A Dattrib.c4038 s64 arec_size, bytes_read; in ntfs_attr_make_resident() local
4146 bytes_read = ntfs_rl_pread(vol, na->rl, 0, na->initialized_size, in ntfs_attr_make_resident()
4148 if (bytes_read != na->initialized_size) { in ntfs_attr_make_resident()
4149 if (bytes_read >= 0) in ntfs_attr_make_resident()
/onnv-gate/usr/src/uts/common/fs/ufs/
H A Dufs_directio.c818 ssize_t resid, bytes_read; in ufs_directio_read() local
940 bytes_read = 0; in ufs_directio_read()
995 bytes_read += nbytes; in ufs_directio_read()
1034 newerror = directio_wait(tail, &bytes_read); in ufs_directio_read()
1048 uio->uio_resid -= bytes_read; in ufs_directio_read()
/onnv-gate/usr/src/cmd/perl/5.8.4/distrib/lib/Net/FTP/
H A Ddataconn.pm115 sub bytes_read { subroutine
/onnv-gate/usr/src/cmd/utmpd/
H A Dutmpd.c629 int bytes_read; in drain_pipe() local
639 if ((bytes_read = read(Pfd, p, sizeof (struct pidrec))) != in drain_pipe()
645 if (bytes_read > 0) in drain_pipe()
/onnv-gate/usr/src/cmd/gencat/
H A Dgencat.c417 int nbytes, bytes_read; local
424 bytes_read = READ(fd, p + nbytes, n - nbytes);
425 if (bytes_read < 0) {
431 } else if (bytes_read == 0)
434 nbytes += bytes_read;
/onnv-gate/usr/src/cmd/hal/hald/
H A Dhald.c263 gsize bytes_read; in sigterm_iochn_data() local
267 g_io_channel_read_chars (source, data, 1, &bytes_read, &err)) { in sigterm_iochn_data()
/onnv-gate/usr/src/cmd/vscan/vscand/
H A Dvs_icap.c1177 int bytes_read = 0; in vs_icap_read() local
1181 bytes_read = read(fd, ptr, resid); in vs_icap_read()
1182 if (bytes_read < 0) { in vs_icap_read()
1188 resid -= bytes_read; in vs_icap_read()
1189 ptr += bytes_read; in vs_icap_read()
/onnv-gate/usr/src/cmd/rmvolmgr/
H A Drmvolmgr.c278 gsize bytes_read; in sigexit_ioch_func() local
281 if (g_io_channel_read_chars(source, buf, 1, &bytes_read, &error) != in sigexit_ioch_func()
/onnv-gate/usr/src/uts/sun4v/io/
H A Dldc.c3892 size_t len = 0, bytes_read = 0; in i_ldc_read_packet() local
4007 bytes_read = 0; in i_ldc_read_packet()
4053 bytes_read = 0; in i_ldc_read_packet()
4062 bytes_read = 0; in i_ldc_read_packet()
4116 bytes_read = 0; in i_ldc_read_packet()
4137 bytes_read, ldcp->last_msg_rcd, in i_ldc_read_packet()
4141 bytes_read = 0; in i_ldc_read_packet()
4152 if (len <= (*sizep - bytes_read)) { in i_ldc_read_packet()
4155 bytes_read += len; in i_ldc_read_packet()
4165 curr_head, *sizep, bytes_read+len); in i_ldc_read_packet()
[all …]
/onnv-gate/usr/src/lib/libsmedia/plugins/scsi/common/
H A Ds_generic.c300 int32_t ret_val, bytes_read; in _m_raw_read() local
353 bytes_read = retraw_read->nbytes; in _m_raw_read()
355 return (bytes_read); in _m_raw_read()
/onnv-gate/usr/src/cmd/ssh/sftp-server/
H A Dsftp-server.c181 u_int64_t bytes_read, bytes_write; member
212 handles[i].bytes_read = handles[i].bytes_write = 0; in handle_new()
280 handles[handle].bytes_read += bytes; in handle_update_read()
294 return (handles[handle].bytes_read); in handle_bytes_read()
/onnv-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_pool.c3387 zpool_history_unpack(char *buf, uint64_t bytes_read, uint64_t *leftover, in zpool_history_unpack() argument
3394 while (bytes_read > sizeof (reclen)) { in zpool_history_unpack()
3400 if (bytes_read < sizeof (reclen) + reclen) in zpool_history_unpack()
3406 bytes_read -= sizeof (reclen) + reclen; in zpool_history_unpack()
3418 *leftover = bytes_read; in zpool_history_unpack()
3437 uint64_t bytes_read = sizeof (buf); in zpool_get_history() local
3440 if ((err = get_history(zhp, buf, &off, &bytes_read)) != 0) in zpool_get_history()
3444 if (!bytes_read) in zpool_get_history()
3447 if ((err = zpool_history_unpack(buf, bytes_read, in zpool_get_history()
/onnv-gate/usr/src/cmd/perl/5.8.4/distrib/lib/Tie/
H A DFile.pm687 my $bytes_read = read $fh, my($data), $readsize;
694 $spos += $bytes_read;
695 $dpos += $bytes_read;
696 $len -= $bytes_read if defined $len;
/onnv-gate/usr/src/uts/common/io/hxge/
H A Dhxge_rxdma.c1662 uint32_t bytes_read; in hxge_receive_packet() local
1936 bytes_read = rcr_p->rcvd_pkt_bytes; in hxge_receive_packet()
1961 if (l2_len - bytes_read < bsize) { in hxge_receive_packet()
1963 &nmp->b_rptr[l2_len - bytes_read]; in hxge_receive_packet()
1976 l2_len - bytes_read < bsize ? in hxge_receive_packet()
1977 l2_len - bytes_read : bsize); in hxge_receive_packet()
1983 bytes_read = nmp->b_wptr - nmp->b_rptr; in hxge_receive_packet()
1985 bytes_read += nmp->b_wptr - nmp->b_rptr; in hxge_receive_packet()
2036 rcr_p->rcvd_pkt_bytes = bytes_read; in hxge_receive_packet()
/onnv-gate/usr/src/uts/common/io/nxge/
H A Dnxge_rxdma.c2201 uint32_t bytes_read; in nxge_receive_packet() local
2584 bytes_read = rcr_p->rcvd_pkt_bytes; in nxge_receive_packet()
2601 if (l2_len - bytes_read < bsize) { in nxge_receive_packet()
2603 &nmp->b_rptr[l2_len - bytes_read]; in nxge_receive_packet()
2616 l2_len - bytes_read < bsize ? in nxge_receive_packet()
2617 l2_len - bytes_read : bsize); in nxge_receive_packet()
2635 bytes_read = nmp->b_wptr - nmp->b_rptr; in nxge_receive_packet()
2637 rdc_stats->ibytes += l2_len - bytes_read < bsize ? in nxge_receive_packet()
2638 l2_len - bytes_read : bsize; in nxge_receive_packet()
2639 bytes_read += nmp->b_wptr - nmp->b_rptr; in nxge_receive_packet()
[all …]
/onnv-gate/usr/src/uts/i86pc/os/
H A Dfakebop.c556 int bytes_read; in boot_prop_finish() local
583 bytes_read = BRD_READ(bfs_ops, fd, line + c, 1); in boot_prop_finish()
584 if (bytes_read == 0) { in boot_prop_finish()

12