| /trueos/usr.bin/rpcgen/ |
| HD | rpc_scan.c | 55 #define startcomment(where) (where[0] == '/' && where[1] == '*') argument 56 #define endcomment(where) (where[-1] == '*' && where[0] == '/') argument 164 if (*where == 0) { in get_token() 174 *where = 0; in get_token() 189 where = curline; in get_token() 190 } else if (isspace(*where)) { in get_token() 191 while (isspace(*where)) { in get_token() 192 where++; /* eat */ in get_token() 195 for (where++; *where; where++) { in get_token() 196 if (endcomment(where)) { in get_token() [all …]
|
| /trueos/libexec/rtld-elf/arm/ |
| HD | reloc.c | 93 Elf_Addr *where; in _rtld_relocate_nonplt_self() local 109 where = (Elf_Addr *)(relocbase + rel->r_offset); in _rtld_relocate_nonplt_self() 111 *where += (Elf_Addr)relocbase; in _rtld_relocate_nonplt_self() 122 load_ptr(void *where) in load_ptr() argument 126 memcpy(&res, where, sizeof(res)); in load_ptr() 132 store_ptr(void *where, Elf_Addr val) in store_ptr() argument 135 memcpy(where, &val, sizeof(val)); in store_ptr() 142 Elf_Addr *where; in reloc_nonplt_object() local 148 where = (Elf_Addr *)(obj->relocbase + rel->r_offset); in reloc_nonplt_object() 162 addend = *where; in reloc_nonplt_object() [all …]
|
| /trueos/libexec/rtld-elf/sparc64/ |
| HD | reloc.c | 335 Elf_Addr *where; in reloc_nonplt_object() local 341 where = (Elf_Addr *)(obj->relocbase + rela->r_offset); in reloc_nonplt_object() 342 where32 = (Elf_Word *)where; in reloc_nonplt_object() 383 *where = (Elf_Addr)(obj->relocbase + value); in reloc_nonplt_object() 432 value -= (Elf_Addr)where; in reloc_nonplt_object() 464 ptr = (char *)where; in reloc_nonplt_object() 478 *where &= ~mask; in reloc_nonplt_object() 479 *where |= value; in reloc_nonplt_object() 496 Elf_Addr *where; in reloc_plt() 504 where = (Elf_Addr *)(obj->relocbase + rela->r_offset); in reloc_plt() [all …]
|
| /trueos/contrib/less/ |
| HD | prompt.c | 162 curr_byte(where) in curr_byte() argument 163 int where; in curr_byte() 167 pos = position(where); 168 while (pos == NULL_POSITION && where >= 0 && where < sc_height-1) 169 pos = position(++where); 182 cond(c, where) in cond() argument 184 int where; 193 return (curr_byte(where) != NULL_POSITION); 219 return (curr_byte(where) != NULL_POSITION && 222 return (currline(where) != 0 && [all …]
|
| HD | position.c | 39 position(where) in position() argument 40 int where; in position() 42 switch (where) 45 where = sc_height - 2; 48 where = sc_height - 1; 51 where = (sc_height - 1) / 2; 53 return (table[where]);
|
| /trueos/sys/mips/mips/ |
| HD | elf_machdep.c | 171 Elf32_Addr *where = (Elf32_Addr *)NULL; in elf_reloc_internal() local 187 where = (Elf32_Addr *) (relocbase + rel->r_offset); in elf_reloc_internal() 192 addend = *(Elf64_Addr *)where; in elf_reloc_internal() 195 addend = *where; in elf_reloc_internal() 202 where = (Elf32_Addr *) (relocbase + rela->r_offset); in elf_reloc_internal() 220 if (*where != addr) in elf_reloc_internal() 221 *where = (Elf32_Addr)addr; in elf_reloc_internal() 236 addr += ((Elf_Addr)where & 0xf0000000) | addend; in elf_reloc_internal() 239 *where &= ~0x03ffffff; in elf_reloc_internal() 240 *where |= addr & 0x03ffffff; in elf_reloc_internal() [all …]
|
| /trueos/contrib/binutils/bfd/ |
| HD | bfdio.c | 133 if (abfd->where + get > bim->size) in bfd_bread() 135 if (bim->size < (bfd_size_type) abfd->where) in bfd_bread() 138 get = bim->size - abfd->where; in bfd_bread() 141 memcpy (ptr, bim->buffer + abfd->where, (size_t) get); in bfd_bread() 142 abfd->where += get; in bfd_bread() 151 abfd->where += nread; in bfd_bread() 166 if (abfd->where + size > bim->size) in bfd_bwrite() 171 bim->size = abfd->where + size; in bfd_bwrite() 184 memcpy (bim->buffer + abfd->where, ptr, (size_t) size); in bfd_bwrite() 185 abfd->where += size; in bfd_bwrite() [all …]
|
| /trueos/libexec/rtld-elf/mips/ |
| HD | reloc.c | 98 load_ptr(void *where, size_t len) in load_ptr() argument 102 if (__predict_true(((uintptr_t)where & (len - 1)) == 0)) { in load_ptr() 105 return *(Elf_Sxword *)where; in load_ptr() 107 return *(Elf_Sword *)where; in load_ptr() 112 (void)memcpy(&val, where, len); in load_ptr() 115 (void)memcpy((uint8_t *)((&val)+1) - len, where, len); in load_ptr() 121 store_ptr(void *where, Elf_Sxword val, size_t len) in store_ptr() argument 123 if (__predict_true(((uintptr_t)where & (len - 1)) == 0)) { in store_ptr() 126 *(Elf_Sxword *)where = val; in store_ptr() 130 *(Elf_Sword *)where = val; in store_ptr() [all …]
|
| /trueos/sys/boot/common/ |
| HD | reloc_elf.c | 82 Elf64_Addr *where, val; in __elfN() 91 where = (Elf_Addr *)((char *)data + relbase + rel->r_offset - in __elfN() 100 where = (Elf_Addr *)((char *)data + relbase + rela->r_offset - in __elfN() 110 if ((char *)where < (char *)data || (char *)where >= (char *)data + len) in __elfN() 114 addend = *where; in __elfN() 126 *where = val; in __elfN() 131 *where = val; in __elfN() 140 Elf_Addr addend, addr, *where, val; in __elfN() 148 where = (Elf_Addr *)((char *)data + relbase + rel->r_offset - in __elfN() 157 where = (Elf_Addr *)((char *)data + relbase + rela->r_offset - in __elfN() [all …]
|
| /trueos/usr.sbin/kldxref/ |
| HD | ef_amd64.c | 47 Elf64_Addr *where, val; in ef_reloc() local 57 where = (Elf_Addr *)(dest + relbase + rel->r_offset - dataoff); in ef_reloc() 64 where = (Elf_Addr *)(dest + relbase + rela->r_offset - dataoff); in ef_reloc() 73 if ((char *)where < (char *)dest || (char *)where >= (char *)dest + len) in ef_reloc() 81 addend = *(Elf32_Addr *)where; in ef_reloc() 84 addend = *where; in ef_reloc() 95 *where = val; in ef_reloc() 100 where32 = (Elf32_Addr *)where; in ef_reloc() 105 *where = addr; in ef_reloc() 110 *where = val; in ef_reloc()
|
| HD | ef_i386.c | 47 Elf_Addr *where, addr, addend; in ef_reloc() local 56 where = (Elf_Addr *)(dest + relbase + rel->r_offset - dataoff); in ef_reloc() 63 where = (Elf_Addr *)(dest + relbase + rela->r_offset - dataoff); in ef_reloc() 72 if ((char *)where < (char *)dest || (char *)where >= (char *)dest + len) in ef_reloc() 76 addend = *where; in ef_reloc() 81 *where = addr; in ef_reloc() 86 *where = addr; in ef_reloc() 90 *where = addr; in ef_reloc()
|
| /trueos/libexec/rtld-elf/i386/ |
| HD | reloc.c | 132 Elf_Addr *where, symval, add; in reloc_non_plt() local 192 where = (Elf_Addr *)(obj->relocbase + rel->r_offset); in reloc_non_plt() 198 *where += symval; in reloc_non_plt() 206 *where += symval - (Elf_Addr)where; in reloc_non_plt() 223 *where = symval; in reloc_non_plt() 226 *where += (Elf_Addr)obj->relocbase; in reloc_non_plt() 248 *where += add; in reloc_non_plt() 250 *where -= add; in reloc_non_plt() 253 *where += (Elf_Addr)defobj->tlsindex; in reloc_non_plt() 256 *where += (Elf_Addr) def->st_value; in reloc_non_plt() [all …]
|
| /trueos/libexec/rtld-elf/amd64/ |
| HD | reloc.c | 131 Elf_Addr *where, symval; in reloc_non_plt() local 208 where = (Elf_Addr *)(obj->relocbase + rela->r_offset); in reloc_non_plt() 209 where32 = (Elf32_Addr *)where; in reloc_non_plt() 215 *where = symval + rela->r_addend; in reloc_non_plt() 224 rela->r_addend - (Elf_Addr)where); in reloc_non_plt() 241 *where = symval; in reloc_non_plt() 260 *where = (Elf_Addr)(def->st_value - defobj->tlsoffset + in reloc_non_plt() 284 *where += (Elf_Addr)defobj->tlsindex; in reloc_non_plt() 287 *where += (Elf_Addr)(def->st_value + rela->r_addend); in reloc_non_plt() 294 *where = (Elf_Addr)(obj->relocbase + rela->r_addend); in reloc_non_plt() [all …]
|
| /trueos/lib/libasl/ |
| HD | asl_memory.c | 263 uint32_t i, where, hash, len; in asl_memory_string_retain() local 272 where = asl_memory_string_cache_search_hash(s, hash); in asl_memory_string_retain() 275 if (where < s->string_count) in asl_memory_string_retain() 277 while (((mem_string_t *)(s->string_cache[where]))->hash == hash) in asl_memory_string_retain() 279 if (!strcmp(str, ((mem_string_t *)(s->string_cache[where]))->str)) in asl_memory_string_retain() 281 ((mem_string_t *)(s->string_cache[where]))->refcount++; in asl_memory_string_retain() 282 return s->string_cache[where]; in asl_memory_string_retain() 285 where++; in asl_memory_string_retain() 300 for (i = s->string_count; i > where; i--) s->string_cache[i] = s->string_cache[i - 1]; in asl_memory_string_retain() 313 s->string_cache[where] = new; in asl_memory_string_retain() [all …]
|
| /trueos/libexec/rtld-elf/powerpc/ |
| HD | reloc.c | 131 Elf_Addr *where; in reloc_non_plt_self() local 152 where = (Elf_Addr *)(relocbase + rela->r_offset); in reloc_non_plt_self() 153 *where = (Elf_Addr)(relocbase + rela->r_addend); in reloc_non_plt_self() 165 Elf_Addr *where = (Elf_Addr *)(obj->relocbase + rela->r_offset); in reloc_nonplt_object() local 187 if (*where != tmp) { in reloc_nonplt_object() 188 *where = tmp; in reloc_nonplt_object() 196 if (*where != tmp) { in reloc_nonplt_object() 197 *where = tmp; in reloc_nonplt_object() 230 *where = (Elf_Addr) defobj->tlsindex; in reloc_nonplt_object() 257 *(Elf_Addr **)where = *where * sizeof(Elf_Addr) in reloc_nonplt_object() [all …]
|
| /trueos/libexec/rtld-elf/ia64/ |
| HD | reloc.c | 155 Elf_Addr *where = (Elf_Addr *) (obj->relocbase + rela->r_offset); in reloc_non_plt_obj() local 163 store64(where, in reloc_non_plt_obj() 164 load64(where) + (Elf_Addr) obj->relocbase); in reloc_non_plt_obj() 179 store64(where, target + rela->r_addend); in reloc_non_plt_obj() 239 store64(where, (Elf_Addr)fptr); in reloc_non_plt_obj() 267 fptr = (void*)where; in reloc_non_plt_obj() 282 store64(where, defobj->tlsindex); in reloc_non_plt_obj() 295 store64(where, def->st_value + rela->r_addend); in reloc_non_plt_obj() 324 store64(where, defobj->tlsoffset + def->st_value + rela->r_addend); in reloc_non_plt_obj() 415 Elf_Addr *where; in reloc_plt() local [all …]
|
| /trueos/libexec/rtld-elf/powerpc64/ |
| HD | reloc.c | 125 Elf_Addr *where; in reloc_non_plt_self() local 146 where = (Elf_Addr *)(relocbase + rela->r_offset); in reloc_non_plt_self() 147 *where = (Elf_Addr)(relocbase + rela->r_addend); in reloc_non_plt_self() 159 Elf_Addr *where = (Elf_Addr *)(obj->relocbase + rela->r_offset); in reloc_nonplt_object() local 182 if (*where != tmp) { in reloc_nonplt_object() 183 *where = tmp; in reloc_nonplt_object() 191 if (*where != tmp) { in reloc_nonplt_object() 192 *where = tmp; in reloc_nonplt_object() 225 *where = (Elf_Addr) defobj->tlsindex; in reloc_nonplt_object() 252 *(Elf_Addr **)where = *where * sizeof(Elf_Addr) in reloc_nonplt_object() [all …]
|
| /trueos/contrib/binutils/binutils/ |
| HD | coffgrok.c | 203 struct coff_where *where = in do_where() local 205 where->offset = sym->n_value; in do_where() 213 where->where = coff_where_member_of_struct; in do_where() 214 where->offset = sym->n_value / 8; in do_where() 215 where->bitoffset = sym->n_value % 8; in do_where() 216 where->bitsize = rawsyms[i + 1].u.auxent.x_sym.x_misc.x_lnsz.x_size; in do_where() 219 where->where = coff_where_member_of_enum; in do_where() 223 where->where = coff_where_member_of_struct; in do_where() 227 where->where = coff_where_stack; in do_where() 233 where->where = coff_where_memory; in do_where() [all …]
|
| /trueos/sys/amd64/amd64/ |
| HD | elf_machdep.c | 163 Elf64_Addr *where, val; in elf_reloc_internal() local 174 where = (Elf_Addr *) (relocbase + rel->r_offset); in elf_reloc_internal() 181 addend = *(Elf32_Addr *)where; in elf_reloc_internal() 184 addend = *where; in elf_reloc_internal() 190 where = (Elf_Addr *) (relocbase + rela->r_offset); in elf_reloc_internal() 209 if (*where != val) in elf_reloc_internal() 210 *where = val; in elf_reloc_internal() 215 where32 = (Elf32_Addr *)where; in elf_reloc_internal() 216 val32 = (Elf32_Addr)(addr + addend - (Elf_Addr)where); in elf_reloc_internal() 226 where32 = (Elf32_Addr *)where; in elf_reloc_internal() [all …]
|
| /trueos/sys/i386/i386/ |
| HD | elf_machdep.c | 174 Elf_Addr *where; in elf_reloc_internal() local 184 where = (Elf_Addr *) (relocbase + rel->r_offset); in elf_reloc_internal() 185 addend = *where; in elf_reloc_internal() 191 where = (Elf_Addr *) (relocbase + rela->r_offset); in elf_reloc_internal() 203 if (*where != addr) in elf_reloc_internal() 204 *where = addr; in elf_reloc_internal() 219 if (*where != addr) in elf_reloc_internal() 220 *where = addr; in elf_reloc_internal() 227 addr += addend - (Elf_Addr)where; in elf_reloc_internal() 228 if (*where != addr) in elf_reloc_internal() [all …]
|
| /trueos/usr.sbin/pkg_install/create/ |
| HD | pl.c | 64 const char *where = home; in check_list() local 75 where = (p->name == NULL) ? prefix : p->name; in check_list() 91 BaseDir && where && where[0] == '/' ? BaseDir : "", where, p->name); in check_list() 139 const char *where = home; in copy_plist() local 178 where = p->name == NULL ? prefix : p->name; in copy_plist() 244 BaseDir && where && where[0] == '/' ? BaseDir : "", where, p->name); in copy_plist() 259 if (last_chdir == (mythere ? mythere : where)) in copy_plist() 267 mythere ? mythere : where, in copy_plist() 274 last_chdir = (mythere ? mythere : where); in copy_plist()
|
| /trueos/contrib/file/src/ |
| HD | is_tar.c | 133 from_oct(int digs, const char *where) in from_oct() argument 137 while (isspace((unsigned char)*where)) { /* Skip spaces */ in from_oct() 138 where++; in from_oct() 143 while (digs > 0 && isodigit(*where)) { /* Scan til non-octal */ in from_oct() 144 value = (value << 3) | (*where++ - '0'); in from_oct() 148 if (digs > 0 && *where && !isspace((unsigned char)*where)) in from_oct()
|
| /trueos/lib/libstand/ |
| HD | lseek.c | 69 lseek(int fd, off_t offset, int where) in lseek() argument 83 switch (where) { in lseek() 106 if (f->f_ralen != 0 && where != SEEK_END) { in lseek() 110 switch (where) { in lseek() 133 if (where == SEEK_CUR) in lseek() 141 return (f->f_ops->fo_seek)(f, offset, where); in lseek()
|
| /trueos/lib/liblaunch/ |
| HD | liblaunch.c | 177 static launch_data_t launch_data_array_pop_first(launch_data_t where); 215 char *where = getenv(LAUNCHD_SOCKET_ENV); in launch_client_init() local 241 if (where && where[0] != '\0') { in launch_client_init() 242 strncpy(sun.sun_path, where, sizeof(sun.sun_path)); in launch_client_init() 436 launch_data_array_set_index(launch_data_t where, launch_data_t what, size_t ind) in launch_data_array_set_index() argument 438 if ((ind + 1) >= where->_array_cnt) { in launch_data_array_set_index() 439 where->_array = reallocf(where->_array, (ind + 1) * sizeof(launch_data_t)); in launch_data_array_set_index() 440 …memset(where->_array + where->_array_cnt, 0, (ind + 1 - where->_array_cnt) * sizeof(launch_data_t)… in launch_data_array_set_index() 441 where->_array_cnt = ind + 1; in launch_data_array_set_index() 444 if (where->_array[ind]) { in launch_data_array_set_index() [all …]
|
| /trueos/crypto/heimdal/lib/hx509/ |
| HD | 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()
|