Home
last modified time | relevance | path

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

/freebsd-12.1/usr.bin/head/
H A Dhead.c138 size_t error, readlen; in head() local
140 while (cnt && (cp = fgetln(fp, &readlen)) != NULL) { in head()
141 error = fwrite(cp, sizeof(char), readlen, stdout); in head()
142 if (error != readlen) in head()
152 size_t readlen; in head_bytes() local
156 readlen = cnt; in head_bytes()
158 readlen = sizeof(buf); in head_bytes()
159 readlen = fread(buf, sizeof(char), readlen, fp); in head_bytes()
160 if (readlen == 0) in head_bytes()
162 if (fwrite(buf, sizeof(char), readlen, stdout) != readlen) in head_bytes()
[all …]
/freebsd-12.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-12.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.c432 int eof, readlen; in pw_copy() local
485 readlen = read(ffd, end, size - (end - buf)); in pw_copy()
486 if (readlen == -1) in pw_copy()
489 len = (size_t)readlen; in pw_copy()
557 readlen = read(ffd, buf, size); in pw_copy()
558 if (readlen == 0) in pw_copy()
561 len = (size_t)readlen; in pw_copy()
562 if (readlen == -1) in pw_copy()
/freebsd-12.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-12.1/contrib/wpa/src/common/
H A Dwpa_ctrl.c727 DWORD readlen = *reply_len; in wpa_ctrl_request() local
732 if (!ReadFile(ctrl->pipe, reply, *reply_len, &readlen, NULL)) in wpa_ctrl_request()
734 *reply_len = readlen; in wpa_ctrl_request()
/freebsd-12.1/sys/sys/
H A Dttyqueue.h77 size_t readlen, size_t flushlen);
/freebsd-12.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-12.1/sys/cam/scsi/
H A Dscsi_cd.c1625 u_int32_t len, readlen, idx, num; in cdioctl() local
1683 readlen = (th->ending_track - starting_track + 1) * in cdioctl()
1687 len = readlen + sizeof(struct cd_toc_entry); in cdioctl()
1690 if (readlen > len) in cdioctl()
1691 readlen = len; in cdioctl()
1704 if (readlen > 0) { in cdioctl()
1708 readlen + sizeof (*th), in cdioctl()
/freebsd-12.1/contrib/sendmail/src/
H A Dconf.c5657 ssize_t readlen; local
5684 while ((readlen = read(src, &buf, sizeof(buf))) > 0)
5686 ssize_t left = readlen;
5700 if (readlen < 0 || writelen < 0)
/freebsd-12.1/contrib/gcc/
H A Dgcc.c1977 int readlen; in load_specs() local
1996 readlen = read (desc, buffer, (unsigned) statbuf.st_size); in load_specs()
1997 if (readlen < 0) in load_specs()
1999 buffer[readlen] = 0; in load_specs()
2002 specs = XNEWVEC (char, readlen + 1); in load_specs()