/freebsd/lib/libnv/tests/ |
H A D | nvlist_send_recv_test.c | 100 const char *name, *cname; in send_nvlist_parent() local 227 cname = nvlist_next(cnvl, &ctype, &ccookie); in send_nvlist_parent() 228 ATF_REQUIRE(cname != NULL); in send_nvlist_parent() 230 ATF_REQUIRE(strcmp(cname, "nvlist/bool/true") == 0); in send_nvlist_parent() 231 ATF_REQUIRE(nvlist_get_bool(cnvl, cname) == true); in send_nvlist_parent() 233 cname = nvlist_next(cnvl, &ctype, &ccookie); in send_nvlist_parent() 234 ATF_REQUIRE(cname != NULL); in send_nvlist_parent() 236 ATF_REQUIRE(strcmp(cname, "nvlist/bool/false") == 0); in send_nvlist_parent() 237 ATF_REQUIRE(nvlist_get_bool(cnvl, cname) == false); in send_nvlist_parent() 239 cname = nvlist_next(cnvl, &ctype, &ccookie); in send_nvlist_parent() [all …]
|
/freebsd/bin/chio/ |
H A D | chio.c | 172 do_move(const char *cname, int argc, char **argv) in do_move() argument 188 warnx("%s: too few arguments", cname); in do_move() 191 warnx("%s: too many arguments", cname); in do_move() 216 cname); in do_move() 232 cname, *argv); in do_move() 245 "<from ET> <from EU> <to ET> <to EU> [inv]\n", getprogname(), cname); in do_move() 250 do_exchange(const char *cname, int argc, char **argv) in do_exchange() argument 266 warnx("%s: too few arguments", cname); in do_exchange() 269 warnx("%s: too many arguments", cname); in do_exchange() 317 cname, *argv); in do_exchange() [all …]
|
/freebsd/contrib/nvi/common/ |
H A D | key.c | 187 for (p = gp->cname[ch].name, t = v_key_name(sp, ch), in v_key_ilookup() 188 len = gp->cname[ch].len = sp->clen; len--;) in v_key_ilookup() 230 return (sp->cname); in v_key_name() 234 len = wctomb(sp->cname, ach); in v_key_name() 237 sp->cname[(len = 1)-1] = (u_char)ach; in v_key_name() 239 ch = (u_char)sp->cname[0]; in v_key_name() 240 sp->cname[len] = '\0'; in v_key_name() 244 if (strstr(chp, sp->cname) != NULL) in v_key_name() 247 if (strstr(chp, sp->cname) != NULL) in v_key_name() 274 len = strlcpy(sp->cname, notation, sizeof(sp->cname)); in v_key_name() [all …]
|
H A D | gs.h | 114 sp->gp->cname[(unsigned char)ch].len : v_key_len(sp, ch)) 117 sp->gp->cname[(unsigned char)ch].name : v_key_name(sp, ch)) 121 } cname[MAX_FAST_KEY + 1]; /* Fast lookup table. */ member
|
/freebsd/crypto/openssl/include/crypto/ |
H A D | evp.h | 360 #define BLOCK_CIPHER_func_ecb(cname, cprefix, kstruct, ksched) \ argument 361 static int cname##_ecb_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, siz… 370 #define BLOCK_CIPHER_func_ofb(cname, cprefix, cbits, kstruct, ksched) \ argument 371 …static int cname##_ofb_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, si… 389 #define BLOCK_CIPHER_func_cbc(cname, cprefix, kstruct, ksched) \ argument 390 static int cname##_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, siz… 404 #define BLOCK_CIPHER_func_cfb(cname, cprefix, cbits, kstruct, ksched) \ argument 405 static int cname##_cfb##cbits##_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char… 428 #define BLOCK_CIPHER_all_funcs(cname, cprefix, cbits, kstruct, ksched) \ argument 429 BLOCK_CIPHER_func_cbc(cname, cprefix, kstruct, ksched) \ [all …]
|
/freebsd/sys/arm64/nvidia/tegra210/ |
H A D | tegra210_car.c | 65 #define MUX(_id, cname, plists, o, s, w) \ argument 68 .clkdef.name = cname, \ 78 #define DIV7_1(_id, cname, plist, o, s) \ argument 81 .clkdef.name = cname, \ 93 #define DIV(_id, cname, plist, o, s, w, f) \ argument 96 .clkdef.name = cname, \ 107 #define GATE_PLL(_id, cname, plist, o, s) \ argument 110 .clkdef.name = cname, \ 122 #define GATE(_id, cname, plist, o, s) \ argument 125 .clkdef.name = cname, \ [all …]
|
H A D | tegra210_clk_pll.c | 144 #define PLL(_id, cname, pname) \ argument 146 .clkdef.name = cname, \ 152 #define MUX(_id, cname, plists, o, s, w) \ argument 155 .clkdef.name = cname, \ 165 #define DIV7_1(_id, cname, plist, o, s) \ argument 168 .clkdef.name = cname, \ 180 #define DIV5_E(_id, cname, plist, o, s) \ argument 183 .clkdef.name = cname, \ 193 #define DIV_TB(_id, cname, plist, o, s, n, table) \ argument 196 .clkdef.name = cname, \ [all …]
|
/freebsd/tests/sys/opencrypto/ |
H A D | cryptotest.py | 55 def GenTestCase(cname): argument 57 crid = cryptodev.Crypto.findcrid(cname) 65 @unittest.skipIf(cname not in aesmodules, 'skipping AES-XTS on %s' % (cname)) 70 @unittest.skipIf(cname not in aesmodules, 'skipping AES-CBC on %s' % (cname)) 75 @unittest.skipIf(cname not in aesmodules, 'skipping AES-CCM on %s' % (cname)) 83 @unittest.skipIf(cname not in aesmodules, 'skipping AES-GCM on %s' % (cname)) 276 repr(data) + " on " + cname) 324 " on " + cname) 329 @unittest.skipIf(cname not in shamodules, 'skipping SHA on %s' % str(cname)) 381 repr(binascii.hexlify(r)) + " Expected: " + repr(data) + " on " + cname) [all …]
|
/freebsd/sys/arm/nvidia/tegra124/ |
H A D | tegra124_car.c | 64 #define MUX(_id, cname, plists, o, s, w) \ argument 67 .clkdef.name = cname, \ 77 #define DIV7_1(_id, cname, plist, o, s) \ argument 80 .clkdef.name = cname, \ 92 #define DIV(_id, cname, plist, o, s, w, f) \ argument 95 .clkdef.name = cname, \ 106 #define GATE_PLL(_id, cname, plist, o, s) \ argument 109 .clkdef.name = cname, \ 121 #define GATE(_id, cname, plist, o, s) \ argument 124 .clkdef.name = cname, \ [all …]
|
/freebsd/crypto/openssl/apps/ |
H A D | CA.pl.in | 187 my $cname = $ARGV[0]; 188 $cname = "My Certificate" unless defined $cname; 191 . " -export -name \"$cname\" $EXTRA{pkcs12}"); 221 my $cname = $ARGV[0]; 222 if (!defined $cname) { 229 $RET = run("$CA -revoke \"$cname\"" . $reason . $EXTRA{ca});
|
/freebsd/sys/contrib/openzfs/scripts/ |
H A D | update_authors.pl | 200 my $cname = $display_name{$name}; 202 say $fh " $cname <$cemail>"; 246 my $cname = $display_name{$sname}; 247 if (!$cname || 248 ($name =~ tr/a-z //) < ($cname =~ tr/a-z //)) {
|
/freebsd/contrib/bearssl/tools/ |
H A D | ta.c | 128 const char *cname; in print_ta() local 142 cname = curve_to_sym(ta->pkey.key.ec.curve); in print_ta() 143 if (cname == NULL) { in print_ta() 145 cname = tmp; in print_ta() 147 printf("\t\t\t\t%s,\n", cname); in print_ta()
|
/freebsd/contrib/bearssl/test/ |
H A D | test_speed.c | 31 #define HASH_SIZE(cname) br_ ## cname ## _SIZE argument 33 #define SPEED_HASH(Name, cname) \ argument 35 test_speed_ ## cname(void) \ 38 unsigned char tmp[HASH_SIZE(cname)]; \ 39 br_ ## cname ## _context mc; \ 45 br_ ## cname ## _init(&mc); \ 46 br_ ## cname ## _update(&mc, buf, sizeof buf); \ 47 br_ ## cname ## _out(&mc, tmp); \ 55 br_ ## cname ## _init(&mc); \ 58 br_ ## cname ## _update(&mc, buf, sizeof buf); \ [all …]
|
H A D | test_crypto.c | 89 #define HASH_SIZE(cname) br_ ## cname ## _SIZE argument 91 #define TEST_HASH(Name, cname) \ argument 93 test_ ## cname ## _internal(char *data, char *refres) \ 95 br_ ## cname ## _context mc; \ 96 unsigned char res[HASH_SIZE(cname)], ref[HASH_SIZE(cname)]; \ 101 br_ ## cname ## _init(&mc); \ 102 br_ ## cname ## _update(&mc, data, n); \ 103 br_ ## cname ## _out(&mc, res); \ 104 check_equals("KAT " #Name " 1", res, ref, HASH_SIZE(cname)); \ 105 br_ ## cname ## _init(&mc); \ [all …]
|
/freebsd/crypto/heimdal/lib/sl/ |
H A D | slc-gram.y | 691 char cname[PATH_MAX]; variable 761 strlcpy(cname, p + 1, sizeof(cname)); in main() 763 strlcpy(cname, filename, sizeof(cname)); in main() 764 p = strrchr(cname, '.'); in main() 767 strlcpy(hname, cname, sizeof(hname)); in main() 768 strlcat(cname, ".c", sizeof(cname)); in main() 774 cfile = fopen(cname, "w"); in main() 776 err(1, "%s", cname); in main()
|
H A D | slc-gram.c | 2200 char cname[PATH_MAX]; variable 2270 strlcpy(cname, p + 1, sizeof(cname)); in main() 2272 strlcpy(cname, filename, sizeof(cname)); in main() 2273 p = strrchr(cname, '.'); in main() 2276 strlcpy(hname, cname, sizeof(hname)); in main() 2277 strlcat(cname, ".c", sizeof(cname)); in main() 2283 cfile = fopen(cname, "w"); in main() 2285 err(1, "%s", cname); in main()
|
/freebsd/sys/arm64/qoriq/clk/ |
H A D | lx2160a_clkgen.c | 49 #define PLL(_id1, _id2, cname, o, d) \ argument 52 .clkdef.name = cname, \ 117 #define MUX(_id1, _id2, cname, plist, o) \ argument 120 .clkdef.name = cname, \
|
/freebsd/contrib/ldns/drill/ |
H A D | chasetrace.c | 157 ldns_rr_list *cname = NULL; in do_trace() local 268 cname = ldns_pkt_rr_list_by_type( in do_trace() 272 if (ldns_rr_list_rr_count(cname) == 0) in do_trace() 276 ldns_rr_list_print(stdout, cname); in do_trace() 279 name = ldns_rr_rdf(ldns_rr_list_rr(cname, 0), 0); in do_trace() 280 ldns_rr_list_free(cname); in do_trace() 281 cname = NULL; in do_trace()
|
/freebsd/sys/contrib/openzfs/lib/libzpool/ |
H A D | util.c | 116 const char *cname = NULL; in show_vdev_stats() local 120 if (nvlist_lookup_string(cnv, ZPOOL_CONFIG_PATH, &cname) && in show_vdev_stats() 121 nvlist_lookup_string(cnv, ZPOOL_CONFIG_TYPE, &cname)) in show_vdev_stats() 122 cname = "<unknown>"; in show_vdev_stats() 123 len = strlen(cname) + 2; in show_vdev_stats() 125 (void) strlcpy(tname, cname, len); in show_vdev_stats()
|
/freebsd/usr.bin/netstat/ |
H A D | ipsec.c | 222 const struct val2str *name, const char *title, const char *cname) in ipsec_hist_new() argument 233 xo_open_list(cname); in ipsec_hist_new() 237 xo_open_instance(cname); in ipsec_hist_new() 249 xo_close_instance(cname); in ipsec_hist_new() 252 xo_close_list(cname); in ipsec_hist_new()
|
/freebsd/crypto/heimdal/kdc/ |
H A D | kx509.c | 301 char *cname = NULL; in _kdc_do_kx509() local 337 ret = krb5_unparse_name(context, cprincipal, &cname); in _kdc_do_kx509() 373 cname, expected, used); in _kdc_do_kx509() 454 kdc_log(context, config, 0, "Successful Kx509 request for %s", cname); in _kdc_do_kx509() 471 if (cname) in _kdc_do_kx509() 472 free(cname); in _kdc_do_kx509()
|
/freebsd/crypto/openssh/ |
H A D | ssh.c | 253 resolve_host(const char *name, int port, int logerr, char *cname, size_t clen) in resolve_host() argument 263 if (cname != NULL) in resolve_host() 264 *cname = '\0'; in resolve_host() 272 if (cname != NULL) in resolve_host() 281 if (cname != NULL && res->ai_canonname != NULL) { in resolve_host() 285 } else if (strlcpy(cname, res->ai_canonname, clen) >= clen) { in resolve_host() 289 *cname = '\0'; in resolve_host() 387 check_follow_cname(int direct, char **namep, const char *cname) in check_follow_cname() argument 392 if (*cname == '\0' || !config_has_permitted_cnames(&options) || in check_follow_cname() 393 strcmp(*namep, cname) == 0) in check_follow_cname() [all …]
|
/freebsd/sys/dev/sound/pcm/ |
H A D | ac97.c | 580 ac97_hw_desc(u_int32_t id, const char* vname, const char* cname, char* buf) in ac97_hw_desc() argument 582 if (cname == NULL) { in ac97_hw_desc() 590 sprintf(buf, "%s %s AC97 Codec (id = 0x%08x)", vname, cname, id); in ac97_hw_desc() 592 sprintf(buf, "%s %s AC97 Codec", vname, cname); in ac97_hw_desc() 601 const char *cname, *vname; in ac97_initmixer() local 654 cname = NULL; in ac97_initmixer() 660 cname = ac97codecid[i].name; in ac97_initmixer() 758 ac97_hw_desc(codec->id, vname, cname, desc)); in ac97_initmixer()
|
/freebsd/contrib/bsnmp/snmp_vacm/ |
H A D | vacm_snmp.c | 93 char cname[SNMP_ADM_STR32_SIZ]; in op_vacm_context() local 119 if (index_decode(&val->var, sub, iidx, &cname, &cnamelen)) in op_vacm_context() 121 cname[cnamelen] = '\0'; in op_vacm_context() 122 if ((vacm_ctx = vacm_add_context(cname, reg_vacm)) == NULL) in op_vacm_context() 871 char cname[SNMP_ADM_STR32_SIZ]; in vacm_get_context() local 881 if (index_decode(oid, sub, index_count, &cname, &cnamelen)) in vacm_get_context() 886 if (strcmp(cname, vacm_ctx->ctxname) == 0) in vacm_get_context() 895 char cname[SNMP_ADM_STR32_SIZ]; in vacm_get_next_context() local 908 if (index_decode(oid, sub, index_count, &cname, &cnamelen)) in vacm_get_next_context() 913 if (strcmp(cname, vacm_ctx->ctxname) == 0) in vacm_get_next_context()
|
/freebsd/crypto/heimdal/lib/krb5/ |
H A D | replay.c | 189 for(i = 0; i < auth->cname.name_string.len; i++) in checksum_authenticator() 190 EVP_DigestUpdate(m, auth->cname.name_string.val[i], in checksum_authenticator() 191 strlen(auth->cname.name_string.val[i])); in checksum_authenticator()
|