/freebsd/usr.bin/fold/ |
H A D | fold.c | 146 int col, i, indx, space; in fold() local 149 col = indx = 0; in fold() 153 col = indx = 0; in fold() 158 i = indx; in fold() 167 indx -= space; in fold() 169 for (i = 0; i < indx; i++) in fold() 173 col = indx = 0; in fold() 177 if (indx + 1 > buf_max) { in fold() 183 buf[indx++] = ch; in fold() 186 if (indx != 0) in fold() [all …]
|
/freebsd/bin/pax/ |
H A D | tables.c | 127 u_int indx; in chk_lnk() local 192 ltab[indx] = pt; in chk_lnk() 214 u_int indx; in purg_lnk() local 366 u_int indx; in chk_ftime() local 447 ftab[indx] = pt; in chk_ftime() 505 u_int indx; in add_name() local 573 u_int indx; in sub_name() local 700 u_int indx; in chk_dev() local 738 dtab[indx] = pt; in chk_dev() 951 u_int indx; in add_atdir() local [all …]
|
H A D | sel_subs.c | 101 u_int indx; in usr_add() local 138 indx = ((unsigned)uid) % USR_TB_SZ; in usr_add() 139 if ((pt = usrtb[indx]) != NULL) { in usr_add() 152 pt->fow = usrtb[indx]; in usr_add() 153 usrtb[indx] = pt; in usr_add() 198 u_int indx; in grp_add() local 235 indx = ((unsigned)gid) % GRP_TB_SZ; in grp_add() 236 if ((pt = grptb[indx]) != NULL) { in grp_add() 249 pt->fow = grptb[indx]; in grp_add() 250 grptb[indx] = pt; in grp_add()
|
/freebsd/tools/test/stress2/misc/ |
H A D | write.sh | 117 test(int indx, int num) 128 if ((buf = malloc(t[indx].blocksize)) == NULL) 130 snprintf(file, sizeof(file), "file.%06d.%06d", indx, num); 134 setproctitle("test(%d) num %d, n %d", indx, num, n); 139 for (i = 0; i < t[indx].blocks; i++) { 140 if (t[indx].sequential == 0) 144 if ((r = write(fd, buf, t[indx].blocksize)) != 145 t[indx].blocksize) { 149 usleep(rnd(t[indx].mindelay, t[indx].maxdelay)); 157 fprintf(stderr, "test(%d), %d Timed out\n", indx, num);
|
H A D | mmap28.sh | 76 size_t indx, left, len; 112 if (read(rfd, &indx, sizeof(indx)) != sizeof(indx)) 114 val = p[indx % len];
|
/freebsd/usr.bin/systat/ |
H A D | systat.h | 66 #define NVAL(indx) namelist[(indx)].n_value argument 67 #define NPTR(indx) (void *)NVAL((indx)) argument 68 #define NREAD(indx, buf, len) kvm_ckread(NPTR((indx)), (buf), (len)) argument
|
/freebsd/usr.bin/sort/ |
H A D | file.c | 297 size_t indx = l->count; in sort_list_add() local 856 if (indx > 0) { in file_header_heap_swim() 859 parent_index = (indx - 1) >> 1; in file_header_heap_swim() 878 left_child_index = indx + indx + 1; in file_header_heap_sink() 1047 size_t indx = 0; in shrink_file_list() local 1050 while (indx < fl->count) { in shrink_file_list() 1054 num = fl->count - indx; in shrink_file_list() 1064 unlink(fl->fns[indx + i]); in shrink_file_list() 1067 indx += num; in shrink_file_list() 1256 if (indx > 0) { in sub_list_swim() [all …]
|
/freebsd/contrib/dialog/ |
H A D | inputstr.c | 555 *chr_offset = indx[offset - 1]; in dlg_edit_string() 559 *chr_offset = indx[offset + 1]; in dlg_edit_string() 567 *chr_offset = indx[limit]; in dlg_edit_string() 571 int gap = indx[offset] - indx[offset - 1]; in dlg_edit_string() 572 *chr_offset = indx[offset - 1]; in dlg_edit_string() 588 ? (indx[offset + 1] - indx[offset]) in dlg_edit_string() 591 for (i = indx[offset]; in dlg_edit_string() 597 string[indx[offset - 1]] = '\0'; in dlg_edit_string() 599 if (*chr_offset > indx[limit]) in dlg_edit_string() 600 *chr_offset = indx[limit]; in dlg_edit_string() [all …]
|
H A D | buttons.c | 143 const int *indx = dlg_index_wchars(label); in get_hotkeys() local 148 int first = indx[i]; in get_hotkeys() 151 int last = indx[i + 1]; in get_hotkeys() 181 const int *indx = dlg_index_wchars(label); in print_button() local 198 int first = indx[i]; in print_button() 199 int last = indx[i + 1]; in print_button()
|
H A D | textbox.c | 420 const int *indx = dlg_index_wchars(line); in print_line() local 436 (void) waddnstr(obj->text, line + indx[first], indx[last] - indx[first]); in print_line() 519 const int *indx; in get_search_term() local 546 indx = dlg_index_wchars(caption); in get_search_term() 548 (void) waddnstr(widget, caption + indx[0], indx[limit] - indx[0]); in get_search_term()
|
H A D | editbox.c | 259 const int *indx = dlg_index_wchars(text); in col_to_chr_offset() local 267 result = indx[n]; in col_to_chr_offset() 273 result = indx[len]; in col_to_chr_offset() 684 const int *indx = dlg_index_wchars(THIS_ROW); in dlg_editbox() local 685 int split = indx[chr_offset]; in dlg_editbox()
|
/freebsd/lib/libutil/ |
H A D | login_cap.c | 105 size_t indx = 0; in strcspn_quote() local 114 for (indx = 0; str[indx] != 0; indx++) { in strcspn_quote() 115 if (quote && str[indx] == quote) { in strcspn_quote() 122 (str[indx] == '\'' || str[indx] == '"')) { in strcspn_quote() 123 quote = str[indx]; in strcspn_quote() 128 return indx; in strcspn_quote() 130 return indx; in strcspn_quote() 159 size_t indx; in remove_quotes() local 161 if (str[indx] == '\0') in remove_quotes() 163 loc = str + indx; in remove_quotes() [all …]
|
/freebsd/sys/opencrypto/ |
H A D | cbc_mac.c | 159 for (size_t indx = 0; indx < AES_CBC_MAC_HASH_LEN; indx++) in AES_CBC_MAC_Final() local 160 buf[indx] = ctx->block[indx] ^ s0[indx]; in AES_CBC_MAC_Final()
|
/freebsd/lib/libc/db/btree/ |
H A D | btree.h | 126 #define GETBINTERNAL(pg, indx) \ argument 127 ((BINTERNAL *)((char *)(pg) + (pg)->linp[indx])) 153 #define GETRINTERNAL(pg, indx) \ argument 154 ((RINTERNAL *)((char *)(pg) + (pg)->linp[indx])) 176 #define GETBLEAF(pg, indx) \ argument 177 ((BLEAF *)((char *)(pg) + (pg)->linp[indx])) 208 #define GETRLEAF(pg, indx) \ argument 209 ((RLEAF *)((char *)(pg) + (pg)->linp[indx]))
|
/freebsd/sys/kern/ |
H A D | kern_malloc.c | 503 int indx; in malloc_dbg() local 509 indx = flags & (M_WAITOK | M_NOWAIT); in malloc_dbg() 510 if (indx != M_NOWAIT && indx != M_WAITOK) { in malloc_dbg() 628 int indx; variable 682 int indx; in malloc_domain() local 694 *indxp = indx; in malloc_domain() 705 int indx; in malloc_domainset() local 1066 int indx; in malloc_size() local 1073 return (kmemzones[indx].kz_size); in malloc_size() 1229 uint8_t indx; in mallocinit() local [all …]
|
H A D | kern_sysctl.c | 367 int indx; in sysctl_search_oid() local 370 indx = 0; in sysctl_search_oid() 378 return (indx + 1); in sysctl_search_oid() 382 if (indx-- == 0) { in sysctl_search_oid() 398 nodes[indx] = RB_NEXT(sysctl_oid_list, NULL, nodes[indx]); in sysctl_search_oid() 2267 int indx; in sysctl_find_oid() local 2271 indx = 0; in sysctl_find_oid() 2278 indx++; in sysctl_find_oid() 2283 *nindx = indx; in sysctl_find_oid() 2294 *nindx = indx; in sysctl_find_oid() [all …]
|
/freebsd/usr.sbin/makefs/ffs/ |
H A D | ffs_alloc.c | 149 ffs_blkpref_ufs1(struct inode *ip, daddr_t lbn, int indx, int32_t *bap) in ffs_blkpref_ufs1() argument 156 if (indx % fs->fs_maxbpg == 0 || bap[indx - 1] == 0) { in ffs_blkpref_ufs1() 165 if (indx == 0 || bap[indx - 1] == 0) in ffs_blkpref_ufs1() 170 ufs_rw32(bap[indx - 1], UFS_FSNEEDSWAP(fs)) + 1); in ffs_blkpref_ufs1() 184 return ufs_rw32(bap[indx - 1], UFS_FSNEEDSWAP(fs)) + fs->fs_frag; in ffs_blkpref_ufs1() 188 ffs_blkpref_ufs2(struct inode *ip, daddr_t lbn, int indx, int64_t *bap) in ffs_blkpref_ufs2() argument 195 if (indx % fs->fs_maxbpg == 0 || bap[indx - 1] == 0) { in ffs_blkpref_ufs2() 204 if (indx == 0 || bap[indx - 1] == 0) in ffs_blkpref_ufs2() 209 ufs_rw64(bap[indx - 1], UFS_FSNEEDSWAP(fs)) + 1); in ffs_blkpref_ufs2() 225 return ufs_rw64(bap[indx - 1], UFS_FSNEEDSWAP(fs)) + fs->fs_frag; in ffs_blkpref_ufs2()
|
/freebsd/contrib/libarchive/libarchive/ |
H A D | archive_ppmd8.c | 19 #define I2U(indx) (p->Indx2Units[indx]) argument 122 p->FreeList[indx] = REF(node); in InsertNode() 123 p->Stamps[indx]++; in InsertNode() 130 p->Stamps[indx]--; in RemoveNode() 211 if (p->FreeList[indx] != 0) in AllocUnitsRare() 214 i = indx; in AllocUnitsRare() 233 if (p->FreeList[indx] != 0) in AllocUnits() 234 return RemoveNode(p, indx); in AllocUnits() 235 numBytes = U2B(I2U(indx)); in AllocUnits() 286 unsigned indx = U2I(nu); in MoveUnitsUp() local [all …]
|
H A D | archive_ppmd7.c | 34 #define I2U(indx) (p->Indx2Units[indx]) argument 155 p->FreeList[indx] = REF(node); in InsertNode() 161 p->FreeList[indx] = *node; in RemoveNode() 256 if (p->FreeList[indx] != 0) in AllocUnitsRare() 257 return RemoveNode(p, indx); in AllocUnitsRare() 259 i = indx; in AllocUnitsRare() 271 SplitBlock(p, retVal, i, indx); in AllocUnitsRare() 278 if (p->FreeList[indx] != 0) in AllocUnits() 279 return RemoveNode(p, indx); in AllocUnits() 280 numBytes = U2B(I2U(indx)); in AllocUnits() [all …]
|
/freebsd/sys/riscv/riscv/ |
H A D | machdep.c | 143 int indx; in cpu_startup() local 146 for (indx = 0; phys_avail[indx + 1] != 0; indx += 2) { in cpu_startup() 149 size = phys_avail[indx + 1] - phys_avail[indx]; in cpu_startup() 152 (uintmax_t)phys_avail[indx], in cpu_startup() 153 (uintmax_t)phys_avail[indx + 1] - 1, in cpu_startup()
|
/freebsd/usr.bin/procstat/ |
H A D | procstat_rlimit.c | 73 humanize_rlimit(int indx, rlim_t limit) in humanize_rlimit() argument 82 rlimit_param[indx].suffix, HN_AUTOSCALE | HN_GETSCALE, HN_DECIMAL); in humanize_rlimit() 84 rlimit_param[indx].suffix, HN_AUTOSCALE, HN_DECIMAL); in humanize_rlimit()
|
/freebsd/sys/powerpc/powerpc/ |
H A D | machdep.c | 212 int indx; in cpu_startup() local 215 for (indx = 0; phys_avail[indx + 1] != 0; indx += 2) { in cpu_startup() 217 phys_avail[indx + 1] - phys_avail[indx]; in cpu_startup() 224 (uintmax_t)phys_avail[indx], in cpu_startup() 225 (uintmax_t)phys_avail[indx + 1] - 1, in cpu_startup()
|
/freebsd/sbin/camcontrol/ |
H A D | modeedit.c | 1008 size_t indx, len; in modepage_dump() local 1033 for (indx = 0; indx < len; indx++) { in modepage_dump() 1034 printf("%02x%c",mode_pars[indx], in modepage_dump() 1035 (((indx + 1) % 8) == 0) ? '\n' : ' '); in modepage_dump() 1045 size_t indx, len; in modepage_dump_desc() local 1064 for (indx = 0; indx < len; indx++) { in modepage_dump_desc() 1065 printf("%02x%c", desc[indx], in modepage_dump_desc() 1066 (((indx + 1) % 8) == 0) ? '\n' : ' '); in modepage_dump_desc()
|
/freebsd/sys/crypto/aesni/ |
H A D | aesni_ccm.c | 77 int indx = sizeof(*block) - 1; in append_int() local 80 while (indx > (sizeof(*block) - offset)) { in append_int() 81 bp[indx] = value & 0xff; in append_int() 82 indx--; in append_int()
|
/freebsd/contrib/elftoolchain/elfcopy/ |
H A D | pe.c | 56 size_t indx; in create_pe() local 73 if (elf_getshstrndx(e, &indx) == 0) in create_pe() 127 if ((name = elf_strptr(e, indx, sh.sh_name)) == in create_pe()
|