/src/sys/arch/sparc64/include/ |
elf_support.h | 34 * Create a jump to the location `target` starting at `where`. 56 unsigned int *where = (unsigned int *)where_; local in function:sparc_write_branch 58 unsigned long offset = value - (unsigned long)where; 64 where[0] = BAA | ((offset >> 2) & 0x3fffff); 65 __asm volatile("iflush %0+0" : : "r" (where)); 76 where[1] = JMP | LOVAL(value, 0); 77 __asm volatile("iflush %0+4" : : "r" (where)); 78 where[0] = SETHI | HIVAL(value, 10); 79 __asm volatile("iflush %0+0" : : "r" (where)); 90 where[2] = JMP [all...] |
/src/sys/arch/sparc/include/ |
elf_support.h | 38 unsigned int *where = (unsigned int *)where_; local in function:sparc_write_branch 40 unsigned long offset = value - (unsigned long)where; 46 where[0] = BAA | ((offset >> 2) & 0x3fffff); 47 __asm volatile("iflush %0+0" : : "r" (where)); 57 where[1] = JMP | LOVAL(value, 0); 58 __asm volatile("iflush %0+4" : : "r" (where)); 59 where[0] = SETHI | HIVAL(value, 10); 60 __asm volatile("iflush %0+0" : : "r" (where));
|
/src/usr.bin/rpcgen/ |
rpc_scan.c | 57 #define startcomment(where) (where[0] == '/' && where[1] == '*') 58 #define endcomment(where) (where[-1] == '*' && where[0] == '/') 158 if (*where == 0) { 162 *where = 0; 179 where = curline; 181 if (isspace((unsigned char)*where)) { [all...] |
/src/usr.bin/finger/ |
finger.h | 54 struct where *whead, *wtail; /* list of where user is or has been */ 59 typedef struct where { struct 60 struct where *next; /* next place user is or has been */ 67 } WHERE;
|
/src/sys/arch/alpha/alpha/ |
kobj_machdep.c | 69 Elf_Addr *where; local in function:kobj_reloc 79 where = (Elf_Addr *) (relocbase + rela->r_offset); 85 where = (Elf_Addr *) (relocbase + rel->r_offset); 86 addend = *where; 106 if (*where != addr) 107 *where = addr; 115 if (*where != addr) 116 *where = addr; 124 if (*where != addr) 125 *where = addr [all...] |
/src/sys/lib/libsa/ |
lseek.c | 67 lseek(int fd, off_t offset, int where) 69 olseek(int fd, off_t offset, int where) 86 switch (where) { 102 return FS_SEEK(f->f_ops)(f, offset, where);
|
/src/share/examples/refuse/fanoutfs/ |
defs.h | 44 #define NEWARRAY(type,ptr,size,where,action) do { \ 47 where, (unsigned long)(size * sizeof(type))); \ 52 #define RENEW(type,ptr,size,where,action) do { \ 56 where, (unsigned long)(size * sizeof(type))); \ 63 #define NEW(type, ptr, where, action) NEWARRAY(type, ptr, 1, where, action) 67 #define ALLOC(type, v, size, c, init, incr, where, action) do { \ 71 NEWARRAY(type, v, _newsize, where ": new", action); \ 74 RENEW(type, v, _newsize, where ": renew", action); \
|
/src/share/examples/refuse/id3fs/ |
defs.h | 44 #define NEWARRAY(type,ptr,size,where,action) do { \ 47 where, (unsigned long)(size * sizeof(type))); \ 52 #define RENEW(type,ptr,size,where,action) do { \ 56 where, (unsigned long)(size * sizeof(type))); \ 63 #define NEW(type, ptr, where, action) NEWARRAY(type, ptr, 1, where, action) 67 #define ALLOC(type, v, size, c, init, incr, where, action) do { \ 71 NEWARRAY(type, v, _newsize, where ": new", action); \ 74 RENEW(type, v, _newsize, where ": renew", action); \
|
/src/share/examples/refuse/virtdir/ |
defs.h | 44 #define NEWARRAY(type,ptr,size,where,action) do { \ 47 where, (unsigned long)(size * sizeof(type))); \ 52 #define RENEW(type,ptr,size,where,action) do { \ 56 where, (unsigned long)(size * sizeof(type))); \ 63 #define NEW(type, ptr, where, action) NEWARRAY(type, ptr, 1, where, action) 67 #define ALLOC(type, v, size, c, init, incr, where, action) do { \ 71 NEWARRAY(type, v, _newsize, where ": new", action); \ 74 RENEW(type, v, _newsize, where ": renew", action); \
|
/src/libexec/ld.elf_so/arch/arm/ |
mdreloc.c | 39 Elf_Addr *where; local in function:_rtld_relocate_nonplt_self 53 where = (Elf_Addr *)(relocbase + rel->r_offset); 54 *where += (Elf_Addr)relocbase; 66 load_ptr(void *where) 70 memcpy(&res, where, sizeof(res)); 76 store_ptr(void *where, Elf_Addr val) 79 memcpy(where, &val, sizeof(val)); 91 Elf_Addr *where; local in function:_rtld_relocate_nonplt_objects 95 where = (Elf_Addr *)(obj->relocbase + rel->r_offset); 129 addend = *where; 279 Elf_Addr *where = (Elf_Addr *)(obj->relocbase + rel->r_offset); local in function:_rtld_relocate_plt_lazy 299 Elf_Addr *where = (Elf_Addr *)(obj->relocbase + rel->r_offset); local in function:_rtld_relocate_plt_object [all...] |
/src/sys/arch/acorn32/stand/lib/ |
rmreloc.c | 85 load_ptr(void *where) 89 memcpy(&res, where, sizeof(res)); 95 store_ptr(void *where, Elf_Addr val) 98 memcpy(where, &val, sizeof(val)); 134 Elf_Addr *where; local in function:relocate_self 137 where = (Elf_Addr *)(obj->relocbase + rel->r_offset); 144 if (__predict_true(RELOC_ALIGNED_P(where))) { 145 tmp = *where + (Elf_Addr)obj->relocbase - 147 *where = tmp; 149 tmp = load_ptr(where) [all...] |
/src/sys/arch/m68k/m68k/ |
kobj_machdep.c | 44 Elf_Addr *where; local in function:kobj_reloc 56 where = (Elf_Addr *)(relocbase + rela->r_offset); 74 tmp = (Elf_Addr)(addr + rela->r_addend) - (Elf_Addr)where; 75 if (*where != tmp) 76 *where = tmp; 84 tmp = (Elf_Addr)(addr + *where + rela->r_addend); 85 *where = tmp; 89 *where += (Elf_Addr)(relocbase + rela->r_addend);
|
/src/sys/arch/amd64/amd64/ |
kobj_machdep.c | 76 Elf64_Addr *where, val; local in function:kobj_reloc 87 where = (Elf64_Addr *)(relocbase + rela->r_offset); 93 where = (Elf64_Addr *)(relocbase + rel->r_offset); 101 addend = *(Elf32_Addr *)where; 104 addend = *where; 124 memcpy(where, &val, sizeof(val)); 132 where32 = (Elf32_Addr *)where; 133 val32 = (Elf32_Addr)(addr + addend - (Elf64_Addr)where); 143 where32 = (Elf32_Addr *)where; 152 memcpy(where, &addr, sizeof(addr)) 172 uint64_t where; local in function:kobj_machdep [all...] |
/src/libexec/ld.elf_so/arch/aarch64/ |
mdreloc.c | 146 _rtld_tlsdesc_fill(const Obj_Entry *obj, const Elf_Rela *rela, Elf_Addr *where, u_int flags) 160 where[0] = (Elf_Addr)_rtld_tlsdesc_undef; 161 where[1] = rela->r_addend; 165 obj->path, (void *)where[1])); 177 where[0] = (Elf_Addr)_rtld_tlsdesc_static; 178 where[1] = defobj->tlsoffset + offs + 182 obj->path, (void *)where[1])); 185 where[0] = (Elf_Addr)_rtld_tlsdesc_dynamic; 186 where[1] = (Elf_Addr)_rtld_tlsdesc_alloc(defobj->tlsindex, offs); 190 obj->path, (void *)where[1], defobj->tlsindex, (void *)offs)) 199 Elf_Addr *where; local in function:_rtld_relocate_nonplt_self 226 Elf_Addr *where; local in function:_rtld_relocate_nonplt_objects 353 Elf_Addr *where = (Elf_Addr *)(obj->relocbase + rela->r_offset); local in function:_rtld_relocate_plt_lazy 381 Elf_Addr *where, target; local in function:_rtld_call_ifunc 402 Elf_Addr *where = (Elf_Addr *)(obj->relocbase + rela->r_offset); local in function:_rtld_relocate_plt_object [all...] |
/src/libexec/ld.elf_so/arch/alpha/ |
alpha_reloc.c | 170 load_ptr(void *where) 174 memcpy(&res, where, sizeof(res)); 180 store_ptr(void *where, Elf_Addr val) 183 memcpy(where, &val, sizeof(val)); 191 Elf_Addr *where; local in function:_rtld_relocate_nonplt_self 205 where = (Elf_Addr *)(relocbase + rela->r_offset); 207 *where += (Elf_Addr)relocbase; 221 Elf_Addr *where; local in function:_rtld_relocate_nonplt_objects 225 where = (Elf_Addr *)(obj->relocbase + rela->r_offset); 256 if (__predict_true(RELOC_ALIGNED_P(where))) { 366 Elf_Addr *where = (Elf_Addr *)(obj->relocbase + rela->r_offset); local in function:_rtld_relocate_plt_lazy 382 Elf_Addr *where = (Elf_Addr *)(obj->relocbase + rela->r_offset); local in function:_rtld_relocate_plt_object [all...] |
/src/sys/arch/aarch64/aarch64/ |
kobj_machdep.c | 91 checkalign(Elf_Addr addr, int alignbyte, void *where, Elf64_Addr off) 96 (uintptr_t)addr, where, off, alignbyte); 104 const char *bitscale, void *where, Elf64_Addr off) 111 (uintptr_t)targetaddr, where, off, bitwidth, bitscale); 124 Elf64_Addr off, *where; local in function:kobj_reloc 157 where = (Elf_Addr *)(relocbase + off); 160 where32 = (void *)where; 161 where16 = (void *)where; 162 insn = (uint32_t *)where; 181 symidx, rtype, where, off) 379 uint64_t where; local in function:kobj_machdep [all...] |
/src/distrib/utils/more/ |
position.c | 71 position(where) 72 int where; 74 switch (where) 77 where = sc_height - 2; 80 where = sc_height - 1; 83 where = sc_height / 2; 85 return (table[where]);
|
/src/libexec/ld.elf_so/arch/m68k/ |
mdreloc.c | 76 Elf_Addr *where; local in function:_rtld_relocate_nonplt_self 90 where = (Elf_Addr *)(relocbase + rela->r_offset); 91 *where += (Elf_Addr)relocbase; 104 Elf_Addr *where; local in function:_rtld_relocate_nonplt_objects 108 where = (Elf_Addr *)(obj->relocbase + rela->r_offset); 138 rela->r_addend) - (Elf_Addr)where; 139 if (*where != tmp) 140 *where = tmp; 143 obj->path, (void *)*where, defobj->path)); 152 if (*where != tmp 234 Elf_Addr *where = (Elf_Addr *)(obj->relocbase + rela->r_offset); local in function:_rtld_relocate_plt_lazy 250 Elf_Addr *where = (Elf_Addr *)(obj->relocbase + rela->r_offset); local in function:_rtld_relocate_plt_object [all...] |
/src/sys/sys/ |
lockdebug.h | 85 #define LOCKDEBUG_WANTLOCK(dodebug, lock, where, s) \ 86 if (dodebug) lockdebug_wantlock(__func__, __LINE__, lock, where, s) 87 #define LOCKDEBUG_LOCKED(dodebug, lock, al, where, s) \ 88 if (dodebug) lockdebug_locked(__func__, __LINE__, lock, al, where, s) 89 #define LOCKDEBUG_UNLOCKED(dodebug, lock, where, s) \ 90 if (dodebug) lockdebug_unlocked(__func__, __LINE__, lock, where, s) 100 #define LOCKDEBUG_WANTLOCK(dodebug, lock, where, s) /* nothing */ 101 #define LOCKDEBUG_LOCKED(dodebug, lock, al, where, s) /* nothing */ 102 #define LOCKDEBUG_UNLOCKED(dodebug, lock, where, s) /* nothing */
|
/src/sys/arch/i386/i386/ |
kobj_machdep.c | 76 Elf_Addr *where; local in function:kobj_reloc 86 where = (Elf_Addr *) (relocbase + rela->r_offset); 92 where = (Elf_Addr *) (relocbase + rel->r_offset); 93 addend = *where; 119 addr += addend - (Elf_Addr)where; 137 *where = addr; 144 uint64_t where; local in function:kobj_machdep 154 where = xc_broadcast(0, (xcfunc_t)wbinvd, NULL, NULL); 155 xc_wait(where);
|
/src/libexec/ld.elf_so/arch/powerpc/ |
ppc_reloc.c | 173 Elf_Addr *where; local in function:_rtld_relocate_nonplt_self 187 where = (Elf_Addr *)(relocbase + rela->r_offset); 188 *where = (Elf_Addr)(relocbase + rela->r_addend); 201 Elf_Addr *where; local in function:_rtld_relocate_nonplt_objects 205 where = (Elf_Addr *)(obj->relocbase + rela->r_offset); 250 if (*where != tmp) 251 *where = tmp; 254 obj->path, (void *)*where, defobj->path)); 268 uint16_t *where16 = (uint16_t *)where; 287 uint16_t *where16 = (uint16_t *)where; 439 Elf_Word *where = (Elf_Word *)(obj->relocbase + rela->r_offset); local in function:_rtld_relocate_plt_object [all...] |
/src/libexec/ld.elf_so/arch/sh3/ |
mdreloc.c | 72 Elf_Addr *where; local in function:_rtld_relocate_nonplt_self 86 where = (Elf_Addr *)(relocbase + rela->r_offset); 87 *where = (Elf_Addr)(relocbase + rela->r_addend); 100 Elf_Addr *where; local in function:_rtld_relocate_nonplt_objects 104 where = (Elf_Addr *)(obj->relocbase + rela->r_offset); 135 if (*where != tmp) 136 *where = tmp; 139 obj->path, (void *)*where, defobj->path)); 144 rela->r_addend) - (Elf_Addr)where; 145 if (*where != tmp 255 Elf_Addr *where = (Elf_Addr *)(obj->relocbase + rela->r_offset); local in function:_rtld_relocate_plt_lazy 300 Elf_Addr *where = (Elf_Addr *)(obj->relocbase + rela->r_offset); local in function:_rtld_relocate_plt_object [all...] |
/src/sys/arch/hppa/hppa/ |
kobj_machdep.c | 108 load_ptr(void *where) 110 if (__predict_true(RELOC_ALIGNED_P(where))) 111 return *(Elf_Addr *)where; 115 (void)memcpy(&res, where, sizeof(res)); 121 store_ptr(void *where, Elf_Addr val) 123 if (__predict_true(RELOC_ALIGNED_P(where))) 124 *(Elf_Addr *)where = val; 126 (void)memcpy(where, &val, sizeof(val)); 133 Elf_Addr *where; local in function:kobj_reloc 147 where = (Elf_Addr *) (relocbase + rela->r_offset) [all...] |
/src/libexec/ld.elf_so/arch/or1k/ |
mdreloc.c | 75 Elf_Addr *where; local in function:_rtld_relocate_nonplt_self 89 where = (Elf_Addr *)(relocbase + rela->r_offset); 90 *where = (Elf_Addr)(relocbase + rela->r_addend); 103 Elf_Addr *where; local in function:_rtld_relocate_nonplt_objects 107 where = (Elf_Addr *)(obj->relocbase + rela->r_offset); 139 if (*where != tmp) 140 *where = tmp; 143 obj->path, (void *)*where, defobj->path)); 147 *where = (Elf_Addr)(obj->relocbase + rela->r_addend); 149 (void *)*where)); 221 Elf_Word *where = (Elf_Word *)(obj->relocbase + rela->r_offset); local in function:_rtld_relocate_plt_lazy 237 Elf_Word *where = (Elf_Word *)(obj->relocbase + rela->r_offset); local in function:_rtld_relocate_plt_object [all...] |
/src/libexec/ld.elf_so/arch/i386/ |
mdreloc.c | 87 Elf_Addr *where; local in function:_rtld_relocate_nonplt_self 103 where = (Elf_Addr *)(relocbase + rel->r_offset); 104 *where += (Elf_Addr)relocbase; 118 Elf_Addr *where; local in function:_rtld_relocate_nonplt_objects 122 where = (Elf_Addr *)(obj->relocbase + rel->r_offset); 155 *where += target - (Elf_Addr)where; 158 obj->path, (void *)*where, defobj->path)); 167 tmp = target + *where; 168 if (*where != tmp 268 Elf_Addr *where = (Elf_Addr *)(obj->relocbase + rel->r_offset); local in function:_rtld_relocate_plt_lazy 288 Elf_Addr *where = (Elf_Addr *)(obj->relocbase + rel->r_offset); local in function:_rtld_relocate_plt_object [all...] |