Home
last modified time | relevance | path

Searched refs:buflen (Results 1 – 25 of 507) sorted by relevance

12345678910>>...21

/external/wpa_supplicant_8/src/ap/
Dctrl_iface_ap.c29 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 …]
Dctrl_iface_ap.h13 char *buf, size_t buflen);
15 char *buf, size_t buflen);
17 char *buf, size_t buflen);
24 char *buf, size_t buflen);
28 size_t buflen);
/external/wpa_supplicant_8/src/fst/
Dfst_ctrl_iface.c171 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 …]
/external/ipsec-tools/src/racoon/
Dprivsep.c290 size_t *buflen; in privsep_init() local
309 data += combuf->bufs.buflen[i]; in privsep_init()
310 totallen += combuf->bufs.buflen[i]; in privsep_init()
345 bufs[0][combuf->bufs.buflen[0] - 1] = '\0'; in privsep_init()
361 reply->bufs.buflen[0] = privkey->l; in privsep_init()
392 bufs[0][combuf->bufs.buflen[0] - 1] = '\0'; in privsep_init()
398 if (combuf->bufs.buflen[count] == 0) in privsep_init()
401 [combuf->bufs.buflen[count] - 1] = '\0'; in privsep_init()
433 if (combuf->bufs.buflen[count] != sizeof(name)) { in privsep_init()
440 for (i = 0; combuf->bufs.buflen[count]; count++) in privsep_init()
[all …]
/external/wpa_supplicant_8/wpa_supplicant/
Dmain_winsvc.c67 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 …]
/external/wpa_supplicant_8/src/utils/
Dwpa_debug.c132 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()
643 int buflen; in wpa_msg() local
648 buflen = vsnprintf(NULL, 0, fmt, ap) + 1; in wpa_msg()
651 buf = os_malloc(buflen); in wpa_msg()
668 len = vsnprintf(buf, buflen, fmt, ap); in wpa_msg()
673 bin_clear_free(buf, buflen); in wpa_msg()
681 int buflen; in wpa_msg_ctrl() local
[all …]
/external/dtc/tests/
Dget_path.c19 static void check_path_buf(void *fdt, const char *path, int pathlen, int buflen) in check_path_buf() argument
22 char buf[buflen+1]; in check_path_buf()
31 len = fdt_get_path(fdt, offset, buf, buflen); in check_path_buf()
35 if (buflen <= pathlen) { in check_path_buf()
38 "insufficient buffer space", buflen, len); in check_path_buf()
41 FAIL("fdt_get_path([%d bytes]): %s", buflen, in check_path_buf()
45 "instead of 0", buflen, len); in check_path_buf()
48 "instead of \"%s\"", buflen, buf, path); in check_path_buf()
51 if (buf[buflen] != POISON) in check_path_buf()
52 FAIL("fdt_get_path([%d bytes]) overran buffer", buflen); in check_path_buf()
/external/libwebsockets/lib/misc/
Dlws-ring.c37 ring->buflen = (uint32_t)(count * element_len); in lws_ring_create()
43 ring->buf = lws_malloc(ring->buflen, "ring buf"); in lws_ring_create()
62 ring->buflen; in lws_ring_destroy()
85 f = ring->buflen - ring->element_len; in lws_ring_get_count_free_elements()
91 f = (ring->buflen - ring->head) + ring->oldest_tail - in lws_ring_get_count_free_elements()
121 f = (ring->buflen - *tail) + ring->head; in lws_ring_get_count_waiting_elements()
138 if (ring->head + n > ring->buflen) { in lws_ring_next_linear_insert_range()
140 *bytes = ring->buflen - ring->head; in lws_ring_next_linear_insert_range()
154 ring->head = (ring->head + (uint32_t)bytes) % ring->buflen; in lws_ring_bump_head()
174 if (ring->head + n > ring->buflen) { in lws_ring_insert()
[all …]
/external/libpcap/
Dbpf_filter.c90 u_int wirelen, u_int buflen, const struct bpf_aux_data *aux_data) in pcap_filter_with_aux_data() argument
94 u_int wirelen, u_int buflen, const struct bpf_aux_data *aux_data _U_) in pcap_filter_with_aux_data()
123 if (k > buflen || sizeof(int32_t) > buflen - k) { in pcap_filter_with_aux_data()
131 if (k > buflen || sizeof(int16_t) > buflen - k) { in pcap_filter_with_aux_data()
162 if (k >= buflen) { in pcap_filter_with_aux_data()
181 if (pc->k > buflen || X > buflen - pc->k || in pcap_filter_with_aux_data()
182 sizeof(int32_t) > buflen - k) { in pcap_filter_with_aux_data()
190 if (X > buflen || pc->k > buflen - X || in pcap_filter_with_aux_data()
191 sizeof(int16_t) > buflen - k) { in pcap_filter_with_aux_data()
199 if (pc->k >= buflen || X >= buflen - pc->k) { in pcap_filter_with_aux_data()
[all …]
/external/curl/src/
Dtool_getpass.c68 char *getpass_r(const char *prompt, char *buffer, size_t buflen) in getpass_r() argument
90 &iosb, 0, 0, buffer, buflen, 0, 0, in getpass_r()
105 char *getpass_r(const char *prompt, char *buffer, size_t buflen) in getpass_r() argument
110 for(i = 0; i < buflen; i++) { in getpass_r()
125 if(i == buflen) in getpass_r()
126 buffer[buflen-1] = '\0'; in getpass_r()
136 char *getpass_r(const char *prompt, char *buffer, size_t buflen) in getpass_r() argument
138 return getpassword(prompt, buffer, buflen); in getpass_r()
141 char *getpass_r(const char *prompt, char *buffer, size_t buflen) in getpass_r() argument
163 } while((buffer[i-1] != 13) && (i < buflen)); in getpass_r()
[all …]
/external/ltp/utils/sctp/func_tests/
Dtest_sctp_sendrecvmsg.c87 size_t buflen; in main() local
175 buflen = REALLY_BIG; in main()
176 big_buffer = test_malloc(buflen); in main()
179 error = test_sctp_recvmsg(sk2, big_buffer, buflen, in main()
199 buflen = REALLY_BIG; in main()
202 error = test_sctp_recvmsg(sk1, big_buffer, buflen, in main()
213 buflen = REALLY_BIG; in main()
216 error = test_sctp_recvmsg(sk2, big_buffer, buflen, in main()
275 buflen = REALLY_BIG; in main()
278 test_sctp_recvmsg(sk2, big_buffer, buflen, in main()
[all …]
/external/curl/lib/
Dstrerror.c655 get_winapi_error(int err, char *buf, size_t buflen) in get_winapi_error() argument
660 if(!buflen) in get_winapi_error()
673 size_t written = wcstombs(buf, wbuf, buflen - 1); in get_winapi_error()
712 const char *Curl_strerror(int err, char *buf, size_t buflen) in Curl_strerror() argument
721 if(!buflen) in Curl_strerror()
726 max = buflen - 1; in Curl_strerror()
820 const char *Curl_winapi_strerror(DWORD err, char *buf, size_t buflen) in Curl_winapi_strerror() argument
827 if(!buflen) in Curl_winapi_strerror()
833 if(!get_winapi_error(err, buf, buflen)) { in Curl_winapi_strerror()
834 msnprintf(buf, buflen, "Unknown error %u (0x%08X)", err, err); in Curl_winapi_strerror()
[all …]
/external/jemalloc_new/test/src/
Dtimer.c25 timer_ratio(timedelta_t *a, timedelta_t *b, char *buf, size_t buflen) { in timer_ratio() argument
33 n = malloc_snprintf(&buf[i], buflen-i, "%"FMTu64, t0 / t1); in timer_ratio()
35 if (i >= buflen) { in timer_ratio()
44 n = malloc_snprintf(&buf[i], buflen-i, "."); in timer_ratio()
48 while (i < buflen-1) { in timer_ratio()
49 uint64_t round = (i+1 == buflen-1 && ((t0 * mult * 10 / t1) % 10 in timer_ratio()
51 n = malloc_snprintf(&buf[i], buflen-i, in timer_ratio()
/external/rust/crates/quiche/deps/boringssl/src/crypto/fipsmodule/ecdh/
Decdh.c95 size_t buflen; in ECDH_compute_key_fips() local
97 !ec_get_x_coordinate_as_bytes(group, buf, &buflen, sizeof(buf), in ECDH_compute_key_fips()
105 SHA224(buf, buflen, out); in ECDH_compute_key_fips()
108 SHA256(buf, buflen, out); in ECDH_compute_key_fips()
111 SHA384(buf, buflen, out); in ECDH_compute_key_fips()
114 SHA512(buf, buflen, out); in ECDH_compute_key_fips()
/external/boringssl/src/crypto/fipsmodule/ecdh/
Decdh.c95 size_t buflen; in ECDH_compute_key_fips() local
97 !ec_get_x_coordinate_as_bytes(group, buf, &buflen, sizeof(buf), in ECDH_compute_key_fips()
105 SHA224(buf, buflen, out); in ECDH_compute_key_fips()
108 SHA256(buf, buflen, out); in ECDH_compute_key_fips()
111 SHA384(buf, buflen, out); in ECDH_compute_key_fips()
114 SHA512(buf, buflen, out); in ECDH_compute_key_fips()
/external/python/cryptography/src/cryptography/hazmat/backends/openssl/
Dx448.py53 buflen = self._backend._ffi.new("size_t *", _X448_KEY_SIZE)
55 self._evp_pkey, buf, buflen
58 self._backend.openssl_assert(buflen[0] == _X448_KEY_SIZE)
70 buflen = self._backend._ffi.new("size_t *", _X448_KEY_SIZE)
72 self._evp_pkey, buf, buflen
75 self._backend.openssl_assert(buflen[0] == _X448_KEY_SIZE)
117 buflen = self._backend._ffi.new("size_t *", _X448_KEY_SIZE)
119 self._evp_pkey, buf, buflen
122 self._backend.openssl_assert(buflen[0] == _X448_KEY_SIZE)
/external/pdfium/fpdfsdk/
Dfpdf_structtree.cpp19 unsigned long buflen) { in WideStringToBuffer() argument
25 if (buffer && len <= buflen) in WideStringToBuffer()
74 unsigned long buflen) { in FPDF_StructElement_GetAltText() argument
77 return elem ? WideStringToBuffer(elem->GetAltText(), buffer, buflen) : 0; in FPDF_StructElement_GetAltText()
91 unsigned long buflen) { in FPDF_StructElement_GetType() argument
96 buffer, buflen) in FPDF_StructElement_GetType()
103 unsigned long buflen) { in FPDF_StructElement_GetTitle() argument
106 return elem ? WideStringToBuffer(elem->GetTitle(), buffer, buflen) : 0; in FPDF_StructElement_GetTitle()
/external/ppp/pppd/
Dutils.c129 slprintf __V((char *buf, int buflen, char *fmt, ...)) in slprintf() argument
138 int buflen; in slprintf() local
142 buflen = va_arg(args, int); in slprintf()
145 n = vslprintf(buf, buflen, fmt, args); in slprintf()
153 #define OUTCHAR(c) (buflen > 0? (--buflen, *buf++ = (c)): 0)
156 vslprintf(buf, buflen, fmt, args) in vslprintf() argument
158 int buflen;
175 --buflen;
176 while (buflen > 0) {
181 if (len > buflen)
[all …]
/external/ltp/testcases/kernel/syscalls/sendto/
Dsendto01.c59 int buflen; /* send's 3rd argument */ member
85 .buflen = sizeof(buf),
99 .buflen = sizeof(buf),
115 .buflen = sizeof(buf),
130 .buflen = sizeof(buf),
144 .buflen = sizeof(buf),
158 .buflen = sizeof(buf),
174 .buflen = sizeof(buf),
189 .buflen = sizeof(bigbuf),
203 .buflen = sizeof(buf),
[all …]
/external/ltp/testcases/kernel/fs/doio/
Dpattern.c40 int pattern_check(char *buf, int buflen, char *pat, int patlen, int patshift) in pattern_check() argument
49 nleft = buflen; in pattern_check()
88 while (ncmp < buflen) { in pattern_check()
101 int pattern_fill(char *buf, int buflen, char *pat, int patlen, int patshift) in pattern_fill() argument
110 nleft = buflen; in pattern_fill()
147 while (ncopied < buflen) { in pattern_fill()
/external/openscreen/third_party/abseil/src/absl/base/internal/
Dstrerror.cc32 const char* StrErrorAdaptor(int errnum, char* buf, size_t buflen) { in StrErrorAdaptor() argument
34 int rc = strerror_s(buf, buflen, errnum); in StrErrorAdaptor()
35 buf[buflen - 1] = '\0'; // guarantee NUL termination in StrErrorAdaptor()
36 if (rc == 0 && strncmp(buf, "Unknown error", buflen) == 0) *buf = '\0'; in StrErrorAdaptor()
41 auto ret = strerror_r(errnum, buf, buflen); in StrErrorAdaptor()
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/base/internal/
Dstrerror.cc32 const char* StrErrorAdaptor(int errnum, char* buf, size_t buflen) { in StrErrorAdaptor() argument
34 int rc = strerror_s(buf, buflen, errnum); in StrErrorAdaptor()
35 buf[buflen - 1] = '\0'; // guarantee NUL termination in StrErrorAdaptor()
36 if (rc == 0 && strncmp(buf, "Unknown error", buflen) == 0) *buf = '\0'; in StrErrorAdaptor()
41 auto ret = strerror_r(errnum, buf, buflen); in StrErrorAdaptor()
/external/libtextclassifier/abseil-cpp/absl/base/internal/
Dstrerror.cc32 const char* StrErrorAdaptor(int errnum, char* buf, size_t buflen) { in StrErrorAdaptor() argument
34 int rc = strerror_s(buf, buflen, errnum); in StrErrorAdaptor()
35 buf[buflen - 1] = '\0'; // guarantee NUL termination in StrErrorAdaptor()
36 if (rc == 0 && strncmp(buf, "Unknown error", buflen) == 0) *buf = '\0'; in StrErrorAdaptor()
41 auto ret = strerror_r(errnum, buf, buflen); in StrErrorAdaptor()
/external/tcpdump/
Dprint-bgp.c531 const u_char *pptr, u_int itemlen, char *buf, u_int buflen) in decode_prefix4() argument
552 snprintf(buf, buflen, "%s/%d", ipaddr_string(ndo, &addr), plen); in decode_prefix4()
564 const u_char *pptr, u_int itemlen, char *buf, u_int buflen) in decode_labeled_prefix4() argument
601 snprintf(buf, buflen, "%s/%d, label:%u %s", in decode_labeled_prefix4()
670 const u_char *pptr, char *buf, u_int buflen) in bgp_vpn_sg_print() argument
686 snprintf(buf + offset, buflen - offset, ", Source %s", in bgp_vpn_sg_print()
700 snprintf(buf + offset, buflen - offset, ", Group %s", in bgp_vpn_sg_print()
755 const u_char *pptr, char *buf, u_int buflen) in decode_rt_routing_info() argument
771 snprintf(buf, buflen, "default route target"); in decode_rt_routing_info()
799 snprintf(buf, buflen, "origin AS: %s, route target %s", in decode_rt_routing_info()
[all …]
/external/ipsec-tools/src/libipsec/
Dipsec_dump_policy.c99 size_t off, buflen; local
187 buflen = strlen(ipsp_dir_strs[xpl->sadb_x_policy_dir])
197 if ((buf = malloc(buflen)) == NULL) {
204 snprintf(buf, buflen, "%s %s %c %u %s",
210 snprintf(buf, buflen, "%s %s %s",
216 snprintf(buf, buflen, "%s %s",
221 snprintf(buf, buflen, "%s %s", ipsp_dir_strs[xpl->sadb_x_policy_dir],
256 buflen = offset + strlen(delimiter) + strlen(isrbuf) + 1;
257 newbuf = (char *)realloc(buf, buflen);
264 snprintf(buf+offset, buflen-offset, "%s%s", delimiter, isrbuf);

12345678910>>...21