/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/ |
D | ctrl_iface_ap.c | 29 static size_t hostapd_write_ht_mcs_bitmask(char *buf, size_t buflen, in hostapd_write_ht_mcs_bitmask() argument 35 ret = os_snprintf(buf + len, buflen - len, in hostapd_write_ht_mcs_bitmask() 37 if (os_snprintf_error(buflen - len, ret)) in hostapd_write_ht_mcs_bitmask() 42 len += wpa_snprintf_hex(buf + len, buflen - len, mcs_set, 10); in hostapd_write_ht_mcs_bitmask() 44 ret = os_snprintf(buf + len, buflen - len, "\n"); in hostapd_write_ht_mcs_bitmask() 45 if (os_snprintf_error(buflen - len, ret)) in hostapd_write_ht_mcs_bitmask() 55 char *buf, size_t buflen) in hostapd_get_sta_conn_time() argument 72 ret = os_snprintf(buf, buflen, "connected_time=%lu\n", secs); in hostapd_get_sta_conn_time() 73 if (os_snprintf_error(buflen, ret)) in hostapd_get_sta_conn_time() 81 char *buf, size_t buflen) in hostapd_get_sta_info() argument [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/ |
D | ctrl_iface_ap.c | 29 static size_t hostapd_write_ht_mcs_bitmask(char *buf, size_t buflen, in hostapd_write_ht_mcs_bitmask() argument 35 ret = os_snprintf(buf + len, buflen - len, in hostapd_write_ht_mcs_bitmask() 37 if (os_snprintf_error(buflen - len, ret)) in hostapd_write_ht_mcs_bitmask() 42 len += wpa_snprintf_hex(buf + len, buflen - len, mcs_set, 10); in hostapd_write_ht_mcs_bitmask() 44 ret = os_snprintf(buf + len, buflen - len, "\n"); in hostapd_write_ht_mcs_bitmask() 45 if (os_snprintf_error(buflen - len, ret)) in hostapd_write_ht_mcs_bitmask() 55 char *buf, size_t buflen) in hostapd_get_sta_tx_rx() argument 64 ret = os_snprintf(buf, buflen, "rx_packets=%lu\ntx_packets=%lu\n" in hostapd_get_sta_tx_rx() 70 if (os_snprintf_error(buflen, ret)) in hostapd_get_sta_tx_rx() 74 ret = os_snprintf(buf + len, buflen - len, "rx_rate_info=%lu", in hostapd_get_sta_tx_rx() [all …]
|
/third_party/openssl/crypto/ |
D | o_str.c | 138 static int hexstr2buf_sep(unsigned char *buf, size_t buf_n, size_t *buflen, in hexstr2buf_sep() argument 173 if (buflen != NULL) in hexstr2buf_sep() 174 *buflen = cnt; in hexstr2buf_sep() 181 int OPENSSL_hexstr2buf_ex(unsigned char *buf, size_t buf_n, size_t *buflen, in OPENSSL_hexstr2buf_ex() argument 184 return hexstr2buf_sep(buf, buf_n, buflen, str, sep); in OPENSSL_hexstr2buf_ex() 187 unsigned char *ossl_hexstr2buf_sep(const char *str, long *buflen, in ossl_hexstr2buf_sep() argument 204 if (buflen != NULL) in ossl_hexstr2buf_sep() 205 *buflen = 0; in ossl_hexstr2buf_sep() 208 if (buflen != NULL) in ossl_hexstr2buf_sep() 209 *buflen = (long)tmp_buflen; in ossl_hexstr2buf_sep() [all …]
|
/third_party/node/deps/openssl/openssl/crypto/ |
D | o_str.c | 138 static int hexstr2buf_sep(unsigned char *buf, size_t buf_n, size_t *buflen, in hexstr2buf_sep() argument 173 if (buflen != NULL) in hexstr2buf_sep() 174 *buflen = cnt; in hexstr2buf_sep() 181 int OPENSSL_hexstr2buf_ex(unsigned char *buf, size_t buf_n, size_t *buflen, in OPENSSL_hexstr2buf_ex() argument 184 return hexstr2buf_sep(buf, buf_n, buflen, str, sep); in OPENSSL_hexstr2buf_ex() 187 unsigned char *ossl_hexstr2buf_sep(const char *str, long *buflen, in ossl_hexstr2buf_sep() argument 204 if (buflen != NULL) in ossl_hexstr2buf_sep() 205 *buflen = 0; in ossl_hexstr2buf_sep() 208 if (buflen != NULL) in ossl_hexstr2buf_sep() 209 *buflen = (long)tmp_buflen; in ossl_hexstr2buf_sep() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/fst/ |
D | fst_ctrl_iface.c | 171 static int session_get(const char *session_id, char *buf, size_t buflen) in session_get() argument 183 return os_snprintf(buf, buflen, "FAIL\n"); in session_get() 191 return os_snprintf(buf, buflen, in session_get() 210 static int session_set(const char *session_id, char *buf, size_t buflen) in session_set() argument 222 return os_snprintf(buf, buflen, "FAIL\n"); in session_set() 226 return os_snprintf(buf, buflen, "FAIL\n"); in session_set() 241 return os_snprintf(buf, buflen, "FAIL\n"); in session_set() 244 return os_snprintf(buf, buflen, "%s\n", ret ? "FAIL" : "OK"); in session_set() 249 static int session_add(const char *group_id, char *buf, size_t buflen) in session_add() argument 258 return os_snprintf(buf, buflen, "FAIL\n"); in session_add() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/fst/ |
D | fst_ctrl_iface.c | 171 static int session_get(const char *session_id, char *buf, size_t buflen) in session_get() argument 183 return os_snprintf(buf, buflen, "FAIL\n"); in session_get() 191 return os_snprintf(buf, buflen, in session_get() 210 static int session_set(const char *session_id, char *buf, size_t buflen) in session_set() argument 222 return os_snprintf(buf, buflen, "FAIL\n"); in session_set() 226 return os_snprintf(buf, buflen, "FAIL\n"); in session_set() 241 return os_snprintf(buf, buflen, "FAIL\n"); in session_set() 244 return os_snprintf(buf, buflen, "%s\n", ret ? "FAIL" : "OK"); in session_set() 249 static int session_add(const char *group_id, char *buf, size_t buflen) in session_add() argument 258 return os_snprintf(buf, buflen, "FAIL\n"); in session_add() [all …]
|
/third_party/openssl/providers/implementations/ciphers/ |
D | ciphercommon_block.c | 56 size_t ossl_cipher_fillblock(unsigned char *buf, size_t *buflen, in ossl_cipher_fillblock() argument 61 size_t bufremain = blocksize - *buflen; in ossl_cipher_fillblock() 63 assert(*buflen <= blocksize); in ossl_cipher_fillblock() 68 memcpy(buf + *buflen, *in, bufremain); in ossl_cipher_fillblock() 71 *buflen += bufremain; in ossl_cipher_fillblock() 80 int ossl_cipher_trailingdata(unsigned char *buf, size_t *buflen, size_t blocksize, in ossl_cipher_trailingdata() argument 86 if (*buflen + *inlen > blocksize) { in ossl_cipher_trailingdata() 91 memcpy(buf + *buflen, *in, *inlen); in ossl_cipher_trailingdata() 92 *buflen += *inlen; in ossl_cipher_trailingdata() 99 void ossl_cipher_padblock(unsigned char *buf, size_t *buflen, size_t blocksize) in ossl_cipher_padblock() argument [all …]
|
/third_party/node/deps/openssl/openssl/providers/implementations/ciphers/ |
D | ciphercommon_block.c | 56 size_t ossl_cipher_fillblock(unsigned char *buf, size_t *buflen, in ossl_cipher_fillblock() argument 61 size_t bufremain = blocksize - *buflen; in ossl_cipher_fillblock() 63 assert(*buflen <= blocksize); in ossl_cipher_fillblock() 68 memcpy(buf + *buflen, *in, bufremain); in ossl_cipher_fillblock() 71 *buflen += bufremain; in ossl_cipher_fillblock() 80 int ossl_cipher_trailingdata(unsigned char *buf, size_t *buflen, size_t blocksize, in ossl_cipher_trailingdata() argument 86 if (*buflen + *inlen > blocksize) { in ossl_cipher_trailingdata() 91 memcpy(buf + *buflen, *in, *inlen); in ossl_cipher_trailingdata() 92 *buflen += *inlen; in ossl_cipher_trailingdata() 99 void ossl_cipher_padblock(unsigned char *buf, size_t *buflen, size_t blocksize) in ossl_cipher_padblock() argument [all …]
|
/third_party/node/deps/uv/src/ |
D | random.c | 31 static int uv__random(void* buf, size_t buflen) { in uv__random() argument 35 rc = uv__random_readpath("/dev/urandom", buf, buflen); in uv__random() 37 rc = uv__random_readpath("/dev/random", buf, buflen); in uv__random() 40 rc = uv__random_getentropy(buf, buflen); in uv__random() 42 rc = uv__random_devurandom(buf, buflen); in uv__random() 44 rc = uv__random_sysctl(buf, buflen); in uv__random() 46 rc = uv__random_getrandom(buf, buflen); in uv__random() 48 rc = uv__random_devurandom(buf, buflen); in uv__random() 58 rc = uv__random_sysctl(buf, buflen); in uv__random() 64 rc = uv__random_rtlgenrandom(buf, buflen); in uv__random() [all …]
|
/third_party/libuv/src/ |
D | random.c | 31 static int uv__random(void* buf, size_t buflen) { in uv__random() argument 35 rc = uv__random_readpath("/dev/urandom", buf, buflen); in uv__random() 37 rc = uv__random_readpath("/dev/random", buf, buflen); in uv__random() 40 rc = uv__random_getentropy(buf, buflen); in uv__random() 42 rc = uv__random_devurandom(buf, buflen); in uv__random() 44 rc = uv__random_sysctl(buf, buflen); in uv__random() 46 rc = uv__random_getrandom(buf, buflen); in uv__random() 48 rc = uv__random_devurandom(buf, buflen); in uv__random() 58 rc = uv__random_sysctl(buf, buflen); in uv__random() 64 rc = uv__random_rtlgenrandom(buf, buflen); in uv__random() [all …]
|
/third_party/libcoap/tests/ |
D | test_wellknown.c | 37 size_t buflen, offset, ofs; in t_wellknown1() local 55 buflen = sizeof(buf); in t_wellknown1() 57 result = coap_print_link(r, buf, &buflen, &ofs); in t_wellknown1() 60 CU_ASSERT(buflen == sizeof(teststr)); in t_wellknown1() 66 buflen = sizeof(buf); in t_wellknown1() 67 result = coap_print_link(r, buf, &buflen, &ofs); in t_wellknown1() 70 CU_ASSERT(buflen == sizeof(teststr)); in t_wellknown1() 73 buflen = sizeof(buf); in t_wellknown1() 74 ofs = buflen; in t_wellknown1() 75 result = coap_print_link(r, buf, &buflen, &ofs); in t_wellknown1() [all …]
|
D | test_uri.c | 147 size_t buflen = sizeof(buf); in t_parse_uri7() local 173 result = coap_split_path(uri.path.s, uri.path.length, buf, &buflen); in t_parse_uri7() 175 CU_ASSERT(buflen == sizeof(checkbuf)); in t_parse_uri7() 176 CU_ASSERT_NSTRING_EQUAL(buf, checkbuf, buflen); in t_parse_uri7() 246 size_t buflen = sizeof(buf); in t_parse_uri11() local 272 result = coap_split_path(uri.path.s, uri.path.length, buf, &buflen); in t_parse_uri11() 274 CU_ASSERT(buflen == sizeof(checkbuf)); in t_parse_uri11() 275 CU_ASSERT_NSTRING_EQUAL(buf, checkbuf, buflen); in t_parse_uri11() 287 size_t buflen = sizeof(buf); in t_parse_uri12() local 309 result = coap_split_path(uri.path.s, uri.path.length, buf, &buflen); in t_parse_uri12() [all …]
|
/third_party/pulseaudio/src/pulsecore/ |
D | usergroup.c | 131 size_t buflen, getgr_buflen; in pa_getgrgid_malloc() local 137 buflen = starting_getgr_buflen(); in pa_getgrgid_malloc() 138 buf = pa_xmalloc(buflen); in pa_getgrgid_malloc() 140 getgr_buflen = buflen - sizeof(struct group); in pa_getgrgid_malloc() 144 if (expand_buffer_trashcontents(&buf, &buflen)) in pa_getgrgid_malloc() 147 getgr_buflen = buflen - sizeof(struct group); in pa_getgrgid_malloc() 190 size_t buflen, getgr_buflen; in pa_getgrnam_malloc() local 196 buflen = starting_getgr_buflen(); in pa_getgrnam_malloc() 197 buf = pa_xmalloc(buflen); in pa_getgrnam_malloc() 199 getgr_buflen = buflen - sizeof(struct group); in pa_getgrnam_malloc() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/ |
D | main_winsvc.c | 67 DWORD buflen, val; in read_interface() local 81 buflen = sizeof(ctrl_interface); in read_interface() 83 (LPBYTE) ctrl_interface, &buflen); in read_interface() 88 (int) buflen, (char *) ctrl_interface); in read_interface() 92 buflen = sizeof(adapter); in read_interface() 94 (LPBYTE) adapter, &buflen); in read_interface() 99 (int) buflen, (char *) adapter); in read_interface() 103 buflen = sizeof(config); in read_interface() 105 (LPBYTE) config, &buflen); in read_interface() 110 (int) buflen, (char *) config); in read_interface() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/ |
D | main_winsvc.c | 67 DWORD buflen, val; in read_interface() local 81 buflen = sizeof(ctrl_interface); in read_interface() 83 (LPBYTE) ctrl_interface, &buflen); in read_interface() 88 (int) buflen, (char *) ctrl_interface); in read_interface() 92 buflen = sizeof(adapter); in read_interface() 94 (LPBYTE) adapter, &buflen); in read_interface() 99 (int) buflen, (char *) adapter); in read_interface() 103 buflen = sizeof(config); in read_interface() 105 (LPBYTE) config, &buflen); in read_interface() 110 (int) buflen, (char *) config); in read_interface() [all …]
|
D | ctrl_iface.h | 124 int wpa_supplicant_ctrl_iface_add_network(struct wpa_supplicant *wpa_s, char *buf, size_t buflen); 132 …licant_ctrl_iface_list_networks(struct wpa_supplicant *wpa_s, char *cmd, char *buf, size_t buflen); 138 …pplicant_ctrl_iface_get_network(struct wpa_supplicant *wpa_s, char *cmd, char *buf, size_t buflen); 140 …cant_ctrl_iface_status(struct wpa_supplicant *wpa_s, const char *params, char *buf, size_t buflen); 148 int wpa_supplicant_ctrl_iface_scan_results(struct wpa_supplicant *wpa_s, char *buf, size_t buflen); 160 int p2p_ctrl_serv_disc_req(struct wpa_supplicant *wpa_s, char *cmd, char *buf, size_t buflen); 164 int p2p_ctrl_connect(struct wpa_supplicant *wpa_s, char *cmd, char *buf, size_t buflen); 165 int p2p_ctrl_peer(struct wpa_supplicant *wpa_s, char *cmd, char *buf, size_t buflen); 175 …a_supplicant_ctrl_iface_wps_pin(struct wpa_supplicant *wpa_s, char *cmd, char *buf, size_t buflen); 178 int wpa_supplicant_driver_cmd(struct wpa_supplicant *wpa_s, char *cmd, char *buf, size_t buflen);
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils/ |
D | wpa_debug.c | 132 ssize_t buflen; in wpa_debug_open_linux_tracing() local 141 buflen = read(mounts, buf, sizeof(buf) - 1); in wpa_debug_open_linux_tracing() 143 if (buflen < 0) { in wpa_debug_open_linux_tracing() 147 buf[buflen] = '\0'; in wpa_debug_open_linux_tracing() 763 int buflen; in wpa_msg() local 768 buflen = vsnprintf(NULL, 0, fmt, ap) + 1; in wpa_msg() 771 buf = os_malloc(buflen); in wpa_msg() 788 len = vsnprintf(buf, buflen, fmt, ap); in wpa_msg() 793 bin_clear_free(buf, buflen); in wpa_msg() 801 int buflen; in wpa_msg_ctrl() local [all …]
|
/third_party/node/src/ |
D | string_bytes.cc | 265 Isolate* isolate, char* buf, size_t buflen, Local<String> str, int flags) { in WriteUCS2() argument 268 size_t max_chars = buflen / sizeof(*dst); in WriteUCS2() 304 size_t buflen, in Write() argument 322 nbytes = std::min(buflen, ext->length()); in Write() 326 nbytes = str->WriteOneByte(isolate, dst, 0, buflen, flags); in Write() 332 nbytes = str->WriteUtf8(isolate, buf, buflen, nullptr, flags); in Write() 336 nbytes = WriteUCS2(isolate, buf, buflen, str, flags); in Write() 353 nbytes = base64_decode(buf, buflen, ext->data(), ext->length()); in Write() 356 nbytes = base64_decode(buf, buflen, *value, value.length()); in Write() 363 nbytes = hex_decode(buf, buflen, ext->data(), ext->length()); in Write() [all …]
|
/third_party/libwebsockets/lib/misc/ |
D | lws-ring.c | 36 ring->buflen = (uint32_t)(count * element_len); in lws_ring_create() 42 ring->buf = lws_malloc(ring->buflen, "ring buf"); in lws_ring_create() 61 ring->buflen; in lws_ring_destroy() 84 f = (int)(ring->buflen - ring->element_len); in lws_ring_get_count_free_elements() 90 f = (int)((ring->buflen - ring->head) + ring->oldest_tail - in lws_ring_get_count_free_elements() 120 f = (int)((ring->buflen - *tail) + ring->head); in lws_ring_get_count_waiting_elements() 137 if (ring->head + (unsigned int)n > ring->buflen) { in lws_ring_next_linear_insert_range() 139 *bytes = ring->buflen - ring->head; in lws_ring_next_linear_insert_range() 153 ring->head = (ring->head + (uint32_t)bytes) % ring->buflen; in lws_ring_bump_head() 174 if (ring->head + (unsigned int)n > ring->buflen) { in lws_ring_insert() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/utils/ |
D | wpa_debug.c | 134 ssize_t buflen; in wpa_debug_open_linux_tracing() local 143 buflen = read(mounts, buf, sizeof(buf) - 1); in wpa_debug_open_linux_tracing() 145 if (buflen < 0) { in wpa_debug_open_linux_tracing() 149 buf[buflen] = '\0'; in wpa_debug_open_linux_tracing() 951 int buflen; in wpa_msg() local 956 buflen = vsnprintf(NULL, 0, fmt, ap) + 1; in wpa_msg() 959 buf = os_malloc(buflen); in wpa_msg() 976 len = vsnprintf(buf, buflen, fmt, ap); in wpa_msg() 981 bin_clear_free(buf, buflen); in wpa_msg() 988 int buflen; in wpa_msg_only_for_cb() local [all …]
|
/third_party/ltp/utils/sctp/func_tests/ |
D | test_sctp_sendrecvmsg.c | 88 size_t buflen; in main() local 179 buflen = REALLY_BIG; in main() 180 big_buffer = test_malloc(buflen); in main() 183 error = test_sctp_recvmsg(sk2, big_buffer, buflen, in main() 203 buflen = REALLY_BIG; in main() 206 error = test_sctp_recvmsg(sk1, big_buffer, buflen, in main() 217 buflen = REALLY_BIG; in main() 220 error = test_sctp_recvmsg(sk2, big_buffer, buflen, in main() 279 buflen = REALLY_BIG; in main() 282 test_sctp_recvmsg(sk2, big_buffer, buflen, in main() [all …]
|
/third_party/mbedtls/library/ |
D | entropy_poll.c | 93 static int getrandom_wrapper(void *buf, size_t buflen, unsigned int flags) in getrandom_wrapper() argument 98 memset(buf, 0, buflen); in getrandom_wrapper() 101 return syscall(SYS_getrandom, buf, buflen, flags); in getrandom_wrapper() 113 static int getrandom_wrapper(void *buf, size_t buflen, unsigned int flags) in getrandom_wrapper() argument 115 return getrandom(buf, buflen, flags); in getrandom_wrapper() 135 static int sysctl_arnd_wrapper(unsigned char *buf, size_t buflen) in sysctl_arnd_wrapper() argument 143 while (buflen > 0) { in sysctl_arnd_wrapper() 144 len = buflen > 256 ? 256 : buflen; in sysctl_arnd_wrapper() 148 buflen -= len; in sysctl_arnd_wrapper()
|
/third_party/curl/lib/ |
D | strerror.c | 771 get_winapi_error(int err, char *buf, size_t buflen) in get_winapi_error() argument 776 if(!buflen) in get_winapi_error() 789 size_t written = wcstombs(buf, wbuf, buflen - 1); in get_winapi_error() 828 const char *Curl_strerror(int err, char *buf, size_t buflen) in Curl_strerror() argument 837 if(!buflen) in Curl_strerror() 844 max = buflen - 1; in Curl_strerror() 927 const char *Curl_winapi_strerror(DWORD err, char *buf, size_t buflen) in Curl_winapi_strerror() argument 934 if(!buflen) in Curl_winapi_strerror() 940 if(!get_winapi_error(err, buf, buflen)) { in Curl_winapi_strerror() 941 msnprintf(buf, buflen, "Unknown error %lu (0x%08lX)", err, err); in Curl_winapi_strerror() [all …]
|
D | ws.c | 139 typedef ssize_t ws_write_payload(const unsigned char *buf, size_t buflen, 496 const unsigned char *buf, size_t buflen, in ws_enc_write_payload() argument 508 len = buflen; in ws_enc_write_payload() 674 static ssize_t ws_client_write(const unsigned char *buf, size_t buflen, in ws_client_write() argument 684 curl_off_t remain = (payload_len - (payload_offset + buflen)); in ws_client_write() 698 *err = curl_ws_send(data, buf, buflen, &bytes, 0, CURLWS_PONG); in ws_client_write() 702 else if(buflen || !remain) { in ws_client_write() 706 payload_len, buflen); in ws_client_write() 709 buflen, data->set.out); in ws_client_write() 711 if(wrote != buflen) { in ws_client_write() [all …]
|
/third_party/musl/src/network/ |
D | getservbyport_r.c | 11 struct servent *se, char *buf, size_t buflen, struct servent **res) in getservbyport_r() argument 20 int r = getservbyport_r(port, "tcp", se, buf, buflen, res); in getservbyport_r() 21 if (r) r = getservbyport_r(port, "udp", se, buf, buflen, res); in getservbyport_r() 29 if (buflen < 3*sizeof(char *)-i) in getservbyport_r() 32 buflen -= sizeof(char *)-i; in getservbyport_r() 40 buflen -= 2*sizeof(char *); in getservbyport_r() 44 switch (getnameinfo((void *)&sin, sizeof sin, 0, 0, buf, buflen, in getservbyport_r()
|