/freebsd/sys/dev/efidev/ |
H A D | efirt.c | 482 efi_rt_arch_call_nofault(struct efirt_callinfo *ec) in efi_rt_arch_call_nofault() argument 485 switch (ec->ec_argcnt) { in efi_rt_arch_call_nofault() 487 ec->ec_efi_status = ((register_t (*)(void))ec->ec_fptr)(); in efi_rt_arch_call_nofault() 490 ec->ec_efi_status = ((register_t (*)(register_t))ec->ec_fptr) in efi_rt_arch_call_nofault() 491 (ec->ec_arg1); in efi_rt_arch_call_nofault() 494 ec->ec_efi_status = ((register_t (*)(register_t, register_t)) in efi_rt_arch_call_nofault() 495 ec->ec_fptr)(ec->ec_arg1, ec->ec_arg2); in efi_rt_arch_call_nofault() 498 ec->ec_efi_status = ((register_t (*)(register_t, register_t, in efi_rt_arch_call_nofault() 499 register_t))ec->ec_fptr)(ec->ec_arg1, ec->ec_arg2, in efi_rt_arch_call_nofault() 500 ec->ec_arg3); in efi_rt_arch_call_nofault() [all …]
|
/freebsd/crypto/heimdal/lib/krb5/ |
H A D | krb_err.et | 11 ec KSUCCESS, "Kerberos 4 successful" 12 ec KDC_NAME_EXP, "Kerberos 4 principal expired" 13 ec KDC_SERVICE_EXP, "Kerberos 4 service expired" 14 ec KDC_AUTH_EXP, "Kerberos 4 auth expired" 15 ec KDC_PKT_VER, "Incorrect Kerberos 4 master key version" 16 ec KDC_P_MKEY_VER, "Incorrect Kerberos 4 master key version" 17 ec KDC_S_MKEY_VER, "Incorrect Kerberos 4 master key version" 18 ec KDC_BYTE_ORDER, "Kerberos 4 byte order unknown" 19 ec KDC_PR_UNKNOWN, "Kerberos 4 principal unknown" 20 ec KDC_PR_N_UNIQUE, "Kerberos 4 principal not unique" [all …]
|
/freebsd/sys/contrib/ck/include/ |
H A D | ck_ec.h | 418 static void ck_ec32_init(struct ck_ec32 *ec, uint32_t value); 427 static void ck_ec64_init(struct ck_ec64 *ec, uint64_t value); 441 static uint32_t ck_ec32_value(const struct ck_ec32* ec); 450 static uint64_t ck_ec64_value(const struct ck_ec64* ec); 464 static bool ck_ec32_has_waiters(const struct ck_ec32 *ec); 469 static bool ck_ec64_has_waiters(const struct ck_ec64 *ec); 483 static void ck_ec32_inc(struct ck_ec32 *ec, const struct ck_ec_mode *mode); 488 static void ck_ec64_inc(struct ck_ec64 *ec, const struct ck_ec_mode *mode); 502 static uint32_t ck_ec32_add(struct ck_ec32 *ec, 509 static uint64_t ck_ec64_add(struct ck_ec64 *ec, [all …]
|
/freebsd/contrib/llvm-project/libcxx/src/filesystem/ |
H A D | operations.cpp | 65 static path __do_absolute(const path& p, path* cwd, error_code* ec) { in __do_absolute() argument 66 if (ec) in __do_absolute() 67 ec->clear(); in __do_absolute() 70 *cwd = __current_path(ec); in __do_absolute() 71 if (ec && *ec) in __do_absolute() 76 path __absolute(const path& p, error_code* ec) { in __absolute() argument 78 return __do_absolute(p, &cwd, ec); in __absolute() 81 path __canonical(path const& orig_p, error_code* ec) { in __canonical() argument 83 ErrorHandler<path> err("canonical", ec, &orig_p, &cwd); in __canonical() 85 path p = __do_absolute(orig_p, &cwd, ec); in __canonical() [all …]
|
H A D | directory_iterator.cpp | 42 __dir_stream(const path& root, directory_options opts, error_code& ec) 45 ec = make_error_code(errc::no_such_file_or_directory); in __dir_stream() 50 ec = detail::make_windows_error(GetLastError()); in __dir_stream() 52 if (ignore_permission_denied && ec.value() == static_cast<int>(errc::permission_denied)) in __dir_stream() 53 ec.clear(); in __dir_stream() 57 advance(ec); in __dir_stream() 68 bool advance(error_code& ec) { 92 error_code ec; in assign() 94 ec = detail::make_windows_error(GetLastError()); 96 return ec; in close() local 43 __dir_stream(const path & root,directory_options opts,error_code & ec) __dir_stream() argument 71 advance(error_code & ec) advance() argument 122 __dir_stream(const path & root,directory_options opts,error_code & ec) __dir_stream() argument 142 advance(error_code & ec) advance() argument 179 directory_iterator(const path & p,error_code * ec,directory_options opts) directory_iterator() argument 194 __increment(error_code * ec) __increment() argument 221 recursive_directory_iterator(const path & p,directory_options opt,error_code * ec) recursive_directory_iterator() argument 237 __pop(error_code * ec) __pop() argument 261 __increment(error_code * ec) __increment() argument 273 __advance(error_code * ec) __advance() argument 296 __try_recursion(error_code * ec) __try_recursion() argument [all...] |
H A D | file_descriptor.h | 74 inline pair<string_view, file_type> posix_readdir(DIR* dir_stream, error_code& ec) { in posix_readdir() 77 ec.clear(); in posix_readdir() 80 ec = capture_errno(); in posix_readdir() 121 static FileDescriptor create(const path* p, error_code& ec, Args... args) { 122 ec.clear(); 143 ec = capture_errno(); in create() 150 static FileDescriptor create_with_status(const path* p, error_code& ec, Args... args) { 151 FileDescriptor fd = create(p, ec, args...); 152 if (!ec) in create_with_status() 153 fd.refresh_status(ec); in create_with_status() 75 posix_readdir(DIR * dir_stream,error_code & ec) posix_readdir() argument 201 create_file_status(error_code & m_ec,path const & p,const StatT & path_stat,error_code * ec) create_file_status() argument 236 posix_stat(path const & p,StatT & path_stat,error_code * ec) posix_stat() argument 243 posix_stat(path const & p,error_code * ec) posix_stat() argument 248 posix_lstat(path const & p,StatT & path_stat,error_code * ec) posix_lstat() argument 255 posix_lstat(path const & p,error_code * ec) posix_lstat() argument 261 posix_ftruncate(const FileDescriptor & fd,off_t to_size,error_code & ec) posix_ftruncate() argument 270 posix_fchmod(const FileDescriptor & fd,const StatT & st,error_code & ec) posix_fchmod() argument 283 refresh_status(error_code & ec) refresh_status() argument [all...] |
/freebsd/sys/contrib/ck/src/ |
H A D | ck_ec.c | 18 struct ck_ec32 *ec; member 24 struct ck_ec64 *ec; member 35 ck_ec32_wake(struct ck_ec32 *ec, const struct ck_ec_ops *ops) in ck_ec32_wake() argument 38 ck_pr_and_32(&ec->counter, (1U << 31) - 1); in ck_ec32_wake() 39 ops->wake32(ops, &ec->counter); in ck_ec32_wake() 44 ck_ec32_wait_slow(struct ck_ec32 *ec, in ck_ec32_wait_slow() argument 49 return ck_ec32_wait_pred_slow(ec, ops, old_value, in ck_ec32_wait_slow() 55 ck_ec64_wake(struct ck_ec64 *ec, const struct ck_ec_ops *ops) in ck_ec64_wake() argument 57 ck_pr_and_64(&ec->counter, ~1); in ck_ec64_wake() 58 ops->wake64(ops, &ec->counter); in ck_ec64_wake() [all …]
|
/freebsd/crypto/openssl/crypto/cms/ |
H A D | cms_enc.c | 25 BIO *ossl_cms_EncryptedContent_init_bio(CMS_EncryptedContentInfo *ec, in ossl_cms_EncryptedContent_init_bio() argument 32 X509_ALGOR *calg = ec->contentEncryptionAlgorithm; in ossl_cms_EncryptedContent_init_bio() 44 enc = ec->cipher ? 1 : 0; in ossl_cms_EncryptedContent_init_bio() 56 cipher = ec->cipher; in ossl_cms_EncryptedContent_init_bio() 60 if (ec->key != NULL) in ossl_cms_EncryptedContent_init_bio() 61 ec->cipher = NULL; in ossl_cms_EncryptedContent_init_bio() 108 if (ec->taglen > 0 in ossl_cms_EncryptedContent_init_bio() 110 ec->taglen, ec->tag) <= 0) { in ossl_cms_EncryptedContent_init_bio() 122 if (!enc || !ec->key) { in ossl_cms_EncryptedContent_init_bio() 132 if (!ec->key) { in ossl_cms_EncryptedContent_init_bio() [all …]
|
/freebsd/lib/libbearssl/ |
H A D | Makefile.libsa.inc | 25 ec/ec_all_m31.c \ 26 ec/ec_c25519_m31.c \ 27 ec/ec_c25519_m62.c \ 28 ec/ec_c25519_m64.c \ 29 ec/ec_default.c \ 30 ec/ec_p256_m31.c \ 31 ec/ec_p256_m62.c \ 32 ec/ec_p256_m64.c \ 33 ec/ec_prime_i31.c \ 34 ec/ec_pubkey.c \ [all …]
|
/freebsd/contrib/llvm-project/clang/lib/InstallAPI/ |
H A D | DirectoryScanner.cpp | 44 std::error_code ec = std::make_error_code(std::errc::not_a_directory); in scanForUnwrappedLibraries() local 45 return createStringError(ec, in scanForUnwrappedLibraries() 93 std::error_code ec; in scanHeaders() local 96 for (vfs::directory_iterator i = FS.dir_begin(Path, ec), ie; i != ie; in scanHeaders() 97 i.increment(ec)) { in scanHeaders() 99 if (ec) in scanHeaders() 100 return createStringError(ec, "unable to read: " + HeaderPath); in scanHeaders() 141 std::error_code ec; in scanMultipleFrameworks() local 143 for (vfs::directory_iterator i = FS.dir_begin(Directory, ec), ie; i != ie; in scanMultipleFrameworks() 144 i.increment(ec)) { in scanMultipleFrameworks() [all …]
|
/freebsd/contrib/elftoolchain/libelf/ |
H A D | libelf_phdr.c | 37 _libelf_getphdr(Elf *e, int ec) in _libelf_getphdr() argument 47 assert(ec == ELFCLASS32 || ec == ELFCLASS64); in _libelf_getphdr() 54 if ((phdr = (ec == ELFCLASS32 ? in _libelf_getphdr() 63 if ((ehdr = _libelf_ehdr(e, ec, 0)) == NULL) in _libelf_getphdr() 68 if (ec == ELFCLASS32) { in _libelf_getphdr() 90 if ((msz = _libelf_msize(ELF_T_PHDR, ec, EV_CURRENT)) == 0) in _libelf_getphdr() 98 if (ec == ELFCLASS32) in _libelf_getphdr() 104 xlator = _libelf_get_translator(ELF_T_PHDR, ELF_TOMEMORY, ec, in _libelf_getphdr() 113 _libelf_newphdr(Elf *e, int ec, size_t count) in _libelf_newphdr() argument 123 if ((ehdr = _libelf_ehdr(e, ec, 0)) == NULL) { in _libelf_newphdr() [all …]
|
H A D | gelf_cap.c | 39 int ec; in gelf_getcap() local 57 ec = e->e_class; in gelf_getcap() 58 assert(ec == ELFCLASS32 || ec == ELFCLASS64); in gelf_getcap() 60 if (ec == ELFCLASS32) in gelf_getcap() 70 if ((msz = _libelf_msize(ELF_T_CAP, ec, e->e_version)) == 0) in gelf_getcap() 78 if (ec == ELFCLASS32) { in gelf_getcap() 98 int ec; in gelf_update_cap() local 116 ec = e->e_class; in gelf_update_cap() 117 assert(ec == ELFCLASS32 || ec == ELFCLASS64); in gelf_update_cap() 119 if (ec == ELFCLASS32) in gelf_update_cap() [all …]
|
H A D | gelf_syminfo.c | 37 int ec; in gelf_getsyminfo() local 55 ec = e->e_class; in gelf_getsyminfo() 56 assert(ec == ELFCLASS32 || ec == ELFCLASS64); in gelf_getsyminfo() 58 if (ec == ELFCLASS32) in gelf_getsyminfo() 68 if ((msz = _libelf_msize(ELF_T_SYMINFO, ec, e->e_version)) == 0) in gelf_getsyminfo() 78 if (ec == ELFCLASS32) { in gelf_getsyminfo() 98 int ec; in gelf_update_syminfo() local 116 ec = e->e_class; in gelf_update_syminfo() 117 assert(ec == ELFCLASS32 || ec == ELFCLASS64); in gelf_update_syminfo() 119 if (ec == ELFCLASS32) in gelf_update_syminfo() [all …]
|
H A D | elf_update.c | 115 int ec, elftype; in _libelf_compute_section_extents() local 124 ec = e->e_class; in _libelf_compute_section_extents() 128 if (ec == ELFCLASS32) { in _libelf_compute_section_extents() 151 sh_align = _libelf_falign(elftype, ec); in _libelf_compute_section_extents() 228 if ((msz = _libelf_msize(d->d_type, ec, e->e_version)) == 0) in _libelf_compute_section_extents() 260 fsz = _libelf_fsize(d->d_type, ec, d->d_version, in _libelf_compute_section_extents() 283 sh_offset % _libelf_falign(elftype, ec)) { in _libelf_compute_section_extents() 306 (sh_entsize = _libelf_fsize(elftype, ec, e->e_version, in _libelf_compute_section_extents() 322 if (ec == ELFCLASS32) { in _libelf_compute_section_extents() 451 int ec; in _libelf_resync_sections() local [all …]
|
H A D | gelf_dyn.c | 39 int ec; in gelf_getdyn() local 57 ec = e->e_class; in gelf_getdyn() 58 assert(ec == ELFCLASS32 || ec == ELFCLASS64); in gelf_getdyn() 60 if (ec == ELFCLASS32) in gelf_getdyn() 70 if ((msz = _libelf_msize(ELF_T_DYN, ec, e->e_version)) == 0) in gelf_getdyn() 80 if (ec == ELFCLASS32) { in gelf_getdyn() 99 int ec; in gelf_update_dyn() local 117 ec = e->e_class; in gelf_update_dyn() 118 assert(ec == ELFCLASS32 || ec == ELFCLASS64); in gelf_update_dyn() 120 if (ec == ELFCLASS32) in gelf_update_dyn() [all …]
|
H A D | gelf_move.c | 39 int ec; in gelf_getmove() local 57 ec = e->e_class; in gelf_getmove() 58 assert(ec == ELFCLASS32 || ec == ELFCLASS64); in gelf_getmove() 60 if (ec == ELFCLASS32) in gelf_getmove() 70 if ((msz = _libelf_msize(ELF_T_MOVE, ec, e->e_version)) == 0) in gelf_getmove() 80 if (ec == ELFCLASS32) { in gelf_getmove() 102 int ec; in gelf_update_move() local 120 ec = e->e_class; in gelf_update_move() 121 assert(ec == ELFCLASS32 || ec == ELFCLASS64); in gelf_update_move() 123 if (ec == ELFCLASS32) in gelf_update_move() [all …]
|
H A D | gelf_ehdr.c | 53 int ec; in gelf_getehdr() local 58 ((ec = e->e_class) != ELFCLASS32 && ec != ELFCLASS64)) { in gelf_getehdr() 63 if (ec == ELFCLASS32) { in gelf_getehdr() 86 assert(ec == ELFCLASS64); in gelf_getehdr() 108 gelf_newehdr(Elf *e, int ec) in gelf_newehdr() argument 111 (ec == ELFCLASS32 || ec == ELFCLASS64)) in gelf_newehdr() 112 return (_libelf_ehdr(e, ec, 1)); in gelf_newehdr() 121 int ec; in gelf_update_ehdr() local 127 ((ec = e->e_class) != ELFCLASS32 && ec != ELFCLASS64)) { in gelf_update_ehdr() 137 if ((ehdr = _libelf_ehdr(e, ec, 0)) == NULL) in gelf_update_ehdr() [all …]
|
H A D | gelf_rel.c | 39 int ec; in gelf_getrel() local 57 ec = e->e_class; in gelf_getrel() 58 assert(ec == ELFCLASS32 || ec == ELFCLASS64); in gelf_getrel() 60 if (ec == ELFCLASS32) in gelf_getrel() 70 if ((msz = _libelf_msize(ELF_T_REL, ec, e->e_version)) == 0) in gelf_getrel() 80 if (ec == ELFCLASS32) { in gelf_getrel() 104 int ec; in gelf_update_rel() local 122 ec = e->e_class; in gelf_update_rel() 123 assert(ec == ELFCLASS32 || ec == ELFCLASS64); in gelf_update_rel() 125 if (ec == ELFCLASS32) in gelf_update_rel() [all …]
|
H A D | gelf_sym.c | 39 int ec; in gelf_getsym() local 57 ec = e->e_class; in gelf_getsym() 58 assert(ec == ELFCLASS32 || ec == ELFCLASS64); in gelf_getsym() 60 if (ec == ELFCLASS32) in gelf_getsym() 70 if ((msz = _libelf_msize(ELF_T_SYM, ec, e->e_version)) == 0) in gelf_getsym() 80 if (ec == ELFCLASS32) { in gelf_getsym() 101 int ec; in gelf_update_sym() local 119 ec = e->e_class; in gelf_update_sym() 120 assert(ec == ELFCLASS32 || ec == ELFCLASS64); in gelf_update_sym() 122 if (ec == ELFCLASS32) in gelf_update_sym() [all …]
|
H A D | elf_shstrndx.c | 38 int ec; in _libelf_getshdrstrndx() local 41 ((ec = e->e_class) != ELFCLASS32 && ec != ELFCLASS64)) { in _libelf_getshdrstrndx() 46 if ((eh = _libelf_ehdr(e, ec, 0)) == NULL) in _libelf_getshdrstrndx() 70 int ec; in elf_setshstrndx() local 73 ((ec = e->e_class) != ELFCLASS32 && ec != ELFCLASS64) || in elf_setshstrndx() 74 ((eh = _libelf_ehdr(e, ec, 0)) == NULL)) { in elf_setshstrndx() 79 return (_libelf_setshstrndx(e, eh, ec, strndx)); in elf_setshstrndx()
|
/freebsd/crypto/openssl/crypto/ec/ |
H A D | ec_ameth.c | 70 const EC_KEY *ec_key = pkey->pkey.ec; in eckey_pub_encode() 134 const EC_GROUP *group = EC_KEY_get0_group(b->pkey.ec); in eckey_pub_cmp() 135 const EC_POINT *pa = EC_KEY_get0_public_key(a->pkey.ec), in eckey_pub_cmp() 136 *pb = EC_KEY_get0_public_key(b->pkey.ec); in eckey_pub_cmp() 164 EC_KEY ec_key = *(pkey->pkey.ec); in eckey_priv_encode() 207 return ECDSA_size(pkey->pkey.ec); in int_ec_size() 212 return EC_GROUP_order_bits(EC_KEY_get0_group(pkey->pkey.ec)); in ec_bits() 234 if (pkey->pkey.ec == NULL || EC_KEY_get0_group(pkey->pkey.ec) == NULL) in ec_missing_parameters() 241 EC_GROUP *group = EC_GROUP_dup(EC_KEY_get0_group(from->pkey.ec)); in ec_copy_parameters() 245 if (to->pkey.ec == NULL) { in ec_copy_parameters() [all …]
|
/freebsd/contrib/llvm-project/libcxx/include/ |
H A D | filesystem | 178 directory_entry(const filesystem::path& p, error_code& ec); 185 void assign(const filesystem::path& p, error_code& ec); 187 void replace_filename(const filesystem::path& p, error_code& ec); 189 void refresh(error_code& ec) noexcept; 194 bool exists(error_code& ec) const noexcept; 196 bool is_block_file(error_code& ec) const noexcept; 198 bool is_character_file(error_code& ec) const noexcept; 200 bool is_directory(error_code& ec) const noexcept; 202 bool is_fifo(error_code& ec) const noexcept; 204 bool is_other(error_code& ec) const noexcept; [all …]
|
/freebsd/contrib/com_err/ |
H A D | compile_et.c | 72 struct error_code *ec; in generate_c() local 91 for(ec = codes, n = 0; ec; ec = ec->next, n++) { in generate_c() 92 while(n < ec->number) { in generate_c() 99 ec->number, ec->string); in generate_c() 130 struct error_code *ec; in generate_h() local 162 for(ec = codes; ec; ec = ec->next) { in generate_h() 163 fprintf(h_file, "\t%s = %ld%s\n", ec->name, base_id + ec->number, in generate_h() 164 (ec->next != NULL) ? "," : ""); in generate_h()
|
/freebsd/crypto/heimdal/lib/com_err/ |
H A D | compile_et.c | 72 struct error_code *ec; in generate_c() local 91 for(ec = codes, n = 0; ec; ec = ec->next, n++) { in generate_c() 92 while(n < ec->number) { in generate_c() 99 ec->number, ec->string); in generate_c() 130 struct error_code *ec; in generate_h() local 162 for(ec = codes; ec; ec = ec->next) { in generate_h() 163 fprintf(h_file, "\t%s = %ld%s\n", ec->name, base_id + ec->number, in generate_h() 164 (ec->next != NULL) ? "," : ""); in generate_h()
|
/freebsd/sys/kgssapi/krb5/ |
H A D | kcrypto.c | 60 krb5_create_key(const struct krb5_encryption_class *ec) in krb5_create_key() argument 65 ks->ks_class = ec; in krb5_create_key() 67 ks->ks_key = malloc(ec->ec_keylen, M_GSSAPI, M_WAITOK); in krb5_create_key() 68 ec->ec_init(ks); in krb5_create_key() 185 const struct krb5_encryption_class *ec = inkey->ks_class; in krb5_derive_key() local 194 folded = malloc(ec->ec_blocklen, M_GSSAPI, M_WAITOK); in krb5_derive_key() 195 krb5_n_fold(folded, ec->ec_blocklen, constant, constantlen); in krb5_derive_key() 201 randomlen = roundup(ec->ec_keybits / 8, ec->ec_blocklen); in krb5_derive_key() 204 m->m_len = ec->ec_blocklen; in krb5_derive_key() 206 q = p, i += ec->ec_blocklen, p += ec->ec_blocklen) { in krb5_derive_key() [all …]
|