| /src/contrib/nvi/ex/ |
| H A D | ex.c | 197 EXCMD *ecp; in ex_cmd() local 220 loop: ecp = SLIST_FIRST(gp->ecq); in ex_cmd() 223 if (ecp->if_name != NULL) { in ex_cmd() 224 gp->if_lno = ecp->if_lno; in ex_cmd() 225 gp->if_name = ecp->if_name; in ex_cmd() 232 if (F_ISSET(ecp, E_MOVETOEND)) { in ex_cmd() 236 F_CLR(ecp, E_MOVETOEND); in ex_cmd() 240 if (F_ISSET(ecp, E_NEWLINE)) { in ex_cmd() 242 ++ecp->if_lno; in ex_cmd() 243 F_CLR(ecp, E_NEWLINE); in ex_cmd() [all …]
|
| H A D | ex_global.c | 64 EXCMD *ecp; in ex_g_setup() local 157 CALLOC_RET(sp, ecp, 1, sizeof(EXCMD)); in ex_g_setup() 158 TAILQ_INIT(ecp->rq); in ex_g_setup() 172 MALLOC_RET(sp, ecp->cp, (len * 2) * sizeof(CHAR_T)); in ex_g_setup() 173 ecp->o_cp = ecp->cp; in ex_g_setup() 174 ecp->o_clen = len; in ex_g_setup() 175 MEMCPY(ecp->cp + len, p, len); in ex_g_setup() 176 ecp->range_lno = OOBLNO; in ex_g_setup() 177 FL_SET(ecp->agv_flags, cmd == GLOBAL ? AGV_GLOBAL : AGV_V); in ex_g_setup() 178 SLIST_INSERT_HEAD(sp->gp->ecq, ecp, q); in ex_g_setup() [all …]
|
| H A D | ex_at.c | 38 EXCMD *ecp; in ex_at() local 81 CALLOC_RET(sp, ecp, 1, sizeof(EXCMD)); in ex_at() 82 TAILQ_INIT(ecp->rq); in ex_at() 87 FL_SET(ecp->agv_flags, AGV_AT_NORANGE); in ex_at() 90 FL_SET(ecp->agv_flags, AGV_AT); in ex_at() 92 TAILQ_INSERT_HEAD(ecp->rq, rp, q); in ex_at() 105 MALLOC_RET(sp, ecp->cp, len * 2 * sizeof(CHAR_T)); in ex_at() 106 ecp->o_cp = ecp->cp; in ex_at() 107 ecp->o_clen = len; in ex_at() 108 ecp->cp[len] = '\0'; in ex_at() [all …]
|
| H A D | ex_init.c | 283 EXCMD *ecp; in ex_run_str() local 287 CALLOC_RET(sp, ecp, 1, sizeof(EXCMD)); in ex_run_str() 288 SLIST_INSERT_HEAD(gp->ecq, ecp, q); in ex_run_str() 290 ecp = &gp->excmd; in ex_run_str() 292 F_INIT(ecp, in ex_run_str() 296 ecp->cp = str; in ex_run_str() 298 if ((ecp->cp = v_wstrdup(sp, str, len)) == NULL) in ex_run_str() 300 ecp->clen = len; in ex_run_str() 303 ecp->if_name = NULL; in ex_run_str() 305 if ((ecp->if_name = v_strdup(sp, name, strlen(name))) == NULL) in ex_run_str() [all …]
|
| /src/contrib/elftoolchain/elfcopy/ |
| H A D | archive.c | 51 static void ac_read_objs(struct elfcopy *ecp, int ifd); 52 static void ac_write_cleanup(struct elfcopy *ecp); 54 static void ac_write_objs(struct elfcopy *ecp, int ofd); 57 static void add_to_ar_sym_table(struct elfcopy *ecp, const char *name); 58 static void extract_arsym(struct elfcopy *ecp); 59 static void process_ar_obj(struct elfcopy *ecp, struct ar_obj *obj); 60 static void sync_ar(struct elfcopy *ecp); 64 process_ar_obj(struct elfcopy *ecp, struct ar_obj *obj) in process_ar_obj() argument 72 if ((ecp->eout = elf_begin(fd, ELF_C_WRITE, NULL)) == NULL) { in process_ar_obj() 77 elf_flagelf(ecp->eout, ELF_C_SET, ELF_F_LAYOUT); in process_ar_obj() [all …]
|
| H A D | main.c | 220 static void create_file(struct elfcopy *ecp, const char *src, 222 static void elfcopy_main(struct elfcopy *ecp, int argc, char **argv); 224 static void mcs_main(struct elfcopy *ecp, int argc, char **argv); 226 static void parse_sec_address_op(struct elfcopy *ecp, int optnum, 229 static void parse_symlist_file(struct elfcopy *ecp, const char *fn, 232 static void set_input_target(struct elfcopy *ecp, const char *target_name); 233 static void set_osabi(struct elfcopy *ecp, const char *abi); 234 static void set_output_target(struct elfcopy *ecp, const char *target_name); 235 static void strip_main(struct elfcopy *ecp, int argc, char **argv); 280 create_elf(struct elfcopy *ecp) in create_elf() argument [all …]
|
| H A D | symbols.c | 80 static int is_needed_symbol(struct elfcopy *ecp, int i, GElf_Sym *s); 81 static int is_remove_symbol(struct elfcopy *ecp, size_t sc, int i, 86 static int generate_symbols(struct elfcopy *ecp); 87 static void mark_reloc_symbols(struct elfcopy *ecp, size_t sc); 88 static void mark_section_group_symbols(struct elfcopy *ecp, size_t sc); 164 is_needed_symbol(struct elfcopy *ecp, int i, GElf_Sym *s) in is_needed_symbol() argument 168 if (BIT_ISSET(ecp->v_rel, i)) in is_needed_symbol() 172 if (BIT_ISSET(ecp->v_grp, i)) in is_needed_symbol() 179 if (ecp->flags & RELOCATABLE) { in is_needed_symbol() 188 is_remove_symbol(struct elfcopy *ecp, size_t sc, int i, GElf_Sym *s, in is_remove_symbol() argument [all …]
|
| H A D | sections.c | 40 static void add_gnu_debuglink(struct elfcopy *ecp); 42 static void check_section_rename(struct elfcopy *ecp, struct section *s); 43 static void filter_reloc(struct elfcopy *ecp, struct section *s); 44 static int get_section_flags(struct elfcopy *ecp, const char *name); 45 static void insert_sections(struct elfcopy *ecp); 46 static int is_append_section(struct elfcopy *ecp, const char *name); 47 static int is_compress_section(struct elfcopy *ecp, const char *name); 50 static int is_modify_section(struct elfcopy *ecp, const char *name); 51 static int is_print_section(struct elfcopy *ecp, const char *name); 52 static void modify_section(struct elfcopy *ecp, struct section *s); [all …]
|
| H A D | binary.c | 139 create_elf_from_binary(struct elfcopy *ecp, int ifd, const char *ifn) in create_elf_from_binary() argument 151 if (!TAILQ_EMPTY(&ecp->v_sec)) in create_elf_from_binary() 152 TAILQ_FOREACH_SAFE(sec, &ecp->v_sec, sec_list, sec_temp) { in create_elf_from_binary() 153 TAILQ_REMOVE(&ecp->v_sec, sec, sec_list); in create_elf_from_binary() 172 if (gelf_newehdr(ecp->eout, ecp->oec) == NULL) in create_elf_from_binary() 175 if (gelf_getehdr(ecp->eout, &oeh) == NULL) in create_elf_from_binary() 180 oeh.e_ident[EI_CLASS] = ecp->oec; in create_elf_from_binary() 181 oeh.e_ident[EI_DATA] = ecp->oed; in create_elf_from_binary() 187 oeh.e_machine = ecp->oem; in create_elf_from_binary() 191 ecp->flags |= RELOCATABLE; in create_elf_from_binary() [all …]
|
| H A D | segments.c | 54 add_to_inseg_list(struct elfcopy *ecp, struct section *s) in add_to_inseg_list() argument 59 if (ecp->ophnum == 0) in add_to_inseg_list() 74 STAILQ_FOREACH(seg, &ecp->v_seg, seg_list) { in add_to_inseg_list() 103 adjust_addr(struct elfcopy *ecp) in adjust_addr() argument 114 TAILQ_FOREACH(s, &ecp->v_sec, sec_list) { in adjust_addr() 121 if (ecp->change_addr != 0) in adjust_addr() 122 s->vma += ecp->change_addr; in adjust_addr() 125 if (ecp->change_addr != 0 && s->seg != NULL && in adjust_addr() 127 s->lma += ecp->change_addr; in adjust_addr() 133 TAILQ_FOREACH(s, &ecp->v_sec, sec_list) { in adjust_addr() [all …]
|
| H A D | ascii.c | 54 static struct section *new_data_section(struct elfcopy *ecp, int sec_index, 78 create_srec(struct elfcopy *ecp, int ifd, int ofd, const char *ofn) in create_srec() argument 95 if (!strncmp(ecp->otgt, "symbolsrec", strlen("symbolsrec"))) { in create_srec() 111 if (ecp->flags & SREC_FORCE_S3) in create_srec() 145 if (ecp->flags & SREC_FORCE_LEN) { in create_srec() 147 if (ecp->srec_len < 1) in create_srec() 149 else if (ecp->srec_len + addr_sz + 1 > 255) in create_srec() 152 rlen = ecp->srec_len; in create_srec() 194 srec_write_Se(ofd, eh.e_entry, ecp->flags & SREC_FORCE_S3); in create_srec() 198 create_elf_from_srec(struct elfcopy *ecp, int ifd) in create_elf_from_srec() argument [all …]
|
| H A D | pe.c | 41 create_pe(struct elfcopy *ecp, int ifd, int ofd) in create_pe() argument 60 if (ecp->otf == ETF_EFI || ecp->oem == EM_X86_64) in create_pe() 82 switch (ecp->oem) { in create_pe() 101 if (ecp->otf == ETF_EFI) in create_pe()
|
| /src/crypto/openssh/regress/unittests/sshbuf/ |
| H A D | test_sshbuf_getput_crypto.c | 70 EC_POINT *ecp; in sshbuf_getput_crypto_tests() local 229 ecp = EC_POINT_new(EC_KEY_get0_group(eck)); in sshbuf_getput_crypto_tests() 230 ASSERT_PTR_NE(ecp, NULL); in sshbuf_getput_crypto_tests() 234 EC_KEY_get0_group(eck), ecp, bn_x, bn_y, NULL), 1); in sshbuf_getput_crypto_tests() 235 ASSERT_INT_EQ(EC_KEY_set_public_key(eck, ecp), 1); in sshbuf_getput_crypto_tests() 238 EC_POINT_free(ecp); in sshbuf_getput_crypto_tests()
|
| /src/sys/fs/ext2fs/ |
| H A D | ext2_extents.c | 270 struct ext4_extent_cache *ecp; in ext4_ext_in_cache() local 273 ecp = &ip->i_ext_cache; in ext4_ext_in_cache() 274 if (ecp->ec_type == EXT4_EXT_CACHE_NO) in ext4_ext_in_cache() 277 if (lbn >= ecp->ec_blk && lbn < ecp->ec_blk + ecp->ec_len) { in ext4_ext_in_cache() 278 ep->e_blk = htole32(ecp->ec_blk); in ext4_ext_in_cache() 279 ep->e_start_lo = htole32(ecp->ec_start & 0xffffffff); in ext4_ext_in_cache() 280 ep->e_start_hi = htole16(ecp->ec_start >> 32 & 0xffff); in ext4_ext_in_cache() 281 ep->e_len = htole16(ecp->ec_len); in ext4_ext_in_cache() 282 ret = ecp->ec_type; in ext4_ext_in_cache()
|
| /src/sys/dev/efidev/ |
| H A D | efirt.c | 571 efi_call(struct efirt_callinfo *ecp) in efi_call() argument 578 error = efi_rt_handle_faults ? efi_rt_arch_call(ecp) : in efi_call() 579 efi_rt_arch_call_nofault(ecp); in efi_call() 582 error = efi_status_to_errno(ecp->ec_efi_status); in efi_call() 584 printf("EFI %s call faulted, error %d\n", ecp->ec_name, error); in efi_call()
|
| /src/crypto/heimdal/kdc/ |
| H A D | pkinit.c | 436 ECParameters ecp; in get_ecdh_param() local 450 memset(&ecp, 0, sizeof(ecp)); in get_ecdh_param() 453 dh_key_info->algorithm.parameters->length, &ecp, &len); in get_ecdh_param() 457 if (ecp.element != choice_ECParameters_namedCurve) { in get_ecdh_param() 462 if (der_heim_oid_cmp(&ecp.u.namedCurve, &asn1_oid_id_ec_group_secp256r1) == 0) in get_ecdh_param() 487 free_ECParameters(&ecp); in get_ecdh_param()
|
| /src/crypto/heimdal/lib/krb5/ |
| H A D | pkinit.c | 549 ECParameters ecp; in build_auth_pack() local 555 ecp.element = choice_ECParameters_namedCurve; in build_auth_pack() 557 &ecp.u.namedCurve); in build_auth_pack() 563 free_ECParameters(&ecp); in build_auth_pack() 566 ASN1_MALLOC_ENCODE(ECParameters, p, xlen, &ecp, &size, ret); in build_auth_pack() 567 free_ECParameters(&ecp); in build_auth_pack()
|
| /src/crypto/openssl/providers/implementations/keymgmt/ |
| H A D | ec_kmgmt.c | 723 const EC_POINT *ecp = EC_KEY_get0_public_key(key); in common_get_params() local 725 if (ecp == NULL) { in common_get_params() 729 p->return_size = EC_POINT_point2oct(ecg, ecp, in common_get_params()
|
| /src/crypto/openssl/doc/man1/ |
| H A D | openssl-genpkey.pod.in | 516 openssl genpkey -genparam -algorithm EC -out ecp.pem \ 522 openssl genpkey -paramfile ecp.pem -out eckey.pem
|
| /src/contrib/arm-optimized-routines/math/test/traces/ |
| H A D | sincosf.txt | 5282 -0x1.2978ecp-10 5322 -0x1.7036ecp-4 5780 0x1.650ecp-11 5995 0x1.650ecp-11 5996 0x1.650ecp-11 6181 0x1.0654ecp-9 6373 0x1.650ecp-11 10143 0x1.1169ecp-2 10852 0x1.6835ecp+3 10853 0x1.6835ecp+3 [all …]
|
| H A D | exp.txt | 2518 0x1.0442466613ecp+0
|