Home
last modified time | relevance | path

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

123456

/netbsd-src/lib/libc/gen/
H A Dextattr.c102 ssize_t llen, vlen, maxvlen; in extattr_copy_fd() local
142 vlen = extattr_get_fd(from_fd, namespace, aname, NULL, 0); in extattr_copy_fd()
143 if (vlen == -1) in extattr_copy_fd()
146 if (vlen > maxvlen) { in extattr_copy_fd()
147 if ((aval = realloc(aval, (size_t)vlen)) == NULL) in extattr_copy_fd()
149 maxvlen = vlen; in extattr_copy_fd()
152 if ((vlen = extattr_get_fd(from_fd, namespace, aname, in extattr_copy_fd()
153 aval, (size_t)vlen)) == -1) in extattr_copy_fd()
157 aval, (size_t)vlen) != vlen) in extattr_copy_fd()
172 ssize_t llen, vlen, maxvlen; in extattr_copy_file() local
[all …]
/netbsd-src/crypto/external/bsd/heimdal/dist/lib/hcrypto/
H A Dpkcs12.c54 int i, vlen; in PKCS12_key_gen() local
67 vlen = EVP_MD_block_size(md); in PKCS12_key_gen()
68 v = malloc(vlen + 1); in PKCS12_key_gen()
74 I = calloc(1, vlen * 2); in PKCS12_key_gen()
82 for (i = 0; i < vlen; i++) in PKCS12_key_gen()
84 size_I += vlen; in PKCS12_key_gen()
92 for (i = 0; i < vlen / 2; i++) { in PKCS12_key_gen()
96 size_I += vlen; in PKCS12_key_gen()
108 for (i = 0; i < vlen; i++) in PKCS12_key_gen()
122 for (i = 0; i < vlen; i++) in PKCS12_key_gen()
[all …]
/netbsd-src/external/bsd/openldap/dist/include/
H A Dldif.h55 #define LDIF_SIZE_NEEDED(nlen,vlen) LDIF_SIZE_NEEDED_WRAP(nlen, vlen, 0) argument
57 #define LDIF_SIZE_NEEDED_WRAP(nlen,vlen,wrap) \ argument
58 ((nlen) + 4 + LDIF_BASE64_LEN(vlen) \
59 + ((wrap) == 0 ? ((LDIF_BASE64_LEN(vlen) + (nlen) + 3) / ( LDIF_LINE_WIDTH-1 ) * 2 ) : \
60 ((wrap) == LDIF_LINE_WIDTH_MAX ? 0 : ((LDIF_BASE64_LEN(vlen) + (nlen) + 3) / (wrap-1) * 2 ))))
67 ber_len_t *vlen ));
83 ber_len_t *vlen ));
140 ber_len_t vlen ));
148 ber_len_t vlen,
156 ber_len_t vlen ));
[all …]
/netbsd-src/tests/net/can/
H A Dt_can.c103 socklen_t vlen; in ATF_TC_BODY() local
118 vlen = sizeof(v); in ATF_TC_BODY()
120 &v, &vlen) < 0) { in ATF_TC_BODY()
123 ATF_CHECK_MSG(vlen == sizeof(v), "getsockopt(CAN_RAW_LOOPBACK) returns wrong len %d", vlen); in ATF_TC_BODY()
127 vlen = sizeof(v); in ATF_TC_BODY()
129 &v, &vlen) < 0) { in ATF_TC_BODY()
132 ATF_CHECK_MSG(vlen == sizeof(v), "getsockopt(CAN_RAW_RECV_OWN_MSGS) returns wrong len %d", vlen); in ATF_TC_BODY()
177 socklen_t vlen; in ATF_TC_BODY() local
188 vlen = sizeof(v); in ATF_TC_BODY()
190 &v, &vlen) < 0) { in ATF_TC_BODY()
[all …]
/netbsd-src/external/gpl3/binutils/dist/libctf/
H A Dctf-create.c79 ctf_grow_vlen (ctf_dict_t *fp, ctf_dtdef_t *dtd, size_t vlen) in ctf_grow_vlen() argument
83 if (dtd->dtd_vlen_alloc > vlen) in ctf_grow_vlen()
250 size_t vlen = LCTF_INFO_VLEN (fp, dtd->dtd_data.ctt_info); in ctf_dtd_delete() local
264 for (i = 0; i < vlen; i++) in ctf_dtd_delete()
274 for (i = 0; i < vlen; i++) in ctf_dtd_delete()
446 size_t vlen, ctf_dtdef_t **rp) in ctf_add_generic() argument
470 dtd->dtd_vlen_alloc = vlen; in ctf_add_generic()
471 if (vlen > 0) in ctf_add_generic()
473 if ((dtd->dtd_vlen = calloc (1, vlen)) == NULL) in ctf_add_generic()
720 ctf_array_t *vlen; in ctf_set_array() local
[all …]
H A Dctf-open.c142 ssize_t size _libctf_unused_, size_t vlen) in get_vbytes_common() argument
152 return (sizeof (ctf_enum_t) * vlen); in get_vbytes_common()
169 get_vbytes_v1 (ctf_dict_t *fp, unsigned short kind, ssize_t size, size_t vlen) in get_vbytes_v1() argument
176 return (sizeof (unsigned short) * (vlen + (vlen & 1))); in get_vbytes_v1()
180 return (sizeof (ctf_member_v1_t) * vlen); in get_vbytes_v1()
182 return (sizeof (ctf_lmember_v1_t) * vlen); in get_vbytes_v1()
185 return (get_vbytes_common (fp, kind, size, vlen)); in get_vbytes_v1()
189 get_vbytes_v2 (ctf_dict_t *fp, unsigned short kind, ssize_t size, size_t vlen) in get_vbytes_v2() argument
196 return (sizeof (uint32_t) * (vlen + (vlen & 1))); in get_vbytes_v2()
200 return (sizeof (ctf_member_t) * vlen); in get_vbytes_v2()
[all …]
/netbsd-src/external/gpl3/binutils.old/dist/libctf/
H A Dctf-create.c79 ctf_grow_vlen (ctf_dict_t *fp, ctf_dtdef_t *dtd, size_t vlen) in ctf_grow_vlen() argument
83 if (dtd->dtd_vlen_alloc > vlen) in ctf_grow_vlen()
254 size_t vlen = LCTF_INFO_VLEN (fp, dtd->dtd_data.ctt_info); in ctf_dtd_delete() local
268 for (i = 0; i < vlen; i++) in ctf_dtd_delete()
278 for (i = 0; i < vlen; i++) in ctf_dtd_delete()
450 size_t vlen, ctf_dtdef_t **rp) in ctf_add_generic() argument
474 dtd->dtd_vlen_alloc = vlen; in ctf_add_generic()
475 if (vlen > 0) in ctf_add_generic()
477 if ((dtd->dtd_vlen = calloc (1, vlen)) == NULL) in ctf_add_generic()
723 ctf_array_t *vlen; in ctf_set_array() local
[all …]
H A Dctf-open.c142 ssize_t size _libctf_unused_, size_t vlen) in get_vbytes_common() argument
152 return (sizeof (ctf_enum_t) * vlen); in get_vbytes_common()
169 get_vbytes_v1 (ctf_dict_t *fp, unsigned short kind, ssize_t size, size_t vlen) in get_vbytes_v1() argument
176 return (sizeof (unsigned short) * (vlen + (vlen & 1))); in get_vbytes_v1()
180 return (sizeof (ctf_member_v1_t) * vlen); in get_vbytes_v1()
182 return (sizeof (ctf_lmember_v1_t) * vlen); in get_vbytes_v1()
185 return (get_vbytes_common (fp, kind, size, vlen)); in get_vbytes_v1()
189 get_vbytes_v2 (ctf_dict_t *fp, unsigned short kind, ssize_t size, size_t vlen) in get_vbytes_v2() argument
196 return (sizeof (uint32_t) * (vlen + (vlen & 1))); in get_vbytes_v2()
200 return (sizeof (ctf_member_t) * vlen); in get_vbytes_v2()
[all …]
/netbsd-src/external/gpl2/mkhybrid/dist/
H A Dvolume.c30 AlcSiz(int vlen) in AlcSiz() argument
35 lpa = 1 + vlen / 65536; in AlcSiz()
49 XClpSiz(int vlen) in XClpSiz() argument
57 drAlBlkSiz = AlcSiz(vlen); in XClpSiz()
60 vbmsz = (vlen / lpa + 4095) / 4096; in XClpSiz()
61 drNmAlBlks = (vlen - 5 - vbmsz) / lpa; in XClpSiz()
68 olpa = 1 + vlen / 65536; in XClpSiz()
157 int vlen, vblen; /* vol length (bytes, blocks) */ in FDECL2() local
194 if ((vlen = get_adj_size(Csize)) < 0) { in FDECL2()
199 vlen += V_ROUND_UP(start_extent * SECTOR_SIZE, Csize); in FDECL2()
[all …]
/netbsd-src/external/bsd/openldap/dist/libraries/libldap/
H A Dldif.c447 ber_len_t vlen ) in ldif_sput() argument
449 ldif_sput_wrap( out, type, name, val, vlen, 0 ); in ldif_sput()
458 ber_len_t vlen, in ldif_sput_wrap() argument
481 if( vlen ) { in ldif_sput_wrap()
513 if( vlen == 0 ) { in ldif_sput_wrap()
544 for ( i=0; i < vlen; i++ ) { in ldif_sput_wrap()
564 stop = (const unsigned char *) (val + vlen); in ldif_sput_wrap()
568 && isgraph( (unsigned char) val[vlen-1] ) in ldif_sput_wrap()
667 ber_len_t vlen ) in ldif_put() argument
669 return ldif_put_wrap( type, name, val, vlen, 0 ); in ldif_put()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/IR/
H A DVPIntrinsics.def106 // llvm.vp.add(x,y,mask,vlen)
109 // llvm.vp.and(x,y,mask,vlen)
112 // llvm.vp.ashr(x,y,mask,vlen)
115 // llvm.vp.lshr(x,y,mask,vlen)
118 // llvm.vp.mul(x,y,mask,vlen)
121 // llvm.vp.or(x,y,mask,vlen)
124 // llvm.vp.sdiv(x,y,mask,vlen)
127 // llvm.vp.shl(x,y,mask,vlen)
130 // llvm.vp.srem(x,y,mask,vlen)
133 // llvm.vp.sub(x,y,mask,vlen)
[all …]
/netbsd-src/external/mit/libuv/dist/src/unix/
H A 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()
/netbsd-src/external/cddl/osnet/dist/common/ctf/
H A Dctf_open.c124 ushort_t info, vlen; in init_symtab() local
174 vlen = LCTF_INFO_VLEN(fp, info); in init_symtab()
182 vlen == 0) in init_symtab()
185 funcoff += sizeof (ushort_t) * (vlen + 2); in init_symtab()
232 ulong_t vlen = LCTF_INFO_VLEN(fp, tp->ctt_info); in init_types() local
249 vbytes = sizeof (ushort_t) * (vlen + (vlen & 1)); in init_types()
258 vbytes = sizeof (ctf_member_t) * vlen; in init_types()
259 for (n = vlen; n != 0; n--, mp++) in init_types()
265 vbytes = sizeof (ctf_lmember_t) * vlen; in init_types()
266 for (n = vlen; n != 0; n--, lmp++) in init_types()
[all …]
H A Dctf_create.c282 uint_t vlen = CTF_INFO_VLEN(dtd->dtd_data.ctt_info); in ctf_update() local
298 size += sizeof (ushort_t) * (vlen + (vlen & 1)); in ctf_update()
303 size += sizeof (ctf_member_t) * vlen; in ctf_update()
305 size += sizeof (ctf_lmember_t) * vlen; in ctf_update()
308 size += sizeof (ctf_enum_t) * vlen; in ctf_update()
340 uint_t vlen = CTF_INFO_VLEN(dtd->dtd_data.ctt_info); in ctf_update() local
394 for (argc = 0; argc < vlen; argc++) in ctf_update()
397 if (vlen & 1) in ctf_update()
799 uint_t vlen; in ctf_add_function() local
808 vlen = ctc->ctc_argc; in ctf_add_function()
[all …]
/netbsd-src/external/cddl/osnet/dev/fbt/
H A Dfbt.c457 ushort_t vlen; in fbt_ctfoff_init() local
529 vlen = CTF_INFO_VLEN(info); in fbt_ctfoff_init()
536 if (CTF_INFO_KIND(info) == CTF_K_UNKNOWN && vlen == 0) in fbt_ctfoff_init()
539 funcoff += sizeof (ushort_t) * (vlen + 2); in fbt_ctfoff_init()
602 ulong_t vlen = CTF_INFO_VLEN(tp->ctt_info); in fbt_typoff_init() local
619 vbytes = sizeof (ushort_t) * (vlen + (vlen & 1)); in fbt_typoff_init()
627 vbytes = sizeof (ctf_member_t) * vlen; in fbt_typoff_init()
628 for (n = vlen; n != 0; n--, mp++) in fbt_typoff_init()
634 vbytes = sizeof (ctf_lmember_t) * vlen; in fbt_typoff_init()
635 for (n = vlen; n != 0; n--, lmp++) in fbt_typoff_init()
[all …]
/netbsd-src/external/bsd/pcc/dist/pcc/f77/fcom/
H A Ddata.c55 ftnint elen, vlen; local
79 p = nextdata(&elen, &vlen);
86 setdata(p, valp, elen, vlen);
233 LOCAL void setdata(varp, valp, elen, vlen) in setdata() argument
235 ftnint elen, vlen;
287 fprintf(initfile, datafmt, varname, offset, vlen, type);
305 fprintf(initfile, datafmt, varname, offset, vlen, type);
318 fprintf(initfile, datafmt, varname, offset++, vlen, TYCHAR);
324 fprintf(initfile, datafmt, varname, offset++, vlen, TYCHAR);
/netbsd-src/sys/ufs/chfs/
H A Dchfs_wbuf.c194 int vlen = invecs[invec].iov_len; in chfs_write_wbuf() local
198 wbuf_retlen = chfs_fill_wbuf(chmp, v, vlen); in chfs_write_wbuf()
206 vlen -= wbuf_retlen; in chfs_write_wbuf()
213 if (vlen >= chmp->chm_wbuf_pagesize) { in chfs_write_wbuf()
214 ret = chfs_write_leb(chmp, lnr, v, outvec_to, PAGE_DIV(vlen), &wbuf_retlen); in chfs_write_wbuf()
215 vlen -= wbuf_retlen; in chfs_write_wbuf()
223 wbuf_retlen = chfs_fill_wbuf(chmp, v, vlen); in chfs_write_wbuf()
/netbsd-src/external/ibm-public/postfix/dist/src/util/
H A Ddict_cdb.c103 unsigned vlen; in dict_cdbq_lookup() local
146 vlen = cdb_datalen(&dict_cdbq->cdb); in dict_cdbq_lookup()
147 if (len < vlen) { in dict_cdbq_lookup()
149 buf = mymalloc(vlen + 1); in dict_cdbq_lookup()
151 buf = myrealloc(buf, vlen + 1); in dict_cdbq_lookup()
152 len = vlen; in dict_cdbq_lookup()
154 if (cdb_read(&dict_cdbq->cdb, buf, vlen, in dict_cdbq_lookup()
157 buf[vlen] = '\0'; in dict_cdbq_lookup()
/netbsd-src/external/bsd/am-utils/dist/amd/
H A Dopts.c1201 int vlen = strlen(val); in expand_op() local
1207 vlen = vptr - val; in expand_op()
1214 vlen = strlen(vptr); in expand_op()
1222 vlen = strlen(vptr); in expand_op()
1225 vlen = 0; in expand_op()
1231 vlen = vptr - val; in expand_op()
1238 if (BUFSPACE(ep, vlen+1)) { in expand_op()
1244 memcpy(ep, vptr, vlen+1); in expand_op()
1245 ep += vlen; in expand_op()
1271 int vlen = strlen(env); in expand_op() local
[all …]
/netbsd-src/external/gpl3/gcc/dist/gcc/
H A Dctfc.cc618 uint32_t kind, vlen, root; in ctf_add_enumerator() local
629 vlen = CTF_V2_INFO_VLEN (dtd->dtd_data.ctti_info); in ctf_add_enumerator()
631 gcc_assert (kind == CTF_K_ENUM && vlen < CTF_MAX_VLEN); in ctf_add_enumerator()
651 dtd->dtd_data.ctti_info = CTF_TYPE_INFO (kind, root, vlen + 1); in ctf_add_enumerator()
668 uint32_t kind, vlen, root; in ctf_add_member_offset() local
675 vlen = CTF_V2_INFO_VLEN (dtd->dtd_data.ctti_info); in ctf_add_member_offset()
678 gcc_assert (vlen < CTF_MAX_VLEN); in ctf_add_member_offset()
687 if (kind == CTF_K_STRUCT && vlen != 0) in ctf_add_member_offset()
692 dtd->dtd_data.ctti_info = CTF_TYPE_INFO (kind, root, vlen + 1); in ctf_add_member_offset()
751 uint32_t vlen; in ctf_add_function_arg() local
[all …]
/netbsd-src/external/gpl3/gcc/dist/gcc/d/dmd/
H A Dob.d1209 const vlen = obstate.vars.length; in allocStates() local
1210 …PtrVarState* p = cast(PtrVarState*) mem.xcalloc(obstate.nodes.length * 3 * vlen, PtrVarState.sizeo… in allocStates()
1211 obstate.varPool = p[0 .. obstate.nodes.length * 3 * vlen]; in allocStates()
1217 ob.gen = p[0 .. vlen]; p += vlen; in allocStates()
1218 ob.input = p[0 .. vlen]; p += vlen; in allocStates()
1219 ob.output = p[0 .. vlen]; p += vlen; in allocStates()
1577 const vlen = obstate.vars.length; in genKill() local
1578 auto p = cast(PtrVarState*)mem.xcalloc(vlen, PtrVarState.sizeof); in genKill()
1579 PtrVarState[] gen1 = p[0 .. vlen]; in genKill()
1588 foreach (i; 0 .. vlen) in genKill()
[all …]
/netbsd-src/lib/libbluetooth/
H A Dsdp_compat.c168 uint32_t const *ap, uint32_t vlen, sdp_attr_t *vp) in sdp_search() argument
223 while (vlen > 0 && sdp_get_seq(&rsp, &seq)) { in sdp_search()
224 while (vlen > 0 && sdp_get_attr(&seq, &attr, &value)) { in sdp_search()
227 if (value.end - value.next > (ssize_t)vp->vlen) { in sdp_search()
231 vp->vlen = value.end - value.next; in sdp_search()
233 memcpy(vp->value, value.next, vp->vlen); in sdp_search()
239 vlen--; in sdp_search()
243 while (vlen-- > 0) in sdp_search()
/netbsd-src/external/cddl/osnet/dist/lib/libdtrace/common/
H A Ddt_subr.c74 size_t off, len, vlen, wlen; in dtrace_xstr2desc() local
90 vlen = 0; in dtrace_xstr2desc()
103 vlen = (size_t)(q + len - v); in dtrace_xstr2desc()
111 if (vlen > 2 && v[1] == '$') { in dtrace_xstr2desc()
112 vlen--; in dtrace_xstr2desc()
122 wlen = vlen - (w - v); in dtrace_xstr2desc()
128 vlen = strlen(v); in dtrace_xstr2desc()
133 } else if (vlen > 1) { in dtrace_xstr2desc()
134 char *vstr = alloca(vlen); in dtrace_xstr2desc()
137 (void) strncpy(vstr, v + 1, vlen - 1); in dtrace_xstr2desc()
[all …]
/netbsd-src/external/bsd/wpa/dist/src/eap_common/
H A 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 …]
/netbsd-src/sys/compat/netbsd32/
H A Dnetbsd32_socket.c275 unsigned int vlen, flags, dg; in netbsd32_recvmmsg() local
303 vlen = SCARG(uap, vlen); in netbsd32_recvmmsg()
304 if (vlen > 1024) in netbsd32_recvmmsg()
305 vlen = 1024; in netbsd32_recvmmsg()
310 for (dg = 0; dg < vlen;) { in netbsd32_recvmmsg()
572 unsigned int vlen, flags, dg; in netbsd32_sendmmsg() local
579 vlen = SCARG(uap, vlen); in netbsd32_sendmmsg()
580 if (vlen > 1024) in netbsd32_sendmmsg()
581 vlen = 1024; in netbsd32_sendmmsg()
585 for (dg = 0; dg < vlen;) { in netbsd32_sendmmsg()

123456