Home
last modified time | relevance | path

Searched refs:str (Results 101 – 125 of 1657) sorted by relevance

12345678910>>...67

/illumos-gate/usr/src/cmd/infocmp/
H A Dinfocmp.c236 str[i].changed = FALSE; in allocvariables()
602 str[i].val = tgetstr(str[i].capname, (char **)0); in initfirstterm()
604 pr_string(str[i].infoname, str[i].capname, in initfirstterm()
605 str[i].fullname, str[i].val); in initfirstterm()
610 PR(trace, str[i].val); in initfirstterm()
802 str[i].capname, str[i].secondname); in check_nth_terminal()
823 pr_string(str[i].infoname, str[i].capname, in check_nth_terminal()
843 PR(trace, str[i].val); in check_nth_terminal()
847 str[i].changed, str[i].seenagain); in check_nth_terminal()
910 if (str[i].val == NULL && str[i].changed) { in dorelative()
[all …]
/illumos-gate/usr/src/uts/sun4u/serengeti/sys/
H A Dsgfrutypes.h306 #define SG_SET_FRU_NAME_NODE(str, num) \ argument
310 (void) strcat(str, tmp_str); \
317 (void) strcat(str, tmp_str); \
324 (void) strcat(str, tmp_str); \
331 (void) strcat(str, tmp_str); \
334 #define SG_SET_FRU_NAME_CORE(str, num) \ argument
338 (void) strcat(str, tmp_str); \
341 #define SG_SET_FRU_NAME_BANK(str, num) \ argument
345 (void) strcat(str, tmp_str); \
348 #define SG_SET_FRU_NAME_DIMM(str, num) \ argument
[all …]
/illumos-gate/usr/src/cmd/bnu/
H A Dstoa.c73 stoa(str, addr) /* Return netbuf ptr if success */ in stoa() argument
74 char *str; /* Return NULL if error */ in stoa()
81 if (!str)
83 while (*str && isspace(*str)) /* leading whites are OK */
84 ++str;
86 if (!str || !*str) return NULL; /* Nothing to convert */
98 if (*str == '\\') {
99 ++str;
100 switch (*str) {
104 addr->len = dobase(++str, sbuf, HEX);
[all …]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/support/
H A Dutf8.c459 for ( ; *str != '\0'; KRB5_UTF8_INCR(str)) { in krb5int_utf8_strchr()
460 if (krb5int_utf8_to_ucs4(str, &chs) == 0 && chs == ch) in krb5int_utf8_strchr()
461 return (char *)str; in krb5int_utf8_strchr()
477 return cstr - str; in krb5int_utf8_strcspn()
481 return cstr - str; in krb5int_utf8_strcspn()
493 return cstr - str; in krb5int_utf8_strspn()
500 return cstr - str; in krb5int_utf8_strspn()
509 for ( ; *str != '\0'; KRB5_UTF8_INCR(str)) { in krb5int_utf8_strpbrk()
511 if (krb5int_utf8_to_ucs4(str, &chstr) == 0 in krb5int_utf8_strpbrk()
513 return (char *)str; in krb5int_utf8_strpbrk()
[all …]
/illumos-gate/usr/src/lib/libc/port/locale/
H A Dfix_grouping.c47 __fix_locale_grouping_str(const char *str) in __fix_locale_grouping_str() argument
52 if (str == NULL || *str == '\0') { in __fix_locale_grouping_str()
56 for (src = (char *)str, dst = (char *)str; *src != '\0'; src++) { in __fix_locale_grouping_str()
84 return ((dst == (char *)str) ? nogrouping : str); in __fix_locale_grouping_str()
88 return (str); in __fix_locale_grouping_str()
/illumos-gate/usr/src/cmd/refer/
H A Dsortbib.c179 while (fgets(str, sizeof (str), tfp)) { in deliver()
255 article(char *str) in article() argument
259 if (strcmp("A", str) == 0) in article()
261 if (strcmp("An", str) == 0) in article()
265 if (strcmp("La", str) == 0) in article()
269 if (strcmp("Die", str) == 0) in article()
271 if (strcmp("Das", str) == 0) in article()
316 endcomma(char *str) in endcomma() argument
320 n = strlen(str) - 1; in endcomma()
321 if (str[n] == ',') { in endcomma()
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/history/
H A Dhistory_common.kshlib241 str="s-\$@"
244 code="$str${tmp% *}"
252 str="c-\$"
255 code="$str${tmp% *}"
263 str="u"
269 code="${str}l\$$uid $opt"
278 code="${str}d\$$uid $opt"
287 str="g"
311 str="e"
316 code="${str}l\$ $opt"
[all …]
/illumos-gate/usr/src/cmd/sendmail/include/sm/
H A Dstring.h48 sm_strdup_tagged_x __P((const char *str, char *file, int line, int group));
53 # define sm_strdup_x(str) strcpy(sm_malloc_x(strlen(str) + 1), str) argument
56 # define sm_pstrdup_x(str) strcpy(sm_pmalloc_x(strlen(str) + 1), str) argument
58 # define sm_strdup_tagged_x(str, file, line, group) \ argument
59 strcpy(sm_malloc_tagged_x(strlen(str) + 1, file, line, group), str)
/illumos-gate/usr/src/cmd/sgs/crle/common/
H A Dutil.c48 char *str; in addenv() local
58 varsz = (size_t)(str - arg); in addenv()
168 char *str, *arg; in addlib() local
176 str = alloca(tlen); in addlib()
177 (void) strcpy(str, args); in addlib()
178 arg = str; in addlib()
190 (((str == *lib) || in addlib()
192 (str += alen) && in addlib()
193 ((*str == '\0') || (*str == *colon)))) in addlib()
222 (void) strcpy(str, arg); in addlib()
[all …]
/illumos-gate/usr/src/lib/libgen/common/
H A Dbgets.c57 char *str; in _get_stop() local
61 str = pthread_getspecific(*keyp); in _get_stop()
62 if (str == NULL) { in _get_stop()
63 str = calloc(CHARS, sizeof (char)); in _get_stop()
64 if (thr_setspecific(*keyp, str) != 0) { in _get_stop()
65 if (str) in _get_stop()
66 (void) free(str); in _get_stop()
67 str = NULL; in _get_stop()
70 return (str); in _get_stop()
/illumos-gate/usr/src/lib/libwrap/
H A Dmisc.c75 unsigned long dot_quad_addr(str) in dot_quad_addr() argument
76 char *str; in dot_quad_addr()
80 char *cp = str;
98 int numeric_addr(str, addr, af, len) in numeric_addr() argument
99 char *str; in numeric_addr()
109 if (strchr(str,':')) {
112 if (inet_pton(AF_INET6, str, (void*) addr) == 1)
119 addr->ga_in.s_addr = dot_quad_addr(str);
172 char *skip_ipv6_addrs(str) in skip_ipv6_addrs() argument
173 char *str; in skip_ipv6_addrs()
[all …]
/illumos-gate/usr/src/cmd/ldap/common/
H A Dldaptool-sasl.c141 char *newvalue, str[1024]; local
155 snprintf(str, sizeof(str), "%s:", tmpstr?tmpstr:SASL_PROMPT);
160 snprintf(str, sizeof(str), "%s:", interact->prompt?interact->prompt:SASL_PROMPT);
170 fputs(str,stdout);
186 if ((newvalue = (char *)getpassphrase(str)) == NULL) {
188 if ((newvalue = (char *)getpass(str)) == NULL) {
195 fputs(str, stderr);
196 if ((newvalue = fgets(str, sizeof(str), stdin)) == NULL)
198 len = strlen(str);
199 if (len > 0 && str[len - 1] == '\n')
[all …]
/illumos-gate/usr/src/ucblib/libcurses/
H A Dgetstr.c30 wgetstr(WINDOW *win, char *str) in wgetstr() argument
32 while ((*str = wgetch(win)) != ERR && *str != '\n') in wgetstr()
33 str++; in wgetstr()
34 if (*str == ERR) { in wgetstr()
35 *str = '\0'; in wgetstr()
38 *str = '\0'; in wgetstr()
/illumos-gate/usr/src/cmd/sgs/demo_rdb/common/
H A Dutils.c44 hexstr_to_num(const char *str) in hexstr_to_num() argument
47 size_t i, len = strlen(str); in hexstr_to_num()
50 if (str[i] >= '0' && str[i] <= '9') in hexstr_to_num()
51 num = num * 16 +((int)str[i] - (int)'0'); in hexstr_to_num()
52 else if (str[i] >= 'a' && str[i] <= 'f') in hexstr_to_num()
53 num = num * 16 +((int)str[i] - (int)'a' + 10); in hexstr_to_num()
54 else if (str[i] >= 'A' && str[i] <= 'F') in hexstr_to_num()
55 num = num * 16 + ((int)str[i] - (int)'A' + 10); in hexstr_to_num()
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/mech/
H A Ddisp_major_status.c127 char *str; local
129 if ((str =
133 sprintf(str, unknown_error, kind, value);
135 buffer->length = strlen(str);
136 buffer->value = str;
148 const char *str; local
150 if ((str = GSS_CALLING_ERROR_STR(code))) {
173 const char *str; local
175 if ((str = GSS_ROUTINE_ERROR_STR(code))) {
198 const char *str; local
[all …]
/illumos-gate/usr/src/head/
H A Dnss_dbdefs.h661 (str)->stayopen = 0, \
664 (str)->returnval = 0, \
665 (str)->returnlen = 0, \
666 (str)->h_errno = 0, \
667 (str)->erange = 0)
673 (str)->stayopen = 0, \
676 (str)->returnval = 0, \
677 (str)->returnlen = 0, \
678 (str)->h_errno = 0, \
679 (str)->erange = 0)
[all …]
/illumos-gate/usr/src/lib/libnsl/dial/
H A Dstoa.c78 stoa(char *str, struct netbuf *addr) in stoa() argument
85 if (!str) in stoa()
87 while (*str && isspace(*str)) /* leading whites are OK */ in stoa()
88 ++str; in stoa()
90 if (!str || !*str) /* Nothing to convert */ in stoa()
110 if (*str == '\\') { in stoa()
111 ++str; in stoa()
112 switch (*str) { in stoa()
116 addr->len = dobase(++str, sbuf, HEX); in stoa()
121 addr->len = dobase(++str, sbuf, OCT); in stoa()
/illumos-gate/usr/src/cmd/abi/spectrans/spec2trace/
H A Dutil.c49 strnormalize(char *str) in strnormalize() argument
53 if (str == NULL || *str == '\0') in strnormalize()
54 return (str); in strnormalize()
65 while (isspace(*str)) in strnormalize()
66 str++; in strnormalize()
68 return (str); in strnormalize()
72 strtrim(char *str) in strtrim() argument
76 for (p = str; *p != '\0'; p++) in strtrim()
81 return (str); in strtrim()
89 strlower(char *str) in strlower() argument
[all …]
/illumos-gate/usr/src/cmd/lp/lib/lp/
H A Dgetlist.c57 char * str, in getlist() argument
62 getlist (str, ws, hardsep) in getlist()
63 register char *str, in getlist()
82 if (!str || !*str)
104 if (!(begin = Strdup(str))) {
202 char * str, in unq_strdup() argument
206 unq_strdup (str, sep) in unq_strdup()
207 char *str, in unq_strdup()
218 for (p = str; *p; p++)
223 for (p = str; *p; p++)
/illumos-gate/usr/src/common/ctf/
H A Dctf_hash.c99 const char *str = ctsp->cts_strs + CTF_NAME_OFFSET(name); in ctf_hash_insert() local
115 if (str[0] == '\0') in ctf_hash_insert()
120 h = ctf_hash_compute(str, strlen(str)) % hp->h_nbuckets; in ctf_hash_insert()
135 const char *str = ctf_strptr(fp, name); in ctf_hash_define() local
136 ctf_helem_t *hep = ctf_hash_lookup(hp, fp, str, strlen(str)); in ctf_hash_define()
150 const char *str; in ctf_hash_lookup() local
158 str = ctsp->cts_strs + CTF_NAME_OFFSET(hep->h_name); in ctf_hash_lookup()
160 if (strncmp(key, str, len) == 0 && str[len] == '\0') in ctf_hash_lookup()
191 const char *str; in ctf_hash_dump() local
195 str = ctsp->cts_strs + CTF_NAME_OFFSET(hep->h_name); in ctf_hash_dump()
[all …]
/illumos-gate/usr/src/lib/libsldap/common/
H A Dns_confmgr.c415 char *str; in __print2buf() local
435 str = (char *)realloc(line->str, newmax); in __print2buf()
441 line->str = str; in __print2buf()
477 char *str; in __ns_ldap_LoadDoorInfo() local
522 free(str); in __ns_ldap_LoadDoorInfo()
525 free(str); in __ns_ldap_LoadDoorInfo()
577 char *str; in __ns_ldap_DumpLdif() local
654 free(str); in __ns_ldap_DumpLdif()
678 char *str; in __ns_ldap_DumpConfigFiles() local
1075 char *str; in __ns_ldap_print_config() local
[all …]
/illumos-gate/usr/src/lib/scsi/libsmp/common/
H A Dsmp_subr.c177 smp_strdup(const char *str) in smp_strdup() argument
179 size_t len = strlen(str); in smp_strdup()
185 return (strcpy(dup, str)); in smp_strdup()
199 smp_trim_strdup(const char *str, size_t len) in smp_trim_strdup() argument
204 for (p = str; p - str < len && isspace(*p); p++) in smp_trim_strdup()
207 len -= (p - str); in smp_trim_strdup()
212 for (str = p + len - 1; str > p && isspace(*str); str--, len--) in smp_trim_strdup()
/illumos-gate/usr/src/lib/cfgadm_plugins/usb/common/
H A Dcfga_configfile.c826 (void) snprintf(&str[strlen(str)], MAXLINESIZE, in add_entry()
832 (void) snprintf(&str[strlen(str)], MAXLINESIZE, in add_entry()
837 (void) snprintf(&str[strlen(str)], MAXLINESIZE, in add_entry()
842 (void) snprintf(&str[strlen(str)], MAXLINESIZE, in add_entry()
851 (void) strlcat(str, ";", sizeof (str)); in add_entry()
865 if (write(file, str, strlen(str)) == -1) { in add_entry()
888 (void) snprintf(&str[strlen(str)], MAXLINESIZE, in add_entry()
893 (void) snprintf(&str[strlen(str)], MAXLINESIZE, in add_entry()
898 (void) snprintf(&str[strlen(str)], MAXLINESIZE, in add_entry()
909 (void) strlcat(str, ";\n", sizeof (str)); in add_entry()
[all …]
/illumos-gate/usr/src/uts/common/fs/zfs/lua/
H A Dlstring.c56 h = h ^ ((h<<5) + (h>>2) + cast_byte(str[l1 - 1])); in luaS_hash()
107 memcpy(ts+1, str, l*sizeof(char)); in createstrobj()
116 static TString *newshrstr (lua_State *L, const char *str, size_t l, in newshrstr() argument
124 s = createstrobj(L, str, l, LUA_TSHRSTR, h, list); in newshrstr()
136 unsigned int h = luaS_hash(str, l, g->seed); in internshrstr()
143 (memcmp(str, getstr(ts), l * sizeof(char)) == 0)) { in internshrstr()
156 TString *luaS_newlstr (lua_State *L, const char *str, size_t l) { in luaS_newlstr() argument
158 return internshrstr(L, str, l); in luaS_newlstr()
162 return createstrobj(L, str, l, LUA_TLNGSTR, G(L)->seed, NULL); in luaS_newlstr()
170 TString *luaS_new (lua_State *L, const char *str) { in luaS_new() argument
[all …]
/illumos-gate/usr/src/cmd/ipf/lib/
H A Dicmpcode.c27 int icmpcode(str) in icmpcode() argument
28 char *str; in icmpcode()
33 if ((s = strrchr(str, ')')))
35 if (ISDIGIT(*str)) {
36 if (!ratoi(str, &i, 0, 255))
41 len = strlen(str);
43 if (!strncasecmp(str, icmpcodes[i], MIN(len,

12345678910>>...67