Home
last modified time | relevance | path

Searched refs:strp (Results 1 – 25 of 44) sorted by relevance

12

/illumos-gate/usr/src/lib/scsi/plugins/ses/SUN-Storage-J4400/common/
H A Driverwalk.c126 pn = strp->rws_ps0_pn; in sun_riverwalk_parse_node()
127 sn = strp->rws_ps0_sn; 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()
146 pn = strp->rws_sim0_pn; in sun_riverwalk_parse_node()
147 sn = strp->rws_sim0_sn; in sun_riverwalk_parse_node()
154 pn = strp->rws_sim1_pn; in sun_riverwalk_parse_node()
172 pn = strp->rws_ps0_pn; in sun_riverwalk_parse_node()
173 sn = strp->rws_ps0_sn; in sun_riverwalk_parse_node()
180 pn = strp->rws_ps1_pn; in sun_riverwalk_parse_node()
[all …]
/illumos-gate/usr/src/common/util/
H A Dgetoptstr.c89 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()
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()
153 if (ISNTWORDCH(strp[params->gos_pos])) { in getoptstr()
[all …]
/illumos-gate/usr/src/lib/libgen/common/
H A Dbufsplit.c56 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 Dlocaltime.c2202 ++strp; in getsecs()
2203 strp = getnum(strp, &num, 0, MINSPERHOUR - 1); in getsecs()
2210 strp = getnum(strp, &num, 0, SECSPERMIN); in getsecs()
2232 ++strp; in getoffset()
2234 ++strp; in getoffset()
2236 strp = getsecs(strp, offsetp); in getoffset()
2260 ++strp; in getrule()
2266 strp = getnum(strp, &rulep->r_week, 1, 5); in getrule()
2277 ++strp; in getrule()
2302 ++strp; in getrule()
[all …]
/illumos-gate/usr/src/cmd/sort/
H A Dmerge.c98 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()
107 SOP_PUT_LINE(outstrp, &strp->s_current); in merge_one_stream()
108 SOP_RELEASE_LINE(strp); in merge_one_stream()
110 while (!SOP_EOS(strp)) { in merge_one_stream()
111 SOP_FETCH(strp); in merge_one_stream()
114 &strp->s_current, FCV_REALLOC, in merge_one_stream()
116 SOP_PUT_LINE(outstrp, &strp->s_current); in merge_one_stream()
117 SOP_RELEASE_LINE(strp); in merge_one_stream()
[all …]
H A Dutility.c214 stream_t *strp = S->m_input_streams; in establish_output_guard() local
216 while (strp != NULL) { in establish_output_guard()
223 strp->s_filesize > 0) { in establish_output_guard()
225 output_guard_size = strp->s_filesize; 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
260 ASSERT(strp != NULL); in set_cleanup_chain()
262 cleanup_chain = strp; in set_cleanup_chain()
276 stream_t *strp; in atexit_handler() local
279 for (strp = *cleanup_chain; strp != NULL; strp = strp->s_next) in atexit_handler()
[all …]
/illumos-gate/usr/src/cmd/ldmad/
H A Dmdesc_lib.c58 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 Dldma_system.c196 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 Dutil.c441 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 Dprintfuncs.c300 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 Dslice.c249 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 Dn3.c752 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 Dmdesc_getpropstr.c32 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 Dmdeg.h49 char *strp; member
55 #define ps_str _p.strp
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/telnet/
H A Dencrypt.c781 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 Dlog_archive.c380 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 Ddid.c113 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 Dtable.c1580 char str[100], *strp; in read_rt() local
1612 if (strp == NULL) { in read_rt()
1613 strp = str; in read_rt()
1632 strp, ifnamep); in read_rt()
1639 if (strp != str) in read_rt()
1640 free(strp); in read_rt()
1665 strp = &str[strlen(str)]; in read_rt()
1667 strp += snprintf(strp, sizeof (str) - (strp - str), in read_rt()
1690 strp += snprintf(strp, sizeof (str) - (strp - str), ": %s", in read_rt()
1706 strp += snprintf(strp, sizeof (str) - (strp - str), in read_rt()
[all …]
H A Dif.c75 #define HADD(htbl, strp) \ argument
77 (strp))
172 link_in(void **head, void *strp, size_t loffs) in link_in() argument
184 *head = strp; in link_in()
189 link_out(void *strp, size_t loffs) in link_out() argument
212 link_in(hep, strp, htbl->htbl_link_off); in hash_link()
218 hash_unlink(struct htbl *htbl, void *strp) in hash_unlink() argument
220 link_out(strp, htbl->htbl_link_off); in hash_unlink()
267 void *strp; in htbl_grow() local
302 strp = *old_ptrs++; in htbl_grow()
[all …]
/illumos-gate/usr/src/lib/passwdutil/
H A Dldap_attr.c511 char numbuf[MAX_INT_LEN], *strp; in attr_addmod() local
522 strp = strdup(numbuf); in attr_addmod()
523 if (strp == NULL) in attr_addmod()
526 attrs[i]->attrvalue[0] = strp; in attr_addmod()
531 strp = strdup(numbuf); in attr_addmod()
532 if (strp == NULL) in attr_addmod()
534 attrs[*idx] = new_attr(item, strp); in attr_addmod()
/illumos-gate/usr/src/cmd/picl/plugins/common/devtree/
H A Dpicldevtree.c1616 char *strp; in update_subtree() local
1680 *strp++ = '\0'; in update_subtree()
1682 strp); in update_subtree()
3682 char *strp; in picldevtree_evhandler() local
3696 *strp = '\0'; in picldevtree_evhandler()
3759 if (p != NULL && strp > p) { in picldevtree_evhandler()
3760 *strp = '\0'; in picldevtree_evhandler()
3764 *strp = '@'; in picldevtree_evhandler()
3769 *++strp = '\0'; in picldevtree_evhandler()
3783 char *strp; in picldevtree_evhandler() local
[all …]
/illumos-gate/usr/src/uts/sun4v/io/
H A Dvlds.c451 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 Dctf_open.c113 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 Dstdio.c252 char *strp = ptr; in fread() local
258 bytes = read(stream->_file, &strp[totbytes], size); in fread()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/astsa/
H A Doptlib.h83 Sfio_t* strp; /* optstr() stream */ member

12