Home
last modified time | relevance | path

Searched refs:indx (Results 1 – 25 of 54) sorted by relevance

123

/freebsd/usr.bin/fold/
H A Dfold.c146 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 Dtables.c127 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 Dsel_subs.c101 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 Dwrite.sh117 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 Dmmap28.sh76 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 Dsystat.h66 #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 Dfile.c297 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 Dinputstr.c555 *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 Dbuttons.c143 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 Dtextbox.c420 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 Deditbox.c259 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 Dlogin_cap.c105 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 Dcbc_mac.c159 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 Dbtree.h126 #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 Dkern_malloc.c503 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 Dkern_sysctl.c367 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 Dffs_alloc.c149 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 Darchive_ppmd8.c19 #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 Darchive_ppmd7.c34 #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 Dmachdep.c143 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 Dprocstat_rlimit.c73 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 Dmachdep.c212 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 Dmodeedit.c1008 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 Daesni_ccm.c77 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 Dpe.c56 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()

123