/illumos-gate/usr/src/lib/libmail/common/ |
H A D | copystream.c | 55 size_t nread; local 57 while ((nread = fread(buffer, sizeof (char), sizeof (buffer), 59 if (fwrite(buffer, sizeof (char), nread, outfp) != nread)
|
H A D | xgetenv.c | 94 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/libwanbootutil/common/ |
H A D | wbio.c | 61 size_t nread; local 65 for (nread = 0; nread < buflen; nread += nbytes) { 66 nbytes = read(fd, &buf[nread], buflen - nread);
|
/illumos-gate/usr/src/lib/libbc/libc/gen/common/ |
H A D | file_decim.c | 49 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 D | func_decim.c | 50 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 D | string_decim.c | 47 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/libcryptoutil/common/ |
H A D | keyfile.c | 113 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 D | random.c | 88 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/lib/libc/port/fp/ |
H A D | file_decim.c | 59 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 D | func_decim.c | 45 int nread = 0; /* number of characters read so far */ local 48 if (nread < nmax) { \ 52 nread++; \ 71 nread--; 76 *pnread = nread;
|
H A D | string_decim.c | 44 int nread = 1; /* number of characters read so far */ local 49 if (nread < nmax) { \ 51 nread++; \
|
/illumos-gate/usr/src/cmd/tip/aculib/ |
H A D | ventel.c | 173 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/cmd/boot/bootadm/ |
H A D | bootadm_digest.c | 63 ssize_t nread; local 70 while ((nread = read(fd, buf, sizeof (buf))) > 0) { 72 rv = C_DigestUpdate(hSession, buf, (CK_ULONG)nread); 78 if (nread == -1) {
|
/illumos-gate/usr/src/cmd/sendmail/libsm/ |
H A D | vfscanf.c | 125 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 D | support.c | 162 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 D | splitfs.c | 195 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 D | checkpw.c | 475 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 D | doscan.c | 247 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 D | sscanf.c | 123 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/power/ |
H A D | parse.c | 219 ssize_t nread; local 233 nread = read(fd, buf, size); 235 if (nread != (ssize_t)size) 237 size, nread, name);
|
/illumos-gate/usr/src/cmd/bnu/ |
H A D | eio.c | 419 int len, nread; local 431 nread = Nbytes; 432 if (nread == 0) 434 len = erdblk(bufr, nread, fn);
|
/illumos-gate/usr/src/tools/ctf/stabs/common/ |
H A D | genassym.c | 114 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/psm/stand/cpr/sparcv9/sun4u/ |
H A D | cprboot.c | 349 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/uts/common/fs/smbsrv/ |
H A D | smb_opipe.c | 550 int nread = 0, trval; local 551 rc = smb_opipe_ioctl(sr, FIONREAD, &nread, &trval); 552 if (rc == 0 && nread != 0)
|
/illumos-gate/usr/src/lib/sasl_plugins/cram/ |
H A D | cram.c | 166 int nread = 0; local 169 nread = read(fd, temp, 4); 172 if (nread != 4)
|