Home
last modified time | relevance | path

Searched refs:nread (Results 51 – 75 of 119) sorted by relevance

12345

/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_target.c510 ssize_t n = -1, nread = mdb_tgt_aread(t, as, buf, nbytes, addr); in mdb_tgt_readstr() local
513 if (nread >= 0) { in mdb_tgt_readstr()
514 if ((p = memchr(buf, '\0', nread)) != NULL) in mdb_tgt_readstr()
515 nread = (size_t)(p - buf); in mdb_tgt_readstr()
519 nread = 0; in mdb_tgt_readstr()
522 while (nread < nbytes && (n = mdb_tgt_aread(t, as, p, 1, addr)) == 1) { in mdb_tgt_readstr()
524 return (nread); in mdb_tgt_readstr()
525 nread++; in mdb_tgt_readstr()
530 if (nread == 0 && n == -1) in mdb_tgt_readstr()
535 buf[MIN(nread, nbytes - 1)] = '\0'; in mdb_tgt_readstr()
[all …]
/illumos-gate/usr/src/cmd/sa/
H A Dsar.c794 aio->kios.nread += dio->kios.nread in update_counters()
795 = nio->kios.nread - oio->kios.nread; in update_counters()
862 BLKS(xio[ii].kios.nread + xio[ii].kios.nwritten) / etime, in prt_d_opt()
/illumos-gate/usr/src/cmd/troff/nroff.d/
H A Dn10.c106 int nread, fd; in ptinit() local
121 nread = read(fd, codestr, (int) stbuf.st_size); in ptinit()
164 while (p < codestr + nread) { in ptinit()
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_opipe.c702 int nread = 0, trval; in smb_opipe_transceive() local
703 rc = smb_opipe_ioctl(sr, FIONREAD, &nread, &trval); in smb_opipe_transceive()
704 if (rc == 0 && nread != 0) in smb_opipe_transceive()
/illumos-gate/usr/src/cmd/mailx/
H A Dsend.c77 int ishead, infld, fline, dostat, doclen, nread, unused; in msend() local
96 nread = getaline(line, LINESIZE, ibuf, &unused); in msend()
97 c -= nread; in msend()
/illumos-gate/usr/src/lib/sasl_plugins/cram/
H A Dcram.c165 int nread = 0; in randomdigits() local
168 nread = read(fd, temp, 4); in randomdigits()
171 if (nread != 4) in randomdigits()
/illumos-gate/usr/src/lib/libc/port/stdio/
H A Ddoscan.c661 int nread; in number() local
667 file_to_decimal(&nb, len, lc, &dr, &form, &echar, iop, &nread); in number()
673 if (nb != buffer + nread) in number()
726 (*chcount) += nread; /* Count characters read. */ in number()
/illumos-gate/usr/src/cmd/bhyve/
H A Dgdb.c1752 ssize_t nread; in gdb_readable() local
1773 nread = read(fd, io_buffer_tail(&cur_comm), io_buffer_avail(&cur_comm)); in gdb_readable()
1774 if (nread == 0) { in gdb_readable()
1776 } else if (nread == -1) { in gdb_readable()
1783 cur_comm.len += nread; in gdb_readable()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Din.rlogind.c1585 int nread; in readstream() local
1596 if (ioctl(fd, I_NREAD, &nread) < 0) { in readstream()
1600 if (nread + nbytes > bufsize) { in readstream()
1601 buf = (char *)realloc(buf, (unsigned)(bufsize + nread)); in readstream()
1607 bufsize += nread; in readstream()
/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dufs_directio.c105 kstat_named_t nread; member
287 ufs_directio_kstats.nread.value.ui64 += nbytes; in directio_start()
777 ufs_directio_kstats.nread.value.ui64 += nbytes; in directio_hole()
/illumos-gate/usr/src/cmd/stat/common/
H A Dacquire_iodevs.c485 controller->is_stats.nread += disk->is_stats.nread; in collate_controller()
790 tgt->is_stats.nread += path->is_stats.nread; in update_target()
/illumos-gate/usr/src/lib/libldap5/sources/ldap/ber/
H A Dio.c185 ber_int_t nread = 0; in BerRead() local
189 if ( nread > 0 ) in BerRead()
194 nread++; in BerRead()
198 return( nread ); in BerRead()
/illumos-gate/usr/src/cmd/lofiadm/
H A Dmain.c994 ssize_t nread; in getkeyfromfile() local
1045 for (cursz = 0, nread = 0; cursz < *ksz; cursz += nread) { in getkeyfromfile()
1046 nread = read(fd, *key, *ksz); in getkeyfromfile()
1047 if (nread > 0) in getkeyfromfile()
1057 if (nread == 0 && notplain && cursz >= cipher->min_keysize) { in getkeyfromfile()
/illumos-gate/usr/src/uts/common/io/mlxcx/
H A Dmlxcx_gld.c408 size_t nbytes, off_t offset, size_t *nread) in mlxcx_mac_txr_read() argument
417 if (id != 0 || vbuf == NULL || nbytes == 0 || nread == NULL) in mlxcx_mac_txr_read()
452 *nread = 0; in mlxcx_mac_txr_read()
457 *nread = 0; in mlxcx_mac_txr_read()
466 *nread = done; in mlxcx_mac_txr_read()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/
H A Dfinger.c1413 int nread; in catfile() local
1415 nread = read(fd, buf, sizeof (buf)); in catfile()
1416 if (nread > 0) { in catfile()
1421 for (p = buf; p < buf + nread; p++) { in catfile()
/illumos-gate/usr/src/lib/libtecla/common/
H A Dgetline.c1804 gl->nread = 0; in new_GetLine()
2843 gl->nread = 0; in gl_get_input_line()
3148 if(gl->nread < gl->nbuf) { in gl_read_terminal()
3154 gl->nread++; in gl_read_terminal()
3159 memmove(gl->keybuf + gl->nread, gl->keybuf + gl->nread + 1, in gl_read_terminal()
3195 gl->nread = ++gl->nbuf; in gl_read_terminal()
3315 nread = read(fd, c, 1); in gl_read_unmasked()
3324 switch(nread) { in gl_read_unmasked()
3350 gl->nread = 0; in gl_discard_chars()
3352 gl->nbuf = gl->nread = 0; in gl_discard_chars()
[all …]
/illumos-gate/usr/src/uts/sun4v/io/
H A Dvnet_txdring.c980 size_t nread; in vgen_process_dringdata() local
1132 nread = nbytes; in vgen_process_dringdata()
1134 (caddr_t)mp->b_rptr, off, &nread, in vgen_process_dringdata()
1178 if (nread != nbytes) { in vgen_process_dringdata()
1181 nread, nbytes); in vgen_process_dringdata()
/illumos-gate/usr/src/uts/common/xen/io/
H A Dxdf.h291 kip->nread += n_done; \
/illumos-gate/usr/src/uts/common/sys/
H A Dkstat.h597 u_longlong_t nread; /* number of bytes read */ member
/illumos-gate/usr/src/lib/storage/liba5k/common/
H A Dmon.c4183 int nread; in check_dpm_file() local
4193 nread = read(fd, (void *)&theRec, 4); in check_dpm_file()
4194 if (nread != 4) { in check_dpm_file()
4207 nread = read(fd, (void *)&theRec.data[0], ((reclen*2) +1)); in check_dpm_file()
4208 if (nread != ((reclen*2) +1)) { in check_dpm_file()
4219 nread = read(fd, (void *)&theRec, 4); in check_dpm_file()
4220 if (nread != 4) { in check_dpm_file()
4233 nread = read(fd, (void *)&theRec.data[0], ((reclen*2) +1)); in check_dpm_file()
4234 if (nread != ((reclen*2) +1)) { in check_dpm_file()
/illumos-gate/usr/src/uts/common/io/i40e/
H A Di40e_gld.c629 size_t nbytes, off_t offset, size_t *nread) in i40e_transceiver_read() argument
636 if (id != 0 || buf == NULL || nbytes == 0 || nread == NULL || in i40e_transceiver_read()
685 *nread = nbytes; in i40e_transceiver_read()
/illumos-gate/usr/src/cmd/stat/fsstat/
H A Dfsstat.c187 ndataread = DELTA(nread); in dflt_display()
224 PRINTSTAT(niceflag, "%5s ", "%lld:", DELTA(nread), buf); in io_display()
/illumos-gate/usr/src/uts/common/io/comstar/stmf/
H A Dstmf_impl.h54 kip->nread += dbuf->db_data_size; \
/illumos-gate/usr/src/uts/intel/io/dktp/drvobj/
H A Dstrategy.c269 KSTAT_IO_PTR(dsnglp->ds_kstat)->nread += in dsngl_deque()
404 KSTAT_IO_PTR(dmultp->ds_kstat)->nread += in dmult_deque()
627 KSTAT_IO_PTR(duplxp->ds_kstat)->nread += in duplx_deque()
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/ccache/
H A Dcc_file.c385 int nread, e; in krb5_fcc_read() local
394 nread = read(data->file, data->buf, sizeof(data->buf)); in krb5_fcc_read()
396 if (nread < 0) in krb5_fcc_read()
398 if (nread == 0) in krb5_fcc_read()
401 data->valid_bytes = nread; in krb5_fcc_read()

12345