Home
last modified time | relevance | path

Searched refs:vlen (Results 1 – 25 of 63) sorted by relevance

123

/third_party/ltp/testcases/kernel/syscalls/sendmmsg/
Dsendmmsg_var.h13 unsigned int vlen, unsigned int flags) in libc_sendmmsg() argument
16 return sendmmsg(sockfd, msgvec, vlen, flags); in libc_sendmmsg()
24 unsigned int vlen, unsigned int flags) in sys_sendmmsg() argument
26 return tst_syscall(__NR_sendmmsg, sockfd, msgvec, vlen, flags); in sys_sendmmsg()
30 unsigned int vlen, unsigned int flags, void *timeout) in libc_recvmmsg() argument
33 return recvmmsg(sockfd, msgvec, vlen, flags, timeout); in libc_recvmmsg()
41 unsigned int vlen, unsigned int flags, void *timeout) in sys_recvmmsg() argument
43 return tst_syscall(__NR_recvmmsg, sockfd, msgvec, vlen, flags, timeout); in sys_recvmmsg()
47 unsigned int vlen, unsigned int flags, void *timeout) in sys_recvmmsg64() argument
49 return tst_syscall(__NR_recvmmsg_time64, sockfd, msgvec, vlen, flags, in sys_recvmmsg64()
/third_party/musl/src/network/
Drecvmmsg.c13 int recvmmsg(int fd, struct mmsghdr *msgvec, unsigned int vlen, unsigned int flags, struct timespec… in recvmmsg() argument
18 for (i = vlen; i; i--, mh++) in recvmmsg()
24 int r = __syscall_cp(SYS_recvmmsg_time64, fd, msgvec, vlen, flags, in recvmmsg()
28 if (vlen > IOV_MAX) vlen = IOV_MAX; in recvmmsg()
29 socklen_t csize[vlen]; in recvmmsg()
30 for (int i=0; i<vlen; i++) csize[i] = msgvec[i].msg_hdr.msg_controllen; in recvmmsg()
31 r = __syscall_cp(SYS_recvmmsg, fd, msgvec, vlen, flags, in recvmmsg()
37 return syscall_cp(SYS_recvmmsg, fd, msgvec, vlen, flags, timeout); in recvmmsg()
Dsendmmsg.c7 int sendmmsg(int fd, struct mmsghdr *msgvec, unsigned int vlen, unsigned int flags) in sendmmsg() argument
14 if (vlen > IOV_MAX) vlen = IOV_MAX; /* This matches the kernel. */ in sendmmsg()
15 if (!vlen) return 0; in sendmmsg()
16 for (i=0; i<vlen; i++) { in sendmmsg()
28 return syscall_cp(SYS_sendmmsg, fd, msgvec, vlen, flags); in sendmmsg()
/third_party/curl/lib/
Dcookie.c527 size_t vlen; in Curl_cookie_add() local
548 vlen = strcspn(++ptr, ";\r\n"); in Curl_cookie_add()
551 ptr = &valuep[vlen]; in Curl_cookie_add()
554 while(vlen && ISBLANK(valuep[vlen-1])) in Curl_cookie_add()
555 vlen--; in Curl_cookie_add()
558 while(vlen && ISBLANK(*valuep)) { in Curl_cookie_add()
560 vlen--; in Curl_cookie_add()
564 if(memchr(valuep, '\t', vlen)) { in Curl_cookie_add()
572 vlen = 0; in Curl_cookie_add()
580 if(nlen >= (MAX_NAME-1) || vlen >= (MAX_NAME-1) || in Curl_cookie_add()
[all …]
Dheaders.c223 size_t vlen) /* length of the incoming header */ in unfold_value() argument
237 while(vlen && ISSPACE(value[vlen - 1])) in unfold_value()
238 vlen--; in unfold_value()
241 while((vlen > 1) && ISBLANK(value[0]) && ISBLANK(value[1])) { in unfold_value()
242 vlen--; in unfold_value()
252 newhs = Curl_saferealloc(hs, sizeof(*hs) + vlen + oalloc + 1); in unfold_value()
262 memcpy(&newhs->value[olen], value, vlen); in unfold_value()
263 newhs->value[olen + vlen] = 0; /* null-terminate at newline */ in unfold_value()
/third_party/node/deps/uv/src/unix/
Dlinux-syscalls.c145 int uv__sendmmsg(int fd, struct uv__mmsghdr* mmsg, unsigned int vlen) { in uv__sendmmsg() argument
152 args[2] = (unsigned long) vlen; in uv__sendmmsg()
163 return syscall(__NR_sendmmsg, fd, mmsg, vlen, /* flags */ 0); in uv__sendmmsg()
170 int uv__recvmmsg(int fd, struct uv__mmsghdr* mmsg, unsigned int vlen) { in uv__recvmmsg() argument
177 args[2] = (unsigned long) vlen; in uv__recvmmsg()
189 return syscall(__NR_recvmmsg, fd, mmsg, vlen, /* flags */ 0, /* timeout */ 0); in uv__recvmmsg()
Dfreebsd.c267 int uv__sendmmsg(int fd, struct uv__mmsghdr* mmsg, unsigned int vlen) { in uv__sendmmsg() argument
271 vlen, in uv__sendmmsg()
279 int uv__recvmmsg(int fd, struct uv__mmsghdr* mmsg, unsigned int vlen) { in uv__recvmmsg() argument
283 vlen, in uv__recvmmsg()
/third_party/libuv/src/unix/
Dlinux-syscalls.c145 int uv__sendmmsg(int fd, struct uv__mmsghdr* mmsg, unsigned int vlen) { in uv__sendmmsg() argument
152 args[2] = (unsigned long) vlen; in uv__sendmmsg()
163 return syscall(__NR_sendmmsg, fd, mmsg, vlen, /* flags */ 0); in uv__sendmmsg()
170 int uv__recvmmsg(int fd, struct uv__mmsghdr* mmsg, unsigned int vlen) { in uv__recvmmsg() argument
177 args[2] = (unsigned long) vlen; in uv__recvmmsg()
189 return syscall(__NR_recvmmsg, fd, mmsg, vlen, /* flags */ 0, /* timeout */ 0); in uv__recvmmsg()
Dfreebsd.c267 int uv__sendmmsg(int fd, struct uv__mmsghdr* mmsg, unsigned int vlen) { in uv__sendmmsg() argument
271 vlen, in uv__sendmmsg()
279 int uv__recvmmsg(int fd, struct uv__mmsghdr* mmsg, unsigned int vlen) { in uv__recvmmsg() argument
283 vlen, in uv__recvmmsg()
/third_party/node/deps/npm/node_modules/fastest-levenshtein/esm/
Dmod.js51 const vlen = Math.min(32, m) + start; constant
52 for (let k = start; k < vlen; k++) {
74 for (let k = start; k < vlen; k++) {
81 const vlen = Math.min(32, m - start) + start; constant
82 for (let k = start; k < vlen; k++) {
107 for (let k = start; k < vlen; k++) {
/third_party/libbpf/src/
Dbtf_dump.c315 __u16 vlen; in btf_dump_mark_referenced() local
319 vlen = btf_vlen(t); in btf_dump_mark_referenced()
352 for (j = 0; j < vlen; j++, m++) in btf_dump_mark_referenced()
359 for (j = 0; j < vlen; j++, p++) in btf_dump_mark_referenced()
366 for (j = 0; j < vlen; j++, v++) in btf_dump_mark_referenced()
484 __u16 vlen; in btf_dump_order_type() local
528 vlen = btf_vlen(t); in btf_dump_order_type()
529 for (i = 0; i < vlen; i++, m++) { in btf_dump_order_type()
594 vlen = btf_vlen(t); in btf_dump_order_type()
595 for (i = 0; i < vlen; i++, p++) { in btf_dump_order_type()
[all …]
Dbtf.c306 __u16 vlen = btf_vlen(t); in btf_type_size() local
322 return base_size + vlen * sizeof(struct btf_enum); in btf_type_size()
324 return base_size + vlen * sizeof(struct btf_enum64); in btf_type_size()
329 return base_size + vlen * sizeof(struct btf_member); in btf_type_size()
331 return base_size + vlen * sizeof(struct btf_param); in btf_type_size()
335 return base_size + vlen * sizeof(struct btf_var_secinfo); in btf_type_size()
359 __u16 vlen = btf_vlen(t); in btf_bswap_type_rest() local
377 for (i = 0, e = btf_enum(t); i < vlen; i++, e++) { in btf_bswap_type_rest()
383 for (i = 0, e64 = btf_enum64(t); i < vlen; i++, e64++) { in btf_bswap_type_rest()
397 for (i = 0, m = btf_members(t); i < vlen; i++, m++) { in btf_bswap_type_rest()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_common/
Deap_eke_common.c214 size_t vlen[3]; in eap_eke_prf_hmac_sha1() local
219 vlen[0] = SHA1_MAC_LEN; in eap_eke_prf_hmac_sha1()
221 vlen[1] = data_len; in eap_eke_prf_hmac_sha1()
223 vlen[2] = 1; in eap_eke_prf_hmac_sha1()
229 &vlen[1], hash); in eap_eke_prf_hmac_sha1()
231 ret = hmac_sha1_vector(key, key_len, 3, addr, vlen, in eap_eke_prf_hmac_sha1()
255 size_t vlen[3]; in eap_eke_prf_hmac_sha256() local
260 vlen[0] = SHA256_MAC_LEN; in eap_eke_prf_hmac_sha256()
262 vlen[1] = data_len; in eap_eke_prf_hmac_sha256()
264 vlen[2] = 1; in eap_eke_prf_hmac_sha256()
[all …]
Deap_gpsk_common.c46 size_t vlen[2]; in eap_gpsk_gkdf_cmac() local
51 vlen[0] = sizeof(ibuf); in eap_gpsk_gkdf_cmac()
53 vlen[1] = data_len; in eap_gpsk_gkdf_cmac()
60 if (omac1_aes_128_vector(psk, 2, addr, vlen, hash)) in eap_gpsk_gkdf_cmac()
81 size_t vlen[2]; in eap_gpsk_gkdf_sha256() local
86 vlen[0] = sizeof(ibuf); in eap_gpsk_gkdf_sha256()
88 vlen[1] = data_len; in eap_gpsk_gkdf_sha256()
95 if (hmac_sha256_vector(psk, 32, 2, addr, vlen, hash)) in eap_gpsk_gkdf_sha256()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_common/
Deap_eke_common.c214 size_t vlen[3]; in eap_eke_prf_hmac_sha1() local
219 vlen[0] = SHA1_MAC_LEN; in eap_eke_prf_hmac_sha1()
221 vlen[1] = data_len; in eap_eke_prf_hmac_sha1()
223 vlen[2] = 1; in eap_eke_prf_hmac_sha1()
229 &vlen[1], hash); in eap_eke_prf_hmac_sha1()
231 ret = hmac_sha1_vector(key, key_len, 3, addr, vlen, in eap_eke_prf_hmac_sha1()
255 size_t vlen[3]; in eap_eke_prf_hmac_sha256() local
260 vlen[0] = SHA256_MAC_LEN; in eap_eke_prf_hmac_sha256()
262 vlen[1] = data_len; in eap_eke_prf_hmac_sha256()
264 vlen[2] = 1; in eap_eke_prf_hmac_sha256()
[all …]
Deap_gpsk_common.c46 size_t vlen[2]; in eap_gpsk_gkdf_cmac() local
51 vlen[0] = sizeof(ibuf); in eap_gpsk_gkdf_cmac()
53 vlen[1] = data_len; in eap_gpsk_gkdf_cmac()
60 if (omac1_aes_128_vector(psk, 2, addr, vlen, hash)) in eap_gpsk_gkdf_cmac()
81 size_t vlen[2]; in eap_gpsk_gkdf_sha256() local
86 vlen[0] = sizeof(ibuf); in eap_gpsk_gkdf_sha256()
88 vlen[1] = data_len; in eap_gpsk_gkdf_sha256()
95 if (hmac_sha256_vector(psk, 32, 2, addr, vlen, hash)) in eap_gpsk_gkdf_sha256()
/third_party/curl/src/
Dvar.c288 size_t vlen = 0; in varexpand() local
293 vlen = v->clen; in varexpand()
302 ParameterError err = varfunc(global, value, vlen, funcp, flen, in varexpand()
307 vlen = curlx_dyn_len(&buf); in varexpand()
310 if(value && vlen > 0) { in varexpand()
313 char *nb = memchr(value, '\0', vlen); in varexpand()
320 result = curlx_dyn_addn(out, value, vlen); in varexpand()
Dtool_writeout.c538 size_t vlen; in ourWriteOut() local
548 vlen = end - ptr; in ourWriteOut()
550 if((strlen(variables[i].name) == vlen) && in ourWriteOut()
551 curl_strnequal(ptr, variables[i].name, vlen)) { in ourWriteOut()
588 (int)vlen, ptr); in ourWriteOut()
598 vlen = end - ptr; in ourWriteOut()
599 if(vlen < sizeof(hname)) { in ourWriteOut()
600 memcpy(hname, ptr, vlen); in ourWriteOut()
601 hname[vlen] = 0; in ourWriteOut()
/third_party/musl/libc-test/src/functionalext/supplement/unistd/
Dtruncate.c24 const int vlen = 5; variable
71 int result = truncate(path, vlen); in truncate_0200()
89 if (strlen(buf) != vlen) { in truncate_0200()
/third_party/openssl/crypto/asn1/
Dasn1_gen.c71 static int parse_tagging(const char *vstart, int vlen, int *ptag,
245 int vlen = 0; in asn1_cb() local
257 vlen = len - (vstart - elem); in asn1_cb()
290 if (!parse_tagging(vstart, vlen, &arg->imp_tag, &arg->imp_class)) in asn1_cb()
296 if (!parse_tagging(vstart, vlen, &tmp_tag, &tmp_class)) in asn1_cb()
347 static int parse_tagging(const char *vstart, int vlen, int *ptag, int *pclass) in parse_tagging() argument
355 if (eptr && *eptr && (eptr > vstart + vlen)) in parse_tagging()
364 vlen -= eptr - vstart; in parse_tagging()
366 vlen = 0; in parse_tagging()
367 if (vlen) { in parse_tagging()
/third_party/node/deps/openssl/openssl/crypto/asn1/
Dasn1_gen.c71 static int parse_tagging(const char *vstart, int vlen, int *ptag,
245 int vlen = 0; in asn1_cb() local
257 vlen = len - (vstart - elem); in asn1_cb()
290 if (!parse_tagging(vstart, vlen, &arg->imp_tag, &arg->imp_class)) in asn1_cb()
296 if (!parse_tagging(vstart, vlen, &tmp_tag, &tmp_class)) in asn1_cb()
347 static int parse_tagging(const char *vstart, int vlen, int *ptag, int *pclass) in parse_tagging() argument
355 if (eptr && *eptr && (eptr > vstart + vlen)) in parse_tagging()
364 vlen -= eptr - vstart; in parse_tagging()
366 vlen = 0; in parse_tagging()
367 if (vlen) { in parse_tagging()
/third_party/musl/compat/time32/
Drecvmmsg_time32.c6 int __recvmmsg_time32(int fd, struct mmsghdr *msgvec, unsigned int vlen, unsigned int flags, struct… in __recvmmsg_time32() argument
8 return recvmmsg(fd, msgvec, vlen, flags, ts32 ? (&(struct timespec){ in __recvmmsg_time32()
/third_party/ffmpeg/libavcodec/
Dvorbisdec.c1390 unsigned vlen, in vorbis_residue_decode_internal() argument
1398 unsigned max_output = (ch - 1) * vlen; in vorbis_residue_decode_internal()
1414 if (max_output > ch_left * vlen) { in vorbis_residue_decode_internal()
1415 if (max_output <= ch_left * vlen + vr->partition_size*ch_used/ch) { in vorbis_residue_decode_internal()
1452 voffs = voffset+j*vlen; in vorbis_residue_decode_internal()
1462 voffs = voffset + j * vlen; in vorbis_residue_decode_internal()
1485 vec[voffs + k + vlen] += codebook.codevectors[coffs + 1]; in vorbis_residue_decode_internal()
1495 vec[voffs + vlen ] += codebook.codevectors[coffs + 1]; in vorbis_residue_decode_internal()
1496 vec[voffs + vlen + 1] += codebook.codevectors[coffs + 3]; in vorbis_residue_decode_internal()
1506 vec[voffs + vlen] += codebook.codevectors[coffs + l + 1]; in vorbis_residue_decode_internal()
[all …]
/third_party/ltp/testcases/kernel/crypto/
Dcrypto_user01.c35 static void do_check_for_leaks(const char *name, const char *value, size_t vlen) in do_check_for_leaks() argument
39 for (i = strnlen(value, vlen); i < vlen; i++) { in do_check_for_leaks()
/third_party/node/deps/npm/node_modules/fastest-levenshtein/
Dmod.js84 var vlen = Math.min(32, m - start) + start;
85 for (var k = start; k < vlen; k++) {
110 for (var k = start; k < vlen; k++) {

123