Searched defs:nread (Results 1 - 25 of 74) sorted by relevance

123

/illumos-gate/usr/src/lib/libmail/common/
H A Dcopystream.c55 size_t nread; local
57 while ((nread = fread(buffer, sizeof (char), sizeof (buffer),
59 if (fwrite(buffer, sizeof (char), nread, outfp) != nread)
H A Dxgetenv.c94 ssize_t i, nread; local
103 nread = read(infd, xbuf, sizeof (xbuf));
104 if (nread < 0) {
117 for (i = 0, envctr = 0; i < nread; i++) {
/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A Dfile_decim.c49 register int nread = 1; /* Number of characters read so far. */ local
59 if (nread < nmax) \
60 { cp++ ; current = getc(pf) ; *cp = current ; nread++ ;} \
68 if (nread < nmax) {
75 nread--;
80 *pnread = nread;
H A Dfunc_decim.c50 register int nread = 1; /* Number of characters read so far. */ local
60 if (nread < nmax) \
61 { cp++ ; current = (*pget)() ; *cp = current ; nread++ ;} \
69 if ((nread < nmax) && (punget != NULL)) {
77 nread--;
82 *pnread = nread;
H A Dstring_decim.c47 register int nread = 1; /* Number of characters read so far. */ local
56 if (nread < nmax) \
57 {cp++ ; current = *cp ; nread++ ;} \
/illumos-gate/usr/src/lib/libc/port/fp/
H A Dfile_decim.c59 int nread = 0; /* number of characters read so far */ local
63 if (nread < nmax) { \
69 nread++; \
88 nread--;
95 nread--;
100 *pnread = nread;
H A Dfunc_decim.c45 int nread = 0; /* number of characters read so far */ local
48 if (nread < nmax) { \
52 nread++; \
71 nread--;
76 *pnread = nread;
H A Dstring_decim.c44 int nread = 1; /* number of characters read so far */ local
49 if (nread < nmax) { \
51 nread++; \
/illumos-gate/usr/src/lib/libcryptoutil/common/
H A Dkeyfile.c113 ssize_t nread; local
115 for (/* */; left > 0; marker += nread, left -= nread) {
117 nread = read(fd, marker, left);
118 if (nread > 0 || (nread == 0 && errno == EINTR)) {
124 if (nread == 0 && errno == EAGAIN)
H A Drandom.c88 ssize_t nread = 0, err; local
90 for (err = 0; left > 0 && nread != -1; marker += nread, left -= nread) {
91 if ((nread = read(fd, marker, left)) < 0) {
93 nread = 0;
96 err = nread; /* hard error */
98 } else if (nread == 0) {
/illumos-gate/usr/src/cmd/boot/bootadm/
H A Dbootadm_digest.c45 ssize_t nread; local
62 while ((nread = read(fd, buf, sizeof (buf))) > 0)
63 SHA1Update(&sha1_ctx, buf, nread);
64 if (nread == -1) {
/illumos-gate/usr/src/cmd/tip/aculib/
H A Dventel.c173 int already = 0, nread; local
207 if (ioctl(fd, FIONREAD, (caddr_t)&nread) < 0) {
211 while (nread > 0) {
212 (void) read(fd, buf, min(nread, 60));
213 if ((buf[nread - 1] & 0177) == '$')
215 nread -= min(nread, 60);
/illumos-gate/usr/src/uts/common/io/ixgbe/
H A Dixgbe_transceiver.c111 size_t nbytes, off_t offset, size_t *nread)
119 if (id != 0 || buf == NULL || nbytes == 0 || nread == NULL ||
166 *nread = i;
110 ixgbe_transceiver_read(void *arg, uint_t id, uint_t page, void *bp, size_t nbytes, off_t offset, size_t *nread) argument
/illumos-gate/usr/src/uts/common/io/bnxe/
H A Dbnxe_illumos.c115 size_t nbytes, off_t offset, size_t *nread)
123 if (id != 0 || bp == NULL || nbytes == 0 || nread == NULL ||
154 *nread = nbytes;
114 bnxe_transceiver_read(void *arg, uint_t id, uint_t page, void *bp, size_t nbytes, off_t offset, size_t *nread) argument
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dvfscanf.c125 int nread; /* number of characters consumed from fp */ local
163 nread = 0;
180 nread++, fp->f_r--, fp->f_p++;
203 nread++;
312 *SM_VA_ARG(ap, short *) = nread;
314 *SM_VA_ARG(ap, long *) = nread;
316 *SM_VA_ARG(ap, int *) = nread;
347 nread++;
393 nread += sum;
404 nread
[all...]
/illumos-gate/usr/src/psm/stand/cpr/common/
H A Dsupport.c162 int nread; local
165 nread = cpr_read(fd, (caddr_t)cdp, sizeof (*cdp));
166 if (nread != sizeof (*cdp)) {
/illumos-gate/usr/src/boot/lib/libstand/
H A Dsplitfs.c195 ssize_t nread; local
202 nread = read(sf->curfd, buf, size - totread);
205 if (nread == -1)
208 sf->tot_pos += nread;
209 sf->file_pos += nread;
210 totread += nread;
211 buf = (char *)buf + nread;
237 int nread; local
273 nread = 0;
274 for (; seek_by > 0; seek_by -= nread) {
[all...]
/illumos-gate/usr/src/lib/libsasl/lib/
H A Dcheckpw.c475 int nread = 0; local
487 nread += n;
489 if (nread >= (int) nbyte) return nread;
/illumos-gate/usr/src/lib/libbc/libc/stdio/common/
H A Ddoscan.c247 int nread, ic; local
254 file_to_decimal(&nb, len, 0, &dr, &form, &echar, iop, &nread);
271 chcount += nread; /* Count characters read. */
/illumos-gate/usr/src/common/util/
H A Dsscanf.c123 int nread; /* number of characters consumed from fp */ local
138 nread = 0;
146 nread++, inr--, inp++;
166 nread++;
242 *va_arg(ap, short *) = (short)nread;
244 *va_arg(ap, long *) = (long)nread;
246 *va_arg(ap, int *) = nread;
262 nread++;
298 nread += sum;
303 nread
[all...]
/illumos-gate/usr/src/cmd/bnu/
H A Deio.c419 int len, nread; local
431 nread = Nbytes;
432 if (nread == 0)
434 len = erdblk(bufr, nread, fn);
/illumos-gate/usr/src/psm/stand/cpr/sparcv9/sun4u/
H A Dcprboot.c349 ssize_t nread; local
431 nread = cpr_read(sfile.fd, dst_virt, len);
432 if (nread != (ssize_t)len) {
434 "expect %ld, got %ld\n", str, len, nread);
/illumos-gate/usr/src/cmd/power/
H A Dparse.c219 ssize_t nread; local
233 nread = read(fd, buf, size);
235 if (nread != (ssize_t)size)
237 size, nread, name);
/illumos-gate/usr/src/tools/ctf/stabs/common/
H A Dgenassym.c114 int nread; local
120 if ((nread = ga_parse_tokens(line, max, wret)) < min)
123 if (nread < 3 && wret[2] != NULL)
125 if (nread < 2 && wret[1] != NULL)
127 if (nread < 1 && wret[0] != NULL)
130 return (nread);
/illumos-gate/usr/src/lib/smbclnt/libfknsmb/common/
H A Dfake_ktli.c380 int nread; local
390 nread = FKTLI_RCV_SZ;
391 m = allocb_wait(nread, 0, 0, &error);
399 n = t_rcv(vp->v_fd, (void *) m->b_rptr, nread, &flags);
410 ASSERT(n > 0 && n <= nread);
415 m = allocb_wait(nread, 0, 0, &error);

Completed in 177 milliseconds

123