Home
last modified time | relevance | path

Searched refs:nread (Results 1 – 25 of 117) sorted by relevance

12345

/illumos-gate/usr/src/common/util/
H A Dsscanf.c138 nread = 0; in vsscanf()
146 nread++, inr--, inp++; in vsscanf()
166 nread++; in vsscanf()
246 *va_arg(ap, int *) = nread; in vsscanf()
262 nread++; in vsscanf()
298 nread += sum; in vsscanf()
303 nread += width; in vsscanf()
347 nread += n; in vsscanf()
364 nread += n; in vsscanf()
376 nread += p - p0; in vsscanf()
[all …]
/illumos-gate/usr/src/lib/libcryptoutil/common/
H A Dkeyfile.c113 ssize_t nread; in pkcs11_read_data() local
115 for (/* */; left > 0; marker += nread, left -= nread) { in pkcs11_read_data()
117 nread = read(fd, marker, left); in pkcs11_read_data()
118 if (nread > 0 || (nread == 0 && errno == EINTR)) { in pkcs11_read_data()
124 if (nread == 0 && errno == EAGAIN) in pkcs11_read_data()
H A Drandom.c88 ssize_t nread = 0, err; in readn_nointr() local
90 for (err = 0; left > 0 && nread != -1; marker += nread, left -= nread) { in readn_nointr()
91 if ((nread = read(fd, marker, left)) < 0) { in readn_nointr()
93 nread = 0; in readn_nointr()
96 err = nread; /* hard error */ in readn_nointr()
98 } else if (nread == 0) { in readn_nointr()
/illumos-gate/usr/src/lib/libc/port/fp/
H A Dfile_decim.c59 int nread = 0; /* number of characters read so far */ in file_to_decimal() local
63 if (nread < nmax) { \ in file_to_decimal()
69 nread++; \ in file_to_decimal()
88 nread--; in file_to_decimal()
95 nread--; in file_to_decimal()
100 *pnread = nread; in file_to_decimal()
H A Dfunc_decim.c45 int nread = 0; /* number of characters read so far */ in func_to_decimal() local
48 if (nread < nmax) { \ in func_to_decimal()
52 nread++; \ in func_to_decimal()
71 nread--; in func_to_decimal()
76 *pnread = nread; in func_to_decimal()
H A Dstring_decim.c44 int nread = 1; /* number of characters read so far */ in string_to_decimal() local
49 if (nread < nmax) { \ in string_to_decimal()
51 nread++; \ in string_to_decimal()
/illumos-gate/usr/src/boot/libsa/
H A Dsplitfs.c195 ssize_t nread; in splitfs_read() local
205 if (nread == -1) in splitfs_read()
208 sf->tot_pos += nread; in splitfs_read()
209 sf->file_pos += nread; in splitfs_read()
210 totread += nread; in splitfs_read()
211 buf = (char *)buf + nread; in splitfs_read()
237 int nread; in splitfs_seek() local
273 nread = 0; in splitfs_seek()
274 for (; seek_by > 0; seek_by -= nread) { in splitfs_seek()
277 nread = min(seek_by, SEEK_BUF) - resid; in splitfs_seek()
[all …]
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dvfscanf.c163 nread = 0;
180 nread++, fp->f_r--, fp->f_p++;
203 nread++;
347 nread++;
393 nread += sum;
404 nread += r;
457 nread += n;
476 nread += n;
492 nread += p - p0;
647 nread += p - buf;
[all …]
/illumos-gate/usr/src/lib/libmail/common/
H A Dcopystream.c55 size_t nread; in copystream() local
57 while ((nread = fread(buffer, sizeof (char), sizeof (buffer), in copystream()
59 if (fwrite(buffer, sizeof (char), nread, outfp) != nread) in copystream()
H A Dxgetenv.c94 ssize_t i, nread; in xsetenv() local
103 nread = read(infd, xbuf, sizeof (xbuf)); in xsetenv()
104 if (nread < 0) { in xsetenv()
117 for (i = 0, envctr = 0; i < nread; i++) { in xsetenv()
/illumos-gate/usr/src/cmd/tip/aculib/
H A Dventel.c173 int already = 0, nread; in vensync() local
207 if (ioctl(fd, FIONREAD, (caddr_t)&nread) < 0) { in vensync()
211 while (nread > 0) { in vensync()
212 (void) read(fd, buf, min(nread, 60)); in vensync()
213 if ((buf[nread - 1] & 0177) == '$') in vensync()
215 nread -= min(nread, 60); in vensync()
/illumos-gate/usr/src/test/bhyve-tests/tests/kdev/
H A Dvhpet_freq.c99 uint_t nread = 0; in main() local
116 readings[nread].when = gethrtime(); in main()
117 readings[nread].value = v; in main()
121 nread++; in main()
122 if (nread != 2) { in main()
132 nread = 0; in main()
H A Dvatpit_freq.c94 uint_t nread = 0; in main() local
115 readings[nread].when = gethrtime(); in main()
116 readings[nread].value = v; in main()
120 nread++; in main()
121 if (nread != 2) { in main()
131 nread = 0; in main()
H A Dvpmtmr_freq.c104 uint_t nread = 0; in main() local
121 readings[nread].when = gethrtime(); in main()
122 readings[nread].value = vexit.u.inout.eax; in main()
126 nread++; in main()
127 if (nread != 2) { in main()
137 nread = 0; in main()
H A Dvlapic_freq.c95 uint_t nread = 0; in test_for_divisor() local
118 readings[nread].when = gethrtime(); in test_for_divisor()
119 readings[nread].value = v; in test_for_divisor()
122 nread++; in test_for_divisor()
123 if (nread != 2) { in test_for_divisor()
134 nread = 0; in test_for_divisor()
H A Dvlapic_freq_periodic.c100 uint_t nread = 0; in run_test() local
128 readings[nread].when = gethrtime(); in run_test()
129 readings[nread].value = v; in run_test()
132 nread++; in run_test()
133 if (nread != 2) { in run_test()
144 nread = 0; in run_test()
/illumos-gate/usr/src/test/libmlrpc-tests/tests/common/
H A Dutil_common.c33 size_t nread; in read_buf_from_file() local
61 nread = fread(buf, 1, stats.st_size, fp); in read_buf_from_file()
62 if (nread == EOF && errno != 0) { in read_buf_from_file()
70 if (nread == EOF) { in read_buf_from_file()
74 *size = nread; in read_buf_from_file()
/illumos-gate/usr/src/cmd/boot/bootadm/
H A Dbootadm_digest.c45 ssize_t nread; in bootadm_digest() local
62 while ((nread = read(fd, buf, sizeof (buf))) > 0) in bootadm_digest()
63 SHA1Update(&sha1_ctx, buf, nread); in bootadm_digest()
64 if (nread == -1) { in bootadm_digest()
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftKeystoreUtil.c731 size_t nread; in create_updated_keystore_version() local
775 while (nread > 0) { in create_updated_keystore_version()
776 if (writen_nointr(tmp_fd, buf, nread) != nread) { in create_updated_keystore_version()
1203 if (nread < 0) { in read_obj_data()
1225 nread += nread_tmp; in read_obj_data()
1250 ssize_t nread; in reencrypt_obj() local
2025 ssize_t nread; in soft_keystore_get_single_obj() local
2075 obj->size = nread; in soft_keystore_get_single_obj()
2201 ssize_t nread; in soft_keystore_put_new_obj() local
2402 while (nread > 0) { in soft_keystore_put_new_obj()
[all …]
/illumos-gate/usr/src/tools/ctf/stabs/common/
H A Dgenassym.c114 int nread; in ga_parse_common() local
120 if ((nread = ga_parse_tokens(line, max, wret)) < min) in ga_parse_common()
123 if (nread < 3 && wret[2] != NULL) in ga_parse_common()
125 if (nread < 2 && wret[1] != NULL) in ga_parse_common()
127 if (nread < 1 && wret[0] != NULL) in ga_parse_common()
130 return (nread); in ga_parse_common()
/illumos-gate/usr/src/cmd/mailx/
H A Dcollect.c62 static int stripnulls(char *linebuf, int nread);
212 int nread, hasnulls; in collect() local
266 if (write(fileno(obuf),linebuf,nread) != nread) in collect()
281 nread = stripnulls(linebuf, nread); in collect()
330 if (write(fileno(obuf),linebuf,nread) != nread) in collect()
338 if (write(fileno(obuf),linebuf+1,nread-1) != (nread-1)) in collect()
343 nread = stripnulls(linebuf, nread); in collect()
345 linebuf[nread - 1] = '\0'; in collect()
1373 stripnulls(char *linebuf, int nread) in stripnulls() argument
1377 for (i = 0; i < nread; i++) in stripnulls()
[all …]
/illumos-gate/usr/src/lib/smbclnt/libfknsmb/common/
H A Dfake_ktli.c380 int nread; in tli_recv() local
390 nread = FKTLI_RCV_SZ; in tli_recv()
391 m = allocb_wait(nread, 0, 0, &error); in tli_recv()
399 n = t_rcv(vp->v_fd, (void *) m->b_rptr, nread, &flags); in tli_recv()
410 ASSERT(n > 0 && n <= nread); in tli_recv()
415 m = allocb_wait(nread, 0, 0, &error); in tli_recv()
/illumos-gate/usr/src/cmd/krb5/kadmin/dbutil/
H A Ddump.c2113 int nread; local
2133 if (nread == 5) {
2183 if (nread == 8) {
2214 if (nread == 2) {
2277 if (nread == 2) {
2283 if (nread == 2) {
2391 if (nread == EOF)
2408 int nread, ret; local
2422 *linenop, nread);
2453 int nread; local
[all …]
/illumos-gate/usr/src/lib/libslp/clib/
H A Dslp_net.c578 ssize_t nread; in slp_tcp_read() local
585 if ((nread = read(sockfd, p, 5)) < 0) { in slp_tcp_read()
587 nread = 0; in slp_tcp_read()
590 } else if (nread == 0) in slp_tcp_read()
593 nleft -= nread; in slp_tcp_read()
594 p += nread; in slp_tcp_read()
611 if ((nread = read(sockfd, p, nleft)) < 0) { in slp_tcp_read()
613 nread = 0; in slp_tcp_read()
618 } else if (nread == 0) in slp_tcp_read()
625 nleft -= nread; in slp_tcp_read()
[all …]
/illumos-gate/usr/src/uts/common/io/ixgbe/
H A Dixgbe_transceiver.c111 size_t nbytes, off_t offset, size_t *nread) in ixgbe_transceiver_read() argument
119 if (id != 0 || buf == NULL || nbytes == 0 || nread == NULL || in ixgbe_transceiver_read()
166 *nread = i; in ixgbe_transceiver_read()

12345