Home
last modified time | relevance | path

Searched refs:name_len (Results 1 – 25 of 57) sorted by relevance

123

/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dfsys_iso9660.c186 unsigned int name_len = idr->name_len.l; in iso9660_dir() local
189 if (name_len == 1) in iso9660_dir()
195 if (name_len > 2 && CHECK2(name + name_len - 2, ';', '1')) in iso9660_dir()
197 name_len -= 2; /* truncate trailing file version */ in iso9660_dir()
198 if (name_len > 1 && name[name_len - 1] == '.') in iso9660_dir()
199 name_len--; /* truncate trailing dot */ in iso9660_dir()
205 rr_len = (idr->length.l - idr->name_len.l in iso9660_dir()
208 rr_ptr.ptr = ((unsigned char *)idr + idr->name_len.l in iso9660_dir()
239 name_len = rr_ptr.rr->len - (4+sizeof(struct NM)); in iso9660_dir()
338 memcpy(NAME_BUF, name, name_len); in iso9660_dir()
[all …]
H A Dfsys_ext2fs.c223 __u8 name_len; /* Name length */ member
236 #define EXT2_DIR_REC_LEN(name_len) (((name_len) + 8 + EXT2_DIR_ROUND) & \ argument
810 int saved_c = dp->name[dp->name_len]; in ext2fs_dir()
812 dp->name[dp->name_len] = 0; in ext2fs_dir()
825 dp->name[dp->name_len] = saved_c; in ext2fs_dir()
H A Dfsys_zfs.c1333 int name_len, type; in nvpair_type() local
1339 name_len = BSWAP_32(*(uint32_t *)nvp); in nvpair_type()
1343 nvp = nvp + ((name_len + 3) & ~3); /* align */ in nvpair_type()
1353 int name_len, type, slen; in nvpair_value() local
1361 name_len = BSWAP_32(*(uint32_t *)nvp); in nvpair_value()
1365 nvp = nvp + ((name_len + 3) & ~3); /* align */ in nvpair_value()
1418 int name_len = BSWAP_32(*(uint32_t *)(nvpair + 4 * 2)); in nvlist_lookup_value() local
1421 if ((grub_strncmp(nvp_name, name, name_len) == 0) && in nvlist_lookup_value()
/illumos-gate/usr/src/uts/common/crypto/core/
H A Dkcf_cryptoadm.c362 size_t name_len, final_size = 0; in crypto_get_soft_list() local
383 name_len = strlen(p->ce_name) + 1; in crypto_get_soft_list()
385 if ((namep + name_len) > end) { in crypto_get_soft_list()
392 namep += name_len; in crypto_get_soft_list()
393 final_size += name_len; in crypto_get_soft_list()
525 int name_len; in crypto_get_soft_info() local
528 name_len = strlen(name); in crypto_get_soft_info()
529 tmp = kmem_alloc(name_len + 8, KM_SLEEP); in crypto_get_soft_info()
531 bcopy(name, &tmp[7], name_len); in crypto_get_soft_info()
532 tmp[name_len + 7] = '\0'; in crypto_get_soft_info()
[all …]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgetenv.c364 size_t name_len; in setenv() local
373 name_len = strlen(envname); in setenv()
376 new_chunk = malloc(sizeof (chunk_t) + name_len + val_len + 2); in setenv()
383 (void) memcpy(new_string, envname, name_len); in setenv()
384 new_string[name_len] = '='; in setenv()
385 (void) memcpy(new_string + name_len + 1, envval, val_len); in setenv()
386 new_string[name_len + 1 + val_len] = 0; in setenv()
H A Dgettxt.c90 size_t name_len; in gettxt() local
101 if ((name_len = (tokp - msg_id)) >= DB_NAME_LEN) in gettxt()
103 if (name_len > 0) { in gettxt()
104 (void) strncpy(msgfile, msg_id, name_len); in gettxt()
105 msgfile[name_len] = '\0'; in gettxt()
122 msgnum = atoi(msg_id + name_len + 1); in gettxt()
/illumos-gate/usr/src/cmd/gss/gsscred/
H A Dgsscred_file.c265 int item_len, name_len; in matchEntry() local
291 name_len = name->length; in matchEntry()
295 if (item_len < name_len) in matchEntry()
298 if (strncmp(item, name->value, name_len) != 0) { in matchEntry()
337 if (strncmp(item_buf, name_buf, name_len - NAME_OFFSET) in matchEntry()
347 if (item_len != name_len) in matchEntry()
/illumos-gate/usr/src/cmd/sgs/libld/common/
H A Dwrap.c96 size_t name_len, wrapname_len; in ld_wrap_enter() local
118 name_len = strlen(wsn.wsn_name); in ld_wrap_enter()
119 wrapname_len = MSG_STR_UU_WRAP_U_SIZE + name_len + 1; in ld_wrap_enter()
/illumos-gate/usr/src/cmd/hal/probing/volume/
H A Dprobe-volume.c137 int name_len; in hsfs_contents() local
191 name_len = IPE_NAME_LEN(p); in hsfs_contents()
192 ipe_len = IPE_FPESIZE + name_len + (name_len % 2); in hsfs_contents()
198 if ((name_len < 2) || (name_len > IDE_MAX_NAME_LEN)) { in hsfs_contents()
203 if (strncasecmp (name, "VIDEO_TS", min (8, name_len)) == 0) { in hsfs_contents()
206 } else if (strncasecmp (name, "VCD", min (3, name_len)) == 0) { in hsfs_contents()
209 } else if (strncasecmp (name, "SVCD", min (4, name_len)) == 0) { in hsfs_contents()
/illumos-gate/usr/src/lib/libnisdb/yptol/
H A Dshim_ancil.c308 int name_len; in add_map_domain_to_list() local
343 name_len = (int)strlen(dp->d_name); in add_map_domain_to_list()
345 if (name_len < dbm_pag_len - 1) { in add_map_domain_to_list()
349 ext = &(dp->d_name[name_len - (dbm_pag_len - 1)]); in add_map_domain_to_list()
/illumos-gate/usr/src/uts/common/sys/fibre-channel/fca/emlxs/
H A Demlxs_dhchap.h421 uint16_t name_len; /* set to 0x0008 */ member
442 uint16_t name_len; /* set to 0x0008 */ member
465 uint16_t name_len; /* set to 0x0008 */ member
486 uint16_t name_len; /* set to 0x0008 */ member
502 uint16_t name_len; /* set to 0x0008 */ member
528 uint16_t name_len; /* set to 0x0008 */ member
/illumos-gate/usr/src/lib/libnisdb/
H A Dldap_xdr.c91 size_t name_len, dom_len, min_len; in xdr_nis_name_abbrev() local
101 name_len = strlen(name); in xdr_nis_name_abbrev()
102 if (name_len == 0) in xdr_nis_name_abbrev()
105 min_len = (name_len < dom_len) ? name_len : dom_len; in xdr_nis_name_abbrev()
107 if (name[name_len - i] != domainname[dom_len - i]) in xdr_nis_name_abbrev()
111 memcpy(buf, name, name_len - i); in xdr_nis_name_abbrev()
112 sprintf(buf + name_len - i, ".%d", dom_len - i); in xdr_nis_name_abbrev()
/illumos-gate/usr/src/cmd/du/
H A Ddu.c68 static size_t name_len = PATH_MAX + 1; /* # of chars for name */ variable
200 if ((name = (char *)calloc(name_len, sizeof (char))) == NULL) { in main()
234 if (base_len > name_len) { in main()
235 name_len = base_len; in main()
236 if ((name = (char *)realloc(name, name_len * in main()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dchap.c786 int chal_len, name_len; local
790 name_len = strlen(cstate->chal_name);
791 outlen = CHAP_HEADERLEN + sizeof (u_char) + chal_len + name_len;
804 BCOPY(cstate->chal_name, outp, name_len); /* append hostname */
889 int outlen, md_len, name_len; local
892 name_len = strlen(cstate->resp_name);
893 outlen = CHAP_HEADERLEN + sizeof (u_char) + md_len + name_len;
906 BCOPY(cstate->resp_name, outp, name_len); /* append our name */
/illumos-gate/usr/src/boot/i386/isoboot/
H A Dcd9660read.c76 p = dp->name + isonum_711(dp->name_len) + lenskip; in susp_lookup_record()
78 if ((isonum_711(dp->name_len) & 1) == 0) in susp_lookup_record()
147 p = dp->name + isonum_711(dp->name_len); in rrip_check()
188 len = isonum_711(dp->name_len); in dirmatch()
/illumos-gate/usr/src/lib/libtecla/common/
H A Dpcache.c1010 char *pca_lookup_file(PathCache *pc, const char *name, int name_len, in pca_lookup_file() argument
1018 if(!pc || !name || name_len==0) in pca_lookup_file()
1024 if(name_len < 0) in pca_lookup_file()
1025 name_len = strlen(name); in pca_lookup_file()
1034 if(cpa_cmd_contains_path(name, name_len)) { in pca_lookup_file()
1036 if(pca_expand_tilde(pc, name, name_len, literal, &nptr) || in pca_lookup_file()
1037 _pn_append_to_path(pc->path, nptr, name_len - (nptr-name), in pca_lookup_file()
1064 if(_pn_append_to_path(pc->path, name, name_len, !literal) == NULL) in pca_lookup_file()
/illumos-gate/usr/src/uts/common/io/pciex/hotplug/
H A Dpcie_hp.c695 int ret, dev_num, func_num, name_len; in pcie_hp_create_port_name_num() local
731 name_len = strlen(tmp) + PCIE_HP_PORT_NAME_STRING_LEN + 1; in pcie_hp_create_port_name_num()
733 cn_info->cn_name = (char *)kmem_zalloc(name_len, KM_SLEEP); in pcie_hp_create_port_name_num()
734 (void) snprintf(cn_info->cn_name, name_len, "pci.%x,%x", in pcie_hp_create_port_name_num()
752 int name_len, ret; in pcie_hp_get_df_from_port_name() local
757 name_len = strlen(cn_name); in pcie_hp_get_df_from_port_name()
758 if ((name_len <= PCIE_HP_PORT_NAME_STRING_LEN) || in pcie_hp_get_df_from_port_name()
759 (name_len > (PCIE_HP_PORT_NAME_STRING_LEN + in pcie_hp_get_df_from_port_name()
/illumos-gate/usr/src/uts/common/sys/
H A Dmdesc_impl.h97 uint8_t name_len; member
142 #define MDE_NAME_LEN(_p) mdtoh32((_p)->name_len)
/illumos-gate/usr/src/lib/libdemangle/common/
H A Dcxx_util.c57 name_len(const name_t *n) in name_len() function
65 return (name_len(n) == 0 ? B_TRUE : B_FALSE); in name_empty()
204 VERIFY3U(name_len(n), >, 0); in name_join()
452 size_t save = name_len(n); in sub_substitute()
467 for (size_t i = 0; i < name_len(n) - save; i++) in sub_substitute()
/illumos-gate/usr/src/tools/smatch/src/
H A Dsmatch_parse_call_math.c294 int name_len; in format_name_sym_helper() local
305 name_len = strlen(param_name); in format_name_sym_helper()
307 if (name[name_len] == '\0') in format_name_sym_helper()
309 else if (name[name_len] == '-') in format_name_sym_helper()
310 ret = snprintf(buf, remaining, "$%d%s", arg, name + name_len); in format_name_sym_helper()
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/lib/snmp/
H A Dpdu.c267 p, row, &vp->name_len); in snmp_add_null_vars()
444 p = snmp_build_variable(p, bufsz_p, vp->name, vp->name_len, in snmp_build_pdu()
474 snmp_build_variable(uchar_t *buf, size_t *bufsz_p, oid *name, size_t name_len, in snmp_build_variable() argument
495 if ((p = asn_build_objid(p, bufsz_p, id, name, name_len)) == NULL) in snmp_build_variable()
624 p = asn_parse_objid(p, msgsz_p, &vp->name, &vp->name_len); in snmp_parse_variable()
/illumos-gate/usr/src/uts/common/io/scsi/adapters/iscsi/
H A Discsi_net.c157 name, int name_len, int backlog, int flags);
159 name, int name_len, int fflag, int flags);
288 iscsi_net_bind(void *socket, struct sockaddr *name, int name_len, in iscsi_net_bind() argument
293 error = ksocket_bind(ks, name, name_len, CRED()); in iscsi_net_bind()
305 iscsi_net_connect(void *socket, struct sockaddr *name, int name_len, in iscsi_net_connect() argument
312 rval = ksocket_connect(ks, name, name_len, CRED()); in iscsi_net_connect()
/illumos-gate/usr/src/boot/libsa/
H A Dcd9660.c130 p = dp->name + isonum_711(dp->name_len) + lenskip; in susp_lookup_record()
132 if ((isonum_711(dp->name_len) & 1) == 0) in susp_lookup_record()
203 p = dp->name + isonum_711(dp->name_len); in rrip_check()
239 len = isonum_711(dp->name_len); in dirmatch()
559 namelen = isonum_711(ep->name_len); in cd9660_readdir()
/illumos-gate/usr/src/uts/i86pc/os/
H A Dfakebop.c1376 uint32_t size, name_len, value_len; in process_boot_environment() local
1390 name_len = ptr - name; in process_boot_environment()
1391 if (sizeof (buffer) <= name_len) in process_boot_environment()
1395 buffer[name_len] = '\0'; in process_boot_environment()
1507 int name_len; in build_boot_properties() local
1623 name_len = value - name; in build_boot_properties()
1635 if (name_len + 4 > 32) { /* skip if name too long */ in build_boot_properties()
1639 bcopy(name, &namebuf[4], name_len); in build_boot_properties()
1640 name_len += 4; in build_boot_properties()
1641 namebuf[name_len] = 0; in build_boot_properties()
[all …]
/illumos-gate/usr/src/lib/smbsrv/libsmbns/common/
H A Dsmbns_netbios_name.c638 int name_len; in smb_netbios_getname() local
651 name_len = name_end - buf + 1; in smb_netbios_getname()
653 (void) strlcpy(name, buf, name_len); in smb_netbios_getname()
654 return (name_len); in smb_netbios_getname()
679 int name_len; in smb_name_buf_to_packet() local
763 name_len = smb_netbios_getname(name_buf, (char *)scan, in smb_name_buf_to_packet()
765 if (name_len <= 0) { in smb_name_buf_to_packet()
780 scan += name_len; in smb_name_buf_to_packet()
801 name_len = smb_netbios_getname(name_buf, (char *)scan, in smb_name_buf_to_packet()
803 if (name_len <= 0) { in smb_name_buf_to_packet()
[all …]

123