Home
last modified time | relevance | path

Searched refs:rlen (Results 51 – 75 of 154) sorted by relevance

1234567

/freebsd/contrib/bearssl/tools/
H A Dfiles.c49 size_t rlen; in read_file() local
51 rlen = fread(tmp, 1, sizeof tmp, f); in read_file()
52 if (rlen == 0) { in read_file()
68 VEC_ADDMANY(vbuf, tmp, rlen); in read_file()
H A Dtwrch.c131 DWORD rlen; in stdin_read() local
133 ssize_t rlen; in stdin_read()
139 buf, len, &rlen, NULL) || rlen == 0; in stdin_read()
141 rlen = read(0, buf, len); in stdin_read()
142 if (rlen <= 0) { in stdin_read()
143 if (rlen < 0 && errno == EINTR) { in stdin_read()
160 dump_blob("recv", buf, (size_t)rlen); in stdin_read()
162 return (int)rlen; in stdin_read()
/freebsd/contrib/bearssl/src/ssl/
H A Dssl_rec_chapol.c73 chapol_check_length(const br_sslrec_chapol_context *cc, size_t rlen) in chapol_check_length() argument
79 return rlen >= 16 && rlen <= (16384 + 16); in chapol_check_length()
H A Dssl_rec_ccm.c55 ccm_check_length(const br_sslrec_ccm_context *cc, size_t rlen) in ccm_check_length() argument
64 return rlen >= over && rlen <= (16384 + over); in ccm_check_length()
H A Dssl_rec_gcm.c62 gcm_check_length(const br_sslrec_gcm_context *cc, size_t rlen) in gcm_check_length() argument
70 return rlen >= 24 && rlen <= (16384 + 24); in gcm_check_length()
H A Dssl_engine.c636 unsigned rlen; in recvrec_ack() local
679 rlen = br_dec16be(rc->ibuf + 3); in recvrec_ack()
682 &rc->in.vtable, rlen)) in recvrec_ack()
687 if (rlen > (rc->ibuf_len - 5)) { in recvrec_ack()
692 if (rlen > 16384) { in recvrec_ack()
711 if (rlen == 0) { in recvrec_ack()
715 rc->ixc = rlen; in recvrec_ack()
H A Dssl_rec_cbc.c50 cbc_check_length(const br_sslrec_in_cbc_context *cc, size_t rlen) in cbc_check_length() argument
73 return min_len <= rlen && rlen <= max_len; in cbc_check_length()
/freebsd/crypto/heimdal/lib/krb5/
H A Dprincipal.c698 int rlen, in krb5_build_principal() argument
705 ret = krb5_build_principal_va(context, principal, rlen, realm, ap); in krb5_build_principal()
803 int rlen, in build_principal() argument
834 int rlen, in krb5_build_principal_va() argument
838 return build_principal(context, principal, rlen, realm, va_princ, ap); in krb5_build_principal_va()
844 int rlen, in krb5_build_principal_va_ext() argument
848 return build_principal(context, principal, rlen, realm, va_ext_princ, ap); in krb5_build_principal_va_ext()
855 int rlen, in krb5_build_principal_ext() argument
862 ret = krb5_build_principal_va_ext(context, principal, rlen, realm, ap); in krb5_build_principal_ext()
/freebsd/crypto/heimdal/lib/hx509/
H A Dname.c83 quote_string(const char *f, size_t len, int flags, size_t *rlen) in quote_string() argument
116 *rlen = j; in quote_string()
332 dsstringprep(const DirectoryString *ds, uint32_t **rname, size_t *rlen) in dsstringprep() argument
340 *rlen = 0; in dsstringprep()
382 *rlen = len; in dsstringprep()
385 *rlen = *rlen * 2; in dsstringprep()
386 *rname = malloc(*rlen * sizeof((*rname)[0])); in dsstringprep()
388 ret = wind_stringprep(name, len, *rname, rlen, flags); in dsstringprep()
401 *rlen = 0; in dsstringprep()
/freebsd/crypto/openssh/
H A Dcipher.c120 size_t nlen, rlen = 0; in cipher_alg_list() local
129 ret[rlen++] = sep; in cipher_alg_list()
131 if ((tmp = realloc(ret, rlen + nlen + 2)) == NULL) { in cipher_alg_list()
136 memcpy(ret + rlen, c->name, nlen + 1); in cipher_alg_list()
137 rlen += nlen; in cipher_alg_list()
H A Dssh-dss.c267 size_t rlen, slen, len, dlen = ssh_digest_bytes(SSH_DIGEST_SHA1); in ssh_dss_sign() local
292 rlen = BN_num_bytes(sig_r); in ssh_dss_sign()
294 if (rlen > INTBLOB_LEN || slen > INTBLOB_LEN) { in ssh_dss_sign()
299 BN_bn2bin(sig_r, sigblob + SIGBLOB_LEN - INTBLOB_LEN - rlen); in ssh_dss_sign()
/freebsd/sys/dev/acpica/
H A Dacpi_timer.c124 rman_res_t rlen, rstart; in acpi_timer_identify() local
151 rlen = AcpiGbl_FADT.PmTimerLength; in acpi_timer_identify()
153 if (bus_set_resource(dev, rtype, rid, rstart, rlen)) in acpi_timer_identify()
155 (rtype == SYS_RES_IOPORT) ? "port" : "mem", rstart, rlen); in acpi_timer_identify()
/freebsd/usr.sbin/dconschat/
H A Ddconschat.c474 int rlen, dlen, lost; in dconschat_read_dcons() local
512 rlen = pos - ch->pos; in dconschat_read_dcons()
514 rlen = ch->size - ch->pos; in dconschat_read_dcons()
516 if (rlen > MAX_XFER) in dconschat_read_dcons()
517 rlen = MAX_XFER; in dconschat_read_dcons()
518 if (rlen > len) in dconschat_read_dcons()
519 rlen = len; in dconschat_read_dcons()
523 printf("[%d]", rlen); fflush(stdout); in dconschat_read_dcons()
527 dlen = dread(dc, buf, rlen, ch->buf + ch->pos); in dconschat_read_dcons()
535 if (dlen != rlen) in dconschat_read_dcons()
[all …]
/freebsd/sys/contrib/dev/iwlwifi/fw/
H A Ddebugfs.c16 ssize_t rlen; \
44 data->rlen = iwl_dbgfs_##name##_read(data->arg, \
49 if (data->rlen < 0) \
50 return data->rlen; \
52 data->rbuf, data->rlen); \
/freebsd/sys/net80211/
H A Dieee80211_radiotap.c56 struct ieee80211_radiotap_header *rh, int rlen, uint32_t rx_radiotap) in ieee80211_radiotap_attach() argument
59 rh, rlen, 0, rx_radiotap); in ieee80211_radiotap_attach()
67 int rlen, int n_rx_v, uint32_t rx_radiotap) in ieee80211_radiotap_attachv() argument
88 rh->it_len = htole16(roundup2(rlen, sizeof(uint32_t))); in ieee80211_radiotap_attachv()
/freebsd/contrib/blocklist/lib/
H A Dbl.c436 ssize_t rlen; in bl_recv() local
455 rlen = recvmsg(b->b_fd, &msg, 0); in bl_recv()
456 if (rlen == -1) { in bl_recv()
507 rem = (size_t)rlen; in bl_recv()
509 bl_log(b->b_fun, LOG_ERR, "message too short %zd", rlen); in bl_recv()
/freebsd/usr.sbin/dumpcis/
H A Dprintcis.c182 unsigned int rlen, mlen = 0, i; in dump_config_map() local
184 rlen = (p[0] & 3) + 1; in dump_config_map()
187 if (tp->length < rlen + mlen + 2) { in dump_config_map()
192 rlen, parse_num(rlen | 0x10, p + 2, &p, 0), p[1]); in dump_config_map()
201 i = tp->length - (rlen + mlen + 2); in dump_config_map()
/freebsd/usr.bin/whereis/
H A Dwhereis.c386 regoff_t rlen; in main() local
504 (rlen = matches[1].rm_eo - in main()
511 cp2 = malloc(rlen + 1); in main()
516 rlen); in main()
517 cp2[rlen] = '\0'; in main()
/freebsd/tests/sys/kern/
H A Dunix_passfd_test.c638 ssize_t len, rlen; in ATF_TC_BODY() local
675 rlen = recvfd_payload(fd[1], &getfd, buf, len, in ATF_TC_BODY()
677 ATF_REQUIRE_MSG(rlen == len, in ATF_TC_BODY()
678 "recvmsg: %zd bytes received; expected %zd", rlen, len); in ATF_TC_BODY()
972 ssize_t rlen; in ATF_TC_BODY() local
981 rlen = recvfd_payload(fd[1], &getfd, buf, 2, in ATF_TC_BODY()
983 ATF_REQUIRE_MSG(rlen == 1, in ATF_TC_BODY()
984 "recvmsg: %zd bytes received; expected 1", rlen); in ATF_TC_BODY()
/freebsd/stand/libsa/
H A Dbootparam.c243 int rc = -1, sn_len, path_len, rlen; in bp_getfile() local
273 rlen = rpc_call(d, in bp_getfile()
277 if (rlen < 4) { in bp_getfile()
/freebsd/crypto/openssl/crypto/bn/
H A Dbn_gcd.c553 int i, j, top, rlen, glen, m, bit = 1, delta = 1, cond = 0, shifts = 0, ret = 0; in BN_gcd() local
608 rlen = BN_num_bits(r); in BN_gcd()
610 m = 4 + 3 * ((rlen >= glen) ? rlen : glen); in BN_gcd()
/freebsd/usr.sbin/powerd/
H A Dpowerd.c333 ssize_t rlen; local
336 rlen = read(devd_pipe, buf, sizeof(buf));
337 if (rlen == 0 || (rlen < 0 && errno != EWOULDBLOCK)) {
344 if (rlen > 0 &&
/freebsd/contrib/llvm-project/openmp/runtime/src/
H A Dkmp_utility.cpp313 void __kmp_expand_file_name(char *result, size_t rlen, char *pattern) { in __kmp_expand_file_name() argument
314 char *pos = result, *end = result + rlen - 1; in __kmp_expand_file_name()
319 KMP_DEBUG_ASSERT(rlen > 0); in __kmp_expand_file_name()
/freebsd/lib/libc/net/
H A Drcmd.c421 iruserok_sa(const void *ra, int rlen, int superuser, const char *ruser, in iruserok_sa() argument
435 if (rlen <= 0 || rlen > sizeof(ss)) in iruserok_sa()
437 memcpy(&ss, ra, rlen); in iruserok_sa()
444 if (__ivaliduser_sa(hostf, raddr, rlen, luser, ruser) == 0) { in iruserok_sa()
/freebsd/libexec/bootpd/
H A Drtmsg.c178 int rlen; in rtmsg() local
219 if ((rlen = write(s, (char *)&m_rtmsg, l)) < 0) { in rtmsg()

1234567