/freebsd/contrib/wpa/wpa_supplicant/ |
H A D | wifi_display.c | 353 char *buf, size_t buflen) in wifi_display_subelem_get() argument 364 res = wpa_snprintf_hex(buf, buflen, wpabuf_head(ie), in wifi_display_subelem_get() 377 return wpa_snprintf_hex(buf, buflen, in wifi_display_subelem_get() 388 size_t buflen; in wifi_display_subelem_hex() local 399 buflen = wpabuf_len(wfd_subelems); in wifi_display_subelem_hex() 401 while (i + WIFI_DISPLAY_SUBELEM_HEADER_LEN < buflen) { in wifi_display_subelem_hex() 403 if (i + WIFI_DISPLAY_SUBELEM_HEADER_LEN + elen > buflen) in wifi_display_subelem_hex()
|
/freebsd/lib/libutil/tests/ |
H A D | humanize_number_test.c | 50 size_t buflen; member 501 size_t blen, buflen, errcnt, i, skipped, tested; in main() local 508 buflen = 0; in main() 513 read_options(argc, argv, &buflen, &includeNegScale, in main() 520 if (buflen != 4) in main() 521 printf("Warning: buffer size %zu != 4, expect some results to differ.\n", buflen); in main() 525 blen = (buflen > 0) ? buflen : test_args[i].buflen; in main()
|
/freebsd/usr.bin/fstat/ |
H A D | fstat.c | 322 addr_to_string(struct sockaddr_storage *ss, char *buffer, int buflen) in addr_to_string() argument 333 strlcpy(buffer, "-", buflen); in addr_to_string() 335 strlcpy(buffer, sun->sun_path, buflen); in addr_to_string() 341 snprintf(buffer, buflen, "%s:%d", "*", in addr_to_string() 345 snprintf(buffer, buflen, "%s:%d", buffer2, in addr_to_string() 352 snprintf(buffer, buflen, "%s.%d", "*", in addr_to_string() 356 snprintf(buffer, buflen, "%s.%d", buffer2, in addr_to_string() 359 strlcpy(buffer, "-", buflen); in addr_to_string() 363 strlcpy(buffer, "", buflen); in addr_to_string()
|
/freebsd/lib/libfetch/ |
H A D | http.c | 228 io->buflen = nbytes; in http_fillbuf() 230 return (io->buflen); in http_fillbuf() 255 io->buflen = nbytes; in http_fillbuf() 264 return (io->buflen); in http_fillbuf() 507 buf->buflen = 0; in init_http_headerbuf() 522 while (conn->buflen && in http_conn_trimright() 524 conn->buflen--; in http_conn_trimright() 538 if (conn->buflen == 0) in http_next_header() 548 hbuf->buflen = conn->buflen; in http_next_header() 569 len = hbuf->buflen + conn->buflen; in http_next_header() [all …]
|
/freebsd/tests/sys/netinet/ |
H A D | udp_dontroute.c | 60 const size_t buflen = 80; in main() local 61 char recvbuf[buflen]; in main() 122 len = read(t, recvbuf, buflen); in main()
|
/freebsd/sys/net80211/ |
H A D | ieee80211_crypto_tkip.c | 670 size_t buflen; in wep_encrypt() local 690 buflen = m->m_len - off; in wep_encrypt() 692 if (buflen > data_len) in wep_encrypt() 693 buflen = data_len; in wep_encrypt() 694 data_len -= buflen; in wep_encrypt() 709 buflen = m->m_len; in wep_encrypt() 732 size_t buflen; in wep_decrypt() local 749 if (buflen > data_len) in wep_decrypt() 750 buflen = data_len; in wep_decrypt() 751 data_len -= buflen; in wep_decrypt() [all …]
|
/freebsd/sys/dev/ocs_fc/ |
H A D | ocs_gendump.h | 37 extern int ocs_dump_to_host(ocs_t *ocs, void *buf, uint32_t buflen); 38 extern int ocs_function_speciic_dump(ocs_t *ocs, void *buf, uint32_t buflen);
|
/freebsd/crypto/heimdal/appl/telnet/libtelnet/ |
H A D | encrypt.c | 972 unsigned char *buf, size_t buflen) in encrypt_gen_printsub() argument 978 buf[buflen-1] = '\0'; in encrypt_gen_printsub() 979 buf[buflen-2] = '*'; in encrypt_gen_printsub() 980 buflen -= 2;; in encrypt_gen_printsub() 983 for (cp = tbuf; *cp && buflen > 0; --buflen) in encrypt_gen_printsub() 985 if (buflen <= 0) in encrypt_gen_printsub() 993 unsigned char *buf, size_t buflen) in encrypt_printsub() argument 1002 (*ep->printsub)(data, cnt, buf, buflen); in encrypt_printsub() 1004 encrypt_gen_printsub(data, cnt, buf, buflen); in encrypt_printsub()
|
/freebsd/contrib/telnet/libtelnet/ |
H A D | encrypt.c | 915 encrypt_gen_printsub(unsigned char *data, int cnt, unsigned char *buf, int buflen) in encrypt_gen_printsub() argument 921 buf[buflen-1] = '\0'; in encrypt_gen_printsub() 922 buf[buflen-2] = '*'; in encrypt_gen_printsub() 923 buflen -= 2;; in encrypt_gen_printsub() 926 for (cp = tbuf; *cp && buflen > 0; --buflen) in encrypt_gen_printsub() 928 if (buflen <= 0) in encrypt_gen_printsub() 935 encrypt_printsub(unsigned char *data, int cnt, unsigned char *buf, int buflen) in encrypt_printsub() argument 944 (*ep->printsub)(data, cnt, buf, buflen); in encrypt_printsub() 946 encrypt_gen_printsub(data, cnt, buf, buflen); in encrypt_printsub()
|
/freebsd/contrib/netbsd-tests/net/bpfjit/ |
H A D | t_extmem.c | 96 .buflen = sizeof(pkt), in ATF_TC_BODY() 172 .buflen = sizeof(pkt), in ATF_TC_BODY() 230 .buflen = sizeof(pkt), in ATF_TC_BODY() 310 .buflen = sizeof(pkt), in ATF_TC_BODY() 361 .buflen = sizeof(pkt), in ATF_TC_BODY() 413 .buflen = sizeof(pkt), in ATF_TC_BODY() 465 .buflen = sizeof(pkt), in ATF_TC_BODY()
|
/freebsd/sys/contrib/libb2/ |
H A D | blake2bp.c | 72 S->buflen = 0; in blake2bp_init() 93 S->buflen = 0; in blake2bp_init_key() 121 size_t left = S->buflen; in blake2bp_update() 164 S->buflen = ( uint32_t ) left + ( uint32_t ) inlen; in blake2bp_update() 178 if( S->buflen > i * BLAKE2B_BLOCKBYTES ) in blake2bp_final() 180 size_t left = S->buflen - i * BLAKE2B_BLOCKBYTES; in blake2bp_final()
|
H A D | blake2sp.c | 69 S->buflen = 0; in blake2sp_init() 90 S->buflen = 0; in blake2sp_init_key() 118 size_t left = S->buflen; in blake2sp_update() 161 S->buflen = ( uint32_t ) left + ( uint32_t ) inlen; in blake2sp_update() 174 if( S->buflen > i * BLAKE2S_BLOCKBYTES ) in blake2sp_final() 176 size_t left = S->buflen - i * BLAKE2S_BLOCKBYTES; in blake2sp_final()
|
/freebsd/crypto/openssl/doc/man3/ |
H A D | OPENSSL_hexchar2int.pod | 15 int OPENSSL_hexstr2buf_ex(unsigned char *buf, size_t buf_n, long *buflen, 19 const unsigned char *buf, long buflen, 21 char *OPENSSL_buf2hexstr(const unsigned char *buf, long buflen); 33 If I<buflen> is not NULL, it is filled in with the result length. 46 length I<buflen> and places the resulting hexadecimal character string
|
/freebsd/tests/sys/kern/ |
H A D | socket_msg_waitall.c | 35 size_t buflen; in close_test_client() local 37 buflen = p->msglen + 1; in close_test_client() 38 buf = malloc(buflen); in close_test_client() 51 n = recv(s, buf, buflen, MSG_WAITALL); in close_test_client()
|
/freebsd/contrib/netbsd-tests/usr.bin/nbperf/ |
H A D | hash_driver.c | 43 size_t buflen; in main() local 46 while ((len = getline(&line, &buflen, stdin)) > 0) { in main()
|
/freebsd/contrib/libucl/src/ |
H A D | ucl_util.c | 759 size_t buflen; member 814 *buflen = us.size; 852 cbdata.buflen = 0; 867 *buflen = cbdata.buflen; 910 *buflen = 0; 1012 size_t buflen = 0; local 1086 size_t buflen = 0; local 1387 if (buflen > 0) { 1763 size_t buflen; local 1777 buflen = 0; [all …]
|
/freebsd/lib/libc/stdlib/ |
H A D | l64a.c | 26 l64a_r(long value, char *buffer, int buflen) in l64a_r() argument 33 while (buflen-- > 0) { in l64a_r()
|
/freebsd/tools/build/cross-build/include/linux/ |
H A D | unistd.h | 72 getentropy(void *buf, size_t buflen) in getentropy() argument 74 return (syscall(__NR_getrandom, buf, buflen, 0)); in getentropy()
|
/freebsd/sbin/nvmecontrol/ |
H A D | nc_util.c | 33 uint128_to_str(uint128_t u, char *buf, size_t buflen) in uint128_to_str() argument 35 char *end = buf + buflen - 1; in uint128_to_str()
|
/freebsd/tools/regression/netinet/ipbroadcast/ |
H A D | ipbroadcast.c | 126 size_t buflen; in main() local 150 buflen = DEFAULT_PAYLOAD_SIZE; in main() 174 buflen = atoi(optarg); in main() 286 buf = malloc(buflen); in main() 294 iov[0].iov_len = buflen; in main()
|
/freebsd/contrib/wpa/src/eap_peer/ |
H A D | eap_psk.c | 91 size_t buflen, len; in eap_psk_process_1() local 146 buflen = data->id_p_len + data->id_s_len + 2 * EAP_PSK_RAND_LEN; in eap_psk_process_1() 147 buf = os_malloc(buflen); in eap_psk_process_1() 159 if (omac1_aes_128(data->ak, buf, buflen, hdr2->mac_p)) { in eap_psk_process_1() 187 size_t buflen, left, data_len, len, plen; in eap_psk_process_3() local 228 buflen = data->id_s_len + EAP_PSK_RAND_LEN; in eap_psk_process_3() 229 buf = os_malloc(buflen); in eap_psk_process_3() 234 if (omac1_aes_128(data->ak, buf, buflen, mac)) { in eap_psk_process_3()
|
/freebsd/crypto/openssl/apps/ |
H A D | rehash.c | 355 int n, numfiles, nextid, dirlen, buflen, errs = 0; in do_dir() local 397 buflen = dirlen + fname_max_len + 1; in do_dir() 398 buf = app_malloc(buflen, "filename buffer"); in do_dir() 403 if (BIO_snprintf(buf, buflen, "%s%s%s", in do_dir() 404 dirname, pathsep, filename) >= buflen) in do_dir() 426 BIO_snprintf(buf, buflen, "%08x.%s%d", bp->hash, in do_dir() 436 BIO_snprintf(buf, buflen, "%s%s%08x.%s%d", in do_dir() 458 BIO_snprintf(buf, buflen, "%s%s%08x.%s%d", in do_dir()
|
/freebsd/contrib/wpa/src/ap/ |
H A D | p2p_hostapd.h | 15 char *buf, size_t buflen); 26 char *buf, size_t buflen) in hostapd_p2p_get_mib_sta() argument
|
/freebsd/contrib/wpa/hostapd/ |
H A D | ctrl_iface.c | 489 if (os_strlen(pin) > buflen) in hostapd_ctrl_iface_wps_ap_pin() 551 end = buf + buflen; in hostapd_ctrl_iface_wps_get_status() 1049 end = buf + buflen; in hostapd_ctrl_iface_get_key_mgmt() 1192 end = buf + buflen; in hostapd_ctrl_iface_get_config() 2987 end = buf + buflen; in hostapd_ctrl_iface_log_level() 3039 end = buf + buflen; in hostapd_ctrl_iface_track_sta_list() 3327 size_t buflen) in hostapd_ctrl_driver_flags() argument 3338 end = buf + buflen; in hostapd_ctrl_driver_flags() 3355 size_t buflen) in hostapd_ctrl_driver_flags2() argument 3366 end = buf + buflen; in hostapd_ctrl_driver_flags2() [all …]
|
/freebsd/contrib/libarchive/libarchive/ |
H A D | archive_blake2sp_ref.c | 87 S->buflen = 0; in blake2sp_init() 110 S->buflen = 0; in blake2sp_init_key() 138 size_t left = S->buflen; in blake2sp_update() 181 S->buflen = left + inlen; in blake2sp_update() 197 if( S->buflen > i * BLAKE2S_BLOCKBYTES ) in blake2sp_final() 199 size_t left = S->buflen - i * BLAKE2S_BLOCKBYTES; in blake2sp_final()
|