Home
last modified time | relevance | path

Searched refs:vlen (Results 1 – 25 of 43) sorted by last modified time

12

/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Din.rlogind.c888 krb5_int32 vlen; in krb5_compat_recvauth() local
894 if ((retval = krb5_net_read(context, fd, (char *)&vlen, 4)) != 4) in krb5_compat_recvauth()
901 len = (int)ntohl(vlen); in krb5_compat_recvauth()
/illumos-gate/usr/src/uts/i86pc/os/
H A Dfakebop.c362 bsetprop(int flags, char *name, int nlen, void *value, int vlen) in bsetprop() argument
371 size = sizeof (bootprop_t) + nlen + 1 + vlen; in bsetprop()
406 b->bp_vlen = vlen; in bsetprop()
407 if (vlen > 0) { in bsetprop()
408 bcopy(value, curr_page, vlen); in bsetprop()
409 curr_page += vlen; in bsetprop()
410 curr_space -= vlen; in bsetprop()
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_pool.c2436 int vlen = strlen(val); in vdev_to_nvlist_iter() local
2438 if (slen != vlen - 2) in vdev_to_nvlist_iter()
2447 ASSERT(vlen >= 6); in vdev_to_nvlist_iter()
2452 if ((strcmp(&val[vlen - 2], "s0") == 0 || in vdev_to_nvlist_iter()
2453 strcmp(&val[vlen - 2], "s1") == 0) && in vdev_to_nvlist_iter()
2460 if ((strcmp(&val[vlen - 6], "s0/old") == 0 || in vdev_to_nvlist_iter()
2461 strcmp(&val[vlen - 6], "s1/old") == 0) && in vdev_to_nvlist_iter()
/illumos-gate/usr/src/uts/common/fs/proc/
H A Dprsubr.c2710 socklen_t vlen; in prfdinfosockopt() local
2734 if (SOP_GETSOCKNAME(so, name, &vlen, cred) == 0 && vlen > 0) in prfdinfosockopt()
2791 vlen = sizeof (l); in prfdinfosockopt()
2812 &val, &vlen, 0, cred) == 0 && vlen > 0) { in prfdinfosockopt()
2823 &nexthop_val, &vlen, 0, cred) == 0 && vlen > 0) { in prfdinfosockopt()
2834 &nexthop6_val, &vlen, 0, cred) == 0 && vlen > 0) { in prfdinfosockopt()
2845 &cong, &vlen, 0, cred) == 0 && vlen > 0) { in prfdinfosockopt()
2855 &fi, &vlen, 0, cred) == 0 && vlen != 0) { in prfdinfosockopt()
2881 len = vlen; in prfdinfosockopt()
2889 if (vlen < len) in prfdinfosockopt()
[all …]
/illumos-gate/usr/src/cmd/bhyve/
H A Dpci_e82545.c1088 unsigned hdrlen, vlen, pktlen, len, left, mss, now, nnow, nleft, pvoff; in e82545_transmit() local
1222 hdrlen = vlen = 0; in e82545_transmit()
1227 vlen = ETHER_VLAN_ENCAP_LEN; in e82545_transmit()
1262 if (vlen != 0 && hdrlen < ETHER_ADDR_LEN*2) { in e82545_transmit()
1314 if (pktlen < hdrlen + vlen) { in e82545_transmit()
1320 if (hdrlen + vlen != 0) { in e82545_transmit()
1321 hdr = __builtin_alloca(hdrlen + vlen); in e82545_transmit()
1322 hdr += vlen; in e82545_transmit()
1360 if (vlen != 0) { in e82545_transmit()
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlc/
H A Dql_hba_fru.c237 size_t vlen; in ql_populate_hba_fru_details() local
476 vlen = (strlen(utsname.nodename) > FCHBA_SYMB_NAME_LEN ? in ql_populate_hba_fru_details()
478 (void) snprintf((int8_t *)attrs->sym_node_name, vlen, "%s", in ql_populate_hba_fru_details()
481 vlen = (strlen(QL_NAME) + 9 > FCHBA_SYMB_NAME_LEN ? in ql_populate_hba_fru_details()
483 (void) snprintf((int8_t *)attrs->sym_port_name, vlen, in ql_populate_hba_fru_details()
/illumos-gate/usr/src/uts/common/io/scsi/adapters/smartpqi/
H A Dsmartpqi_init.c1685 report_phys_luns(pqi_state_t *s, void **v, size_t *vlen) in report_phys_luns() argument
1687 return (report_luns_by_cmd(s, CISS_REPORT_PHYS, v, vlen)); in report_phys_luns()
1691 report_logical_luns(pqi_state_t *s, void **v, size_t *vlen) in report_logical_luns() argument
1693 return (report_luns_by_cmd(s, CISS_REPORT_LOG, v, vlen)); in report_logical_luns()
/illumos-gate/usr/src/cmd/ldap/common/
H A Dldaptool.h200 int *ctrl_criticality, char **ctrl_value, int *vlen);
H A Dldapmodify.c96 char *value, int vlen );
447 int rc, linenum, vlen, modop, replicaport; local
486 if ( str_parse_line( line, &type, &value, &vlen ) < 0 ) {
488 if ( ldif_parse_line( line, &type, &value, &vlen ) < 0 ) {
561 &ctrl_criticality, &ctrl_value, &vlen)) {
566 rc = ldaptool_berval_from_ldif_value( ctrl_value, vlen,
721 addmodifyop( &pmods, modop, type, value, vlen );
906 addmodifyop( LDAPMod ***pmodsp, int modop, char *attr, char *value, int vlen ) argument
968 printf(gettext("%s: value: %s vlen: %d\n"), "ldapmodify", value, vlen);
971 rc = ldaptool_berval_from_ldif_value( value, vlen, bvp,
H A Dfileurl.c231 ldaptool_berval_from_ldif_value( const char *value, int vlen, in ldaptool_berval_from_ldif_value() argument
311 bvp->bv_len = vlen; in ldaptool_berval_from_ldif_value()
312 if (( bvp->bv_val = (char *)malloc( vlen + 1 )) == NULL ) { in ldaptool_berval_from_ldif_value()
316 SAFEMEMCPY( bvp->bv_val, value, vlen ); in ldaptool_berval_from_ldif_value()
317 bvp->bv_val[ vlen ] = '\0'; in ldaptool_berval_from_ldif_value()
/illumos-gate/usr/src/uts/common/io/bge/
H A Dbge_main2.c3424 int i, vlen; local
3449 vlen = strlen(bgep->fw_version);
3451 bgep->fw_version[vlen++] = ',';
3452 bgep->fw_version[vlen++] = ' ';
3464 if (vlen > BGE_FW_VER_SIZE - sizeof(v)) {
3465 memcpy(&bgep->fw_version[vlen], &v, BGE_FW_VER_SIZE - vlen);
3469 memcpy(&bgep->fw_version[vlen], &v, sizeof(v));
3470 vlen += sizeof(v);
3477 int vlen; local
3505 vlen = strlen(bgep->fw_version);
[all …]
/illumos-gate/usr/src/cmd/svc/svccfg/
H A Dsvccfg_libscf.c12791 ssize_t vlen, szret; in list_prop_info() local
12793 vlen = scf_value_get_as_string(val, NULL, 0); in list_prop_info()
12794 if (vlen < 0) in list_prop_info()
12797 buf = safe_malloc(vlen + 1); in list_prop_info()
12799 szret = scf_value_get_as_string(val, buf, vlen + 1); in list_prop_info()
12802 assert(szret <= vlen); in list_prop_info()
14535 ssize_t vlen, szret; in get_prop_values() local
14537 vlen = scf_value_get_as_string(val, NULL, 0); in get_prop_values()
14538 if (vlen < 0) in get_prop_values()
14541 buf = safe_malloc(vlen + 1); in get_prop_values()
[all …]
/illumos-gate/usr/src/lib/libdladm/common/
H A Dsecobj.c422 uint_t vlen; in process_secobj_line() local
479 vlen = DLADM_SECOBJ_VAL_MAX; in process_secobj_line()
482 sinfo.si_lenp = &vlen; in process_secobj_line()
/illumos-gate/usr/src/lib/libtecla/common/
H A Dcplfile.c356 int vlen; /* The length of the value string */ in _cf_complete_file() local
378 vlen = strlen(value); in _cf_complete_file()
385 if(!cf_read_name(cf, "User", value+1, vlen-1, cf->usrnam, USR_LEN) || in _cf_complete_file()
416 } else if(vlen > FS_DIR_SEP_LEN && in _cf_complete_file()
417 strcmp(value + vlen - FS_DIR_SEP_LEN, FS_DIR_SEP)==0) { in _cf_complete_file()
418 cf->path->name[vlen-FS_DIR_SEP_LEN] = '\0'; in _cf_complete_file()
/illumos-gate/usr/src/lib/libsip/common/
H A Dsip_ui.c267 int vlen; in sip_delete_value() local
292 vlen = _sip_header_value->value_end - _sip_header_value->value_start; in sip_delete_value()
296 vlen++; in sip_delete_value()
300 vlen++; in sip_delete_value()
328 vlen--; in sip_delete_value()
329 assert(vlen > 0); in sip_delete_value()
332 _sip_header->sip_hdr_sipmsg->sip_msg_len -= vlen; in sip_delete_value()
H A Dsip_dialog.c167 int vlen = 0; in sip_add_route_to_set() local
177 vlen = value->sip_value_end - value->sip_value_start; in sip_add_route_to_set()
184 vlen -= strlen(SIP_CRLF); in sip_add_route_to_set()
187 rset->sip_dlg_route = calloc(1, vlen + 1); in sip_add_route_to_set()
196 (void) strncpy(rset->sip_dlg_route, value->sip_value_start, vlen); in sip_add_route_to_set()
200 rset->sip_dlg_route[vlen] = '\0'; in sip_add_route_to_set()
/illumos-gate/usr/src/lib/libldap5/sources/ldap/util/
H A Dline64.c94 int *vlen in str_parse_line() argument
150 *vlen = 0; in str_parse_line()
163 if (( *vlen = ldif_base64_decode( s, (unsigned char *)s )) in str_parse_line()
178 s[ *vlen ] = '\0'; in str_parse_line()
180 *vlen = (int) (d - s); in str_parse_line()
322 int vlen, unsigned long options ) in ldif_put_type_and_value_with_options() argument
350 if ( val && vlen > 0 ) { in ldif_put_type_and_value_with_options()
352 stop = (unsigned char *) (val + vlen); in ldif_put_type_and_value_with_options()
359 !LDIF_CONSERVATIVE_FINALCHAR( val[vlen-1] )) { in ldif_put_type_and_value_with_options()
528 ldif_type_and_value( char *type, char *val, int vlen ) in ldif_type_and_value() argument
[all …]
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/
H A Dgetfilter.c324 filter_add_strn( char *f, char *flimit, char *v, size_t vlen ) in filter_add_strn() argument
330 if ( vlen > flen ) { /* flimit is too small */ in filter_add_strn()
334 if ( vlen > 0 ) SAFEMEMCPY( f, v, vlen ); in filter_add_strn()
335 return f + vlen; in filter_add_strn()
H A Ddigest_md5.c467 int alen, vlen; in digest_parse() local
497 vlen = scan - val; in digest_parse()
505 vlen = scan - val; in digest_parse()
507 if (!vlen) in digest_parse()
516 attr_out->clen = vlen; in digest_parse()
527 attr_out->dlen = vlen; in digest_parse()
538 attr_out->mlen = vlen; in digest_parse()
545 attr_out->nlen = vlen; in digest_parse()
556 attr_out->qlen = vlen; in digest_parse()
563 attr_out->rlen = vlen; in digest_parse()
[all …]
/illumos-gate/usr/src/lib/libldap5/include/ldap/
H A Dldif.h56 #define LDIF_BASE64_LEN(vlen) (((vlen) * 4 / 3 ) + 3) argument
64 #define LDIF_SIZE_NEEDED(tlen,vlen) \ argument
65 ((tlen) + 4 + LDIF_BASE64_LEN(vlen) \
66 + ((LDIF_BASE64_LEN(vlen) + tlen + 3) / LDIF_MAX_LINE_WIDTH * 2 ))
76 int str_parse_line( char *line, char **type, char **value, int *vlen);
78 void ldif_put_type_and_value( char **out, char *t, char *val, int vlen );
79 void ldif_put_type_and_value_nowrap( char **out, char *t, char *val, int vlen );
81 int vlen, unsigned long options );
82 char *ldif_type_and_value( char *type, char *val, int vlen );
83 char *ldif_type_and_value_nowrap( char *type, char *val, int vlen );
[all …]
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_subr.c59 size_t off, len, vlen, wlen; in dtrace_xstr2desc() local
75 vlen = 0; in dtrace_xstr2desc()
88 vlen = (size_t)(q + len - v); in dtrace_xstr2desc()
96 if (vlen > 2 && v[1] == '$') { in dtrace_xstr2desc()
97 vlen--; in dtrace_xstr2desc()
107 wlen = vlen - (w - v); in dtrace_xstr2desc()
113 vlen = strlen(v); in dtrace_xstr2desc()
118 } else if (vlen > 1) { in dtrace_xstr2desc()
119 char *vstr = alloca(vlen); in dtrace_xstr2desc()
122 (void) strncpy(vstr, v + 1, vlen - 1); in dtrace_xstr2desc()
[all …]
/illumos-gate/usr/src/lib/libcurses/screen/
H A Dprint.c235 int vlen; in pr_boolean() local
277 vlen = (value < 0) ? 1 : 0; in pr_boolean()
391 int vlen; in pr_number() local
439 vlen = digitlen(value); in pr_number()
499 printed += nlen + vlen + 2; in pr_number()
503 printed += nlen + vlen + 1; in pr_number()
504 caplen += nlen + vlen + 1; in pr_number()
509 printed += nlen + vlen + 4; in pr_number()
542 size_t nlen, vlen; in pr_string() local
599 vlen = 1; in pr_string()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
H A Dradix.c223 uint_t off = t->rn_off, vlen, matched_off; in rn_match() local
226 vlen = sizeof (struct sockaddr); in rn_match()
241 cplim = v + vlen; in rn_match()
361 uint_t head_off = top->rn_off, vlen; in rn_insert() local
366 vlen = sizeof (struct sockaddr); in rn_insert()
374 uint8_t *cplim = v + vlen; in rn_insert()
714 uint_t head_off, vlen; in rn_delete() local
721 vlen = sizeof (struct sockaddr); in rn_delete()
725 memcmp(v + head_off, tt->rn_key + head_off, vlen - head_off) != 0) { in rn_delete()
/illumos-gate/usr/src/cmd/abi/spectrans/spec2map/
H A Dutil.c186 size_t vlen; in strset() local
189 vlen = strlen(value); in strset()
192 if ((string = malloc(vlen + 1)) == NULL) { in strset()
197 } else if (strlen(string) < vlen) { in strset()
199 if ((string = realloc(string, vlen + 1)) == NULL) { in strset()
/illumos-gate/usr/src/uts/sun4v/io/
H A Dvds.c1503 vd_scsi_rdwr(vd_t *vd, int operation, caddr_t data, size_t vblk, size_t vlen) in vd_scsi_rdwr() argument
1530 return (vd_do_scsi_rdwr(vd, operation, data, vblk, vlen)); in vd_scsi_rdwr()
1570 pnblk = ((delta + vlen - 1) / vd->backend_bsize) + 1; in vd_scsi_rdwr()
1573 PR2("vblk %lx:pblk %lx: vlen %ld:plen %ld", vblk, pblk, vlen, plen); in vd_scsi_rdwr()
1577 bcopy(buf + delta, data, vlen); in vd_scsi_rdwr()

12