/titanic_44/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_44/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_44/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_44/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 …]
|
/titanic_44/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_44/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_44/usr/src/cmd/fs.d/cachefs/mount/ |
H A D | mount.c | 215 char *strp; in main() local 473 strp = strchr(servname, ':'); in main() 474 if (strp == NULL) { in main() 478 *strp = '\0'; in main() 483 strp++; in main() 484 margs.cfs_backfsname = strp; in main() 671 char *savep, *strp, *valp; in set_cfs_args() local 688 optstrp = strp = strdup(optionp); in set_cfs_args() 690 if ((strp == NULL) || (reducep == NULL)) { in set_cfs_args() 699 while (*strp) { in set_cfs_args() [all …]
|
/titanic_44/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_44/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_44/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_44/usr/src/cmd/fs.d/cachefs/cfsd/ |
H A D | cfsd_fscache.c | 229 char *strp = buf; in fscache_setup() local 358 while (*strp != '\0') { in fscache_setup() 359 xx = getsubopt(&strp, options, &dummy); in fscache_setup() 589 char *strp; in fscache_simdisconnect() local 596 strp = disconnect ? "disconnection" : "reconnection"; in fscache_simdisconnect() 598 dbug_print(("simdis", "About to simulate %s", strp)); in fscache_simdisconnect() 660 strp)); in fscache_simdisconnect() 674 dbug_print(("simdis", "DONE waiting for simulated %s", strp)); in fscache_simdisconnect() 676 dbug_print(("simdis", "simulated %s failed %d", strp, ret)); in fscache_simdisconnect() 1275 char *strp; in fscache_rollone() local [all …]
|
H A D | cfsd_logelem.h | 187 char *strp); 189 char *strp); 192 char *prefix, char *strp);
|
H A D | cfsd_subr.c | 698 subr_strdup(const char *strp) in subr_strdup() argument 703 if (strp) { in subr_strdup() 704 len = strlen(strp) + 1; in subr_strdup() 707 strlcpy(retp, strp, len); in subr_strdup()
|
/titanic_44/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_44/usr/src/cmd/fs.d/cachefs/fsck/ |
H A D | fsck.c | 959 char *strp; in process_fsdir() local 1104 base = strtoull(dep->d_name + 1, &strp, 16); in process_fsdir() 1107 base = strtoull(dep->d_name, &strp, 16); in process_fsdir() 1109 if (*strp != '\0') { in process_fsdir() 1336 char *strp; in process_fsgroup() local 1569 index = (int)(strtoull(dep->d_name + 1, &strp, in process_fsgroup() 1572 index = (int)(strtoull(dep->d_name, &strp, 16) - base); in process_fsgroup() 1576 if (((! acldir) && (*strp != '\0')) || in process_fsgroup() 1577 ((acldir) && (strcmp(strp, ".d") != 0)) || in process_fsgroup() 1782 char *strp; in file_remove() local [all …]
|
/titanic_44/usr/src/uts/sun4v/sys/ |
H A D | mdeg.h | 49 char *strp; member 55 #define ps_str _p.strp
|
/titanic_44/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_44/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_44/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_44/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_44/usr/src/cmd/fs.d/cachefs/common/ |
H A D | subr.c | 86 char *strp; in cachefs_dir_lock() local 90 strp = CACHEFS_ROOTRUN; in cachefs_dir_lock() 91 xx = stat(strp, &statb); in cachefs_dir_lock() 93 strp = "/tmp"; in cachefs_dir_lock() 96 len = snprintf(buf, sizeof (buf), "%s/%s", strp, CACHEFS_LOCKDIR_PRE); in cachefs_dir_lock() 104 strp = &buf[len]; in cachefs_dir_lock() 106 while (strp = strchr(strp, '/')) { /* convert path to a file */ in cachefs_dir_lock() 107 *strp = '_'; in cachefs_dir_lock()
|
/titanic_44/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 …]
|