Searched refs:pstr (Results 1 - 25 of 29) sorted by relevance

12

/illumos-gate/usr/src/cmd/sgs/elfwrap/common/
H A Dmain.c52 const char *prog, *ofile = NULL, *pstr = NULL; local
92 pstr = optarg + MSG_ARG_TARGET_SIZE;
129 if (pstr) {
130 if (strcasecmp(pstr, MSG_ORIG(MSG_TARG_SPARC)) == 0) {
136 } else if (strcasecmp(pstr, MSG_ORIG(MSG_TARG_X86)) == 0) {
144 pstr);
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/xaui/
H A Dxaui.c290 char *pstr = NULL; local
354 if ((md_get_prop_str(mdp, listp[i], "type", &pstr) == 0) &&
355 (pstr != NULL) &&
356 (strncmp(pstr, "io", strlen(pstr)) == 0) &&
357 (md_get_prop_str(mdp, listp[i], "topo-hc-name", &pstr)
358 == 0) && (pstr != NULL) &&
359 (strncmp(pstr, "xaui", strlen(pstr)) == 0) &&
360 (md_get_prop_str(mdp, listp[i], "path", &pstr)
[all...]
/illumos-gate/usr/src/lib/libtecla/common/
H A Dhistory.c236 static int glh_line_matches_glob(GlhLineStream *lstr, GlhLineStream *pstr);
237 static int glh_matches_range(char c, GlhLineStream *pstr);
2420 GlhLineStream pstr; /* The stream that is used to traverse 'prefix' */ local
2432 glh_init_stream(&pstr, prefix);
2438 return glh_line_matches_glob(&lstr, &pstr);
2447 while(pstr.c != '\0' && pstr.c == lstr.c) {
2449 glh_step_stream(&pstr);
2455 return pstr.c == '\0';
2600 GlhLineStream pstr; /* Th local
2639 glh_line_matches_glob(GlhLineStream *lstr, GlhLineStream *pstr) argument
2755 glh_matches_range(char c, GlhLineStream *pstr) argument
[all...]
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/motherboard/
H A Dmotherboard.c129 char *pstr = NULL; local
196 if (md_get_prop_str(mdp, listp[i], "type", &pstr) == 0) {
198 if (strcmp("systemboard", pstr) == 0) {
208 } else if (strcmp("product", pstr) == 0) {
215 if (md_get_prop_str(mdp, listp[i], "nac", &pstr) == 0) {
216 if (strcmp("SYS", pstr) == 0) {
227 pstr = mb_topo_alloc(i);
228 (void) snprintf(pstr, i, "%s%s", pn ? pn : "", dn ? dn : "");
229 *partp = topo_mod_strdup(mod, pstr);
230 mb_topo_free(pstr,
287 char *psn = NULL, *csn = NULL, *pstr = NULL; local
[all...]
/illumos-gate/usr/src/cmd/cal/
H A Dcal.c47 static void pstr(char *, const int);
147 pstr(string+i, 24);
182 pstr(string+j, 72);
206 pstr(char *str, const int n) function
/illumos-gate/usr/src/lib/brand/solaris10/s10_support/
H A Ds10_support.c247 char *pstr; local
284 pstr = patchlist;
285 while ((p = strtok_r(pstr, " ", &lastp)) != NULL) {
295 pstr = NULL;
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dpriv_str_xlate.c177 const char *pstr; local
323 pstr = __priv_getbynum(d, priv);
324 (void) strcpy(res, pstr);
325 res += strlen(pstr);
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/cpuboard/
H A Dcpuboard.c98 char *pstr = NULL; local
167 if (md_get_prop_str(mdp, listp[i], "type", &pstr) == 0 &&
168 pstr != NULL && strcmp(pstr, "cpu-board") == 0) {
199 pstr = cpuboard_topo_alloc(len);
200 (void) snprintf(pstr, len, "%s%s",
202 cpubs[id].pn = topo_mod_strdup(mod, pstr);
203 cpuboard_topo_free(pstr, len);
/illumos-gate/usr/src/lib/libc/port/i18n/
H A Dplural_parser.c328 gettoken(const char **pstr, unsigned int *num, int which) argument
330 unsigned char *sp = *(unsigned char **)pstr;
338 *pstr = (const char *)sp;
436 *pstr = (const char *)sp;
457 const char *pstr = plural_string; local
476 while ((op = gettoken(&pstr, &num, GET_TOKEN)) != T_NULL) {
696 nop = gettoken(&pstr, &num, PEEK_TOKEN);
701 (void) gettoken(&pstr, &num, GET_TOKEN);
/illumos-gate/usr/src/cmd/sgs/ld/common/
H A Dld.c327 char *pstr = optarg + MSG_ARG_TARGET_SIZE; local
329 if (strcasecmp(pstr,
333 } else if (strcasecmp(pstr,
339 MSG_INTL(MSG_ERR_BADTARG), pstr);
/illumos-gate/usr/src/lib/libsec/common/
H A Dacltext.c1190 char *pstr; local
1197 for (i = 0, pstr = permstr; i != count && pstr &&
1198 *pstr; i++, pstr++) {
1199 if (*pstr == permtab[i].p_letter) {
1201 } else if (*pstr != '-') {
1206 for (pstr = permstr; pstr && *pstr; pst
[all...]
/illumos-gate/usr/src/cmd/audio/utilities/
H A DAudioHdrParse.cc598 char *pstr; local
604 pstr = new char[strlen(str) + 1];
605 (void) strcpy(pstr, str);
606 ptr = pstr;
644 delete pstr;
/illumos-gate/usr/src/cmd/stat/kstat/
H A Dkstat.c163 nselector->ks_module.pstr =
168 nselector->ks_instance.pstr =
173 nselector->ks_name.pstr =
178 nselector->ks_statistic.pstr =
182 g_ks_class.pstr =
237 uselector->ks_module.pstr =
241 uselector->ks_instance.pstr =
245 uselector->ks_name.pstr =
249 uselector->ks_statistic.pstr =
496 selector->ks_module.pstr
[all...]
H A Dkstat.h192 char *pstr; member in struct:ks_pattern
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/
H A Dipseckey.c1663 char *thiscmd, *pstr; local
2030 if ((pstr = strchr(*argv, '/')) != NULL) {
2033 prefix = strtol(pstr + 1, NULL, 10);
2036 "Invalid prefix %s."), pstr);
2039 /* Recycle pstr */
2040 alloclen = (int)(pstr - *argv);
2041 pstr = malloc(alloclen + 1);
2042 if (pstr == NULL) {
2043 Bail("malloc(pstr)");
2045 (void) strlcpy(pstr, *arg
[all...]
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/snmp/
H A Dsnmpplugin.c1193 char *pstr; local
1267 vol_props[ndx].row, &pstr, &snmp_syserr);
1270 if (pstr)
1271 free(pstr);
1274 if (ret < 0 || pstr == NULL) {
1282 (void) strlcpy(buf, pstr, MAX_TRUTHVAL_LEN);
1284 if (pstr)
1285 free(pstr);
1289 vol_props[ndx].row, &pstr, &snmp_syserr);
1292 if (pstr)
[all...]
/illumos-gate/usr/src/uts/sun4u/starfire/io/
H A Didn_dlpi.c215 char *pstr; local
218 case DL_UNITDATA_REQ: pstr = "UNITDATA_REQ"; break;
219 case DL_ATTACH_REQ: pstr = "ATTACH_REQ"; break;
220 case DL_DETACH_REQ: pstr = "DETACH_REQ"; break;
221 case DL_BIND_REQ: pstr = "BIND_REQ"; break;
222 case DL_UNBIND_REQ: pstr = "UNBIND_REQ"; break;
223 case DL_INFO_REQ: pstr = "INFO_REQ"; break;
224 case DL_PROMISCON_REQ: pstr = "PROMISCON_REQ"; break;
225 case DL_PROMISCOFF_REQ: pstr = "PROMISCOFF_REQ"; break;
226 case DL_ENABMULTI_REQ: pstr
[all...]
/illumos-gate/usr/src/cmd/pg/
H A Dpg.c367 static char pstr[PROMPTSIZE]; local
370 switch (pstr[i++] = *s++) {
372 return (pstr);
377 pstr[i++] = '%';
378 if ((pstr[i++] = *s++) == '\0')
379 return (pstr);
/illumos-gate/usr/src/lib/libsysevent/
H A Dlibsysevent.c486 pub_idx(const char *pstr, int token) argument
491 if ((pstr = index(pstr, ':')) == NULL)
493 pstr++;
497 if (pstr) {
498 if (*pstr == '\0' || *pstr == ':')
501 return (pstr);
/illumos-gate/usr/src/cmd/sgs/libld/common/
H A Dfiles.c419 str_cap(Ofl_desc *ofl, char *pstr, ofl_flag_t flags, Xword tag, Caplist *list) argument
431 tag, pstr));
438 if (strcmp(capstr->cs_str, pstr) == 0)
442 DBG_CALL(Dbg_cap_ptr_entry(ofl->ofl_lml, DBG_STATE_NEW, tag, pstr));
450 capstr->cs_str = pstr;
470 id_cap(Ofl_desc *ofl, char *pstr, oc_flag_t flags) argument
481 DBG_STATE_IGNORED, CA_SUNW_ID, pstr));
487 CA_SUNW_ID, pstr));
489 ocapset->oc_id.cs_str = pstr;
493 CA_SUNW_ID, pstr));
[all...]
/illumos-gate/usr/src/cmd/itadm/
H A Ditadm.c1434 char *pstr; local
1491 ret = sockaddr_to_str(&(portal->portal_addr), &pstr);
1503 (void) printf("%s", pstr);
1504 free(pstr);
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ipadm/
H A Dipadm.c942 parse_modifiers(const char *pstr, uint_t *flags, const char *use) argument
946 if ((p = strchr(pstr, '=')) == NULL)
949 if (p == pstr)
2202 * check if the `pstr' adheres to following syntax
2207 ipadm_check_propstr(const char *pstr, boolean_t reset, const char *use) argument
2211 nv = strchr(pstr, '=');
/illumos-gate/usr/src/cmd/cmd-inet/lib/ipmgmtd/
H A Dipmgmt_persist.c747 char *pstr; local
751 &pstr) == 0) {
752 proto = ipadm_str2proto(pstr);
/illumos-gate/usr/src/lib/libinetsvc/common/
H A Dinetsvc.c1675 get_protos(const char *pstr) argument
1684 if ((str = strdup(pstr)) == NULL)
/illumos-gate/usr/src/cmd/syslogd/
H A Dsyslogd.c295 char *pstr; local
349 for (pstr = optarg; *pstr; pstr++) {
350 if (! (isdigit(*pstr))) {

Completed in 164 milliseconds

12