/illumos-gate/usr/src/lib/scsi/plugins/ses/SUN-Storage-J4400/common/ |
H A D | riverwalk.c | 76 ses_riverwalk_stringin_t *strp; in sun_riverwalk_parse_node() local 105 strp = (ses_riverwalk_stringin_t *)stringin; in sun_riverwalk_parse_node() 123 if (strncmp(strp->rws_ps0_id, "SPS0", 4) != 0) in sun_riverwalk_parse_node() 126 pn = strp->rws_ps0_pn; in sun_riverwalk_parse_node() 127 sn = strp->rws_ps0_sn; in sun_riverwalk_parse_node() 131 if (strncmp(strp->rws_ps1_id, "SPS1", 4) != 0) in sun_riverwalk_parse_node() 134 pn = strp->rws_ps1_pn; in sun_riverwalk_parse_node() 135 sn = strp->rws_ps1_sn; in sun_riverwalk_parse_node() 143 if (strncmp(strp->rws_sim0_id, "SIM0", 4) != 0) in sun_riverwalk_parse_node() 146 pn = strp->rws_sim0_pn; in sun_riverwalk_parse_node() [all …]
|
/illumos-gate/usr/src/common/util/ |
H A D | getoptstr.c | 89 const char * const strp = params->gos_strp; in getoptstr() local 92 if (params->gos_opts == NULL || strp == NULL) in getoptstr() 98 if (strp[0] == '\0' || strp[0] != '-') in getoptstr() 100 if (ISNTWORDCH(strp[1])) { in getoptstr() 106 if (strp[1] == '-' && ISNTWORDCH(strp[2])) { in getoptstr() 107 params->gos_strp = &strp[2]; in getoptstr() 113 params->gos_last_opt = c = strp[params->gos_pos]; in getoptstr() 116 params->gos_errp = &strp[params->gos_pos]; in getoptstr() 118 if (ISNTWORDCH(strp[params->gos_pos])) { in getoptstr() 119 params->gos_strp = &strp[params->gos_pos]; in getoptstr() [all …]
|
/illumos-gate/usr/src/lib/libgen/common/ |
H A D | bufsplit.c | 56 char **strp; in _get_bsplitchar() local 60 strp = pthread_getspecific(*keyp); in _get_bsplitchar() 61 if (strp == NULL) { in _get_bsplitchar() 62 strp = malloc(sizeof (char *)); in _get_bsplitchar() 63 if (thr_setspecific(*keyp, strp) != 0) { in _get_bsplitchar() 64 if (strp) in _get_bsplitchar() 65 (void) free(strp); in _get_bsplitchar() 66 strp = NULL; in _get_bsplitchar() 68 if (strp != NULL) in _get_bsplitchar() 69 *strp = init_bsplitchar; in _get_bsplitchar() [all …]
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | localtime.c | 2130 getzname(const char *strp, int quoted) in getzname() argument 2135 while ((c = *strp) != '\0' && c != '>' && in getzname() 2137 ++strp; in getzname() 2140 while ((c = *strp) != '\0' && isgraph((unsigned char)c) && in getzname() 2143 ++strp; in getzname() 2151 return (strp); in getzname() 2160 getnum(const char *strp, int *nump, int min, int max) in getnum() argument 2165 if (strp == NULL || !isdigit((unsigned char)(c = *strp))) in getnum() 2172 c = *++strp; in getnum() 2177 return (strp); in getnum() [all …]
|
/illumos-gate/usr/src/cmd/sort/ |
H A D | merge.c | 92 merge_one_stream(field_t *fields_chain, stream_t *strp, stream_t *outstrp, in merge_one_stream() argument 95 size_t element_size = strp->s_element_size; in merge_one_stream() 98 if (strp->s_status & STREAM_SINGLE || strp->s_status & STREAM_WIDE) in merge_one_stream() 99 stream_set(strp, STREAM_INSTANT); in merge_one_stream() 101 if (SOP_PRIME(strp) == PRIME_SUCCEEDED) { in merge_one_stream() 102 strp->s_current.l_collate_bufsize = initial_size; in merge_one_stream() 103 strp->s_current.l_collate.sp = safe_realloc(NULL, initial_size); in merge_one_stream() 105 (void) mg_coll_convert(fields_chain, &strp->s_current, in merge_one_stream() 107 SOP_PUT_LINE(outstrp, &strp->s_current); in merge_one_stream() 108 SOP_RELEASE_LINE(strp); in merge_one_stream() [all …]
|
H A D | utility.c | 214 stream_t *strp = S->m_input_streams; in establish_output_guard() local 216 while (strp != NULL) { in establish_output_guard() 220 if (!(strp->s_status & STREAM_NOTFILE) && in establish_output_guard() 221 strp->s_dev == output_stat.st_dev && in establish_output_guard() 222 strp->s_ino == output_stat.st_ino && in establish_output_guard() 223 strp->s_filesize > 0) { in establish_output_guard() 225 output_guard_size = strp->s_filesize; in establish_output_guard() 232 if ((strp->s_filename = output_guard_tempname = in establish_output_guard() 243 strp = strp->s_next; in establish_output_guard() 258 set_cleanup_chain(stream_t **strp) in set_cleanup_chain() argument [all …]
|
/illumos-gate/usr/src/cmd/ldmad/ |
H A D | mdesc_lib.c | 58 md_find_string(mmd_t *mdp, char *strp, uint32_t *hashp) in md_find_string() argument 63 hash = md_byte_hash((uint8_t *)strp, strlen(strp)); in md_find_string() 69 if (msp->hash == hash && strcmp(msp->strp, strp) == 0) in md_find_string() 77 md_new_string(mmd_t *mdp, char *strp) in md_new_string() argument 82 msp = md_find_string(mdp, strp, &hash); in md_new_string() 87 msp->strp = strdup(strp); in md_new_string() 88 if (msp->strp == NULL) { in md_new_string() 92 msp->size = strlen(strp) + 1; in md_new_string() 352 free(msp->strp); in md_free_string() 545 (void) memcpy(string_bufferp + msp->build_offset, msp->strp, in md_gen_bin()
|
H A D | ldma_system.c | 196 ldma_get_chassis_serialno(char **strp) in ldma_get_chassis_serialno() argument 206 *strp = ldma_sys_chassisno; in ldma_get_chassis_serialno() 240 *strp = ldma_sys_chassisno; in ldma_get_chassis_serialno()
|
/illumos-gate/usr/src/psm/stand/cpr/sparcv9/sun4u/ |
H A D | util.c | 441 char *strp, *subp, *tmp, c; in prom_strstr() local 446 strp = string; in prom_strstr() 450 while (*strp) { in prom_strstr() 451 if (*strp++ == c) { in prom_strstr() 452 tmp = strp; in prom_strstr() 453 while ((c = *++subp) == *strp++ && c) in prom_strstr() 457 strp = tmp; in prom_strstr()
|
/illumos-gate/usr/src/cmd/abi/spectrans/spec2trace/ |
H A D | printfuncs.c | 300 char *strp, *p; in space_to_uscore() local 302 strp = strdup(str); in space_to_uscore() 304 assert(strp != NULL, "strdup failed"); in space_to_uscore() 306 for (p = strp; *p != '\0'; p++) in space_to_uscore() 310 return (strp); in space_to_uscore()
|
/illumos-gate/usr/src/lib/libdiskmgt/common/ |
H A D | slice.c | 249 char *strp; in slice_rdsk2dsk() local 253 if ((strp = strstr(dsk, "/rdsk/")) == NULL) { in slice_rdsk2dsk() 255 strp = strstr(dsk, "/rdiskette"); in slice_rdsk2dsk() 258 if (strp != NULL) { in slice_rdsk2dsk() 259 strp++; /* move ptr to the r in rdsk or rdiskette */ in slice_rdsk2dsk() 263 *strp = *(strp + 1); in slice_rdsk2dsk() 264 strp++; in slice_rdsk2dsk() 265 } while (*strp); in slice_rdsk2dsk()
|
/illumos-gate/usr/src/cmd/troff/ |
H A D | n3.c | 752 tchar *strp; in collect() local 788 strp = (tchar *)argppend; in collect() 797 savnxf, nxf, argpp, strp, lim, enda); in collect() 801 *argpp++ = strp; in collect() 817 *strp++ = i; in collect() 818 if (strflg && strp >= lim) { in collect() 821 strp, lim); in collect() 827 SPACETEST(strp, 3 * sizeof(tchar)); in collect() 829 *strp++ = 0; in collect() 833 argtop = strp; in collect()
|
/illumos-gate/usr/src/common/mdesc/ |
H A D | mdesc_getpropstr.c | 32 md_get_prop_str(md_t *ptr, mde_cookie_t node, char *namep, char **strp) in md_get_prop_str() argument 55 *strp = (char *)(mdp->datap+ in md_get_prop_str()
|
/illumos-gate/usr/src/uts/sun4v/sys/ |
H A D | mdeg.h | 49 char *strp; member 55 #define ps_str _p.strp
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/telnet/ |
H A D | encrypt.c | 781 uchar_t *strp; in encrypt_send_keyid() local 791 for (strp = &str_keyid[4]; keylen > 0; --keylen) { in encrypt_send_keyid() 792 if ((*strp++ = *keyid++) == IAC) in encrypt_send_keyid() 793 *strp++ = IAC; in encrypt_send_keyid() 795 *strp++ = IAC; in encrypt_send_keyid() 796 *strp++ = SE; in encrypt_send_keyid() 797 (void) net_write(str_keyid, strp - str_keyid); in encrypt_send_keyid() 798 printsub('>', &str_keyid[2], strp - str_keyid - 2); in encrypt_send_keyid()
|
/illumos-gate/usr/src/cmd/sendmail/db/log/ |
H A D | log_archive.c | 380 char **array, **arrayp, **orig, *strp; local 391 strp = (char *)(array + (orig - *listp) + 1); 396 memcpy(strp, *orig, len + 1); 397 *arrayp = strp; 398 strp += len + 1;
|
/illumos-gate/usr/src/lib/fm/topo/modules/common/pcibus/ |
H A D | did.c | 113 di_smbios_find_slot_by_bdf(smbios_hdl_t *shp, const smbios_struct_t *strp, in di_smbios_find_slot_by_bdf() argument 123 if (strp->smbstr_type != SMB_TYPE_SLOT || in di_smbios_find_slot_by_bdf() 124 smbios_info_slot(shp, strp->smbstr_id, &slot) != 0) in di_smbios_find_slot_by_bdf() 137 di_smbios_find_slot_by_id(smbios_hdl_t *shp, const smbios_struct_t *strp, in di_smbios_find_slot_by_id() argument 143 if (strp->smbstr_type != SMB_TYPE_SLOT || in di_smbios_find_slot_by_id() 144 smbios_info_slot(shp, strp->smbstr_id, &slot) != 0) in di_smbios_find_slot_by_id()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/ |
H A D | table.c | 1580 char str[100], *strp; in read_rt() local 1611 strp = if_bit_string(m.ifm.ifm_flags, _B_TRUE); in read_rt() 1612 if (strp == NULL) { in read_rt() 1613 strp = str; in read_rt() 1627 strp, m.ifm.ifm_index); in read_rt() 1632 strp, ifnamep); in read_rt() 1637 strp, ifp->int_name); in read_rt() 1639 if (strp != str) in read_rt() 1640 free(strp); in read_rt() 1665 strp = &str[strlen(str)]; in read_rt() [all …]
|
H A D | if.c | 75 #define HADD(htbl, strp) \ argument 76 hash_link((htbl), (htbl)->htbl_hash((strp), (htbl)->htbl_key_off), \ 77 (strp)) 172 link_in(void **head, void *strp, size_t loffs) in link_in() argument 177 hlp = (struct hlinkage *)((char *)strp + loffs); in link_in() 184 *head = strp; in link_in() 189 link_out(void *strp, size_t loffs) in link_out() argument 194 hlp = (struct hlinkage *)((char *)strp + loffs); in link_out() 204 hash_link(struct htbl *htbl, uint_t hval, void *strp) in hash_link() argument 212 link_in(hep, strp, htbl->htbl_link_off); in hash_link() [all …]
|
/illumos-gate/usr/src/lib/passwdutil/ |
H A D | ldap_attr.c | 513 char numbuf[MAX_INT_LEN], *strp; in attr_addmod() local 524 strp = strdup(numbuf); in attr_addmod() 525 if (strp == NULL) in attr_addmod() 528 attrs[i]->attrvalue[0] = strp; in attr_addmod() 533 strp = strdup(numbuf); in attr_addmod() 534 if (strp == NULL) in attr_addmod() 536 attrs[*idx] = new_attr(item, strp); in attr_addmod()
|
/illumos-gate/usr/src/cmd/picl/plugins/common/devtree/ |
H A D | picldevtree.c | 1616 char *strp; in update_subtree() local 1647 if (((strp = strrchr(path_buf, '/')) != NULL) && in update_subtree() 1648 strchr(strp, '@') == NULL) { in update_subtree() 1679 strp = strrchr(path_wo_ua, '@'); in update_subtree() 1680 *strp++ = '\0'; in update_subtree() 1682 strp); in update_subtree() 3682 char *strp; in picldevtree_evhandler() local 3694 if (((strp = strrchr(ptreepath, '/')) != NULL) && in picldevtree_evhandler() 3695 (strp != strchr(ptreepath, '/'))) { in picldevtree_evhandler() 3696 *strp = '\0'; in picldevtree_evhandler() [all …]
|
/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | vlds.c | 451 vlds_get_string(vlds_string_t *strp, char **rstrp, int mode) in vlds_get_string() argument 454 uint_t len = strp->vlds_strlen; in vlds_get_string() 467 if (ddi_copyin(ARGTOPTR(strp->vlds_strp), str, len, mode) != 0) { in vlds_get_string() 469 ARGTOPTR(strp->vlds_strp)); in vlds_get_string() 485 vlds_put_string(char *str, vlds_string_t *strp, int mode) in vlds_put_string() argument 500 if (len > strp->vlds_strlen) { in vlds_put_string() 501 len = strp->vlds_strlen; in vlds_put_string() 509 rv = ddi_copyout(str, ARGTOPTR(strp->vlds_strp), len, mode); in vlds_put_string() 515 ARGTOPTR(strp->vlds_strp)); in vlds_put_string()
|
/illumos-gate/usr/src/common/ctf/ |
H A D | ctf_open.c | 113 const ctf_sect_t *sp, const ctf_sect_t *strp) in init_symtab() argument 139 if (gsp->st_name < strp->cts_size) in init_symtab() 140 name = (const char *)strp->cts_data + gsp->st_name; in init_symtab() 806 ctf_sect_t *ctp, *symp, *strp; in ctf_dup() local 856 strp = &strsect; in ctf_dup() 858 strp = NULL; in ctf_dup() 861 fp = ctf_bufopen(ctp, symp, strp, &err); in ctf_dup()
|
/illumos-gate/usr/src/stand/lib/sa/ |
H A D | stdio.c | 252 char *strp = ptr; in fread() local 258 bytes = read(stream->_file, &strp[totbytes], size); in fread()
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/lib/snmp/ |
H A D | snmplib.c | 371 snmp_get_str(picl_snmphdl_t hdl, char *prefix, int row, char **strp, in snmp_get_str() argument 380 if (smd == NULL || prefix == NULL || strp == NULL) in snmp_get_str() 383 *strp = NULL; in snmp_get_str() 389 ret = fetch_single_str(smd, prefix, row, strp, &err); in snmp_get_str() 401 if ((*strp = strdup(val)) == NULL) in snmp_get_str() 421 if ((*strp = strdup(val)) == NULL) in snmp_get_str()
|