Home
last modified time | relevance | path

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

/freebsd/usr.bin/head/
H A Dhead.c161 ssize_t readlen; in head() local
163 while (cnt != 0 && (readlen = getline(&cp, &bufsize, fp)) >= 0) { in head()
164 error = fwrite(cp, sizeof(char), readlen, stdout); in head()
165 if ((ssize_t)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/tests/sys/kern/
H A Dsendfile_helper.c46 ssize_t readlen; variable
116 readlen -= rv; in receiver()
117 } while (readlen != 0); in receiver()
153 readlen = strtoull(argv[2], NULL, 0); in main()
170 if (sendfile(fd, ss[0], start, readlen, NULL, NULL, flags) < 0) in main()
/freebsd/stand/forth/
H A Dcheck-password.4th42 variable readlen \ input length
60 dup 0<> if ( and ) readlen @ readmax < if
90 0 readlen !
98 0 readlen ! \ Initialize the read length
116 0 readlen ! \ Reset input to NULL
118 readlen @ 1 - dup readlen ! \ Decrement input length
119 dup 0< if drop 0 dup readlen ! then \ Don't go negative
124 readlen @ 1+ dup readlen ! 1- readval + c!
141 2dup readval readlen @ compare 0<>
152 readval readlen @ s" kern.geom.eli.passphrase" setenv
[all …]
/freebsd/lib/libutil/
H A Dgr_util.c170 int eof, readlen; in gr_copy() local
223 readlen = read(ffd, end, size - (end - buf)); in gr_copy()
224 if (readlen == -1) in gr_copy()
227 len = (size_t)readlen; in gr_copy()
294 readlen = read(ffd, buf, size); in gr_copy()
295 if (readlen == 0) in gr_copy()
298 len = (size_t)readlen; in gr_copy()
299 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/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/sys/sys/
H A Dttyqueue.h75 size_t readlen, size_t flushlen);
/freebsd/sys/cam/scsi/
H A Dscsi_cd.c2054 uint32_t len, readlen, idx, num; in cdioctl() local
2112 readlen = (th->ending_track - starting_track + 1) * in cdioctl()
2116 len = readlen + sizeof(struct cd_toc_entry); in cdioctl()
2119 if (readlen > len) in cdioctl()
2120 readlen = len; in cdioctl()
2133 if (readlen > 0) { in cdioctl()
2137 readlen + sizeof (*th), in cdioctl()
/freebsd/contrib/sendmail/src/
H A Dconf.c5763 ssize_t readlen; local
5790 while ((readlen = read(src, &buf, sizeof(buf))) > 0)
5792 ssize_t left = readlen;
5806 if (readlen < 0 || writelen < 0)