/titanic_50/usr/src/lib/scsi/plugins/ses/SUN-Storage-J4400/common/ |
H A D | riverwalk.c | 78 ses_riverwalk_stringin_t *strp; in sun_riverwalk_parse_node() local 107 strp = (ses_riverwalk_stringin_t *)stringin; in sun_riverwalk_parse_node() 125 if (strncmp(strp->rws_ps0_id, "SPS0", 4) != 0) in sun_riverwalk_parse_node() 128 pn = strp->rws_ps0_pn; in sun_riverwalk_parse_node() 129 sn = strp->rws_ps0_sn; in sun_riverwalk_parse_node() 133 if (strncmp(strp->rws_ps1_id, "SPS1", 4) != 0) in sun_riverwalk_parse_node() 136 pn = strp->rws_ps1_pn; in sun_riverwalk_parse_node() 137 sn = strp->rws_ps1_sn; in sun_riverwalk_parse_node() 145 if (strncmp(strp->rws_sim0_id, "SIM0", 4) != 0) in sun_riverwalk_parse_node() 148 pn = strp->rws_sim0_pn; in sun_riverwalk_parse_node() [all …]
|
/titanic_50/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 …]
|
/titanic_50/usr/src/lib/libgen/common/ |
H A D | bufsplit.c | 58 char **strp; in _get_bsplitchar() local 62 strp = pthread_getspecific(*keyp); in _get_bsplitchar() 63 if (strp == NULL) { in _get_bsplitchar() 64 strp = malloc(sizeof (char *)); in _get_bsplitchar() 65 if (thr_setspecific(*keyp, strp) != 0) { in _get_bsplitchar() 66 if (strp) in _get_bsplitchar() 67 (void) free(strp); in _get_bsplitchar() 68 strp = NULL; in _get_bsplitchar() 70 if (strp != NULL) in _get_bsplitchar() 71 *strp = init_bsplitchar; in _get_bsplitchar() [all …]
|
/titanic_50/usr/src/lib/libbc/libc/gen/common/ |
H A D | localtime.c | 139 static const char * getzname P((const char * strp, const int i)); 140 static const char * getnum P((const char * strp, int * nump, int min, 142 static const char * getsecs P((const char * strp, long * secsp)); 143 static const char * getoffset P((const char * strp, long * offsetp)); 144 static const char * getrule P((const char * strp, struct rule * rulep)); 444 getzname(strp, quoted) in getzname() argument 445 const char * strp; in getzname() 451 while ((c = (unsigned char)*strp) != '\0' && 453 ++strp; 455 while ((c = (unsigned char)*strp) != '\0' && !isdigit(c) [all …]
|
H A D | strftime.c | 521 getstr(p, strp) in getstr() argument 523 char **strp; 525 *strp = p;
|
/titanic_50/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 …]
|
/titanic_50/usr/src/cmd/sort/common/ |
H A D | merge.c | 94 merge_one_stream(field_t *fields_chain, stream_t *strp, stream_t *outstrp, in merge_one_stream() argument 97 size_t element_size = strp->s_element_size; in merge_one_stream() 100 if (strp->s_status & STREAM_SINGLE || strp->s_status & STREAM_WIDE) in merge_one_stream() 101 stream_set(strp, STREAM_INSTANT); in merge_one_stream() 103 if (SOP_PRIME(strp) == PRIME_SUCCEEDED) { in merge_one_stream() 104 strp->s_current.l_collate_bufsize = initial_size; in merge_one_stream() 105 strp->s_current.l_collate.sp = safe_realloc(NULL, initial_size); in merge_one_stream() 107 (void) mg_coll_convert(fields_chain, &strp->s_current, in merge_one_stream() 109 SOP_PUT_LINE(outstrp, &strp->s_current); in merge_one_stream() 110 SOP_RELEASE_LINE(strp); in merge_one_stream() [all …]
|
H A D | utility.c | 216 stream_t *strp = S->m_input_streams; in establish_output_guard() local 218 while (strp != NULL) { in establish_output_guard() 222 if (!(strp->s_status & STREAM_NOTFILE) && in establish_output_guard() 223 strp->s_dev == output_stat.st_dev && in establish_output_guard() 224 strp->s_ino == output_stat.st_ino && in establish_output_guard() 225 strp->s_filesize > 0) { in establish_output_guard() 227 output_guard_size = strp->s_filesize; in establish_output_guard() 234 if ((strp->s_filename = output_guard_tempname = in establish_output_guard() 245 strp = strp->s_next; in establish_output_guard() 260 set_cleanup_chain(stream_t **strp) in set_cleanup_chain() argument [all …]
|
/titanic_50/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()
|
/titanic_50/usr/src/psm/stand/cpr/sparcv9/sun4u/ |
H A D | util.c | 443 char *strp, *subp, *tmp, c; in prom_strstr() local 448 strp = string; in prom_strstr() 452 while (*strp) { in prom_strstr() 453 if (*strp++ == c) { in prom_strstr() 454 tmp = strp; in prom_strstr() 455 while ((c = *++subp) == *strp++ && c) in prom_strstr() 459 strp = tmp; in prom_strstr()
|
/titanic_50/usr/src/cmd/abi/spectrans/spec2trace/ |
H A D | printfuncs.c | 302 char *strp, *p; in space_to_uscore() local 304 strp = strdup(str); in space_to_uscore() 306 assert(strp != NULL, "strdup failed"); in space_to_uscore() 308 for (p = strp; *p != '\0'; p++) in space_to_uscore() 312 return (strp); in space_to_uscore()
|
/titanic_50/usr/src/common/mdesc/ |
H A D | mdesc_getpropstr.c | 34 md_get_prop_str(md_t *ptr, mde_cookie_t node, char *namep, char **strp) in md_get_prop_str() argument 57 *strp = (char *)(mdp->datap+ in md_get_prop_str()
|
/titanic_50/usr/src/uts/sun4v/sys/ |
H A D | mdeg.h | 49 char *strp; member 55 #define ps_str _p.strp
|
/titanic_50/usr/src/cmd/troff/ |
H A D | n3.c | 754 tchar *strp; in collect() local 790 strp = (tchar *)argppend; in collect() 799 savnxf, nxf, argpp, strp, lim, enda); in collect() 803 *argpp++ = strp; in collect() 819 *strp++ = i; in collect() 820 if (strflg && strp >= lim) { in collect() 823 strp, lim); in collect() 829 SPACETEST(strp, 3 * sizeof(tchar)); in collect() 831 *strp++ = 0; in collect() 835 argtop = strp; in collect()
|
/titanic_50/usr/src/lib/libdiskmgt/common/ |
H A D | slice.c | 292 char *strp; in slice_rdsk2dsk() local 296 if ((strp = strstr(dsk, "/rdsk/")) == NULL) { in slice_rdsk2dsk() 298 strp = strstr(dsk, "/rdiskette"); in slice_rdsk2dsk() 301 if (strp != NULL) { in slice_rdsk2dsk() 302 strp++; /* move ptr to the r in rdsk or rdiskette */ in slice_rdsk2dsk() 306 *strp = *(strp + 1); in slice_rdsk2dsk() 307 strp++; in slice_rdsk2dsk() 308 } while (*strp); in slice_rdsk2dsk()
|
/titanic_50/usr/src/cmd/cmd-inet/usr.bin/telnet/ |
H A D | encrypt.c | 783 uchar_t *strp; in encrypt_send_keyid() local 793 for (strp = &str_keyid[4]; keylen > 0; --keylen) { in encrypt_send_keyid() 794 if ((*strp++ = *keyid++) == IAC) in encrypt_send_keyid() 795 *strp++ = IAC; in encrypt_send_keyid() 797 *strp++ = IAC; in encrypt_send_keyid() 798 *strp++ = SE; in encrypt_send_keyid() 799 (void) net_write(str_keyid, strp - str_keyid); in encrypt_send_keyid() 800 printsub('>', &str_keyid[2], strp - str_keyid - 2); in encrypt_send_keyid()
|
/titanic_50/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;
|
/titanic_50/usr/src/cmd/cmd-inet/usr.sbin/in.routed/ |
H A D | table.c | 1581 char str[100], *strp; in read_rt() local 1612 strp = if_bit_string(m.ifm.ifm_flags, _B_TRUE); in read_rt() 1613 if (strp == NULL) { in read_rt() 1614 strp = str; in read_rt() 1628 strp, m.ifm.ifm_index); in read_rt() 1633 strp, ifnamep); in read_rt() 1638 strp, ifp->int_name); in read_rt() 1640 if (strp != str) in read_rt() 1641 free(strp); in read_rt() 1666 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 …]
|
/titanic_50/usr/src/lib/passwdutil/ |
H A D | ldap_attr.c | 510 char numbuf[MAX_INT_LEN], *strp; in attr_addmod() local 521 strp = strdup(numbuf); in attr_addmod() 522 if (strp == NULL) in attr_addmod() 525 attrs[i]->attrvalue[0] = strp; in attr_addmod() 530 strp = strdup(numbuf); in attr_addmod() 531 if (strp == NULL) in attr_addmod() 533 attrs[*idx] = new_attr(item, strp); in attr_addmod()
|
/titanic_50/usr/src/cmd/picl/plugins/common/devtree/ |
H A D | picldevtree.c | 1598 char *strp; in update_subtree() local 1629 if (((strp = strrchr(path_buf, '/')) != NULL) && in update_subtree() 1630 strchr(strp, '@') == NULL) { in update_subtree() 1661 strp = strrchr(path_wo_ua, '@'); in update_subtree() 1662 *strp++ = '\0'; in update_subtree() 1664 strp); in update_subtree() 3652 char *strp; in picldevtree_evhandler() local 3664 if (((strp = strrchr(ptreepath, '/')) != NULL) && in picldevtree_evhandler() 3665 (strp != strchr(ptreepath, '/'))) { in picldevtree_evhandler() 3666 *strp = '\0'; in picldevtree_evhandler() [all …]
|
/titanic_50/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()
|
/titanic_50/usr/src/lib/libast/common/misc/ |
H A D | optlib.h | 86 Sfio_t* strp; /* optstr() stream */ member
|
/titanic_50/usr/src/common/ctf/ |
H A D | ctf_open.c | 112 const ctf_sect_t *sp, const ctf_sect_t *strp) in init_symtab() argument 138 if (gsp->st_name < strp->cts_size) in init_symtab() 139 name = (const char *)strp->cts_data + gsp->st_name; in init_symtab() 805 ctf_sect_t *ctp, *symp, *strp; in ctf_dup() local 855 strp = &strsect; in ctf_dup() 857 strp = NULL; in ctf_dup() 860 fp = ctf_bufopen(ctp, symp, strp, &err); in ctf_dup()
|