Home
last modified time | relevance | path

Searched refs:ecp (Results 1 – 18 of 18) sorted by relevance

/freebsd-11-stable/contrib/nvi/ex/
HDex.c197 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 …]
HDex_global.c68 EXCMD *ecp; in ex_g_setup() local
160 CALLOC_RET(sp, ecp, EXCMD *, 1, sizeof(EXCMD)); in ex_g_setup()
161 TAILQ_INIT(ecp->rq); in ex_g_setup()
175 MALLOC_RET(sp, ecp->cp, CHAR_T *, (len * 2) * sizeof(CHAR_T)); in ex_g_setup()
176 ecp->o_cp = ecp->cp; in ex_g_setup()
177 ecp->o_clen = len; in ex_g_setup()
178 MEMCPY(ecp->cp + len, p, len); in ex_g_setup()
179 ecp->range_lno = OOBLNO; in ex_g_setup()
180 FL_SET(ecp->agv_flags, cmd == GLOBAL ? AGV_GLOBAL : AGV_V); in ex_g_setup()
181 SLIST_INSERT_HEAD(sp->gp->ecq, ecp, q); in ex_g_setup()
[all …]
HDex_at.c42 EXCMD *ecp; in ex_at() local
85 CALLOC_RET(sp, ecp, EXCMD *, 1, sizeof(EXCMD)); in ex_at()
86 TAILQ_INIT(ecp->rq); in ex_at()
91 FL_SET(ecp->agv_flags, AGV_AT_NORANGE); in ex_at()
94 FL_SET(ecp->agv_flags, AGV_AT); in ex_at()
96 TAILQ_INSERT_HEAD(ecp->rq, rp, q); in ex_at()
109 MALLOC_RET(sp, ecp->cp, CHAR_T *, len * 2 * sizeof(CHAR_T)); in ex_at()
110 ecp->o_cp = ecp->cp; in ex_at()
111 ecp->o_clen = len; in ex_at()
112 ecp->cp[len] = '\0'; in ex_at()
[all …]
HDex_init.c290 EXCMD *ecp; in ex_run_str() local
294 CALLOC_RET(sp, ecp, EXCMD *, 1, sizeof(EXCMD)); in ex_run_str()
295 SLIST_INSERT_HEAD(gp->ecq, ecp, q); in ex_run_str()
297 ecp = &gp->excmd; in ex_run_str()
299 F_INIT(ecp, in ex_run_str()
303 ecp->cp = str; in ex_run_str()
305 if ((ecp->cp = v_wstrdup(sp, str, len)) == NULL) in ex_run_str()
307 ecp->clen = len; in ex_run_str()
310 ecp->if_name = NULL; in ex_run_str()
312 if ((ecp->if_name = v_strdup(sp, name, strlen(name))) == NULL) in ex_run_str()
[all …]
/freebsd-11-stable/contrib/elftoolchain/elfcopy/
HDmain.c220 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 …]
HDarchive.c51 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()
75 elf_flagelf(ecp->eout, ELF_C_SET, ELF_F_LAYOUT); in process_ar_obj()
[all …]
HDsymbols.c80 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 …]
HDsections.c40 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 …]
HDbinary.c139 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 …]
HDsegments.c54 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 …]
HDascii.c54 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 …]
HDpe.c41 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()
/freebsd-11-stable/sys/fs/ext2fs/
HDext2_extents.c130 struct ext4_extent_cache *ecp; in ext4_ext_in_cache() local
133 ecp = &ip->i_ext_cache; in ext4_ext_in_cache()
136 if (ecp->ec_type == EXT4_EXT_CACHE_NO) in ext4_ext_in_cache()
139 if (lbn >= ecp->ec_blk && lbn < ecp->ec_blk + ecp->ec_len) { in ext4_ext_in_cache()
140 ep->e_blk = ecp->ec_blk; in ext4_ext_in_cache()
141 ep->e_start_lo = ecp->ec_start & 0xffffffff; in ext4_ext_in_cache()
142 ep->e_start_hi = ecp->ec_start >> 32 & 0xffff; in ext4_ext_in_cache()
143 ep->e_len = ecp->ec_len; in ext4_ext_in_cache()
144 ret = ecp->ec_type; in ext4_ext_in_cache()
155 struct ext4_extent_cache *ecp; in ext4_ext_put_cache() local
[all …]
/freebsd-11-stable/contrib/gdb/gdb/
HDlynx-nat.c268 int ecpoff = offsetof (st_t, ecp); in registers_addr()
269 CORE_ADDR ecp; in registers_addr() local
277 ecp = (CORE_ADDR) ptrace (PTRACE_PEEKTHREAD, pid, (PTRACE_ARG3_TYPE) ecpoff, in registers_addr()
282 return ecp - stblock; in registers_addr()
294 unsigned long ecp; in fetch_inferior_registers() local
304 ecp = registers_addr (PIDGET (inferior_ptid)); in fetch_inferior_registers()
322 (PTRACE_ARG3_TYPE) (ecp + regmap[regno] + i), 0); in fetch_inferior_registers()
342 unsigned long ecp; in store_inferior_registers() local
352 ecp = registers_addr (PIDGET (inferior_ptid)); in store_inferior_registers()
373 (PTRACE_ARG3_TYPE) (ecp + regmap[regno] + i), reg); in store_inferior_registers()
/freebsd-11-stable/crypto/openssh/regress/unittests/sshbuf/
HDtest_sshbuf_getput_crypto.c70 EC_POINT *ecp; in sshbuf_getput_crypto_tests() local
359 ecp = EC_POINT_new(EC_KEY_get0_group(eck)); in sshbuf_getput_crypto_tests()
360 ASSERT_PTR_NE(ecp, NULL); in sshbuf_getput_crypto_tests()
364 EC_KEY_get0_group(eck), ecp, bn_x, bn_y, NULL), 1); in sshbuf_getput_crypto_tests()
365 ASSERT_INT_EQ(EC_KEY_set_public_key(eck, ecp), 1); in sshbuf_getput_crypto_tests()
368 EC_POINT_free(ecp); in sshbuf_getput_crypto_tests()
/freebsd-11-stable/contrib/bmake/
HDjob.c1775 char *ecp; in JobOutput() local
1778 ecp = Str_FindSubstring(cp, commandShell->noPrint); in JobOutput()
1779 while (ecp != NULL) { in JobOutput()
1780 if (cp != ecp) { in JobOutput()
1781 *ecp = '\0'; in JobOutput()
1795 cp = ecp + commandShell->noPLen; in JobOutput()
1806 ecp = Str_FindSubstring(cp, commandShell->noPrint); in JobOutput()
/freebsd-11-stable/crypto/heimdal/kdc/
HDpkinit.c430 ECParameters ecp; in get_ecdh_param() local
444 memset(&ecp, 0, sizeof(ecp)); in get_ecdh_param()
447 dh_key_info->algorithm.parameters->length, &ecp, &len); in get_ecdh_param()
451 if (ecp.element != choice_ECParameters_namedCurve) { in get_ecdh_param()
456 if (der_heim_oid_cmp(&ecp.u.namedCurve, &asn1_oid_id_ec_group_secp256r1) == 0) in get_ecdh_param()
481 free_ECParameters(&ecp); in get_ecdh_param()
/freebsd-11-stable/crypto/heimdal/lib/krb5/
HDpkinit.c538 ECParameters ecp; in build_auth_pack() local
544 ecp.element = choice_ECParameters_namedCurve; in build_auth_pack()
546 &ecp.u.namedCurve); in build_auth_pack()
552 free_ECParameters(&ecp); in build_auth_pack()
555 ASN1_MALLOC_ENCODE(ECParameters, p, xlen, &ecp, &size, ret); in build_auth_pack()
556 free_ECParameters(&ecp); in build_auth_pack()