/freebsd-13-stable/contrib/nvi/ex/ |
H A D | ex.c | 193 EXCMD *ecp; local 216 loop: ecp = SLIST_FIRST(gp->ecq); 219 if (ecp->if_name != NULL) { 220 gp->if_lno = ecp->if_lno; 221 gp->if_name = ecp->if_name; 228 if (F_ISSET(ecp, E_MOVETOEND)) { 232 F_CLR(ecp, E_MOVETOEND); 236 if (F_ISSET(ecp, E_NEWLINE)) { 238 ++ecp->if_lno; 239 F_CLR(ecp, E_NEWLIN 1619 ex_range(SCR *sp, EXCMD *ecp, int *errp) argument 1818 ex_line(SCR *sp, EXCMD *ecp, MARK *mp, int *isaddrp, int *errp) argument 2068 EXCMD *ecp; local 2164 EXCMD *ecp; local [all...] |
H A D | ex_at.c | 38 EXCMD *ecp; local 81 CALLOC_RET(sp, ecp, 1, sizeof(EXCMD)); 82 TAILQ_INIT(ecp->rq); 87 FL_SET(ecp->agv_flags, AGV_AT_NORANGE); 90 FL_SET(ecp->agv_flags, AGV_AT); 92 TAILQ_INSERT_HEAD(ecp->rq, rp, q); 105 MALLOC_RET(sp, ecp->cp, len * 2 * sizeof(CHAR_T)); 106 ecp->o_cp = ecp->cp; 107 ecp [all...] |
H A D | ex_global.c | 64 EXCMD *ecp; local 157 CALLOC_RET(sp, ecp, 1, sizeof(EXCMD)); 158 TAILQ_INIT(ecp->rq); 172 MALLOC_RET(sp, ecp->cp, (len * 2) * sizeof(CHAR_T)); 173 ecp->o_cp = ecp->cp; 174 ecp->o_clen = len; 175 MEMCPY(ecp->cp + len, p, len); 176 ecp->range_lno = OOBLNO; 177 FL_SET(ecp 253 EXCMD *ecp; local [all...] |
H A D | ex_init.c | 283 EXCMD *ecp; local 287 CALLOC_RET(sp, ecp, 1, sizeof(EXCMD)); 288 SLIST_INSERT_HEAD(gp->ecq, ecp, q); 290 ecp = &gp->excmd; 292 F_INIT(ecp, 296 ecp->cp = str; 298 if ((ecp->cp = v_wstrdup(sp, str, len)) == NULL) 300 ecp->clen = len; 303 ecp->if_name = NULL; 305 if ((ecp [all...] |
/freebsd-13-stable/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) argument 72 if ((ecp->eout = elf_begin(fd, ELF_C_WRITE, NULL)) == NULL) 75 elf_flagelf(ecp 115 add_to_ar_str_table(struct elfcopy *ecp, const char *name) argument 145 add_to_ar_sym_table(struct elfcopy *ecp, const char *name) argument 187 sync_ar(struct elfcopy *ecp) argument 232 extract_arsym(struct elfcopy *ecp) argument 361 ac_create_ar(struct elfcopy *ecp, int ifd, int ofd) argument 371 ac_read_objs(struct elfcopy *ecp, int ifd) argument 438 ac_write_objs(struct elfcopy *ecp, int ofd) argument 496 ac_write_cleanup(struct elfcopy *ecp) argument [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) argument 470 free_elf(struct elfcopy *ecp) argument 628 create_file(struct elfcopy *ecp, const char *src, const char *dst) argument 826 elfcopy_main(struct elfcopy *ecp, int argc, char **argv) argument 1052 mcs_main(struct elfcopy *ecp, int argc, char **argv) argument 1140 strip_main(struct elfcopy *ecp, int argc, char **argv) argument 1248 parse_sec_address_op(struct elfcopy *ecp, int optnum, const char *optname, char *s) argument 1300 parse_symlist_file(struct elfcopy *ecp, const char *fn, unsigned int op) argument 1389 set_input_target(struct elfcopy *ecp, const char *target_name) argument 1399 set_output_target(struct elfcopy *ecp, const char *target_name) argument 1419 set_osabi(struct elfcopy *ecp, const char *abi) argument 1592 struct elfcopy *ecp; local [all...] |
H A D | binary.c | 139 create_elf_from_binary(struct elfcopy *ecp, int ifd, const char *ifn) argument 151 if (!TAILQ_EMPTY(&ecp->v_sec)) 152 TAILQ_FOREACH_SAFE(sec, &ecp->v_sec, sec_list, sec_temp) { 153 TAILQ_REMOVE(&ecp->v_sec, sec, sec_list); 172 if (gelf_newehdr(ecp->eout, ecp->oec) == NULL) 175 if (gelf_getehdr(ecp->eout, &oeh) == NULL) 180 oeh.e_ident[EI_CLASS] = ecp->oec; 181 oeh.e_ident[EI_DATA] = ecp->oed; 187 oeh.e_machine = ecp [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) argument 168 if (BIT_ISSET(ecp->v_rel, i)) 172 if (BIT_ISSET(ecp->v_grp, i)) 179 if (ecp->flags & RELOCATABLE) { 188 is_remove_symbol(struct elfcopy *ecp, size_ argument 264 mark_reloc_symbols(struct elfcopy *ecp, size_t sc) argument 343 mark_section_group_symbols(struct elfcopy *ecp, size_t sc) argument 386 generate_symbols(struct elfcopy *ecp) argument 671 create_symtab(struct elfcopy *ecp) argument 748 free_symtab(struct elfcopy *ecp) argument 806 create_external_symtab(struct elfcopy *ecp) argument 873 add_to_symtab(struct elfcopy *ecp, const char *name, uint64_t st_value, uint64_t st_size, uint16_t st_shndx, unsigned char st_info, unsigned char st_other, int ndx_known) argument 981 finalize_external_symtab(struct elfcopy *ecp) argument 1009 create_symtab_data(struct elfcopy *ecp) argument 1140 add_to_symop_list(struct elfcopy *ecp, const char *name, const char *newname, unsigned int op) argument 1161 lookup_symop_list(struct elfcopy *ecp, const char *name, unsigned int op) 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, struc 62 is_remove_section(struct elfcopy *ecp, const char *name) argument 110 is_remove_reloc_sec(struct elfcopy *ecp, uint32_t sh_info) argument 146 is_append_section(struct elfcopy *ecp, const char *name) argument 158 is_compress_section(struct elfcopy *ecp, const char *name) argument 170 check_section_rename(struct elfcopy *ecp, struct section *s) argument 204 get_section_flags(struct elfcopy *ecp, const char *name) argument 252 is_print_section(struct elfcopy *ecp, const char *name) argument 264 is_modify_section(struct elfcopy *ecp, const char *name) argument 275 lookup_sec_act(struct elfcopy *ecp, const char *name, int add) argument 300 free_sec_act(struct elfcopy *ecp) argument 311 insert_to_sec_list(struct elfcopy *ecp, struct section *sec, int tail) argument 336 create_scn(struct elfcopy *ecp) argument 526 insert_shtab(struct elfcopy *ecp, int tail) argument 569 copy_content(struct elfcopy *ecp) argument 625 update_section_group(struct elfcopy *ecp, struct section *s) argument 689 filter_reloc(struct elfcopy *ecp, struct section *s) argument 819 update_reloc(struct elfcopy *ecp, struct section *s) argument 860 pad_section(struct elfcopy *ecp, struct section *s) argument 931 resync_sections(struct elfcopy *ecp) argument 1027 modify_section(struct elfcopy *ecp, struct section *s) argument 1169 copy_shdr(struct elfcopy *ecp, struct section *s, const char *name, int copy, int sec_flags) argument 1290 create_external_section(struct elfcopy *ecp, const char *name, char *newname, void *buf, uint64_t size, uint64_t off, uint64_t stype, Elf_Type dtype, uint64_t flags, uint64_t align, uint64_t vma, int loadable) argument 1354 insert_sections(struct elfcopy *ecp) argument 1392 add_to_shstrtab(struct elfcopy *ecp, const char *name) argument 1400 update_shdr(struct elfcopy *ecp, int update_link) argument 1455 init_shstrtab(struct elfcopy *ecp) argument 1496 set_shstrtab(struct elfcopy *ecp) argument 1560 add_section(struct elfcopy *ecp, const char *arg) argument 1601 free_sec_add(struct elfcopy *ecp) argument 1614 add_gnu_debuglink(struct elfcopy *ecp) argument [all...] |
H A D | segments.c | 54 add_to_inseg_list(struct elfcopy *ecp, struct section *s) argument 59 if (ecp->ophnum == 0) 74 STAILQ_FOREACH(seg, &ecp->v_seg, seg_list) { 103 adjust_addr(struct elfcopy *ecp) argument 114 TAILQ_FOREACH(s, &ecp->v_sec, sec_list) { 121 if (ecp->change_addr != 0) 122 s->vma += ecp->change_addr; 125 if (ecp->change_addr != 0 && s->seg != NULL && 127 s->lma += ecp->change_addr; 133 TAILQ_FOREACH(s, &ecp 469 setup_phdr(struct elfcopy *ecp) argument 506 copy_phdr(struct elfcopy *ecp) argument [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) argument 95 if (!strncmp(ecp->otgt, "symbolsrec", strlen("symbolsrec"))) { 111 if (ecp->flags & SREC_FORCE_S3) 145 if (ecp->flags & SREC_FORCE_LEN) { 147 if (ecp->srec_len < 1) 149 else if (ecp->srec_len + addr_sz + 1 > 255) 152 rlen = ecp->srec_len; 194 srec_write_Se(ofd, eh.e_entry, ecp->flags & SREC_FORCE_S3); 198 create_elf_from_srec(struct elfcopy *ecp, in argument 469 create_elf_from_ihex(struct elfcopy *ecp, int ifd) argument 637 new_data_section(struct elfcopy *ecp, int sec_index, uint64_t off, uint64_t addr) argument [all...] |
H A D | pe.c | 41 create_pe(struct elfcopy *ecp, int ifd, int ofd) argument 60 if (ecp->otf == ETF_EFI || ecp->oem == EM_X86_64) 82 switch (ecp->oem) { 101 if (ecp->otf == ETF_EFI)
|
/freebsd-13-stable/sys/dev/efidev/ |
H A D | efirt.c | 384 efi_call(struct efirt_callinfo *ecp) argument 391 error = efi_rt_handle_faults ? efi_rt_arch_call(ecp) : 392 efi_rt_arch_call_nofault(ecp); 395 error = efi_status_to_errno(ecp->ec_efi_status); 397 printf("EFI %s call faulted, error %d\n", ecp->ec_name, error);
|
/freebsd-13-stable/crypto/openssh/regress/unittests/sshbuf/ |
H A D | test_sshbuf_getput_crypto.c | 70 EC_POINT *ecp; local 359 ecp = EC_POINT_new(EC_KEY_get0_group(eck)); 360 ASSERT_PTR_NE(ecp, NULL); 364 EC_KEY_get0_group(eck), ecp, bn_x, bn_y, NULL), 1); 365 ASSERT_INT_EQ(EC_KEY_set_public_key(eck, ecp), 1); 368 EC_POINT_free(ecp);
|
/freebsd-13-stable/sys/fs/ext2fs/ |
H A D | ext2_extents.c | 217 struct ext4_extent_cache *ecp; local 220 ecp = &ip->i_ext_cache; 221 if (ecp->ec_type == EXT4_EXT_CACHE_NO) 224 if (lbn >= ecp->ec_blk && lbn < ecp->ec_blk + ecp->ec_len) { 225 ep->e_blk = htole32(ecp->ec_blk); 226 ep->e_start_lo = htole32(ecp->ec_start & 0xffffffff); 227 ep->e_start_hi = htole16(ecp->ec_start >> 32 & 0xffff); 228 ep->e_len = htole16(ecp [all...] |
/freebsd-13-stable/crypto/heimdal/kdc/ |
H A D | pkinit.c | 437 ECParameters ecp; local 451 memset(&ecp, 0, sizeof(ecp)); 454 dh_key_info->algorithm.parameters->length, &ecp, &len); 458 if (ecp.element != choice_ECParameters_namedCurve) { 463 if (der_heim_oid_cmp(&ecp.u.namedCurve, &asn1_oid_id_ec_group_secp256r1) == 0) 488 free_ECParameters(&ecp);
|
/freebsd-13-stable/contrib/bmake/ |
H A D | job.c | 1761 char *ecp; /* XXX: should be const */ local 1772 while ((ecp = strstr(cp, shell->noPrint)) != NULL) { 1773 if (ecp != cp) { 1774 *ecp = '\0'; /* XXX: avoid writing to the buffer */ 1785 cp = ecp + shell->noPrintLen;
|
/freebsd-13-stable/crypto/heimdal/lib/krb5/ |
H A D | pkinit.c | 549 ECParameters ecp; local 555 ecp.element = choice_ECParameters_namedCurve; 557 &ecp.u.namedCurve); 563 free_ECParameters(&ecp); 566 ASN1_MALLOC_ENCODE(ECParameters, p, xlen, &ecp, &size, ret); 567 free_ECParameters(&ecp);
|