/illumos-gate/usr/src/cmd/auditreduce/ |
H A D | time.c | 380 char *strs; in derive_date() local 418 free(strs); in derive_date() 427 free(strs); in derive_date() 432 (void) strncpy(strs, str, 4); in derive_date() 433 strs[4] = '\0'; in derive_date() 436 strs[2] = '\0'; in derive_date() 439 strs[2] = '\0'; in derive_date() 443 strs[2] = '\0'; in derive_date() 448 strs[2] = '\0'; in derive_date() 453 strs[2] = '\0'; in derive_date() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/astsa/ |
H A D | sfstr.c | 27 #define VALID(p,f) ((p=(Sfstr_t*)f)>=&strs[0]&&p<&strs[elementsof(strs)]) 29 static Sfstr_t strs[64]; variable 156 for (p = &strs[0]; p < &strs[elementsof(strs)]; p++) in sfstropen()
|
/illumos-gate/usr/src/lib/libfru/libfru/ |
H A D | libfru.cc | 467 list->strs = (char **)malloc(sizeof (*(list->strs)) * raw_list.num); in get_seg_list_from_ds() 468 if (list->strs == NULL) { in get_seg_list_from_ds() 475 list->strs[list->num] in get_seg_list_from_ds() 480 list->strs[list->num] = strdup(raw_list.strs[i]); in get_seg_list_from_ds() 795 free(list->strs[i]); in fru_destroy_strlist() 797 free(list->strs); in fru_destroy_strlist() 1025 list->strs = NULL; in fru_list_elems_in() 1064 list->strs = rc_list.strs; in fru_list_elems_in() 1599 seg_list.strs[i], in get_seg_and_payload() 2133 list->strs = entries; in fru_get_registry() [all …]
|
/illumos-gate/usr/src/cmd/sgs/librtld/common/ |
H A D | syms.c | 45 char *strs; in update_sym() local 57 strs = (char *)cache[shdr->sh_link].c_data->d_buf; in update_sym() 63 char *name = strs + syms->st_name; in update_sym()
|
H A D | dynamic.c | 44 const char *strs; in update_dynamic() local 53 strs = (const char *)__cache->c_data->d_buf; in update_dynamic() 74 (strs + dyn->d_un.d_val), NULL)) { in update_dynamic()
|
/illumos-gate/usr/src/cmd/msgfmt/ |
H A D | gnu_msgs.c | 68 char *ids, *strs; in output_all_gnu_mo_files() local 128 strs = (char *)Xmalloc(str_len); in output_all_gnu_mo_files() 153 (void) memcpy(strs + str_off, m[i].str, m[i].str_len); in output_all_gnu_mo_files() 181 (void) fwrite(strs, str_len, 1, out); in output_all_gnu_mo_files() 188 free(strs); in output_all_gnu_mo_files()
|
H A D | gnu_msgs_rev.c | 78 char *ids, *strs; in output_all_gnu_mo_files() local 133 strs = (char *)Xmalloc(str_len); in output_all_gnu_mo_files() 158 (void) memcpy(strs + str_off, m[i].str, m[i].str_len); in output_all_gnu_mo_files() 186 (void) fwrite(strs, str_len, 1, out); in output_all_gnu_mo_files() 195 free(strs); in output_all_gnu_mo_files()
|
/illumos-gate/usr/src/lib/fm/topo/modules/common/dimm/ |
H A D | topo_dimm.c | 712 char **strs = NULL; in dimm_comp_mfg_common_ids() local 744 if (topo_mod_asprintf(mod, &strs[i], "0x%x:0x%x", data[0], in dimm_comp_mfg_common_ids() 764 topo_mod_strfree(mod, strs[i]); in dimm_comp_mfg_common_ids() 766 topo_mod_free(mod, strs, sizeof (char *) * nents); in dimm_comp_mfg_common_ids() 774 char **strs = NULL; in dimm_comp_mfg_common_strings() local 786 int nret = nvlist_lookup_string(spd, keys[i], &strs[i]); in dimm_comp_mfg_common_strings() 805 topo_mod_free(mod, strs, sizeof (char *) * nents); in dimm_comp_mfg_common_strings() 818 const char **strs = NULL; in dimm_comp_mfg_common_type() local 849 strs[i] = comp->dc_type2str(raw); in dimm_comp_mfg_common_type() 853 TOPO_PROP_IMMUTABLE, strs, nents, &err) != 0) { in dimm_comp_mfg_common_type() [all …]
|
/illumos-gate/usr/src/lib/libsff/common/ |
H A D | libsff.c | 1111 const char *strs[5]; in sff_qsfp_parse_tech() local 1113 strs[0] = sff_8636_trans_tech[(val & 0xf0) >> 4]; in sff_qsfp_parse_tech() 1115 strs[1] = "Active Wavelength Control"; in sff_qsfp_parse_tech() 1117 strs[1] = "No Wavelength Control"; in sff_qsfp_parse_tech() 1121 strs[2] = "Cooled Transmitter"; in sff_qsfp_parse_tech() 1123 strs[2] = "Uncooled Transmitter"; in sff_qsfp_parse_tech() 1127 strs[3] = "APD Detector"; in sff_qsfp_parse_tech() 1129 strs[3] = "Pin Detector"; in sff_qsfp_parse_tech() 1133 strs[4] = "Transmitter Tunable"; in sff_qsfp_parse_tech() 1135 strs[4] = "Transmitter Not Tunable"; in sff_qsfp_parse_tech() [all …]
|
/illumos-gate/usr/src/lib/libsip/common/ |
H A D | sip_msg.h | 161 sip_2strs_t strs; member 193 #define strs_val hdr_value.strs 194 #define strs_s1 hdr_value.strs.s1 195 #define strs_s2 hdr_value.strs.s2 196 #define strs1_val_ptr hdr_value.strs.s1.sip_str_ptr 197 #define strs1_val_len hdr_value.strs.s1.sip_str_len 198 #define strs2_val_ptr hdr_value.strs.s2.sip_str_ptr 199 #define strs2_val_len hdr_value.strs.s2.sip_str_len
|
/illumos-gate/usr/src/cmd/sgs/elfcap.chk/ |
H A D | elfcap_chk.c | 137 const elfcap_str_t *strs; in main() local 140 strs = elfcap_getdesc_formats(); in main() 141 slen = strs[ELFCAP_FMT_PIPSPACE].s_len; in main()
|
/illumos-gate/usr/src/cmd/sgs/demo_rdb/common/ |
H A D | syms.c | 56 char *strs; in str_map_sym() local 66 strs = symp->st_strs; in str_map_sym() 79 (strcmp(strs + sym.st_name, symname) != 0)) in str_map_sym() 83 *str = (char *)strs + symptr->st_name; in str_map_sym()
|
/illumos-gate/usr/src/lib/libcurses/screen/ |
H A D | maketerm.ed | 171 1,$s;^; strs.; 208 struct strs { 212 1,.s/strs\.// 250 1,$s/strs\.// 251 1,$s/strs.\(.\)/strs._\1/ 262 1,$s/CURS _strs/CURS strs/ 265 1;/CURS strs/+100;.,+99s/CURS strs/CURS strs2/ 266 .+1,+100s/CURS strs/CURS strs3/ 267 .+1,$s/CURS strs/CURS strs4/ 268 /^struct strs/+101s/,/;/ [all …]
|
/illumos-gate/usr/src/cmd/devctl/ |
H A D | devctl.c | 399 char **strs = NULL; in add_prop() local 425 strs = (char **)s_realloc(strs, nstr * sizeof (char *)); in add_prop() 426 strs[nstr - 1] = pval; in add_prop() 437 (void) devctl_ddef_string_array(ddef_hdl, pname, nstr, strs); in add_prop() 438 free(strs); in add_prop()
|
/illumos-gate/usr/src/cmd/perl/contrib/Sun/Solaris/Utils/t/ |
H A D | gmatch.t | 42 my @strs = ( 'a', 'aa', 'z', 'zz', '0', '0123456789' ); 55 for (my $i = 0; $i < @strs; $i++) { 56 if (gmatch($strs[$i], $t->{pattern}) == $t->{results}[$i]) {
|
/illumos-gate/usr/src/cmd/sgs/pvs/common/ |
H A D | pvs.c | 479 char *strs; in sym_local() local 482 strs = (char *)cache[shdr.sh_link].c_data->d_buf; in sym_local() 518 name = demangle(strs + sym.st_name); in sym_local() 558 char *strs; in gvers_need() local 579 strs = (char *)cache[shdr.sh_link].c_data->d_buf; in gvers_need() 592 needobj = (char *)(strs + vnd->vn_file); in gvers_need() 601 dep = (char *)(strs + vnap->vna_name); in gvers_need() 809 char *strs; in gvers_def() local 831 strs = (char *)cache[shdr.sh_link].c_data->d_buf; in gvers_def() 850 _name = (char *)(strs + vdap->vda_name); in gvers_def() [all …]
|
/illumos-gate/usr/src/cmd/sgs/rtld/common/ |
H A D | locale.c | 97 const char *ids, *strs, *_msgid; in msgid_to_msgstr() local 107 strs = (const char *)&ids[msghdr->hdr_msgidsz]; in msgid_to_msgstr() 116 return (strs + _list->lst_stroff); in msgid_to_msgstr()
|
/illumos-gate/usr/src/lib/libfru/libfruraw/ |
H A D | fruraw.c | 225 list->strs = realloc(list->strs, sizeof (char *) in add_segs_for_section() 238 list->strs[(list->num)++] = tmp; in add_segs_for_section() 278 rc_list.strs = NULL; in frt_get_seg_list() 288 list->strs = rc_list.strs; in frt_get_seg_list()
|
/illumos-gate/usr/src/lib/fm/topo/modules/common/usb/ |
H A D | topo_usb.c | 1149 char **strs = NULL; in topo_usb_port_properties() local 1223 if (strcmp(strs[j], vers) == 0) in topo_usb_port_properties() 1229 strs[i++] = vers; in topo_usb_port_properties() 1234 (const char **)strs, i, &err) != 0) { in topo_usb_port_properties() 1243 strs[i++] = TOPO_PROP_USB_PORT_A_VISIBLE; in topo_usb_port_properties() 1245 strs[i++] = TOPO_PROP_USB_PORT_A_CONNECTED; in topo_usb_port_properties() 1262 (const char **)strs, i, &err) != 0) { in topo_usb_port_properties() 1270 strs[i++] = l->tul_name; in topo_usb_port_properties() 1275 (const char **)strs, i, &err) != 0) { in topo_usb_port_properties() 1283 if (strs != NULL) { in topo_usb_port_properties() [all …]
|
/illumos-gate/usr/src/lib/libfru/libfrupicl/ |
H A D | frupicl.c | 499 list->strs = realloc(list->strs, in add_segs_for_section() 500 (sizeof (*(list->strs)) * (total_space))); in add_segs_for_section() 501 if (list->strs == NULL) { in add_segs_for_section() 525 list->strs[(list->num)++] = strdup(name); in add_segs_for_section() 549 rc_list.strs = NULL; in fpt_get_seg_list() 572 list->strs = rc_list.strs; in fpt_get_seg_list()
|
/illumos-gate/usr/src/cmd/sgs/libld/common/ |
H A D | libs.c | 69 char *strs; in process_member() local 117 strs = data->d_buf; in process_member() 124 amp->am_strs = strs; in process_member() 128 strs = amp->am_strs; in process_member() 175 if (strcmp(strs + syms->st_name, name) == 0) in process_member()
|
/illumos-gate/usr/src/lib/libdevinfo/ |
H A D | devinfo_prop_decode.c | 192 char *strs; in di_prop_fm_decode_strings() local 231 if ((strs = malloc(nbytes)) == NULL) { in di_prop_fm_decode_strings() 239 tmp = strs; in di_prop_fm_decode_strings() 247 free(strs); in di_prop_fm_decode_strings() 259 *(char **)data = strs; in di_prop_fm_decode_strings()
|
/illumos-gate/usr/src/lib/libfru/libfrupicltree/ |
H A D | frupicltree.c | 510 list->strs = realloc(list->strs, in add_segs_for_section() 511 (sizeof (*(list->strs)) * (total_space))); in add_segs_for_section() 512 if (list->strs == NULL) { in add_segs_for_section() 536 list->strs[(list->num)++] = strdup(name); in add_segs_for_section() 560 rc_list.strs = NULL; in fpt_get_seg_list() 583 list->strs = rc_list.strs; in fpt_get_seg_list()
|
/illumos-gate/usr/src/uts/intel/io/acpica/ |
H A D | acpi_enum.c | 799 char **strs; in create_compatible_property() local 811 strs = kmem_zalloc(list_len * sizeof (char *), KM_SLEEP); in create_compatible_property() 816 strs[i] = kmem_zalloc(13, KM_SLEEP); in create_compatible_property() 817 convert_to_pnp1275(d->id, strs[i++], 13); in create_compatible_property() 823 "compatible", strs, list_len); in create_compatible_property() 828 kmem_free(strs[i], 13); in create_compatible_property() 830 kmem_free(strs, list_len * sizeof (char *)); in create_compatible_property()
|
/illumos-gate/usr/src/lib/libctf/common/ |
H A D | ctf_lib.c | 491 const char *strs; in ctf_fdcreate_int() local 577 strs = (const char *)strs_map + in ctf_fdcreate_int() 601 strcmp(strs + shp->sh_name, _CTF_SECTION) == 0 && in ctf_fdcreate_int() 603 ctfsect.cts_name = strs + shp->sh_name; in ctf_fdcreate_int() 611 symsect.cts_name = strs + shp->sh_name; in ctf_fdcreate_int() 618 strsect.cts_name = strs + lhp->sh_name; in ctf_fdcreate_int()
|