Searched refs:str (Results 126 - 150 of 1601) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/cmd/bnu/
H A Dstrsave.c36 /* copy str into data space -- caller should report errors. */
39 strsave(str)
40 register char *str;
44 rval = (char *)malloc(strlen(str) + 1);
46 strcpy(rval, str);
/illumos-gate/usr/src/cmd/ipf/lib/common/
H A Dgetline.c22 getaline(char *str, size_t size, FILE *file, int *linenum) argument
28 for (p = str, s = size; ; p += (len - 1), s -= (len - 1)) {
51 } while (*str == '\0');
52 return (str);
/illumos-gate/usr/src/lib/libgen/common/
H A Dbgets.c59 char *str; local
63 str = pthread_getspecific(*keyp);
64 if (str == NULL) {
65 str = calloc(CHARS, sizeof (char));
66 if (thr_setspecific(*keyp, str) != 0) {
67 if (str)
68 (void) free(str);
69 str = NULL;
72 return (str);
H A Dstrtrns.c33 * Copy `str' to `result' replacing any character found
34 * in both `str' and `old' with the corresponding character from `new'.
39 strtrns(const char *str, const char *old, const char *new, argument
45 for (r = result; *r = *str++; r++)
/illumos-gate/usr/src/cmd/localedef/
H A Dtime.c42 char *str; local
44 if ((str = to_mb_string(wcs)) == NULL) {
52 tm.c_fmt = str;
55 tm.x_fmt = str;
58 tm.X_fmt = str;
61 tm.ampm_fmt = str;
68 tm.date_fmt = str;
74 free(str);
77 free(str);
84 add_list(const char *ptr[], char *str, in argument
99 char *str; local
[all...]
/illumos-gate/usr/src/cmd/rmformat/
H A Drmformat.h59 #define DPRINTF(str) (void) printf(str)
60 #define DPRINTF1(str, a) (void) printf(str, a)
61 #define DPRINTF2(str, a, b) (void) printf(str, a, b)
62 #define DPRINTF3(str, a, b, c) (void) printf(str, a, b, c)
63 #define DPRINTF4(str, a, b, c, d) (void) printf(str,
[all...]
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/funcs/
H A Dtst.substr.d43 str = "foobarbazbop";
68 command[i].index = strlen(str) - 1;
72 command[i].index = strlen(str);
76 command[i].index = strlen(str) + 1;
89 command[i].length = strlen(str) - command[i].index + 1;
93 command[i].length = strlen(str) - command[i].index + 2;
144 command[i].index = -2 * strlen(str);
145 command[i].length = 2 * strlen(str);
148 command[i].index = -2 * strlen(str);
149 command[i].length = strlen(str);
[all...]
/illumos-gate/usr/src/cmd/tr/
H A Dstr.c71 switch (*s->str) {
83 clen = mbrtowc(&wch, s->str, MB_LEN_MAX, NULL);
89 s->str += clen;
94 if (s->str[0] == '-' && genrange(s, is_octal))
140 switch (s->str[1]) {
142 if ((p = strchr(s->str + 2, ']')) == NULL)
144 if (*(p - 1) != ':' || p - s->str < 4)
147 s->str += 2;
149 s->str = p + 1;
152 if ((p = strchr(s->str
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dmultilink.c49 static int parse_num __P((char *str, const char *key, int *valp));
191 parse_num(str, key, valp)
192 char *str;
199 p = strstr(str, key);
278 static char str[MAX_ENDP_LEN*3+8]; local
289 (void) slprintf(str, sizeof(str), "IP:%I", htonl(addr));
290 return str;
299 q = str;
301 q += slprintf(q, sizeof(str)
[all...]
/illumos-gate/usr/src/lib/libshell/common/tests/
H A Dsun_solaris_cr_6855875_typeset_hexfloat_has_too_few_digits.sh97 typeset str
119 # convert floating-point value to string (using the hexfloat format) and store it in "str"
120 str="${y}"
123 y_restored1="${str}"
124 y_restored2="${str}"
125 y_restored3="${str}"
131 (( y_restored1=str ))
132 (( y_restored2=str ))
133 (( y_restored3=str ))
/illumos-gate/usr/src/lib/libc/port/i18n/
H A Dwstoll.c56 wstoll(const wchar_t *str, wchar_t **ptr, int base) argument
58 return (wcstoll(str, ptr, base));
/illumos-gate/usr/src/lib/libcurses/screen/
H A D_mvwaddwchnstr.c40 mvwaddwchnstr(WINDOW *win, int y, int x, chtype *str, int n) argument
42 return ((wmove(win, y, x) == ERR ? ERR : waddwchnstr(win, str, n)));
H A D_mvwinwchnstr.c40 mvwinwchnstr(WINDOW *win, int y, int x, chtype *str, int n) argument
42 return ((wmove(win, y, x) == ERR ? ERR : winwchnstr(win, str, n)));
/illumos-gate/usr/src/tools/smatch/src/validation/
H A Dsm_strlen2.c1 int strlen(char *str);
2 int strcpy(char *str);
H A Dcall-inlined.c12 static inline const char *lstrip(const char *str) argument
14 return str + 1;
/illumos-gate/usr/src/boot/lib/libstand/
H A Dstat.c39 stat(const char *str, struct stat *sb) argument
43 fd = open(str, O_RDONLY);
/illumos-gate/usr/src/lib/libshell/common/sh/
H A Darith.c117 char *str = (char*)*ptr; local
132 register int c = *str;
133 register char *xp=str;
136 str++;
137 c = mbchar(str);
144 while(xp=str, c=mbchar(str), isaname(c));
145 str = xp;
148 str = nv_endsubscript((Namval_t*)0,str,
357 sh_strnum(register const char *str, char** ptr, int mode) argument
383 sh_arith(register const char *str) argument
388 sh_arithcomp(register char *str) argument
[all...]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/mech/
H A Ddisp_name.c35 char *str; local
53 (krb5_principal) input_name, &str))) {
60 if (! g_make_string_buffer(str, output_name_buffer)) {
61 krb5_free_unparsed_name(context, str);
68 krb5_free_unparsed_name(context, str);
/illumos-gate/usr/src/cmd/vgrind/
H A Dretest.c25 char str[132]; local
58 match = str;
62 if (str[0] == '#')
65 Start = str;
67 match = expmatch (str, ireg, matstr);
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/telnet/
H A Dauthenc.c97 net_write(unsigned char *str, int len) argument
100 ring_supply_data(&netoring, str, len);
101 if (str[0] == IAC && str[1] == SE)
102 printsub('>', &str[2], len - 2);
/illumos-gate/usr/src/cmd/fm/schemes/mod/
H A Dscheme.c36 char *str; local
41 if (topo_fmri_nvl2str(thp, nvl, &str, &err) != 0) {
47 len = snprintf(buf, buflen, "%s", str);
49 len = strlen(str);
51 topo_hdl_strfree(thp, str);
/illumos-gate/usr/src/cmd/fm/schemes/pkg/
H A Dscheme.c36 char *str; local
41 if (topo_fmri_nvl2str(thp, nvl, &str, &err) != 0) {
47 len = snprintf(buf, buflen, "%s", str);
49 len = strlen(str);
51 topo_hdl_strfree(thp, str);
/illumos-gate/usr/src/cmd/fm/schemes/sw/
H A Dscheme.c49 char *str; local
54 if (topo_fmri_nvl2str(thp, nvl, &str, &err) != 0) {
60 len = snprintf(buf, buflen, "%s", str);
62 len = strlen(str);
64 topo_hdl_strfree(thp, str);
/illumos-gate/usr/src/cmd/sendmail/include/sm/
H A Dstring.h50 sm_strdup_tagged_x __P((const char *str, char *file, int line, int group));
55 # define sm_strdup_x(str) strcpy(sm_malloc_x(strlen(str) + 1), str)
58 # define sm_pstrdup_x(str) strcpy(sm_pmalloc_x(strlen(str) + 1), str)
60 # define sm_strdup_tagged_x(str, file, line, group) \
61 strcpy(sm_malloc_tagged_x(strlen(str) + 1, file, line, group), str)
[all...]
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/
H A Dutil.c51 const char *str; local
57 str = MSG_INTL(MSG_UTL_SORT);
59 str = MSG_INTL(MSG_UTL_PEND);
61 str = MSG_INTL(MSG_UTL_DYN);
63 str = MSG_INTL(MSG_UTL_DONE);
66 dbg_print(lml, MSG_INTL(MSG_UTL_INIT), str, NAME(lmp));
132 const char *str; local
138 str = MSG_ORIG(MSG_SCN_INITARRAY);
140 str = MSG_ORIG(MSG_SCN_FINIARRAY);
142 str
162 Dbg_util_str(Lm_list *lml, const char *str) argument
208 const char *str; local
252 const char *str; local
289 const char *str; local
300 dbg_print(LIST(lmp), MSG_INTL(MSG_UTL_LCINTERFACE), NAME(lmp), str, local
307 const char *str; local
318 dbg_print(LIST(nlmp), MSG_INTL(MSG_USD_LCINTERFACE), NAME(nlmp), str, local
[all...]

Completed in 51 milliseconds

1234567891011>>