Home
last modified time | relevance | path

Searched refs:buflen (Results 51 - 75 of 802) sorted by relevance

12345678910>>...33

/third_party/lwip/src/netif/ppp/
H A Dutils.c120 int ppp_slprintf(char *buf, int buflen, const char *fmt, ...) { in ppp_slprintf() argument
125 n = ppp_vslprintf(buf, buflen, fmt, args); in ppp_slprintf()
133 #define OUTCHAR(c) (buflen > 0? (--buflen, *buf++ = (c)): 0)
135 int ppp_vslprintf(char *buf, int buflen, const char *fmt, va_list args) { in ppp_vslprintf() argument
154 --buflen; in ppp_vslprintf()
155 while (buflen > 0) { in ppp_vslprintf()
160 if (len > buflen) in ppp_vslprintf()
161 len = buflen; in ppp_vslprintf()
164 buflen in ppp_vslprintf()
[all...]
/third_party/node/deps/openssl/openssl/providers/implementations/rands/seeding/
H A Drand_unix.c220 static ssize_t sysctl_random(char *buf, size_t buflen) in sysctl_random() argument
238 if (!ossl_assert(buflen % sizeof(long) == 0)) { in sysctl_random()
260 len = buflen > 256 ? 256 : buflen; in sysctl_random()
265 buflen -= len; in sysctl_random()
266 } while (buflen > 0); in sysctl_random()
334 static ssize_t syscall_random(void *buf, size_t buflen) in syscall_random() argument
337 * Note: 'buflen' equals the size of the buffer which is used by the in syscall_random()
364 if (getentropy(buf, buflen) == 0) in syscall_random()
365 return (ssize_t)buflen; in syscall_random()
[all...]
/third_party/openssl/providers/implementations/rands/seeding/
H A Drand_unix.c220 static ssize_t sysctl_random(char *buf, size_t buflen) in sysctl_random() argument
238 if (!ossl_assert(buflen % sizeof(long) == 0)) { in sysctl_random()
260 len = buflen > 256 ? 256 : buflen; in sysctl_random()
265 buflen -= len; in sysctl_random()
266 } while (buflen > 0); in sysctl_random()
334 static ssize_t syscall_random(void *buf, size_t buflen) in syscall_random() argument
337 * Note: 'buflen' equals the size of the buffer which is used by the in syscall_random()
364 if (getentropy(buf, buflen) == 0) in syscall_random()
365 return (ssize_t)buflen; in syscall_random()
[all...]
/third_party/skia/third_party/externals/abseil-cpp/absl/base/internal/
H A 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()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/fst/
H A Dfst_ctrl_iface.h17 int fst_ctrl_iface_mb_info(const u8 *addr, char *buf, size_t buflen);
19 int fst_ctrl_iface_receive(const char *txtaddr, char *buf, size_t buflen);
26 fst_ctrl_iface_mb_info(const u8 *addr, char *buf, size_t buflen) in fst_ctrl_iface_mb_info() argument
34 int fst_read_next_text_param(const char *params, char *buf, size_t buflen,
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils/
H A Dip_addr.c15 size_t buflen) in hostapd_ip_txt()
17 if (buflen == 0 || addr == NULL) in hostapd_ip_txt()
21 os_strlcpy(buf, inet_ntoa(addr->u.v4), buflen); in hostapd_ip_txt()
27 if (inet_ntop(AF_INET6, &addr->u.v6, buf, buflen) == NULL) in hostapd_ip_txt()
14 hostapd_ip_txt(const struct hostapd_ip_addr *addr, char *buf, size_t buflen) hostapd_ip_txt() argument
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/fst/
H A Dfst_ctrl_iface.h17 int fst_ctrl_iface_mb_info(const u8 *addr, char *buf, size_t buflen);
19 int fst_ctrl_iface_receive(const char *txtaddr, char *buf, size_t buflen);
26 fst_ctrl_iface_mb_info(const u8 *addr, char *buf, size_t buflen) in fst_ctrl_iface_mb_info() argument
34 int fst_read_next_text_param(const char *params, char *buf, size_t buflen,
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/utils/
H A Dip_addr.c15 size_t buflen) in hostapd_ip_txt()
17 if (buflen == 0 || addr == NULL) in hostapd_ip_txt()
21 os_strlcpy(buf, inet_ntoa(addr->u.v4), buflen); in hostapd_ip_txt()
27 if (inet_ntop(AF_INET6, &addr->u.v6, buf, buflen) == NULL) in hostapd_ip_txt()
14 hostapd_ip_txt(const struct hostapd_ip_addr *addr, char *buf, size_t buflen) hostapd_ip_txt() argument
H A Djson.c513 size_t buflen; in json_get_member_base64url() local
520 &buflen); in json_get_member_base64url()
523 ret = wpabuf_alloc_ext_data(buf, buflen); in json_get_member_base64url()
536 size_t buflen; in json_get_member_base64() local
542 buf = base64_decode(token->string, os_strlen(token->string), &buflen); in json_get_member_base64()
545 ret = wpabuf_alloc_ext_data(buf, buflen); in json_get_member_base64()
576 char *buf, size_t buflen) in json_print_token()
584 ret = os_snprintf(buf + len, buflen - len, "[%d:%s:%s]", in json_print_token()
587 if (os_snprintf_error(buflen - len, ret)) { in json_print_token()
591 json_print_token(token->child, depth + 1, buf, buflen); in json_print_token()
575 json_print_token(struct json_token *token, int depth, char *buf, size_t buflen) json_print_token() argument
596 json_print_tree(struct json_token *root, char *buf, size_t buflen) json_print_tree() argument
[all...]
/third_party/curl/tests/unit/
H A Dunit2603.c73 size_t buflen, i, in_len, in_consumed; in parse_success() local
81 buflen = strlen(buf); in parse_success()
82 in_len += buflen; in parse_success()
83 nread = Curl_h1_req_parse_read(&p, buf, buflen, t->default_scheme, in parse_success()
90 if((size_t)nread != buflen) { in parse_success()
93 nread, buflen, buf); in parse_success()
/third_party/ltp/testcases/kernel/syscalls/send/
H A Dsend01.c60 int buflen; /* send's 3rd argument */ member
83 .buflen = sizeof(buf),
95 .buflen = sizeof(buf),
109 .buflen = sizeof(buf),
122 .buflen = sizeof(bigbuf),
134 .buflen = sizeof(buf),
148 .buflen = sizeof(buf),
270 TEST(send(s, tdat[testno].buf, tdat[testno].buflen, in main()
/third_party/curl/lib/
H A Dhttp1.c85 const char *buf, const size_t buflen, in detect_line()
91 line_end = memchr(buf, '\n', buflen); in detect_line()
103 const char *buf, const size_t buflen, int options, in next_line()
114 nread = detect_line(parser, buf, buflen, err); in next_line()
130 *err = Curl_dyn_addn(&parser->scratch, (const unsigned char *)buf, buflen); in next_line()
131 nread = (*err)? -1 : (ssize_t)buflen; in next_line()
262 const char *buf, size_t buflen, in Curl_h1_req_parse_read()
270 n = next_line(parser, buf, buflen, options, err); in Curl_h1_req_parse_read()
282 buflen -= (size_t)n; in Curl_h1_req_parse_read()
286 if(!buflen) in Curl_h1_req_parse_read()
84 detect_line(struct h1_req_parser *parser, const char *buf, const size_t buflen, CURLcode *err) detect_line() argument
102 next_line(struct h1_req_parser *parser, const char *buf, const size_t buflen, int options, CURLcode *err) next_line() argument
261 Curl_h1_req_parse_read(struct h1_req_parser *parser, const char *buf, size_t buflen, const char *scheme_default, int options, CURLcode *err) Curl_h1_req_parse_read() argument
[all...]
/third_party/ltp/testcases/kernel/syscalls/sendmsg/
H A Dsendmsg01.c92 int buflen; /* send buffer length */ member
111 .buflen = sizeof(buf),
128 .buflen = sizeof(buf),
145 .buflen = sizeof(buf),
162 .buflen = sizeof(buf),
179 .buflen = sizeof(buf),
196 .buflen = sizeof(buf),
212 .buflen = sizeof(buf),
228 .buflen = sizeof(bigbuf),
245 .buflen
[all...]
/third_party/FreeBSD/sys/compat/linuxkpi/common/include/linux/
H A Dscatterlist.h88 static inline void sg_set_buf(scatterlist_t *psg, const void *buf, unsigned int buflen) in sg_set_buf() argument
92 psg->length = buflen; in sg_set_buf()
95 static inline void sg_init_one(scatterlist_t *psg, const void *buf, unsigned int buflen) in sg_init_one() argument
98 sg_set_buf(psg, buf, buflen); in sg_init_one()
/third_party/mbedtls/include/mbedtls/
H A Dpem.h66 size_t MBEDTLS_PRIVATE(buflen); /*!< length of the buffer */
113 * \param buflen On success, this will contain the length of the binary data.
121 static inline const unsigned char *mbedtls_pem_get_buffer(mbedtls_pem_context *ctx, size_t *buflen) in mbedtls_pem_get_buffer() argument
123 *buflen = ctx->MBEDTLS_PRIVATE(buflen); in mbedtls_pem_get_buffer()
/third_party/mbedtls/library/
H A Dx509_csr.c266 const unsigned char *buf, size_t buflen, in mbedtls_x509_csr_parse_der_internal()
280 if (csr == NULL || buf == NULL || buflen == 0) { in mbedtls_x509_csr_parse_der_internal()
289 p = mbedtls_calloc(1, len = buflen); in mbedtls_x509_csr_parse_der_internal()
295 memcpy(p, buf, buflen); in mbedtls_x509_csr_parse_der_internal()
435 const unsigned char *buf, size_t buflen) in mbedtls_x509_csr_parse_der()
437 return mbedtls_x509_csr_parse_der_internal(csr, buf, buflen, NULL, NULL); in mbedtls_x509_csr_parse_der()
444 const unsigned char *buf, size_t buflen, in mbedtls_x509_csr_parse_der_with_ext_cb()
448 return mbedtls_x509_csr_parse_der_internal(csr, buf, buflen, cb, p_ctx); in mbedtls_x509_csr_parse_der_with_ext_cb()
454 int mbedtls_x509_csr_parse(mbedtls_x509_csr *csr, const unsigned char *buf, size_t buflen) in mbedtls_x509_csr_parse() argument
465 if (csr == NULL || buf == NULL || buflen in mbedtls_x509_csr_parse()
265 mbedtls_x509_csr_parse_der_internal(mbedtls_x509_csr *csr, const unsigned char *buf, size_t buflen, mbedtls_x509_csr_ext_cb_t cb, void *p_ctx) mbedtls_x509_csr_parse_der_internal() argument
434 mbedtls_x509_csr_parse_der(mbedtls_x509_csr *csr, const unsigned char *buf, size_t buflen) mbedtls_x509_csr_parse_der() argument
443 mbedtls_x509_csr_parse_der_with_ext_cb(mbedtls_x509_csr *csr, const unsigned char *buf, size_t buflen, mbedtls_x509_csr_ext_cb_t cb, void *p_ctx) mbedtls_x509_csr_parse_der_with_ext_cb() argument
[all...]
H A Dx509_crl.c284 const unsigned char *buf, size_t buflen) in mbedtls_x509_crl_parse_der()
325 if (buflen == 0) { in mbedtls_x509_crl_parse_der()
329 p = mbedtls_calloc(1, buflen); in mbedtls_x509_crl_parse_der()
334 memcpy(p, buf, buflen); in mbedtls_x509_crl_parse_der()
337 crl->raw.len = buflen; in mbedtls_x509_crl_parse_der()
339 end = p + buflen; in mbedtls_x509_crl_parse_der()
505 int mbedtls_x509_crl_parse(mbedtls_x509_crl *chain, const unsigned char *buf, size_t buflen) in mbedtls_x509_crl_parse() argument
522 if (buflen == 0 || buf[buflen - 1] != '\0') { in mbedtls_x509_crl_parse()
537 buflen in mbedtls_x509_crl_parse()
283 mbedtls_x509_crl_parse_der(mbedtls_x509_crl *chain, const unsigned char *buf, size_t buflen) mbedtls_x509_crl_parse_der() argument
[all...]
/third_party/node/deps/openssl/openssl/providers/implementations/digests/
H A Dblake2b_prov.c271 fill = sizeof(c->buf) - c->buflen; in ossl_blake2b_update()
273 if (c->buflen) { in ossl_blake2b_update()
274 memcpy(c->buf + c->buflen, in, fill); /* Fill buffer */ in ossl_blake2b_update()
276 c->buflen = 0; in ossl_blake2b_update()
296 memcpy(c->buf + c->buflen, in, datalen); in ossl_blake2b_update()
297 c->buflen += datalen; /* Be lazy, do not compress */ in ossl_blake2b_update()
319 memset(c->buf + c->buflen, 0, sizeof(c->buf) - c->buflen); in ossl_blake2b_final()
320 blake2b_compress(c, c->buf, c->buflen); in ossl_blake2b_final()
H A Dblake2s_prov.c262 fill = sizeof(c->buf) - c->buflen; in ossl_blake2s_update()
264 if (c->buflen) { in ossl_blake2s_update()
265 memcpy(c->buf + c->buflen, in, fill); /* Fill buffer */ in ossl_blake2s_update()
267 c->buflen = 0; in ossl_blake2s_update()
287 memcpy(c->buf + c->buflen, in, datalen); in ossl_blake2s_update()
288 c->buflen += datalen; /* Be lazy, do not compress */ in ossl_blake2s_update()
310 memset(c->buf + c->buflen, 0, sizeof(c->buf) - c->buflen); in ossl_blake2s_final()
311 blake2s_compress(c, c->buf, c->buflen); in ossl_blake2s_final()
/third_party/openssl/providers/implementations/digests/
H A Dblake2b_prov.c271 fill = sizeof(c->buf) - c->buflen; in ossl_blake2b_update()
273 if (c->buflen) { in ossl_blake2b_update()
274 memcpy(c->buf + c->buflen, in, fill); /* Fill buffer */ in ossl_blake2b_update()
276 c->buflen = 0; in ossl_blake2b_update()
296 memcpy(c->buf + c->buflen, in, datalen); in ossl_blake2b_update()
297 c->buflen += datalen; /* Be lazy, do not compress */ in ossl_blake2b_update()
319 memset(c->buf + c->buflen, 0, sizeof(c->buf) - c->buflen); in ossl_blake2b_final()
320 blake2b_compress(c, c->buf, c->buflen); in ossl_blake2b_final()
H A Dblake2s_prov.c262 fill = sizeof(c->buf) - c->buflen; in ossl_blake2s_update()
264 if (c->buflen) { in ossl_blake2s_update()
265 memcpy(c->buf + c->buflen, in, fill); /* Fill buffer */ in ossl_blake2s_update()
267 c->buflen = 0; in ossl_blake2s_update()
287 memcpy(c->buf + c->buflen, in, datalen); in ossl_blake2s_update()
288 c->buflen += datalen; /* Be lazy, do not compress */ in ossl_blake2s_update()
310 memset(c->buf + c->buflen, 0, sizeof(c->buf) - c->buflen); in ossl_blake2s_final()
311 blake2s_compress(c, c->buf, c->buflen); in ossl_blake2s_final()
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/
H A Dlibcpuset.c304 * char *flgets(char *buf, int buflen, FILE *fp)
307 * buflen-1 chars of line into buffer buf, discarding any remainder
313 static char *flgets(char *buf, int buflen, FILE * fp) in flgets() argument
319 while ((--buflen > 0) && ((c = getc(fp)) >= 0)) { in flgets()
361 * char *slgets(char *buf, int buflen, const char *inputbuf, int *offsetptr)
364 * starting at offset *offsetptr. Copy up to first buflen-1
371 static char *slgets(char *buf, int buflen, const char *inputbuf, int *offsetptr) in slgets() argument
377 while ((--buflen > 0) && ((c = sgetc(inputbuf, offsetptr)) >= 0)) { in slgets()
484 * pathcat2(buf, buflen, name1, name2)
486 * Return buf, of length buflen, wit
489 pathcat2(char *buf, int buflen, const char *name1, const char *name2) pathcat2() argument
502 pathcat3(char *buf, int buflen, const char *name1, const char *name2, const char *name3) pathcat3() argument
519 fullpath(char *buf, int buflen, const char *name) fullpath() argument
551 fullpath2(char *buf, int buflen, const char *name1, const char *name2) fullpath2() argument
979 int buflen; read_mask() local
1042 int buflen; sprint_mask_buf() local
1489 int buflen; parse_distance_file() local
1637 int buflen; build_distmap_sn() local
2549 int buflen; global() member
2603 pidcount(const char *buf, int buflen) pidcount() argument
3467 cpuset_export(const struct cpuset *cp, char *buf, int buflen) cpuset_export() argument
[all...]
/third_party/ltp/testcases/kernel/syscalls/recvmsg/
H A Drecvmsg01.c55 int buflen; member
71 .buflen = sizeof(recv_buf),
86 .buflen = sizeof(recv_buf),
101 .buflen = sizeof(recv_buf),
117 .buflen = sizeof(recv_buf),
131 .buflen = sizeof(recv_buf),
146 .buflen = sizeof(recv_buf),
161 .buflen = sizeof(recv_buf),
175 .buflen = sizeof(recv_buf),
191 .buflen
[all...]
/third_party/backends/backend/
H A Dleo.h87 #define MKSCSI_GET_DATA_BUFFER_STATUS(cdb, wait, buflen) \
95 cdb.data[7] = (((buflen) >> 8) & 0xff); \
96 cdb.data[8] = (((buflen) >> 0) & 0xff); \
100 #define MKSCSI_INQUIRY(cdb, buflen) \
105 cdb.data[4] = buflen; \
118 #define MKSCSI_SEND_10(cdb, dtc, dtq, buflen) \
125 cdb.data[6] = (((buflen) >> 16) & 0xff); \
126 cdb.data[7] = (((buflen) >> 8) & 0xff); \
127 cdb.data[8] = (((buflen) >> 0) & 0xff); \
131 #define MKSCSI_SET_WINDOW(cdb, buflen) \
[all...]
/third_party/selinux/libselinux/src/
H A Dcompute_create.c14 static int object_name_encode(const char *objname, char *buffer, size_t buflen) in object_name_encode() argument
19 if (buflen - offset < 1) in object_name_encode()
28 if (buflen - offset < 1) in object_name_encode()
32 if (buflen - offset < 1) in object_name_encode()
40 if (buflen - offset < 3) in object_name_encode()

Completed in 16 milliseconds

12345678910>>...33