Home
last modified time | relevance | path

Searched refs:where (Results 1 – 25 of 1457) sorted by relevance

12345678910>>...59

/freebsd-14-stable/usr.bin/rpcgen/
HDrpc_scan.c53 #define startcomment(where) (where[0] == '/' && where[1] == '*') argument
54 #define endcomment(where) (where[-1] == '*' && where[0] == '/') argument
162 if (*where == 0) { in get_token()
172 *where = 0; in get_token()
187 where = curline; in get_token()
188 } else if (isspace(*where)) { in get_token()
189 while (isspace(*where)) { in get_token()
190 where++; /* eat */ in get_token()
193 for (where++; *where; where++) { in get_token()
194 if (endcomment(where)) { in get_token()
[all …]
/freebsd-14-stable/libexec/rtld-elf/arm/
HDreloc.c92 Elf_Addr *where; in _rtld_relocate_nonplt_self() local
106 where = (Elf_Addr *)(relocbase + rel->r_offset); in _rtld_relocate_nonplt_self()
108 *where += (Elf_Addr)relocbase; in _rtld_relocate_nonplt_self()
119 load_ptr(void *where) in load_ptr() argument
123 memcpy(&res, where, sizeof(res)); in load_ptr()
129 store_ptr(void *where, Elf_Addr val) in store_ptr() argument
132 memcpy(where, &val, sizeof(val)); in store_ptr()
139 Elf_Addr *where; in reloc_nonplt_object() local
145 where = (Elf_Addr *)(obj->relocbase + rel->r_offset); in reloc_nonplt_object()
159 addend = *where; in reloc_nonplt_object()
[all …]
/freebsd-14-stable/sys/riscv/riscv/
HDelf_machdep.c297 Elf64_Addr *where; in elf_reloc_internal() local
309 where = (Elf_Addr *)(relocbase + rela->r_offset); in elf_reloc_internal()
310 insn32p = (uint32_t *)where; in elf_reloc_internal()
330 before64 = *where; in elf_reloc_internal()
331 *where = addr + addend; in elf_reloc_internal()
333 printf("%p %c %-24s %016lx -> %016lx\n", where, in elf_reloc_internal()
335 before64, *where); in elf_reloc_internal()
343 before64 = *where; in elf_reloc_internal()
344 *where = addr; in elf_reloc_internal()
346 printf("%p %c %-24s %016lx -> %016lx\n", where, in elf_reloc_internal()
[all …]
/freebsd-14-stable/usr.sbin/kldxref/
HDef_mips.c50 char *where; in ef_mips_reloc() local
59 where = (char *)dest + (relbase + rel->r_offset - dataoff); in ef_mips_reloc()
66 where = (char *)dest + (relbase + rela->r_offset - dataoff); in ef_mips_reloc()
75 if (where < (char *)dest || where >= (char *)dest + len) in ef_mips_reloc()
81 addend = le64dec(where); in ef_mips_reloc()
83 addend = be64dec(where); in ef_mips_reloc()
86 addend = le32dec(where); in ef_mips_reloc()
88 addend = be32dec(where); in ef_mips_reloc()
96 le64enc(where, addr); in ef_mips_reloc()
98 be64enc(where, addr); in ef_mips_reloc()
[all …]
HDef_amd64.c47 char *where; in ef_amd64_reloc() local
56 where = (char *)dest + (relbase + rel->r_offset - dataoff); in ef_amd64_reloc()
63 where = (char *)dest + (relbase + rela->r_offset - dataoff); in ef_amd64_reloc()
72 if (where < (char *)dest || where >= (char *)dest + len) in ef_amd64_reloc()
80 addend = le32dec(where); in ef_amd64_reloc()
83 addend = le64dec(where); in ef_amd64_reloc()
93 le64enc(where, addr); in ef_amd64_reloc()
97 le32enc(where, addr); in ef_amd64_reloc()
101 le64enc(where, addr); in ef_amd64_reloc()
105 le64enc(where, addr); in ef_amd64_reloc()
HDef_powerpc.c47 char *where; in ef_ppc_reloc() local
55 where = (char *)dest + (relbase + rela->r_offset - dataoff); in ef_ppc_reloc()
64 if (where < (char *)dest || where >= (char *)dest + len) in ef_ppc_reloc()
72 le64enc(where, addr); in ef_ppc_reloc()
74 be64enc(where, addr); in ef_ppc_reloc()
76 be32enc(where, addr); in ef_ppc_reloc()
80 be32enc(where, addr); in ef_ppc_reloc()
85 le64enc(where, addr); in ef_ppc_reloc()
87 be64enc(where, addr); in ef_ppc_reloc()
HDef_i386.c47 char *where; in ef_i386_reloc() local
56 where = (char *)dest + (relbase + rel->r_offset - dataoff); in ef_i386_reloc()
63 where = (char *)dest + (relbase + rela->r_offset - dataoff); in ef_i386_reloc()
72 if (where < (char *)dest || where >= (char *)dest + len) in ef_i386_reloc()
76 addend = le32dec(where); in ef_i386_reloc()
81 le32enc(where, addr); in ef_i386_reloc()
85 le32enc(where, addr); in ef_i386_reloc()
89 le32enc(where, addr); in ef_i386_reloc()
HDef_arm.c48 char *where; in ef_arm_reloc() local
57 where = (char *)dest + (relbase + rel->r_offset - dataoff); in ef_arm_reloc()
64 where = (char *)dest + (relbase + rela->r_offset - dataoff); in ef_arm_reloc()
73 if (where < (char *)dest || where >= (char *)dest + len) in ef_arm_reloc()
77 addend = le32dec(where); in ef_arm_reloc()
82 le32enc(where, addr); in ef_arm_reloc()
86 le32enc(where, addr); in ef_arm_reloc()
HDef_riscv.c50 char *where; in ef_riscv_reloc() local
58 where = (char *)dest + (relbase + rela->r_offset - dataoff); in ef_riscv_reloc()
67 if (where < (char *)dest || where >= (char *)dest + len) in ef_riscv_reloc()
73 le64enc(where, addr); in ef_riscv_reloc()
77 le64enc(where, addr); in ef_riscv_reloc()
HDef_aarch64.c45 char *where; in ef_aarch64_reloc() local
53 where = (char *)dest + (relbase + rela->r_offset - dataoff); in ef_aarch64_reloc()
62 if (where < (char *)dest || where >= (char *)dest + len) in ef_aarch64_reloc()
68 le64enc(where, addr); in ef_aarch64_reloc()
72 le64enc(where, addr); in ef_aarch64_reloc()
/freebsd-14-stable/libexec/rtld-elf/aarch64/
HDreloc.c142 reloc_tlsdesc(const Obj_Entry *obj, const Elf_Rela *rela, Elf_Addr *where, in reloc_tlsdesc() argument
160 where[0] = (Elf_Addr)_rtld_tlsdesc_undef; in reloc_tlsdesc()
161 where[1] = rela->r_addend; in reloc_tlsdesc()
169 where[0] = (Elf_Addr)_rtld_tlsdesc_static; in reloc_tlsdesc()
170 where[1] = obj->tlsoffset + offs; in reloc_tlsdesc()
173 where[0] = (Elf_Addr)_rtld_tlsdesc_dynamic; in reloc_tlsdesc()
174 where[1] = reloc_tlsdesc_alloc(obj->tlsindex, offs); in reloc_tlsdesc()
190 Elf_Addr *where; in reloc_plt() local
192 where = (Elf_Addr *)(obj->relocbase + rela->r_offset); in reloc_plt()
196 *where += (Elf_Addr)obj->relocbase; in reloc_plt()
[all …]
/freebsd-14-stable/stand/common/
HDreloc_elf.c53 Elf64_Addr *where, val; in __elfN() local
65 where = (Elf_Addr *)((char *)data + relbase + rel->r_offset - in __elfN()
76 where = (Elf_Addr *)((char *)data + relbase + rela->r_offset - in __elfN()
88 if ((char *)where < (char *)data || (char *)where >= (char *)data + len) in __elfN()
92 addend = *where; in __elfN()
111 memcpy(where, &val, sizeof(val)); in __elfN()
122 *where = val; in __elfN()
132 Elf_Addr addend, addr, *where, val; in __elfN()
140 where = (Elf_Addr *)((char *)data + relbase + rel->r_offset - in __elfN()
149 where = (Elf_Addr *)((char *)data + relbase + rela->r_offset - in __elfN()
[all …]
/freebsd-14-stable/contrib/less/
HDprompt.c175 static POSITION curr_byte(int where) in curr_byte() argument
179 pos = position(where); in curr_byte()
180 while (pos == NULL_POSITION && where >= 0 && where < sc_height-1) in curr_byte()
181 pos = position(++where); in curr_byte()
193 static lbool cond(char c, int where) in cond() argument
202 return (curr_byte(where) != NULL_POSITION); in cond()
214 return (currline(where) != 0); in cond()
231 return (curr_byte(where) != NULL_POSITION && ch_length() > 0); in cond()
233 return (currline(where) != 0 && in cond()
256 static void protochar(char c, int where) in protochar() argument
[all …]
/freebsd-14-stable/libexec/rtld-elf/i386/
HDreloc.c133 Elf_Addr *where, symval, add; in reloc_non_plt() local
197 where = (Elf_Addr *)(obj->relocbase + rel->r_offset); in reloc_non_plt()
203 *where += symval; in reloc_non_plt()
211 *where += symval - (Elf_Addr)where; in reloc_non_plt()
228 *where = symval; in reloc_non_plt()
231 *where += (Elf_Addr)obj->relocbase; in reloc_non_plt()
254 *where += add; in reloc_non_plt()
256 *where -= add; in reloc_non_plt()
259 *where += (Elf_Addr)defobj->tlsindex; in reloc_non_plt()
262 *where += (Elf_Addr) def->st_value; in reloc_non_plt()
[all …]
/freebsd-14-stable/sys/arm/arm/
HDelf_machdep.c163 load_ptr(Elf_Addr *where) in load_ptr() argument
167 if (RELOC_ALIGNED_P(where)) in load_ptr()
168 return *where; in load_ptr()
169 memcpy(&res, where, sizeof(res)); in load_ptr()
174 store_ptr(Elf_Addr *where, Elf_Addr val) in store_ptr() argument
176 if (RELOC_ALIGNED_P(where)) in store_ptr()
177 *where = val; in store_ptr()
179 memcpy(where, &val, sizeof(val)); in store_ptr()
188 Elf_Addr *where; in elf_reloc_internal() local
199 where = (Elf_Addr *) (relocbase + rel->r_offset); in elf_reloc_internal()
[all …]
/freebsd-14-stable/contrib/llvm-project/llvm/include/llvm/ADT/
HDilist.h165 iterator insert(iterator where, pointer New) {
167 return base_list_type::insert(where, *New);
170 iterator insert(iterator where, const_reference New) {
171 return this->insert(where, new value_type(New));
174 iterator insertAfter(iterator where, pointer New) {
178 return insert(++where, New);
204 iterator erase(iterator where) {
205 this->deleteNode(remove(where));
206 return where;
261 template<class InIt> void insert(iterator where, InIt first, InIt last) {
[all …]
/freebsd-14-stable/libexec/rtld-elf/powerpc/
HDreloc.c133 Elf_Addr *where; in reloc_non_plt_self() local
154 where = (Elf_Addr *)(relocbase + rela->r_offset); in reloc_non_plt_self()
155 *where = (Elf_Addr)(relocbase + rela->r_addend); in reloc_non_plt_self()
169 Elf_Addr *where, symval = 0; in reloc_nonplt_object() local
228 where = (Elf_Addr *)(obj->relocbase + rela->r_offset); in reloc_nonplt_object()
237 if (*where != symval + rela->r_addend) { in reloc_nonplt_object()
238 *where = symval + rela->r_addend; in reloc_nonplt_object()
242 *where = (Elf_Addr) defobj->tlsindex; in reloc_nonplt_object()
262 *(Elf_Addr **)where = *where * sizeof(Elf_Addr) in reloc_nonplt_object()
267 *where += (Elf_Addr)(def->st_value + rela->r_addend in reloc_nonplt_object()
[all …]
/freebsd-14-stable/libexec/rtld-elf/powerpc64/
HDreloc.c128 Elf_Addr *where; in reloc_non_plt_self() local
149 where = (Elf_Addr *)(relocbase + rela->r_offset); in reloc_non_plt_self()
150 *where = (Elf_Addr)(relocbase + rela->r_addend); in reloc_non_plt_self()
164 Elf_Addr *where, symval = 0; in reloc_nonplt_object() local
223 where = (Elf_Addr *)(obj->relocbase + rela->r_offset); in reloc_nonplt_object()
232 if (*where != symval + rela->r_addend) { in reloc_nonplt_object()
233 *where = symval + rela->r_addend; in reloc_nonplt_object()
237 *where = (Elf_Addr) defobj->tlsindex; in reloc_nonplt_object()
257 *(Elf_Addr **)where = *where * sizeof(Elf_Addr) in reloc_nonplt_object()
262 *where += (Elf_Addr)(def->st_value + rela->r_addend in reloc_nonplt_object()
[all …]
/freebsd-14-stable/libexec/rtld-elf/amd64/
HDreloc.c135 Elf_Addr *where, symval; in reloc_non_plt() local
215 where = (Elf_Addr *)(obj->relocbase + rela->r_offset); in reloc_non_plt()
216 where32 = (Elf32_Addr *)where; in reloc_non_plt()
222 *where = symval + rela->r_addend; in reloc_non_plt()
231 rela->r_addend - (Elf_Addr)where); in reloc_non_plt()
248 *where = symval; in reloc_non_plt()
268 *where = (Elf_Addr)(def->st_value - defobj->tlsoffset + in reloc_non_plt()
293 *where += (Elf_Addr)defobj->tlsindex; in reloc_non_plt()
296 *where += (Elf_Addr)(def->st_value + rela->r_addend); in reloc_non_plt()
303 *where = (Elf_Addr)(obj->relocbase + rela->r_addend); in reloc_non_plt()
[all …]
/freebsd-14-stable/sys/arm64/arm64/
HDelf_machdep.c157 reloc_instr_imm(Elf32_Addr *where, Elf_Addr val, u_int msb, u_int lsb) in reloc_instr_imm() argument
165 *where |= (Elf32_Addr)val; in reloc_instr_imm()
179 Elf_Addr *where, addr, addend, val; in elf_reloc_internal() local
188 where = (Elf_Addr *) (relocbase + rel->r_offset); in elf_reloc_internal()
189 addend = *where; in elf_reloc_internal()
195 where = (Elf_Addr *) (relocbase + rela->r_offset); in elf_reloc_internal()
213 *where = elf_relocaddr(lf, relocbase + addend); in elf_reloc_internal()
226 error = reloc_instr_imm((Elf32_Addr *)where, in elf_reloc_internal()
227 addr + addend - (Elf_Addr)where, 15, 2); in elf_reloc_internal()
233 error = reloc_instr_imm((Elf32_Addr *)where, in elf_reloc_internal()
[all …]
/freebsd-14-stable/sys/i386/i386/
HDelf_machdep.c176 Elf_Addr *where; in elf_reloc_internal() local
187 where = (Elf_Addr *) (relocbase + rel->r_offset); in elf_reloc_internal()
188 addend = *where; in elf_reloc_internal()
194 where = (Elf_Addr *) (relocbase + rela->r_offset); in elf_reloc_internal()
206 if (*where != addr) in elf_reloc_internal()
207 *where = addr; in elf_reloc_internal()
221 if (*where != addr) in elf_reloc_internal()
222 *where = addr; in elf_reloc_internal()
229 addr += addend - (Elf_Addr)where; in elf_reloc_internal()
230 if (*where != addr) in elf_reloc_internal()
[all …]
/freebsd-14-stable/libexec/rtld-elf/riscv/
HDreloc.c154 Elf_Addr *where; in reloc_plt() local
158 where = (Elf_Addr *)(obj->relocbase + rela->r_offset); in reloc_plt()
159 *where += (Elf_Addr)obj->relocbase; in reloc_plt()
179 Elf_Addr *where; in reloc_jmpslots() local
181 where = (Elf_Addr *)(obj->relocbase + rela->r_offset); in reloc_jmpslots()
191 *where = (Elf_Addr)(defobj->relocbase + def->st_value); in reloc_jmpslots()
231 reloc_jmpslot(Elf_Addr *where, Elf_Addr target, in reloc_jmpslot() argument
238 if (*where != target && !ld_bind_not) in reloc_jmpslot()
239 *where = target; in reloc_jmpslot()
255 Elf_Addr *where; in reloc_non_plt() local
[all …]
/freebsd-14-stable/sys/amd64/amd64/
HDelf_machdep.c282 Elf64_Addr *where, val; in elf_reloc_internal() local
294 where = (Elf_Addr *) (relocbase + rel->r_offset); in elf_reloc_internal()
302 addend = *(Elf32_Addr *)where; in elf_reloc_internal()
305 addend = *where; in elf_reloc_internal()
311 where = (Elf_Addr *) (relocbase + rela->r_offset); in elf_reloc_internal()
336 if (*where != val) in elf_reloc_internal()
337 *where = val; in elf_reloc_internal()
344 where32 = (Elf32_Addr *)where; in elf_reloc_internal()
345 val32 = (Elf32_Addr)(addr + addend - (Elf_Addr)where); in elf_reloc_internal()
355 where32 = (Elf32_Addr *)where; in elf_reloc_internal()
[all …]
/freebsd-14-stable/stand/libsa/
HDlseek.c64 lseek(int fd, off_t offset, int where) in lseek() argument
79 switch (where) { in lseek()
101 if (f->f_ralen != 0 && where != SEEK_END) { in lseek()
106 switch (where) { in lseek()
129 if (where == SEEK_CUR) in lseek()
137 return (f->f_ops->fo_seek)(f, offset, where); in lseek()
/freebsd-14-stable/sys/contrib/openzfs/module/zfs/
HDrange_tree.c103 zfs_btree_index_t where; in range_tree_stat_verify() local
107 for (rs = zfs_btree_first(&rt->rt_root, &where); rs != NULL; in range_tree_stat_verify()
108 rs = zfs_btree_next(&rt->rt_root, &where, &where)) { in range_tree_stat_verify()
294 zfs_btree_index_t where; in range_tree_add_impl() local
307 rs = zfs_btree_find(&rt->rt_root, &rsearch, &where); in range_tree_add_impl()
355 rs_before = zfs_btree_prev(&rt->rt_root, &where, &where_before); in range_tree_add_impl()
356 rs_after = zfs_btree_next(&rt->rt_root, &where, &where_after); in range_tree_add_impl()
418 zfs_btree_add_idx(&rt->rt_root, rs, &where); in range_tree_add_impl()
446 zfs_btree_index_t where; in range_tree_remove_impl() local
459 rs = zfs_btree_find(&rt->rt_root, &rsearch, &where); in range_tree_remove_impl()
[all …]

12345678910>>...59