Home
last modified time | relevance | path

Searched refs:str (Results 76 – 100 of 1657) sorted by relevance

12345678910>>...67

/illumos-gate/usr/src/cmd/listen/
H A Dnstoa.c83 char *str; in stoa()
93 if (!str)
95 while (*str && isspace(*str)) /* leading whites are OK */
96 ++str;
98 str = prescan(str); /* Do all \$ ... \$ */
100 if (!str || !*str) return NULL; /* Nothing to convert */
115 ++str;
116 switch (*str) {
140 ++str;
316 char *str; in atos()
[all …]
/illumos-gate/usr/src/cmd/lp/lib/lp/
H A Dsop.c49 register char *str; in sop_up_rest() local
54 str = 0; in sop_up_rest()
64 if (str) in sop_up_rest()
65 str = Realloc(str, size + add_size + 1); in sop_up_rest()
67 str = Malloc(size + add_size + 1); in sop_up_rest()
68 if (!str) { in sop_up_rest()
72 strcpy (str + size, buf); in sop_up_rest()
76 Free (str); in sop_up_rest()
79 return (str); in sop_up_rest()
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/safety/
H A Dtst.shortstr.d32 this->str = ",,,Carrots,,Barley,Oatmeal,,,,,,,,,,,,,,,,,,Beans,";
37 strtok(this->str, ",");
42 this->str = ",,,,,,,,,,,,,,,,,,,,,,Carrots,";
43 strtok(this->str, ",");
48 strtok(this->str, "a");
53 printf("%s\n", substr(this->str, 1, 40));
58 printf("%s\n", strjoin(this->str, this->str));
64 printf("%d\n", index(this->str, this->str1));
69 printf("%d\n", rindex(this->str, this->str1));
/illumos-gate/usr/src/lib/libnisdb/
H A Dldap_attr.c208 if (str == 0) in makeFilter()
212 free(str); in makeFilter()
217 for (; str[s] == ' ' || str[s] == '\t'; s++); in makeFilter()
219 for (e = s; str[e] != '\0' && str[e] != ','; e++); in makeFilter()
238 return (str); in makeFilter()
246 free(str); in makeFilter()
283 if (str == 0) in makeFilterComp()
291 for (e = s; str[e] != '\0' && str[e] != ')'; e++); in makeFilterComp()
316 sfree(str); in makeFilterComp()
347 if (str == 0) in addFilterComp()
[all …]
/illumos-gate/usr/src/lib/libslp/javalib/com/sun/slp/
H A DAttributeString.java59 AttributeString(String str, Locale nlocale) { in AttributeString() argument
61 string = str; in AttributeString()
64 cstring = parse(str, nlocale); in AttributeString()
70 private String parse(String str, Locale nlocale) { in parse() argument
75 new StringTokenizer(str, ServiceLocationAttribute.WHITESPACE); in parse()
92 public boolean match(AttributeString str) { in match() argument
93 return equals(str); in match()
97 public boolean lessEqual(AttributeString str) { in lessEqual() argument
99 return (cstring.compareTo(str.cstring) <= 0); in lessEqual()
103 public boolean greaterEqual(AttributeString str) { in greaterEqual() argument
[all …]
H A DOpaque.java70 static byte[] unescapeByteArray(String str) in unescapeByteArray() argument
75 if (!str.startsWith(OPAQUE_HEADER)) { in unescapeByteArray()
80 new Object[] {str}); in unescapeByteArray()
84 String string = str.substring(OPAQUE_HEADER.length()); in unescapeByteArray()
100 new Object[] {str}); in unescapeByteArray()
111 new Object[] {str}); in unescapeByteArray()
119 new Object[] {str}); in unescapeByteArray()
134 new Object[] {str}); in unescapeByteArray()
188 String str = null; in toString() local
198 if (str.length() < 2) { in toString()
[all …]
/illumos-gate/usr/src/cmd/svc/startd/
H A Dexpand.c264 if (str == NULL) in get_prop_val_str()
268 free(str); in get_prop_val_str()
269 str = qstr; in get_prop_val_str()
284 free(str); in get_prop_val_str()
290 free(str); in get_prop_val_str()
298 free(str); in get_prop_val_str()
302 str = p; in get_prop_val_str()
312 free(str); in get_prop_val_str()
316 *retstr = str; in get_prop_val_str()
474 str = "stop"; in expand_token()
[all …]
/illumos-gate/usr/src/cmd/audio/utilities/
H A Dhdr_misc.c80 audio_str_to_secs(char *str) in audio_str_to_secs() argument
86 if (str2 == str) in audio_str_to_secs()
91 str = str2 + 1; in audio_str_to_secs()
93 if (str2 == str) in audio_str_to_secs()
99 str = str2 + 1; in audio_str_to_secs()
101 if (str2 == str) in audio_str_to_secs()
129 (void) strcpy(str, "0:00"); in audio_secs_to_str()
130 return (str); in audio_secs_to_str()
138 p = str; in audio_secs_to_str()
178 return (str); in audio_secs_to_str()
[all …]
/illumos-gate/usr/src/lib/libsec/common/
H A Dacl_lex.l219 free(yylval.str);
233 yylval.str[strlen(yylval.str) -1] = '\0';
258 yylval.str);
259 free(yylval.str);
418 free(yylval.str);
504 yylval.str);
512 free(yylval.str);
626 yylval.str);
654 yylval.str);
796 yylval.str = realloc(yylval.str,
[all …]
/illumos-gate/usr/src/cmd/bnu/
H A Deio.c108 erdmsg(char *str, int fn) in erdmsg() argument
326 trdmsg(char *str, int fn) in trdmsg() argument
458 argstr = str; in etrdmsg()
477 str += len; in etrdmsg()
481 *str = 0; in etrdmsg()
483 if (null != str) { in etrdmsg()
486 Erdlen += str - null; in etrdmsg()
489 argstr = str; in etrdmsg()
513 char *str;
525 endstr = str + strlen(str);
[all …]
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/
H A Dsupport.c33 const char *str; in Dbg_support_req() local
40 str = MSG_INTL(MSG_SUP_REQ_ENV); in Dbg_support_req()
43 str = MSG_INTL(MSG_SUP_REQ_CMD); in Dbg_support_req()
46 str = MSG_ORIG(MSG_STR_EMPTY); in Dbg_support_req()
51 dbg_print(lml, MSG_INTL(MSG_SUP_REQ), define, str); in Dbg_support_req()
76 const char *str; in Dbg_support_action() local
84 str = MSG_INTL(MSG_SUP_OUTFILE); in Dbg_support_action()
86 str = MSG_INTL(MSG_SUP_INFILE); in Dbg_support_action()
88 str = MSG_INTL(MSG_SUP_INSEC); in Dbg_support_action()
90 str = MSG_INTL(MSG_SUP_SEC); in Dbg_support_action()
[all …]
H A Dfiles.c69 const char *str; in Dbg_file_mmapobj() local
91 const char *str; in Dbg_file_elf() local
186 const char *str; in Dbg_file_hdl_collect() local
194 str = NAME(ghp->gh_ownlmp); in Dbg_file_hdl_collect()
215 Msg str; in Dbg_file_hdl_action() local
259 str = fmt[type]; in Dbg_file_hdl_action()
303 const char *str; in Dbg_file_bindings() local
497 const char *str; in Dbg_file_config_dis() local
628 const char *str; in Dbg_file_ar() local
725 const char *str; in Dbg_file_modified() local
[all …]
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/
H A Dkeypad.c50 decode_add(root, str, code) in decode_add() argument
52 const char *str;
61 if (str == (char *) 0)
64 start = str;
76 node->ch = *str++;
80 for (node = *root; *str != '\0'; ++str, node = node->child) {
81 while (node->ch != *str
85 if (node->ch != *str) {
94 node->ch = *str++;
105 while (*str != '\0') {
[all …]
/illumos-gate/usr/src/cmd/sgs/ldd/common/
H A Dldd.c272 if ((*str++ == '=') && (*str != '\0')) in main()
273 prefile_32 = str; in main()
279 if ((*str++ == '=') && (*str != '\0')) in main()
280 prefile_64 = str; in main()
286 if ((*str++ == '=') && (*str != '\0')) in main()
287 prefile = str; in main()
589 char *str; in run() local
600 char *str; in run() local
604 for (str = fname; *str; str++) in run()
605 if (*str == '/') { in run()
[all …]
/illumos-gate/usr/src/cmd/mailx/
H A Dcmd4.c51 static char *stripquotes(char *str);
58 dopipe(char str[]) in dopipe() argument
187 loadmsg(char str[]) in loadmsg() argument
265 field(char str[]) in field() argument
306 stripquotes(char *str) in stripquotes() argument
309 if (str == NOSTR) { in stripquotes()
312 lastch = strlen(str)-1; in stripquotes()
313 if (any(*str, "\"'") && str[lastch] == *str) { in stripquotes()
314 str[lastch] = '\0'; in stripquotes()
315 ++str; in stripquotes()
[all …]
/illumos-gate/usr/src/psm/stand/cpr/common/
H A Dsupport.c93 char *str, *default_path; in cpr_reset_properties() local
99 str = "cpr_reset_properties"; in cpr_reset_properties()
104 str, default_path); in cpr_reset_properties()
111 prom_printf("%s: error reading %s\n", str, default_path); in cpr_reset_properties()
124 prom_printf("%s: cannot find \"options\" node\n", str); in cpr_reset_properties()
146 str, prop->name, prop->value); in cpr_reset_properties()
161 char *str; in cpr_read_cdump() local
164 str = "\ncpr_read_cdump:"; in cpr_read_cdump()
173 str, cdp->cdd_magic, CPR_DUMP_MAGIC); in cpr_read_cdump()
179 str, cdp->cdd_version, CPR_VERSION); in cpr_read_cdump()
[all …]
/illumos-gate/usr/src/uts/i86pc/os/
H A Dcpr_impl.c296 char *str = "i_cpr_pre_resume_cpus"; in i_cpr_pre_resume_cpus() local
519 char *str = "i_cpr_power_down"; in i_cpr_power_down() local
773 char *str = "i_cpr_platform_alloc"; in i_cpr_platform_alloc() local
794 char *str = "i_cpr_platform_free"; in i_cpr_platform_free() local
812 char *str = "i_cpr_save_apic"; in i_cpr_save_apic() local
828 char *str = "i_cpr_restore_apic"; in i_cpr_restore_apic() local
903 char *str = "i_cpr_start_cpu"; in i_cpr_start_cpu() local
993 char *str = "i_cpr_alloc_cpus"; in i_cpr_alloc_cpus() local
1051 char *str = "wait_for_set"; in wait_for_set() local
1063 str, who)) in wait_for_set()
[all …]
/illumos-gate/usr/src/cmd/sgs/common/
H A Dstring_table.c249 sn.sn_str = str; in st_insert()
253 snp->sn_str = str; in st_insert()
276 len = strlen(str); in st_delstring()
287 sn.sn_str = str; in st_delstring()
402 stlen = strlen(str); in st_setstring()
565 mstr->sm_str = str; in st_hash_insert()
728 for (Str_master *str = stp->st_mstrlist; str != NULL; in st_setallstrings() local
729 str = str->sm_next) { in st_setallstrings()
757 const char *str, *end; in st_findstring() local
761 for (str = stp->st_strbuf; str < end; in st_findstring()
[all …]
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/edit/
H A Dhexpand.c74 if(sb->str[1])
75 free(sb->str[1]);
92 if(sb->str[n])
93 free(sb->str[n]);
213 str = 0;
281 str = cp;
367 if(!str)
508 if(str)
597 if(!sb.str[0] || !sb.str[1])
616 if(cc = strstr(str, sb.str[0]))
[all …]
/illumos-gate/usr/src/cmd/syseventadm/
H A Dsyseventadm.c1008 str_t *str; in initstr() local
1015 return (str); in initstr()
1026 sc_free(str->s_str, str->s_alloc); in freestr()
1054 sc_realloc(str->s_str, str->s_alloc, len+str->s_hint); in strcats()
1056 str->s_alloc = len + str->s_hint; in strcats()
1058 (void) strcpy(str->s_str + str->s_len, s); in strcats()
1074 sc_realloc(str->s_str, str->s_alloc, len+str->s_hint); in strcatc()
1076 str->s_alloc = len + str->s_hint; in strcatc()
1078 *(str->s_str + str->s_len) = (char)c; in strcatc()
1079 *(str->s_str + str->s_len + 1) = 0; in strcatc()
[all …]
/illumos-gate/usr/src/cmd/sgs/crle/common/
H A Dprint.c433 const char *str; in scanconfig() local
441 str = conv_config_upm(str, in scanconfig()
446 str = conv_config_upm(str, in scanconfig()
490 const char *str; in scanconfig() local
498 str = conv_config_upm(str, in scanconfig()
503 str = conv_config_upm(str, in scanconfig()
557 const char *str; in scanconfig() local
654 const char *str; in scanconfig() local
805 str); in scanconfig()
820 str); in scanconfig()
[all …]
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Dkeypad.c55 decode_add(t_decode **root, const char *str, short code) in decode_add() argument
63 if (str == NULL) in decode_add()
66 start = str; in decode_add()
78 node->ch = *str++; in decode_add()
82 for (node = *root; *str != '\0'; ++str, node = node->child) { in decode_add()
83 while (node->ch != *str && in decode_add()
87 if (node->ch != *str) { in decode_add()
95 node->ch = *str++; in decode_add()
106 while (*str != '\0') { in decode_add()
115 node->ch = *str++; in decode_add()
[all …]
/illumos-gate/usr/src/lib/libscf/common/
H A Dscf_type.c105 const char *str = str_arg; in valid_utf8() local
110 while ((c = *str++) != 0) { in valid_utf8()
124 c = *str++; in valid_utf8()
146 valid_string(const char *str) in valid_string() argument
154 const char *str = str_arg; in valid_opaque() local
158 while ((c = *str++) != 0) in valid_opaque()
172 valid_uri(const char *str) in valid_uri() argument
216 valid_fmri(const char *str) in valid_fmri() argument
256 valid_ip(int af, const char *str) in valid_ip() argument
259 const char *addr = str; in valid_ip()
[all …]
/illumos-gate/usr/src/lib/libsldap/common/
H A Dns_crypt.c194 char *modv, *str, *ev; in evalue() local
203 str = strdup(ptr); in evalue()
204 return (str); in evalue()
208 str = hex2ascii(modv, modv_len); in evalue()
214 free(str); in evalue()
218 free(str); in evalue()
219 str = NULL; in evalue()
227 char *modv, *str, *sb; in dvalue() local
237 str = ascii2hex(sb, &len); in dvalue()
239 free(str); in dvalue()
[all …]
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_handle.c156 char *str; in dt_handle_err() local
239 char *str; in dt_handle_liberr() local
312 char str[80], *s; in dt_handle_cpudrop() local
325 (void) snprintf(str, sizeof (str), "[%s] ", dt_droptag(what)); in dt_handle_cpudrop()
326 s = &str[strlen(str)]; in dt_handle_cpudrop()
327 size = sizeof (str) - (s - str); in dt_handle_cpudrop()
329 s = str; in dt_handle_cpudrop()
417 (void) snprintf(str, sizeof (str), "[%s] ", in dt_handle_status()
419 s = &str[strlen(str)]; in dt_handle_status()
420 size = sizeof (str) - (s - str); in dt_handle_status()
[all …]

12345678910>>...67