/illumos-gate/usr/src/contrib/mDNSResponder/Clients/ |
H A D | ClientCommon.c | 46 const char *GetNextLabel(const char *cstr, char label[64]) in GetNextLabel() argument 49 while (*cstr && *cstr != '.') // While we have characters in the label... in GetNextLabel() 51 char c = *cstr++; in GetNextLabel() 54 if (*cstr == '\0') break; // If this is the end of the string, then break in GetNextLabel() 55 c = *cstr++; in GetNextLabel() 56 if (isdigit(cstr[-1]) && isdigit(cstr[0]) && isdigit(cstr[1])) in GetNextLabel() 58 … int v0 = cstr[-1] - '0'; // then interpret as three-digit decimal in GetNextLabel() 59 int v1 = cstr[ 0] - '0'; in GetNextLabel() 60 int v2 = cstr[ 1] - '0'; in GetNextLabel() 66 if (val <= 255) { c = (char)val; cstr += 2; } in GetNextLabel() [all …]
|
H A D | ClientCommon.h | 41 extern const char *GetNextLabel(const char *cstr, char label[64]);
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/support/ |
H A D | utf8.c | 470 const char *cstr, *cset; in krb5int_utf8_strcspn() local 473 for (cstr = str; *cstr != '\0'; KRB5_UTF8_INCR(cstr)) { in krb5int_utf8_strcspn() 475 if (krb5int_utf8_to_ucs4(cstr, &chstr) == 0 in krb5int_utf8_strcspn() 477 return cstr - str; in krb5int_utf8_strcspn() 481 return cstr - str; in krb5int_utf8_strcspn() 487 const char *cstr, *cset; in krb5int_utf8_strspn() local 490 for (cstr = str; *cstr != '\0'; KRB5_UTF8_INCR(cstr)) { in krb5int_utf8_strspn() 493 return cstr - str; in krb5int_utf8_strspn() 494 if (krb5int_utf8_to_ucs4(cstr, &chstr) == 0 in krb5int_utf8_strspn() 500 return cstr - str; in krb5int_utf8_strspn()
|
/illumos-gate/usr/src/cmd/audio/utilities/ |
H A D | AudioHdrParse.cc | 262 char *cstr; in ChannelParse() local 276 cstr = to_lowercase(cstrbuf); in ChannelParse() 277 if ((strcmp(cstr, "-channel") != 0) && in ChannelParse() 278 (strcmp(cstr, "-chan") != 0) && in ChannelParse() 279 (strcoll(cstr, lib_chan) != 0)) { in ChannelParse() 280 delete cstr; in ChannelParse() 283 delete cstr; in ChannelParse() 291 cstr = to_lowercase(cstrbuf); in ChannelParse() 292 if ((strcmp(cstr, "mono") == 0) || in ChannelParse() 293 (strcmp(cstr, "monaural") == 0) || in ChannelParse() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/ |
H A D | asppp2pppd | 734 local (@ifconfiglist,$cstr,$etherif,$intf,$ifconf,$addstr,$port); 745 $cstr = ""; 750 $cstr .= "ifconfig $etherif addif @$ifconf\n"; 784 $cstr .= $addstr; 798 $scriptfiles{$pppdir . "ifconfig"} = $cstr if $cstr; 1258 local ($cstr) = ""; 1259 $cstr .= shift(@$opts) . "\n" while @$opts; 1260 $optfiles{$file} = $cstr; 1264 local(@triplet, $cstr); 1272 $cstr .= $triplet[0]; [all …]
|
/illumos-gate/usr/src/lib/libdemangle/common/ |
H A D | str.c | 63 str_set(str_t *s, const char *cstr, size_t len) in str_set() argument 69 s->str_s = (char *)cstr; in str_set() 70 s->str_len = (len == 0 && cstr != NULL) ? strlen(cstr) : len; in str_set() 132 str_append(str_t *s, const char *cstr, size_t cstrlen) in str_append() argument 134 if (cstr != NULL && cstrlen == 0) in str_append() 135 cstrlen = strlen(cstr); in str_append() 138 .str_s = (char *)cstr, in str_append() 178 str_insert(str_t *s, size_t idx, const char *cstr, size_t cstrlen) in str_insert() argument 180 if (cstr == NULL) in str_insert() 184 cstrlen = strlen(cstr); in str_insert() [all …]
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/ |
H A D | fcal_leds.h | 221 typedef const char *cstr; typedef 243 cstr fcal_leds; /* path name of leds board */ 244 cstr fcal_status; /* path of back-plane status board */ 245 cstr fcal_driver; /* name of fcal disk driver */ 267 cstr fcal_disk_parent; /* search string for /platform */ 268 cstr disk_unit_parent; /* search template for disk-slots */ 269 cstr disk_led_nodes; /* search template for disk-leds */ 276 cstr tok_str;
|
H A D | fc_led_parse.c | 41 static int get_cstr(str *p_str, cstr *p_cstr_res); 191 get_cstr(str *p_str, cstr *p_cstr_res) in get_cstr()
|
/illumos-gate/usr/src/uts/intel/os/ |
H A D | cpr_intel.c | 49 static char cstr[] = "\014" "\033[1P" "\033[18;21H"; in cpr_send_notice() local 51 prom_printf(cstr); in cpr_send_notice() 69 static char cstr[] = "\014" "\033[1P" "\033[18;21H"; in cpr_resume_notice() local 71 prom_printf(cstr); in cpr_resume_notice()
|
/illumos-gate/usr/src/cmd/fm/modules/common/disk-monitor/ |
H A D | topo_gather.c | 197 char *cstr = NULL; in fmri2ptr() local 204 if (topo_fmri_nvl2str(thp, fmri, &cstr, err) != 0) { in fmri2ptr() 209 if (nvlist_lookup_uint64(g_topo2diskmon, cstr, &u64val) == 0) { in fmri2ptr() 216 *str = dstrdup(cstr); in fmri2ptr() 217 topo_hdl_strfree(thp, cstr); in fmri2ptr() 481 char *cstr = NULL; in topo_add_bay() local 499 if ((p = fmri2ptr(thp, node, &cstr, &err)) != NULL) { in topo_add_bay() 516 wdp->pfmri = cstr; in topo_add_bay() 532 if (cstr) in topo_add_bay() 533 dstrfree(cstr); in topo_add_bay() [all …]
|
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_util.c | 363 char *cstr = access_list, *gr = access_list; in smb_chk_hostaccess() local 416 if ((cstr = strpbrk(cstr, "[]:")) != NULL) { in smb_chk_hostaccess() 417 switch (*cstr) { in smb_chk_hostaccess() 421 cstr++; in smb_chk_hostaccess() 425 cstr++; in smb_chk_hostaccess() 428 *cstr = '\0'; in smb_chk_hostaccess() 469 if (cstr == NULL) in smb_chk_hostaccess() 472 gr = ++cstr; in smb_chk_hostaccess() 482 if (cstr == NULL) in smb_chk_hostaccess() 485 gr = ++cstr; in smb_chk_hostaccess() [all …]
|
/illumos-gate/usr/src/cmd/eqn/ |
H A D | lex.c | 194 cstr(char *s, int quote, int maxs) in cstr() function 232 (void) cstr(token, 1, SSIZE); /* skip the definition too */ in define() 236 if (cstr(token, 1, SSIZE)) in define() 280 if (cstr(token, 0, SSIZE)) in delim()
|
/illumos-gate/usr/src/test/libc-tests/tests/ |
H A D | strcoll-strxfrm-6907.c | 37 } cstr; typedef 42 cstr data[NSTRINGS]; in main()
|
/illumos-gate/usr/src/cmd/fmtmsg/ |
H A D | main.c | 528 char *cstr; /* Ptr to -c (class) arg */ in main() local 603 cstr = optarg; in main() 674 (strcmp(cstr, class_info->keyword)) ; in main() 680 "Invalid class: %s", cstr); in main()
|
/illumos-gate/usr/src/uts/sparc/os/ |
H A D | cpr_sparc.c | 321 static char cstr[] = "\014" "\033[1P" "\033[18;21H"; in cpr_send_notice() local 323 prom_printf(cstr); in cpr_send_notice() 341 static char cstr[] = "\014" "\033[1P" "\033[18;21H"; in cpr_resume_notice() local 343 prom_printf(cstr); in cpr_resume_notice()
|
/illumos-gate/usr/src/cmd/nscd/ |
H A D | nscd_nswconfig.c | 310 char *cstr; in _nscd_create_sw_struct() local 312 cstr = strdup(cfgstr); in _nscd_create_sw_struct() 313 if (cstr == NULL) in _nscd_create_sw_struct() 320 swcfg = _nsw_getoneconfig_v1(dbn, cstr, &err); in _nscd_create_sw_struct() 321 free(cstr); in _nscd_create_sw_struct()
|
/illumos-gate/usr/src/lib/libnisdb/yptol/ |
H A D | dit_access_utils.c | 795 char *str, *cstr, commentSep[3] = {' ', 0, 0}; in ruleValueToDatum() local 820 cstr = (char *)val->val->value + val->val->length; in ruleValueToDatum() 821 for (; cstr >= (char *)val->val->value && in ruleValueToDatum() 822 (*cstr == ' ' || *cstr == '\t'); *cstr-- = '\0'); in ruleValueToDatum() 828 cstr = scat(myself, F, commentSep, str); in ruleValueToDatum() 829 if (cstr) { in ruleValueToDatum() 831 val->val->value, cstr); in ruleValueToDatum() 832 sfree(cstr); in ruleValueToDatum()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/ |
H A D | pppoe.c | 312 const char *cstr; in handle_pppoe_input() local 358 if ((cstr = script_getenv("IF_AND_SERVICE")) == NULL || in handle_pppoe_input() 359 (str = strdup(cstr)) == NULL) { in handle_pppoe_input()
|
/illumos-gate/usr/src/contrib/mDNSResponder/mDNSCore/ |
H A D | DNSCommon.c | 638 mDNSexport mDNSu8 *AppendLiteralLabelString(domainname *const name, const char *cstr) in AppendLiteralLabelString() argument 646 while (*cstr && ptr < lim) *ptr++ = (mDNSu8)*cstr++; // Copy the data in AppendLiteralLabelString() 649 …if (*cstr) return(mDNSNULL); // Failure: We didn't successfully consume… in AppendLiteralLabelString() 662 const char *cstr = cstring; in AppendDNSNameString() local 665 …while (*cstr && ptr < lim) // While more characters, and spac… in AppendDNSNameString() 668 …if (*cstr == '.') { LogMsg("AppendDNSNameString: Illegal empty label in name \"%s\"", cstring); re… in AppendDNSNameString() 669 …while (*cstr && *cstr != '.' && ptr < lim) // While we have characters in the lab… in AppendDNSNameString() 671 mDNSu8 c = (mDNSu8)*cstr++; // Read the character in AppendDNSNameString() 674 …if (*cstr == '\0') break; // If this is the end of the string, then break in AppendDNSNameString() 675 … c = (mDNSu8)*cstr++; // Assume we'll just take the next character in AppendDNSNameString() [all …]
|
/illumos-gate/usr/src/lib/libxcurses/h/ |
H A D | collate.h | 77 struct _m_cstr *cstr; /* Pointer to collating strs */ member
|
/illumos-gate/usr/src/cmd/fs.d/nfs/mountd/ |
H A D | mountd.c | 1929 char *cstr = access_list; in in_access_list() local 1945 if ((cstr = strpbrk(cstr, "[:")) != NULL) { in in_access_list() 1946 if (*cstr == ':') { in in_access_list() 1947 *cstr = '\0'; in in_access_list() 1949 assert(*cstr == '['); in in_access_list() 1950 cstr = strchr(cstr + 1, ']'); in in_access_list() 1951 if (cstr == NULL) in in_access_list() 1953 cstr++; in in_access_list() 2057 if (cstr == NULL) in in_access_list() 2060 gr = ++cstr; in in_access_list()
|
/illumos-gate/usr/src/psm/stand/cpr/sparcv9/sun4u/ |
H A D | cprboot.c | 92 static char cstr[] = "\014" "\033[1P" "\033[18;21H"; in cb_intro() local 107 prom_printf(cstr); in cb_intro()
|
/illumos-gate/usr/src/lib/cfgadm_plugins/usb/common/ |
H A D | cfga_configfile.c | 644 char *ustr, *cstr; in usb_cmp_rec() local 673 cstr = strrchr(cfg_rec->pathname, '/'); in usb_cmp_rec() 677 cstr - cfg_rec->pathname)) == 0); in usb_cmp_rec()
|
/illumos-gate/usr/src/lib/libdtrace_jni/common/ |
H A D | dtj_util.c | 921 const char *cstr; in dtj_print_object() local 940 cstr = (*jenv)->GetStringUTFChars(jenv, jstr, 0); in dtj_print_object() 941 if (cstr) { in dtj_print_object() 942 (void) printf("%s\n", cstr); in dtj_print_object() 948 (*jenv)->ReleaseStringUTFChars(jenv, jstr, cstr); in dtj_print_object()
|
/illumos-gate/usr/src/cmd/acct/ |
H A D | acctcom.c | 610 cmatch(char *comm, char *cstr) in cmatch() argument 623 return (regex(cstr,xcomm) ? 1 : 0); in cmatch()
|