| /freebsd/usr.bin/rpcgen/ |
| H A D | rpc_scan.c | 45 #define startcomment(where) (where[0] == '/' && where[1] == '*') argument 46 #define endcomment(where) (where[-1] == '*' && where[0] == '/') argument 154 if (*where == 0) { in get_token() 164 *where = 0; in get_token() 179 where = curline; in get_token() 180 } else if (isspace(*where)) { in get_token() 181 while (isspace(*where)) { in get_token() 182 where++; /* eat */ in get_token() 185 for (where++; *where; where++) { in get_token() 186 if (endcomment(where)) { in get_token() [all …]
|
| /freebsd/libexec/rtld-elf/arm/ |
| H A D | reloc.c | 91 Elf_Addr *where; in _rtld_relocate_nonplt_self() local 105 where = (Elf_Addr *)(relocbase + rel->r_offset); in _rtld_relocate_nonplt_self() 107 *where += (Elf_Addr)relocbase; in _rtld_relocate_nonplt_self() 118 load_ptr(void *where) in load_ptr() argument 122 memcpy(&res, where, sizeof(res)); in load_ptr() 128 store_ptr(void *where, Elf_Addr val) in store_ptr() argument 131 memcpy(where, &val, sizeof(val)); in store_ptr() 138 Elf_Addr *where; in reloc_nonplt_object() local 144 where = (Elf_Addr *)(obj->relocbase + rel->r_offset); in reloc_nonplt_object() 158 addend = *where; in reloc_nonplt_object() [all …]
|
| /freebsd/sys/riscv/riscv/ |
| H A D | elf_machdep.c | 296 Elf64_Addr *where; in elf_reloc_internal() local 308 where = (Elf_Addr *)(relocbase + rela->r_offset); in elf_reloc_internal() 309 insn32p = (uint32_t *)where; in elf_reloc_internal() 329 before64 = *where; in elf_reloc_internal() 330 *where = addr + addend; in elf_reloc_internal() 332 printf("%p %c %-24s %016lx -> %016lx\n", where, in elf_reloc_internal() 334 before64, *where); in elf_reloc_internal() 342 before64 = *where; in elf_reloc_internal() 343 *where = addr; in elf_reloc_internal() 345 printf("%p %c %-24s %016lx -> %016lx\n", where, in elf_reloc_internal() [all …]
|
| /freebsd/sys/arm/arm/ |
| H A D | elf_machdep.c | 164 load_ptr(Elf_Addr *where) in load_ptr() argument 168 if (RELOC_ALIGNED_P(where)) in load_ptr() 169 return *where; in load_ptr() 170 memcpy(&res, where, sizeof(res)); in load_ptr() 175 store_ptr(Elf_Addr *where, Elf_Addr val) in store_ptr() argument 177 if (RELOC_ALIGNED_P(where)) in store_ptr() 178 *where = val; in store_ptr() 180 memcpy(where, &val, sizeof(val)); in store_ptr() 189 Elf_Addr *where; in elf_reloc_internal() local 200 where = (Elf_Addr *) (relocbase + rel->r_offset); in elf_reloc_internal() [all …]
|
| /freebsd/stand/common/ |
| H A D | reloc_elf.c | 53 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/lib/libkldelf/ |
| H A D | ef_amd64.c | 47 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()
|
| H A D | ef_powerpc.c | 47 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()
|
| H A D | ef_i386.c | 47 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()
|
| H A D | ef_arm.c | 48 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()
|
| H A D | ef_riscv.c | 50 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()
|
| H A D | ef_aarch64.c | 45 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/contrib/less/ |
| H A D | prompt.c | 189 static POSITION curr_byte(int where) in curr_byte() argument 193 pos = position(where); in curr_byte() 194 while (pos == NULL_POSITION && where >= 0 && where < sc_height-1) in curr_byte() 195 pos = position(++where); in curr_byte() 207 static lbool cond(char c, int where) in cond() argument 216 return (curr_byte(where) != NULL_POSITION); in cond() 228 return (currline(where) != 0); in cond() 245 return (curr_byte(where) != NULL_POSITION && ch_length() > 0); in cond() 247 return (currline(where) != 0 && in cond() 272 static void protochar(char c, int where) in protochar() argument [all …]
|
| /freebsd/libexec/rtld-elf/aarch64/ |
| H A D | reloc.c | 202 struct tlsdesc_entry *where, int flags, RtldLockState *lockstate) in reloc_tlsdesc() argument 218 where->func = _rtld_tlsdesc_undef; in reloc_tlsdesc() 219 where->addend = rela->r_addend; in reloc_tlsdesc() 227 where->func = _rtld_tlsdesc_static; in reloc_tlsdesc() 228 where->offset = obj->tlsoffset + offs; in reloc_tlsdesc() 231 where->func = _rtld_tlsdesc_dynamic; in reloc_tlsdesc() 232 where->data = reloc_tlsdesc_alloc(obj->tlsindex, offs); in reloc_tlsdesc() 251 Elf_Addr *where, target; in reloc_plt() local 253 where = (Elf_Addr *)(obj->relocbase + rela->r_offset); in reloc_plt() 271 *where += (Elf_Addr)obj->relocbase; in reloc_plt() [all …]
|
| /freebsd/libexec/rtld-elf/i386/ |
| H A D | reloc.c | 138 Elf_Addr *where, symval, add; in reloc_non_plt() local 203 where = (Elf_Addr *)(obj->relocbase + rel->r_offset); in reloc_non_plt() 209 *where += symval; in reloc_non_plt() 217 *where += symval - (Elf_Addr)where; in reloc_non_plt() 235 *where = symval; in reloc_non_plt() 238 *where += (Elf_Addr)obj->relocbase; in reloc_non_plt() 261 *where += add; in reloc_non_plt() 263 *where -= add; in reloc_non_plt() 266 *where += (Elf_Addr)defobj->tlsindex; in reloc_non_plt() 269 *where += (Elf_Addr)def->st_value; in reloc_non_plt() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | ilist.h | 165 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/libexec/rtld-elf/powerpc/ |
| H A D | reloc.c | 144 Elf_Addr *where; in reloc_non_plt_self() local 165 where = (Elf_Addr *)(relocbase + rela->r_offset); in reloc_non_plt_self() 166 *where = (Elf_Addr)(relocbase + rela->r_addend); in reloc_non_plt_self() 180 Elf_Addr *where, symval = 0; in reloc_nonplt_object() local 239 where = (Elf_Addr *)(obj->relocbase + rela->r_offset); in reloc_nonplt_object() 248 if (*where != symval + rela->r_addend) { in reloc_nonplt_object() 249 *where = symval + rela->r_addend; in reloc_nonplt_object() 253 *where = (Elf_Addr) defobj->tlsindex; in reloc_nonplt_object() 273 *(Elf_Addr **)where = *where * sizeo in reloc_nonplt_object() 385 Elf_Word *where = (Elf_Word *)(obj->relocbase + rela->r_offset); reloc_plt_object() local 491 Elf_Addr *where; reloc_jmpslots() local 622 Elf_Addr *where, target, *ptr; reloc_iresolve() local 675 Elf_Addr *where, target; reloc_gnu_ifunc() local [all...] |
| /freebsd/libexec/rtld-elf/powerpc64/ |
| H A D | reloc.c | 139 Elf_Addr *where; in reloc_non_plt_self() local 160 where = (Elf_Addr *)(relocbase + rela->r_offset); in reloc_non_plt_self() 161 *where = (Elf_Addr)(relocbase + rela->r_addend); in reloc_non_plt_self() 175 Elf_Addr *where, symval = 0; in reloc_nonplt_object() local 234 where = (Elf_Addr *)(obj->relocbase + rela->r_offset); in reloc_nonplt_object() 243 if (*where != symval + rela->r_addend) { in reloc_nonplt_object() 244 *where = symval + rela->r_addend; in reloc_nonplt_object() 248 *where = (Elf_Addr) defobj->tlsindex; in reloc_nonplt_object() 268 *(Elf_Addr **)where = *where * sizeo in reloc_nonplt_object() 384 Elf_Addr *where = (Elf_Addr *)(obj->relocbase + rela->r_offset); reloc_plt_object() local 452 Elf_Addr *where; reloc_jmpslots() local [all...] |
| /freebsd/libexec/rtld-elf/amd64/ |
| H A D | reloc.c | 140 Elf_Addr *where, symval; in reloc_non_plt() local 221 where = (Elf_Addr *)(obj->relocbase + rela->r_offset); in reloc_non_plt() 222 where32 = (Elf32_Addr *)where; in reloc_non_plt() 228 *where = symval + rela->r_addend; in reloc_non_plt() 237 rela->r_addend - (Elf_Addr)where); in reloc_non_plt() 256 *where = symval; in reloc_non_plt() 276 *where = (Elf_Addr)(def->st_value - defobj->tlsoffset + in reloc_non_plt() 301 *where += (Elf_Addr)defobj->tlsindex; in reloc_non_plt() 304 *where += (Elf_Addr)(def->st_value + rela->r_addend); in reloc_non_plt() 311 *where = (Elf_Addr)(obj->relocbase + rela->r_addend); in reloc_non_plt() [all …]
|
| /freebsd/libexec/rtld-elf/riscv/ |
| H A D | reloc.c | 146 Elf_Addr *where; in reloc_plt() local 148 where = (Elf_Addr *)(obj->relocbase + rela->r_offset); in reloc_plt() 152 *where += (Elf_Addr)obj->relocbase; in reloc_plt() 181 Elf_Addr *where; in reloc_jmpslots() local 183 where = (Elf_Addr *)(obj->relocbase + rela->r_offset); in reloc_jmpslots() 198 *where = (Elf_Addr)(defobj->relocbase + def->st_value); in reloc_jmpslots() 214 Elf_Addr *where, target, *ptr; in reloc_iresolve_one() local 217 where = (Elf_Addr *)(obj->relocbase + rela->r_offset); in reloc_iresolve_one() 221 *where = target; in reloc_iresolve_one() 267 Elf_Addr *where, target; in reloc_gnu_ifunc() local [all …]
|
| /freebsd/sys/i386/i386/ |
| H A D | elf_machdep.c | 176 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/sys/arm64/arm64/ |
| H A D | elf_machdep.c | 179 reloc_instr_imm(Elf32_Addr *where, Elf_Addr val, u_int msb, u_int lsb) in reloc_instr_imm() argument 187 *where |= (Elf32_Addr)val; in reloc_instr_imm() 201 Elf_Addr *where, addr, addend, val; in elf_reloc_internal() local 210 where = (Elf_Addr *) (relocbase + rel->r_offset); in elf_reloc_internal() 211 addend = *where; in elf_reloc_internal() 217 where = (Elf_Addr *) (relocbase + rela->r_offset); in elf_reloc_internal() 235 *where = elf_relocaddr(lf, relocbase + addend); in elf_reloc_internal() 248 error = reloc_instr_imm((Elf32_Addr *)where, in elf_reloc_internal() 249 addr + addend - (Elf_Addr)where, 15, 2); in elf_reloc_internal() 255 error = reloc_instr_imm((Elf32_Addr *)where, in elf_reloc_internal() [all …]
|
| /freebsd/sys/amd64/amd64/ |
| H A D | elf_machdep.c | 279 Elf64_Addr *where, val; in elf_reloc_internal() local 291 where = (Elf_Addr *) (relocbase + rel->r_offset); in elf_reloc_internal() 299 addend = *(Elf32_Addr *)where; in elf_reloc_internal() 302 addend = *where; in elf_reloc_internal() 308 where = (Elf_Addr *) (relocbase + rela->r_offset); in elf_reloc_internal() 333 if (*where != val) in elf_reloc_internal() 334 *where = val; in elf_reloc_internal() 341 where32 = (Elf32_Addr *)where; in elf_reloc_internal() 342 val32 = (Elf32_Addr)(addr + addend - (Elf_Addr)where); in elf_reloc_internal() 352 where32 = (Elf32_Addr *)where; in elf_reloc_internal() [all …]
|
| /freebsd/stand/libsa/ |
| H A D | lseek.c | 64 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/sys/contrib/openzfs/module/zfs/ |
| H A D | btree.c | 205 const void *value, zfs_btree_index_t *where); 232 const void *value, zfs_btree_index_t *where) in zfs_btree_find_in_buf() argument 245 where->bti_offset = idx; in zfs_btree_find_in_buf() 246 where->bti_before = B_FALSE; in zfs_btree_find_in_buf() 251 where->bti_offset = max; in zfs_btree_find_in_buf() 252 where->bti_before = B_TRUE; in zfs_btree_find_in_buf() 261 zfs_btree_find(zfs_btree_t *tree, const void *value, zfs_btree_index_t *where) in zfs_btree_find() argument 264 if (where != NULL) { in zfs_btree_find() 265 where->bti_node = NULL; in zfs_btree_find() 266 where->bti_offset = 0; in zfs_btree_find() [all …]
|
| /freebsd/crypto/heimdal/lib/hx509/ |
| H A D | file.c | 195 enum { BEFORE, SEARCHHEADER, INHEADER, INDATA, DONE } where; in hx509_pem_read() local 197 where = BEFORE; in hx509_pem_read() 215 switch (where) { in hx509_pem_read() 224 where = SEARCHHEADER; in hx509_pem_read() 230 where = INDATA; in hx509_pem_read() 236 where = INDATA; in hx509_pem_read() 253 where = DONE; in hx509_pem_read() 273 if (where == DONE) { in hx509_pem_read() 281 where = BEFORE; in hx509_pem_read() 289 if (where != BEFORE) { in hx509_pem_read()
|