Lines Matching refs:nread
739 size_t nread;
782 nread = readn_nointr(fd, buf, BUFSIZ);
783 while (nread > 0) {
784 if (writen_nointr(tmp_fd, buf, nread) != nread) {
787 nread = readn_nointr(fd, buf, BUFSIZ);
1199 ssize_t nread, loop_count;
1207 nread = readn_nointr(old_fd, *buf, BUFSIZ);
1208 if (nread < 0) {
1213 while (nread == (loop_count * BUFSIZ)) {
1230 nread += nread_tmp;
1232 *bytes_read = nread;
1255 ssize_t nread;
1320 if (read_obj_data(old_fd, (char **)&buf, &nread) != CKR_OK) {
1326 if (soft_keystore_crypt(enc_key, old_iv, B_FALSE, buf, nread,
1338 if (soft_keystore_crypt(enc_key, old_iv, B_FALSE, buf, nread,
2036 ssize_t nread;
2080 rv = read_obj_data(fd, (char **)&buf, &nread);
2086 obj->size = nread;
2096 nread, obj_hmac, &hmac_size) != CKR_OK) {
2103 if (soft_keystore_crypt(enc_key, iv, B_FALSE, buf, nread,
2117 if (soft_keystore_crypt(enc_key, iv, B_FALSE, buf, nread,
2212 ssize_t nread;
2412 nread = readn_nointr(fd, filebuf, sizeof (filebuf));
2413 while (nread > 0) {
2414 if (writen_nointr(tmp_ks_fd, filebuf, nread) != nread) {
2417 nread = readn_nointr(fd, filebuf, sizeof (filebuf));