| /src/contrib/llvm-project/llvm/lib/Support/ |
| H A D | ARMAttributeParser.cpp | 116 static const char *strings[] = {"Not Permitted", "Permitted"}; in ARM_ISA_use() local 117 return parseStringAttribute("ARM_ISA_use", tag, ArrayRef(strings)); in ARM_ISA_use() 121 static const char *strings[] = {"Not Permitted", "Thumb-1", "Thumb-2", "Permitted"}; in THUMB_ISA_use() local 122 return parseStringAttribute("THUMB_ISA_use", tag, ArrayRef(strings)); in THUMB_ISA_use() 126 static const char *strings[] = { in FP_arch() local 129 return parseStringAttribute("FP_arch", tag, ArrayRef(strings)); in FP_arch() 133 static const char *strings[] = {"Not Permitted", "WMMXv1", "WMMXv2"}; in WMMX_arch() local 134 return parseStringAttribute("WMMX_arch", tag, ArrayRef(strings)); in WMMX_arch() 138 static const char *strings[] = {"Not Permitted", "NEONv1", "NEONv2+FMA", in Advanced_SIMD_arch() local 140 return parseStringAttribute("Advanced_SIMD_arch", tag, ArrayRef(strings)); in Advanced_SIMD_arch() [all …]
|
| H A D | CSKYAttributeParser.cpp | 85 static const char *strings[] = {"Error", "DSP Extension", "DSP 2.0"}; in dspVersion() local 86 return parseStringAttribute("Tag_CSKY_DSP_VERSION", tag, ArrayRef(strings)); in dspVersion() 90 static const char *strings[] = {"Error", "VDSP Version 1", "VDSP Version 2"}; in vdspVersion() local 91 return parseStringAttribute("Tag_CSKY_VDSP_VERSION", tag, ArrayRef(strings)); in vdspVersion() 95 static const char *strings[] = {"Error", "FPU Version 1", "FPU Version 2", in fpuVersion() local 97 return parseStringAttribute("Tag_CSKY_FPU_VERSION", tag, ArrayRef(strings)); in fpuVersion() 101 static const char *strings[] = {"Error", "Soft", "SoftFP", "Hard"}; in fpuABI() local 102 return parseStringAttribute("Tag_CSKY_FPU_ABI", tag, ArrayRef(strings)); in fpuABI() 106 static const char *strings[] = {"None", "Needed"}; in fpuRounding() local 107 return parseStringAttribute("Tag_CSKY_FPU_ROUNDING", tag, ArrayRef(strings)); in fpuRounding() [all …]
|
| /src/contrib/pam-krb5/pam-util/ |
| H A D | vector.c | 52 vector->strings = calloc(1, sizeof(char *)); in vector_new() 74 vector->strings[i] = strdup(old->strings[i]); in vector_copy() 75 if (vector->strings[i] == NULL) { in vector_copy() 92 char **strings; in vector_resize() local 96 free(vector->strings[i]); in vector_resize() 101 strings = reallocarray(vector->strings, size, sizeof(char *)); in vector_resize() 102 if (strings == NULL) in vector_resize() 104 vector->strings = strings; in vector_resize() 124 vector->strings[next] = strdup(string); in vector_add() 125 if (vector->strings[next] == NULL) in vector_add() [all …]
|
| /src/crypto/heimdal/kadmin/ |
| H A D | mod.c | 60 struct getarg_strings *strings) in add_constrained_delegation() argument 71 if (strings->num_strings == 1 && strings->strings[0][0] == '\0') { in add_constrained_delegation() 79 calloc(strings->num_strings, in add_constrained_delegation() 81 ext.data.u.allowed_to_delegate_to.len = strings->num_strings; in add_constrained_delegation() 83 for (i = 0; i < strings->num_strings; i++) { in add_constrained_delegation() 84 ret = krb5_parse_name(contextp, strings->strings[i], &p); in add_constrained_delegation() 107 struct getarg_strings *strings) in add_aliases() argument 121 if (strings->num_strings == 1 && strings->strings[0][0] == '\0') { in add_aliases() 126 calloc(strings->num_strings, in add_aliases() 128 ext.data.u.aliases.aliases.len = strings->num_strings; in add_aliases() [all …]
|
| /src/contrib/pam-krb5/tests/pam-util/ |
| H A D | vector-t.c | 48 ok(vector->strings[0] != cstring, "...and allocated new memory"); in main() 56 is_string(cstring, vector->strings[0], "added the right string"); in main() 57 is_string(cstring, vector->strings[1], "added the right string"); in main() 58 is_string(cstring, vector->strings[2], "added the right string"); in main() 59 is_string(cstring, vector->strings[3], "added the right string"); in main() 60 ok(vector->strings[1] != vector->strings[2], "each pointer is different"); in main() 61 ok(vector->strings[2] != vector->strings[3], "each pointer is different"); in main() 62 ok(vector->strings[3] != vector->strings[0], "each pointer is different"); in main() 63 ok(vector->strings[0] != cstring, "each pointer is different"); in main() 71 is_string(cstring, copy->strings[i], "...and string %lu is right", in main() [all …]
|
| H A D | options-t.c | 203 is_string("stanford.edu", args->config->cells->strings[0], in main() 205 is_string("ir.stanford.edu", args->config->cells->strings[1], in main() 235 is_string("foo.com", args->config->cells->strings[0], in main() 237 is_string("bar.com", args->config->cells->strings[1], in main() 248 is_string("stanford.edu", args->config->cells->strings[0], in main() 250 is_string("ir.stanford.edu", args->config->cells->strings[1], in main() 258 is_string("foo.com", cells->strings[0], "...first cell after parse"); in main() 259 is_string("bar.com", cells->strings[1], "...second cell after parse"); in main() 263 is_string("foo.com", cells->strings[0], "...first cell after free"); in main() 264 is_string("bar.com", cells->strings[1], "...second cell after free"); in main() [all …]
|
| /src/crypto/openssl/test/recipes/ |
| H A D | 02-test_errstr.t | 113 my @strings = @_; 118 if (scalar @strings > 1) { 120 . join("', '", @strings) . "' )"; 122 $desc = "match '$first' ($desc) with '$strings[0]'"; 127 @strings 134 my @strings = @_; 143 return match_any($reason, $errcode_hex, @strings); 149 my @strings = (); 151 push @strings, eval { 159 push @strings, qr/^non-translatable vms error code:/ if $^O eq 'VMS'; [all …]
|
| /src/crypto/heimdal/lib/roken/ |
| H A D | getusershell.c | 78 static char **curshell, **shells, *strings; variable 103 if (strings != NULL) in endusershell() 104 free(strings); in endusershell() 105 strings = NULL; in endusershell() 129 free(strings); in initshells() 130 strings = NULL; in initshells() 141 strings = malloc(cp - tmp); in initshells() 142 if(strings == NULL) { in initshells() 147 memcpy(strings, tmp, cp - tmp); in initshells() 148 for(sp = shells, cp = strings; *cp; cp += strlen(cp) + 1, sp++) in initshells() [all …]
|
| /src/crypto/krb5/src/lib/kdb/ |
| H A D | t_stringattr.c | 45 krb5_string_attr *strings; in main() local 59 assert(krb5_dbe_get_strings(context, ent, &strings, &count) == 0); in main() 60 assert(strings == NULL && count == 0); in main() 61 krb5_dbe_free_strings(context, strings, count); in main() 84 assert(krb5_dbe_get_strings(context, ent, &strings, &count) == 0); in main() 86 assert(strcmp(strings[0].key, "price") == 0); in main() 87 assert(strcmp(strings[0].value, "right") == 0); in main() 88 assert(strcmp(strings[1].key, "time") == 0); in main() 89 assert(strcmp(strings[1].value, "flies") == 0); in main() 90 krb5_dbe_free_strings(context, strings, count); in main()
|
| /src/sbin/ifconfig/ |
| H A D | sfp.c | 58 struct ifconfig_sfp_info_strings strings; in sfp_status() local 67 ifconfig_sfp_get_sfp_info_strings(&info, &strings); in sfp_status() 71 ifconfig_sfp_physical_spec(&info, &strings), in sfp_status() 72 strings.sfp_conn); in sfp_status() 82 printf("\tcompliance level: %s\n", strings.sfp_rev); in sfp_status() 86 ifconfig_sfp_physical_spec(&info, &strings)); in sfp_status() 87 printf("Length: %s\n", strings.sfp_fc_len); in sfp_status() 88 printf("Tech: %s\n", strings.sfp_cab_tech); in sfp_status() 89 printf("Media: %s\n", strings.sfp_fc_media); in sfp_status() 90 printf("Speed: %s\n", strings.sfp_fc_speed); in sfp_status()
|
| /src/contrib/netbsd-tests/lib/libexecinfo/ |
| H A D | t_backtrace.c | 71 char **strings; in myfunc3() local 82 strings = backtrace_symbols_fmt(buffer, nptrs, "%n"); in myfunc3() 84 ATF_CHECK(strings != NULL); in myfunc3() 90 printf("#%zu: %s\n", j, strings[j]); in myfunc3() 95 ATF_CHECK_STREQ(strings[0], "myfunc3"); in myfunc3() 96 ATF_CHECK_STREQ(strings[1], "myfunc2"); in myfunc3() 99 ATF_CHECK_STREQ(strings[j], "myfunc1"); in myfunc3() 103 strcmp(strings[j], frames[i].name)) { in myfunc3() 107 ATF_CHECK_STREQ(strings[j], frames[i].name); in myfunc3() 110 free(strings); in myfunc3()
|
| /src/crypto/krb5/src/kdc/ |
| H A D | authind.c | 84 krb5_data der_indicators, **strings = NULL, **list = *indicators; in authind_extract() local 96 ret = decode_utf8_strings(&der_indicators, &strings); in authind_extract() 103 for (scount = 0; strings != NULL && strings[scount] != NULL; scount++); in authind_extract() 112 memcpy(list + count, strings, scount * sizeof(*strings)); in authind_extract() 115 free(strings); in authind_extract() 116 strings = NULL; in authind_extract() 121 k5_free_data_ptr_list(strings); in authind_extract()
|
| /src/usr.bin/xstr/ |
| H A D | xstr.c | 58 static char *strings = cstrings; variable 112 strings = strdup(_PATH_TMP); in main() 113 if (strings == NULL) in main() 115 fdesc = mkstemp(strings); in main() 135 if (strings[0] == '/') in main() 136 ignore(unlink(strings)); in main() 287 FILE *mesgread = fopen(strings, "r"); in inithash() 370 mesgwrit = fopen(strings, old ? "r+" : "w"); in flushsh() 372 err(4, "%s", strings); in flushsh() 380 err(4, "%s", strings); in flushsh() [all …]
|
| /src/sbin/ipf/libipf/ |
| H A D | save_file.c | 30 file_parse(char **strings) in file_parse() argument 38 if (strings[0] != NULL && strings[0][0] != '\0') { in file_parse() 40 if (!strncmp(strings[0], "raw://", 6)) { in file_parse() 42 ctx->path = strdup(strings[0] + 6); in file_parse() 44 } else if (!strncmp(strings[0], "file://", 7)) { in file_parse() 45 ctx->path = strdup(strings[0] + 7); in file_parse()
|
| H A D | save_execute.c | 25 execute_parse(char **strings) in execute_parse() argument 31 if (ctx != NULL && strings[0] != NULL && strings[0][0] != '\0') { in execute_parse() 32 ctx->path = strdup(strings[0]); in execute_parse()
|
| /src/contrib/kyua/utils/text/ |
| H A D | operations.ipp | 39 /// Concatenates a collection of strings into a single string. 41 /// \param strings The collection of strings to concatenate. If the collection 43 /// \param delimiter The delimiter to use to separate the strings. 45 /// \return The concatenated strings. 48 utils::text::join(const Collection& strings, const std::string& delimiter) 51 if (strings.size() > 1) { 52 for (typename Collection::const_iterator iter = strings.begin(); 53 iter != --strings.end(); ++iter) 56 if (strings.size() > 0) 57 output << *(--strings.end());
|
| /src/crypto/heimdal/appl/gssmask/ |
| H A D | common.c | 83 permutate_all(struct getarg_strings *strings, size_t *size) in permutate_all() argument 90 list = ecalloc(strings->num_strings, sizeof(*list)); in permutate_all() 91 for (i = 0; i < strings->num_strings; i++) in permutate_all() 92 list[i] = strings->strings[i]; in permutate_all() 94 permute(&all, size, list, 0, strings->num_strings); in permutate_all()
|
| /src/contrib/ncurses/ncurses/tinfo/ |
| H A D | MKcaptab.sh | 86 next_string(const char *strings, unsigned *offset) 88 *offset += (unsigned) strlen(strings + *offset) + 1; 94 const char *strings) 102 (*actual)[n].nte_name = strings + len; 106 next_string(strings, &len); 115 (*actual)[n].field = strings + source[n].field; \\ 121 const char *strings,
|
| H A D | MKuserdefs.sh | 62 next_string(const char *strings, unsigned *offset) 64 *offset += (unsigned) strlen(strings + *offset) + 1; 70 const char *strings) 78 (*actual)[n].ute_name = strings + len; 84 next_string(strings, &len);
|
| /src/contrib/llvm-project/lldb/source/API/ |
| H A D | SBStringList.cpp | 87 void SBStringList::AppendList(const SBStringList &strings) { in AppendList() argument 88 LLDB_INSTRUMENT_VA(this, strings); in AppendList() 90 if (strings.IsValid()) { in AppendList() 93 m_opaque_up->AppendList(*(strings.m_opaque_up)); in AppendList() 97 void SBStringList::AppendList(const StringList &strings) { in AppendList() argument 100 m_opaque_up->AppendList(strings); in AppendList()
|
| /src/crypto/heimdal/lib/hx509/ |
| H A D | hxtool-commands.in | 41 type = "strings" 54 type = "strings" 60 type = "strings" 66 type = "strings" 72 type = "strings" 127 type = "strings" 134 type = "strings" 140 type = "strings" 184 type = "strings" 190 type = "strings" [all …]
|
| /src/crypto/openssl/util/ |
| H A D | mkerr.pl | 141 my %strings; # define -> text 201 die "Duplicate define $name" if exists $strings{$name}; 202 $strings{$name} = $next; 206 die "Duplicate define $name" if exists $strings{$name}; 207 $strings{$name} = $3; 561 if ( exists $strings{$i} ) { 562 $rn = $strings{$i}; 568 $strings{$i} = $rn; 690 my $t = exists $strings{$i} ? "$strings{$i}" : "";
|
| /src/lib/libifconfig/ |
| H A D | libifconfig_sfp.c | 515 struct ifconfig_sfp_info_strings *strings) in ifconfig_sfp_get_sfp_info_strings() argument 517 get_sfp_info_strings(sfp, strings); in ifconfig_sfp_get_sfp_info_strings() 518 if (strings->sfp_id == NULL) in ifconfig_sfp_get_sfp_info_strings() 519 strings->sfp_id = sfp_id_string_alt(sfp->sfp_id); in ifconfig_sfp_get_sfp_info_strings() 520 if (strings->sfp_conn == NULL) in ifconfig_sfp_get_sfp_info_strings() 521 strings->sfp_conn = sfp_conn_string_alt(sfp->sfp_conn); in ifconfig_sfp_get_sfp_info_strings() 522 if (strings->sfp_rev == NULL) in ifconfig_sfp_get_sfp_info_strings() 523 strings->sfp_rev = "Unallocated"; in ifconfig_sfp_get_sfp_info_strings() 528 const struct ifconfig_sfp_info_strings *strings) in ifconfig_sfp_physical_spec() argument 537 return (strings->sfp_eth_ext); in ifconfig_sfp_physical_spec() [all …]
|
| /src/crypto/heimdal/lib/kadm5/ |
| H A D | sample_passwd_check.c | 75 char *strings[2]; in check_cracklib() local 78 strings[0] = principal->name.name_string.val[0]; /* XXX */ in check_cracklib() 79 strings[1] = NULL; in check_cracklib() 82 msg = FascistCheck(s, DICTPATH, strings); in check_cracklib()
|
| /src/crypto/openssl/doc/man3/ |
| H A D | UI_STRING.pod | 67 This is only useful for B<UIT_PROMPT> and B<UIT_VERIFY> type strings. 73 This is only useful for B<UIT_VERIFY> type strings. 78 This is only useful for B<UIT_PROMPT> and B<UIT_VERIFY> type strings. 82 For B<UIT_PROMPT> and B<UIT_VERIFY> type UI strings, this sets the 86 For B<UIT_BOOLEAN> type UI strings, this sets the first character of 98 only useful with normal C strings. 109 string for B<UIT_BOOLEAN> type UI strings, NULL for any other type. 112 B<UIT_PROMPT> and B<UIT_VERIFY> type UI strings, NULL for any other 116 content length for B<UIT_PROMPT> and B<UIT_VERIFY> type UI strings, 120 string for B<UIT_VERIFY> type UI strings, NULL for any other type. [all …]
|