/illumos-gate/usr/src/cmd/auditreduce/ |
H A D | time.c | 380 char *strs; in derive_date() local 402 strs = (char *)a_calloc(1, len + 4); in derive_date() 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() 434 tme->tm_year = atoi(strs) - 1900; /* get the year */ in derive_date() 435 (void) strncpy(strs, str + 4, 2); in derive_date() 436 strs[2] = '\0'; in derive_date() 437 tme->tm_mon = atoi(strs) - 1; /* get months */ 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() 473 if (segment_is_encrypted(node, raw_list.strs[i])) { in get_seg_list_from_ds() 475 list->strs[list->num] in get_seg_list_from_ds() 476 = strdup(raw_list.strs[i]); in get_seg_list_from_ds() 480 list->strs[list->num] = strdup(raw_list.strs[i]); in get_seg_list_from_ds() 792 if (list->strs != NULL) { in fru_destroy_strlist() 794 if (list->strs[i] != NULL) in fru_destroy_strlist() 795 free(list->strs[i]); in fru_destroy_strlist() 797 free(list->strs); in fru_destroy_strlist() [all …]
|
/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/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/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/lib/fm/topo/modules/common/dimm/ |
H A D | topo_dimm.c | 750 char **strs = NULL; in dimm_comp_mfg_common_ids() local 754 if ((strs = topo_mod_zalloc(mod, sizeof (char *) * nents)) == NULL) { in dimm_comp_mfg_common_ids() 782 if (topo_mod_asprintf(mod, &strs[i], "0x%x:0x%x", data[0], in dimm_comp_mfg_common_ids() 792 TOPO_PROP_IMMUTABLE, (const char **)strs, nents, &err) != 0) { in dimm_comp_mfg_common_ids() 802 topo_mod_strfree(mod, strs[i]); in dimm_comp_mfg_common_ids() 804 topo_mod_free(mod, strs, sizeof (char *) * nents); in dimm_comp_mfg_common_ids() 812 char **strs = NULL; in dimm_comp_mfg_common_strings() local 816 if ((strs = topo_mod_zalloc(mod, sizeof (char *) * nents)) == NULL) { in dimm_comp_mfg_common_strings() 824 int nret = nvlist_lookup_string(spd, keys[i], &strs[i]); in dimm_comp_mfg_common_strings() 834 TOPO_PROP_IMMUTABLE, (const char **)strs, nents, &err) != 0) { in dimm_comp_mfg_common_strings() [all …]
|
/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/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/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/fm/topo/modules/common/usb/ |
H A D | topo_usb.c | 1149 char **strs = NULL; in topo_usb_port_properties() local 1158 if ((strs = topo_mod_zalloc(mod, strlen)) == NULL) { in topo_usb_port_properties() 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() 1247 strs[i++] = TOPO_PROP_USB_PORT_A_DISCONNECTED; in topo_usb_port_properties() 1252 strs[i++] = TOPO_PROP_USB_PORT_A_INTERNAL; in topo_usb_port_properties() 1256 strs[i++] = TOPO_PROP_USB_PORT_A_EXTERNAL; in topo_usb_port_properties() [all …]
|
/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/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/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/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/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/cmd/nvmeadm/ |
H A D | nvmeadm_ofmt.c | 33 nvmeadm_bits_to_str(uint32_t val, const nvmeadm_bitstr_t *strs, size_t nstrs, in nvmeadm_bits_to_str() argument 40 if ((val & strs[i].nb_flag) != strs[i].nb_flag) in nvmeadm_bits_to_str() 44 if (strlcat(buf, strs[i].nb_str, buflen) >= buflen) in nvmeadm_bits_to_str()
|