Home
last modified time | relevance | path

Searched refs:readlen (Results 1 – 11 of 11) sorted by relevance

/freebsd-13.1/usr.bin/head/
H A Dhead.c161 size_t error, readlen; in head() local
163 while (cnt != 0 && (cp = fgetln(fp, &readlen)) != NULL) { in head()
164 error = fwrite(cp, sizeof(char), readlen, stdout); in head()
165 if (error != readlen) in head()
175 size_t readlen; in head_bytes() local
179 readlen = cnt; in head_bytes()
181 readlen = sizeof(buf); in head_bytes()
182 readlen = fread(buf, sizeof(char), readlen, fp); in head_bytes()
183 if (readlen == 0) in head_bytes()
185 if (fwrite(buf, sizeof(char), readlen, stdout) != readlen) in head_bytes()
[all …]
/freebsd-13.1/stand/forth/
H A Dcheck-password.4th43 variable readlen \ input length
61 dup 0<> if ( and ) readlen @ readmax < if
91 0 readlen !
99 0 readlen ! \ Initialize the read length
117 0 readlen ! \ Reset input to NULL
119 readlen @ 1 - dup readlen ! \ Decrement input length
120 dup 0< if drop 0 dup readlen ! then \ Don't go negative
125 readlen @ 1+ dup readlen ! 1- readval + c!
142 2dup readval readlen @ compare 0<>
153 readval readlen @ s" kern.geom.eli.passphrase" setenv
[all …]
/freebsd-13.1/tests/sys/kern/
H A Dsendfile_helper.c59 ssize_t readlen = (uintptr_t)arg; in server() local
74 readlen -= rv; in server()
75 } while (readlen != 0); in server()
/freebsd-13.1/lib/libutil/
H A Dgr_util.c173 int eof, readlen; in gr_copy() local
226 readlen = read(ffd, end, size - (end - buf)); in gr_copy()
227 if (readlen == -1) in gr_copy()
230 len = (size_t)readlen; in gr_copy()
297 readlen = read(ffd, buf, size); in gr_copy()
298 if (readlen == 0) in gr_copy()
301 len = (size_t)readlen; in gr_copy()
302 if (readlen == -1) in gr_copy()
H A Dpw_util.c435 int eof, readlen; in pw_copy() local
488 readlen = read(ffd, end, size - (end - buf)); in pw_copy()
489 if (readlen == -1) in pw_copy()
492 len = (size_t)readlen; in pw_copy()
560 readlen = read(ffd, buf, size); in pw_copy()
561 if (readlen == 0) in pw_copy()
564 len = (size_t)readlen; in pw_copy()
565 if (readlen == -1) in pw_copy()
/freebsd-13.1/contrib/serf/buckets/
H A Dbuckets.c328 apr_size_t readlen; in common_databuf_prep() local
344 databuf->buf, &readlen); in common_databuf_prep()
350 databuf->remaining = readlen; in common_databuf_prep()
/freebsd-13.1/contrib/wpa/src/common/
H A Dwpa_ctrl.c726 DWORD readlen = *reply_len; in wpa_ctrl_request() local
731 if (!ReadFile(ctrl->pipe, reply, *reply_len, &readlen, NULL)) in wpa_ctrl_request()
733 *reply_len = readlen; in wpa_ctrl_request()
/freebsd-13.1/sys/sys/
H A Dttyqueue.h77 size_t readlen, size_t flushlen);
/freebsd-13.1/contrib/subversion/subversion/libsvn_subr/
H A Dsubst.c1258 apr_size_t readlen = SVN__STREAM_CHUNK_SIZE; in translated_stream_read() local
1281 while (readlen == SVN__STREAM_CHUNK_SIZE && unsatisfied > 0) in translated_stream_read()
1294 SVN_ERR(svn_stream_read_full(b->stream, b->buf, &readlen)); in translated_stream_read()
1298 readlen, b->iterpool)); in translated_stream_read()
1300 if (readlen != SVN__STREAM_CHUNK_SIZE) in translated_stream_read()
/freebsd-13.1/sys/cam/scsi/
H A Dscsi_cd.c2063 u_int32_t len, readlen, idx, num; in cdioctl() local
2121 readlen = (th->ending_track - starting_track + 1) * in cdioctl()
2125 len = readlen + sizeof(struct cd_toc_entry); in cdioctl()
2128 if (readlen > len) in cdioctl()
2129 readlen = len; in cdioctl()
2142 if (readlen > 0) { in cdioctl()
2146 readlen + sizeof (*th), in cdioctl()
/freebsd-13.1/contrib/sendmail/src/
H A Dconf.c5735 ssize_t readlen; local
5762 while ((readlen = read(src, &buf, sizeof(buf))) > 0)
5764 ssize_t left = readlen;
5778 if (readlen < 0 || writelen < 0)