| /trueos/contrib/gcc/ |
| HD | bitmap.c | 91 head->indx = head->current->indx; in bitmap_element_free() 93 head->indx = 0; in bitmap_element_free() 161 if (head->current->indx > prev->indx) in bitmap_elt_clear_from() 164 head->indx = prev->indx; in bitmap_elt_clear_from() 171 head->indx = 0; in bitmap_elt_clear_from() 301 unsigned int indx = element->indx; in bitmap_element_link() local 313 else if (indx < head->indx) in bitmap_element_link() 316 ptr->prev != 0 && ptr->prev->indx > indx; in bitmap_element_link() 334 ptr->next != 0 && ptr->next->indx < indx; in bitmap_element_link() 348 head->indx = indx; in bitmap_element_link() [all …]
|
| HD | bitmap.h | 67 unsigned int indx; /* regno/BITMAP_ELEMENT_ALL_BITS. */ member 75 unsigned int indx; /* Index of last element looked at. */ member 219 if (bi->elt1->indx >= start_bit / BITMAP_ELEMENT_ALL_BITS) in bmp_iter_set_init() 225 if (bi->elt1->indx != start_bit / BITMAP_ELEMENT_ALL_BITS) in bmp_iter_set_init() 226 start_bit = bi->elt1->indx * BITMAP_ELEMENT_ALL_BITS; in bmp_iter_set_init() 262 if (bi->elt1->indx >= start_bit / BITMAP_ELEMENT_ALL_BITS) in bmp_iter_and_init() 276 if (bi->elt2->indx >= bi->elt1->indx) in bmp_iter_and_init() 282 if (bi->elt1->indx == bi->elt2->indx) in bmp_iter_and_init() 286 if (bi->elt1->indx != start_bit / BITMAP_ELEMENT_ALL_BITS) in bmp_iter_and_init() 287 start_bit = bi->elt1->indx * BITMAP_ELEMENT_ALL_BITS; in bmp_iter_and_init() [all …]
|
| HD | mips-tfile.c | 992 symint_t indx; /* index within file's local symbols */ member 1026 symint_t indx; /* index within string table */ member 1047 symint_t indx; /* index within string table */ member 1476 #define ORIG_LINENUM(indx) (CHECK ((indx), orig_sym_hdr.cbLine, "line#"), (indx) + orig_linenum) argument 1477 #define ORIG_DENSE(indx) (CHECK ((indx), orig_sym_hdr.idnMax, "dense"), (indx) + orig_dense) argument 1478 #define ORIG_PROCS(indx) (CHECK ((indx), orig_sym_hdr.ipdMax, "procs"), (indx) + orig_procs) argument 1479 #define ORIG_FILES(indx) (CHECK ((indx), orig_sym_hdr.ifdMax, "funcs"), (indx) + orig_files) argument 1480 #define ORIG_LSYMS(indx) (CHECK ((indx), orig_sym_hdr.isymMax, "lsyms"), (indx) + orig_local_syms) argument 1481 #define ORIG_LSTRS(indx) (CHECK ((indx), orig_sym_hdr.issMax, "lstrs"), (indx) + orig_local_strs) argument 1482 #define ORIG_ESYMS(indx) (CHECK ((indx), orig_sym_hdr.iextMax, "esyms"), (indx) + orig_ext_syms) argument [all …]
|
| /trueos/usr.bin/fold/ |
| HD | fold.c | 159 int col, i, indx, space; in fold() local 162 col = indx = 0; in fold() 165 wprintf(L"%.*ls\n", indx, buf); in fold() 166 col = indx = 0; in fold() 171 i = indx; in fold() 179 wmemmove(buf, buf + space, indx - space); in fold() 180 indx -= space; in fold() 182 for (i = 0; i < indx; i++) in fold() 185 wprintf(L"%.*ls\n", indx, buf); in fold() 186 col = indx = 0; in fold() [all …]
|
| /trueos/bin/pax/ |
| HD | tables.c | 133 u_int indx; in chk_lnk() local 146 indx = ((unsigned)arcn->sb.st_ino) % L_TAB_SZ; in chk_lnk() 147 if ((pt = ltab[indx]) != NULL) { in chk_lnk() 151 ppt = &(ltab[indx]); in chk_lnk() 197 pt->fow = ltab[indx]; in chk_lnk() 198 ltab[indx] = pt; in chk_lnk() 220 u_int indx; in purg_lnk() local 234 indx = ((unsigned)arcn->sb.st_ino) % L_TAB_SZ; in purg_lnk() 235 if ((pt = ltab[indx]) == NULL) in purg_lnk() 242 ppt = &(ltab[indx]); in purg_lnk() [all …]
|
| HD | sel_subs.c | 104 u_int indx; in usr_add() local 145 indx = ((unsigned)uid) % USR_TB_SZ; in usr_add() 146 if ((pt = usrtb[indx]) != NULL) { in usr_add() 159 pt->fow = usrtb[indx]; in usr_add() 160 usrtb[indx] = pt; in usr_add() 205 u_int indx; in grp_add() local 246 indx = ((unsigned)gid) % GRP_TB_SZ; in grp_add() 247 if ((pt = grptb[indx]) != NULL) { in grp_add() 260 pt->fow = grptb[indx]; in grp_add() 261 grptb[indx] = pt; in grp_add()
|
| /trueos/usr.bin/systat/ |
| HD | systat.h | 65 #define NVAL(indx) namelist[(indx)].n_value argument 66 #define NPTR(indx) (void *)NVAL((indx)) argument 67 #define NREAD(indx, buf, len) kvm_ckread(NPTR((indx)), (buf), (len)) argument
|
| /trueos/lib/libdwarf/ |
| HD | dwarf_dump.c | 836 int indx = 0; in dwarf_dump_shstrtab() local 839 while ((name = elf_strptr(dbg->dbg_elf, dbg->dbg_stnum, indx)) != NULL) { in dwarf_dump_shstrtab() 840 printf("%5d '%s'\n",indx,name); in dwarf_dump_shstrtab() 841 indx += strlen(name) + 1; in dwarf_dump_shstrtab() 849 int indx = 0; in dwarf_dump_strtab() local 852 while ((name = elf_strptr(dbg->dbg_elf, dbg->dbg_s[DWARF_strtab].s_shnum, indx)) != NULL) { in dwarf_dump_strtab() 853 printf("%5d '%s'\n",indx,name); in dwarf_dump_strtab() 854 indx += strlen(name) + 1; in dwarf_dump_strtab() 862 int indx = 0; in dwarf_dump_dbgstr() local 865 while ((name = elf_strptr(dbg->dbg_elf, dbg->dbg_s[DWARF_debug_str].s_shnum, indx)) != NULL) { in dwarf_dump_dbgstr() [all …]
|
| /trueos/contrib/dialog/ |
| HD | inputstr.c | 521 const int *indx = dlg_index_wchars(string); in dlg_edit_string() local 522 int offset = dlg_find_index(indx, limit, *chr_offset); in dlg_edit_string() 549 *chr_offset = indx[offset - 1]; in dlg_edit_string() 553 *chr_offset = indx[offset + 1]; in dlg_edit_string() 561 *chr_offset = indx[limit]; in dlg_edit_string() 565 int gap = indx[offset] - indx[offset - 1]; in dlg_edit_string() 566 *chr_offset = indx[offset - 1]; in dlg_edit_string() 582 ? (indx[offset + 1] - indx[offset]) in dlg_edit_string() 585 for (i = indx[offset]; in dlg_edit_string() 591 string[indx[offset - 1]] = '\0'; in dlg_edit_string() [all …]
|
| /trueos/contrib/binutils/binutils/ |
| HD | ieee.c | 529 bfd_vma indx; in ieee_read_expression() local 532 if (! ieee_read_number (info, pp, &indx)) in ieee_read_expression() 535 if ((bfd_vma) s->target_index == indx) in ieee_read_expression() 587 unsigned int indx) in ieee_builtin_type() argument 593 if (indx < BUILTIN_TYPE_COUNT in ieee_builtin_type() 594 && info->types.builtins[indx] != DEBUG_TYPE_NULL) in ieee_builtin_type() 595 return info->types.builtins[indx]; in ieee_builtin_type() 599 if (indx >= 32 && indx < 64) in ieee_builtin_type() 602 ieee_builtin_type (info, p, indx - 32)); in ieee_builtin_type() 603 assert (indx < BUILTIN_TYPE_COUNT); in ieee_builtin_type() [all …]
|
| /trueos/usr.bin/sort/ |
| HD | file.c | 309 size_t indx = l->count; in sort_list_add() local 311 if ((l->list == NULL) || (indx >= l->size)) { in sort_list_add() 320 l->list[indx] = sort_list_item_alloc(); in sort_list_add() 321 sort_list_item_set(l->list[indx], str); in sort_list_add() 322 l->memsize += sort_list_item_size(l->list[indx]); in sort_list_add() 963 file_header_heap_swim(struct file_header **fh, size_t indx) in file_header_heap_swim() argument 966 if (indx > 0) { in file_header_heap_swim() 969 parent_index = (indx - 1) >> 1; in file_header_heap_swim() 971 if (file_header_cmp(fh[indx], fh[parent_index]) < 0) { in file_header_heap_swim() 973 file_header_swap(fh, indx, parent_index); in file_header_heap_swim() [all …]
|
| /trueos/contrib/binutils/bfd/ |
| HD | cofflink.c | 79 ret->indx = -1; in _bfd_coff_link_hash_newfunc() 1036 BFD_ASSERT ((*rel_hash)->indx >= 0); in _bfd_coff_final_link() 1037 irel->r_symndx = (*rel_hash)->indx; in _bfd_coff_final_link() 1642 long indx; in _bfd_coff_link_input_bfd() local 1647 indx = eleaux.x_sym.x_tagndx.l; in _bfd_coff_link_input_bfd() 1653 if (indx > 0 in _bfd_coff_link_input_bfd() 1654 && (indx in _bfd_coff_link_input_bfd() 1659 (*epp)->tagndx = finfo->sym_indices[indx]; in _bfd_coff_link_input_bfd() 1701 if (mtl == NULL || (bfd_size_type) mtl->indx >= syment_base) in _bfd_coff_link_input_bfd() 1704 mt->indx = output_index; in _bfd_coff_link_input_bfd() [all …]
|
| HD | xcofflink.c | 423 ret->indx = -1; in xcoff_link_hash_newfunc() 2816 hds->indx = -2; in xcoff_build_ldsyms() 3315 bfd_size_type indx; in bfd_xcoff_size_dynamic_sections() local 3318 indx = _bfd_stringtab_add (debug_strtab, name, TRUE, TRUE); in bfd_xcoff_size_dynamic_sections() 3319 if (indx == (bfd_size_type) -1) in bfd_xcoff_size_dynamic_sections() 3321 *debug_index = indx; in bfd_xcoff_size_dynamic_sections() 3768 bfd_size_type indx; in xcoff_link_input_bfd() local 3774 indx = _bfd_stringtab_add (finfo->strtab, name, hash, copy); in xcoff_link_input_bfd() 3775 if (indx == (bfd_size_type) -1) in xcoff_link_input_bfd() 3777 isym._n._n_n._n_offset = STRING_SIZE_SIZE + indx; in xcoff_link_input_bfd() [all …]
|
| HD | elf32-i386.c | 353 unsigned int indx; in elf_i386_info_to_howto_rel() local 355 if ((indx = r_type) >= R_386_standard in elf_i386_info_to_howto_rel() 356 && ((indx = r_type - R_386_ext_offset) - R_386_standard in elf_i386_info_to_howto_rel() 358 && ((indx = r_type - R_386_tls_offset) - R_386_ext in elf_i386_info_to_howto_rel() 360 && ((indx = r_type - R_386_vt_offset) - R_386_tls in elf_i386_info_to_howto_rel() 365 indx = R_386_NONE; in elf_i386_info_to_howto_rel() 367 cache_ptr->howto = &elf_howto_table[indx]; in elf_i386_info_to_howto_rel() 2237 unsigned int indx; in elf_i386_relocate_section() local 2245 if ((indx = r_type) >= R_386_standard in elf_i386_relocate_section() 2246 && ((indx = r_type - R_386_ext_offset) - R_386_standard in elf_i386_relocate_section() [all …]
|
| HD | sunos.c | 2345 long indx; in sunos_check_dynamic_reloc() local 2485 indx = h->dynindx; in sunos_check_dynamic_reloc() 2487 indx = 0; in sunos_check_dynamic_reloc() 2501 srel->r_index[0] = (bfd_byte) (indx >> 16); in sunos_check_dynamic_reloc() 2502 srel->r_index[1] = (bfd_byte) (indx >> 8); in sunos_check_dynamic_reloc() 2503 srel->r_index[2] = (bfd_byte)indx; in sunos_check_dynamic_reloc() 2515 srel->r_index[2] = (bfd_byte) (indx >> 16); in sunos_check_dynamic_reloc() 2516 srel->r_index[1] = (bfd_byte) (indx >> 8); in sunos_check_dynamic_reloc() 2517 srel->r_index[0] = (bfd_byte)indx; in sunos_check_dynamic_reloc() 2540 erel->r_index[0] = (bfd_byte) (indx >> 16); in sunos_check_dynamic_reloc() [all …]
|
| /trueos/lib/libc/db/btree/ |
| HD | btree.h | 127 #define GETBINTERNAL(pg, indx) \ argument 128 ((BINTERNAL *)((char *)(pg) + (pg)->linp[indx])) 154 #define GETRINTERNAL(pg, indx) \ argument 155 ((RINTERNAL *)((char *)(pg) + (pg)->linp[indx])) 177 #define GETBLEAF(pg, indx) \ argument 178 ((BLEAF *)((char *)(pg) + (pg)->linp[indx])) 209 #define GETRLEAF(pg, indx) \ argument 210 ((RLEAF *)((char *)(pg) + (pg)->linp[indx]))
|
| /trueos/sys/mips/mips/ |
| HD | machdep.c | 197 int indx; in cpu_startup() local 200 for (indx = 0; phys_avail[indx + 1] != 0; indx += 2) { in cpu_startup() 201 vm_paddr_t size1 = phys_avail[indx + 1] - phys_avail[indx]; in cpu_startup() 204 (uintmax_t)phys_avail[indx], in cpu_startup() 205 (uintmax_t)phys_avail[indx + 1] - 1, in cpu_startup()
|
| /trueos/contrib/groff/src/libs/libbib/ |
| HD | index.cpp | 91 index_search_item *indx; member in index_search_item_iterator 302 : indx(ind), out_of_date_files_iter(0), next_out_of_date_file(0), temp_list(0), in index_search_item_iterator() 307 found_list = indx->search(q, strlen(q), &temp_list); in index_search_item_iterator() 311 indx->name); in index_search_item_iterator() 337 next_out_of_date_file = indx->out_of_date_files; in next() 357 if (tagno < 0 || tagno >= indx->header.tags_size) { in get_tag() 361 tag *tp = indx->tags + tagno; in get_tag() 362 const char *filename = indx->munge_filename(indx->pool + tp->filename_index); in get_tag() 375 if (mtime > indx->mtime) { in get_tag() 376 indx->add_out_of_date_file(fd, filename, in get_tag() [all …]
|
| /trueos/sys/kern/ |
| HD | kern_malloc.c | 442 int indx; in malloc() local 455 indx = flags & (M_WAITOK | M_NOWAIT); in malloc() 456 if (indx != M_NOWAIT && indx != M_WAITOK) { in malloc() 460 printf("Bad malloc flags: %x\n", indx); in malloc() 498 indx = kmemsize[size >> KMEM_ZSHIFT]; in malloc() 502 zone = kmemzones[indx].kz_zone[mtip->mti_zone]; in malloc() 509 malloc_type_zone_allocated(mtp, va == NULL ? 0 : size, indx); in malloc() 773 uint8_t indx; in mallocinit() local 791 for (i = 0, indx = 0; kmemzones[indx].kz_size != 0; indx++) { in mallocinit() 792 int size = kmemzones[indx].kz_size; in mallocinit() [all …]
|
| /trueos/usr.sbin/makefs/ffs/ |
| HD | ffs_alloc.c | 152 ffs_blkpref_ufs1(struct inode *ip, daddr_t lbn, int indx, int32_t *bap) in ffs_blkpref_ufs1() argument 159 if (indx % fs->fs_maxbpg == 0 || bap[indx - 1] == 0) { in ffs_blkpref_ufs1() 168 if (indx == 0 || bap[indx - 1] == 0) in ffs_blkpref_ufs1() 173 ufs_rw32(bap[indx - 1], UFS_FSNEEDSWAP(fs)) + 1); in ffs_blkpref_ufs1() 187 return ufs_rw32(bap[indx - 1], UFS_FSNEEDSWAP(fs)) + fs->fs_frag; in ffs_blkpref_ufs1() 191 ffs_blkpref_ufs2(struct inode *ip, daddr_t lbn, int indx, int64_t *bap) in ffs_blkpref_ufs2() argument 198 if (indx % fs->fs_maxbpg == 0 || bap[indx - 1] == 0) { in ffs_blkpref_ufs2() 207 if (indx == 0 || bap[indx - 1] == 0) in ffs_blkpref_ufs2() 212 ufs_rw64(bap[indx - 1], UFS_FSNEEDSWAP(fs)) + 1); in ffs_blkpref_ufs2() 228 return ufs_rw64(bap[indx - 1], UFS_FSNEEDSWAP(fs)) + fs->fs_frag; in ffs_blkpref_ufs2()
|
| /trueos/sys/powerpc/booke/ |
| HD | machdep.c | 196 int indx; in cpu_booke_startup() local 212 for (indx = 0; phys_avail[indx + 1] != 0; indx += 2) { in cpu_booke_startup() 213 size = phys_avail[indx + 1] - phys_avail[indx]; in cpu_booke_startup() 216 phys_avail[indx], phys_avail[indx + 1] - 1, in cpu_booke_startup()
|
| /trueos/usr.bin/procstat/ |
| HD | procstat_rlimit.c | 70 humanize_rlimit(int indx, rlim_t limit) in humanize_rlimit() argument 79 rlimit_param[indx].suffix, HN_AUTOSCALE | HN_GETSCALE, HN_DECIMAL); in humanize_rlimit() 81 rlimit_param[indx].suffix, HN_AUTOSCALE, HN_DECIMAL); in humanize_rlimit()
|
| /trueos/contrib/libarchive/libarchive/ |
| HD | archive_ppmd7.c | 34 #define I2U(indx) (p->Indx2Units[indx]) argument 147 static void InsertNode(CPpmd7 *p, void *node, unsigned indx) in InsertNode() argument 149 *((CPpmd_Void_Ref *)node) = p->FreeList[indx]; in InsertNode() 150 p->FreeList[indx] = REF(node); in InsertNode() 153 static void *RemoveNode(CPpmd7 *p, unsigned indx) in RemoveNode() argument 155 CPpmd_Void_Ref *node = (CPpmd_Void_Ref *)Ppmd7_GetPtr(p, p->FreeList[indx]); in RemoveNode() 156 p->FreeList[indx] = *node; in RemoveNode() 244 static void *AllocUnitsRare(CPpmd7 *p, unsigned indx) in AllocUnitsRare() argument 251 if (p->FreeList[indx] != 0) in AllocUnitsRare() 252 return RemoveNode(p, indx); in AllocUnitsRare() [all …]
|
| /trueos/contrib/ntp/ntpd/ |
| HD | ntp_proto.c | 1821 static int *indx = NULL; local 1848 free(indx); 1854 indx_size += 5 * 3 * sizeof(*indx); 1858 indx = (int *)emalloc(indx_size); 1930 if (e >= endpoint[indx[i]].val) 1933 indx[i + 3] = indx[i]; 1935 indx[i + 3] = nl3; 1941 if (e >= endpoint[indx[i]].val) 1944 indx[i + 2] = indx[i]; 1946 indx[i + 2] = nl3; [all …]
|
| /trueos/sys/powerpc/aim/ |
| HD | machdep.c | 201 int indx; in cpu_startup() local 204 for (indx = 0; phys_avail[indx + 1] != 0; indx += 2) { in cpu_startup() 206 phys_avail[indx + 1] - phys_avail[indx]; in cpu_startup() 213 phys_avail[indx], phys_avail[indx + 1] - 1, size1, in cpu_startup()
|