Searched refs:indx (Results 1 - 25 of 53) sorted by relevance

123

/freebsd-current/usr.bin/systat/
H A Dsystat.h66 #define NVAL(indx) namelist[(indx)].n_value
67 #define NPTR(indx) (void *)NVAL((indx))
68 #define NREAD(indx, buf, len) kvm_ckread(NPTR((indx)), (buf), (len))
/freebsd-current/usr.bin/fold/
H A Dfold.c146 int col, i, indx, space; local
149 col = indx = 0;
152 wprintf(L"%.*ls\n", indx, buf);
153 col = indx = 0;
158 i = indx;
166 wmemmove(buf, buf + space, indx - space);
167 indx -= space;
169 for (i = 0; i < indx; i++)
172 wprintf(L"%.*ls\n", indx, buf);
173 col = indx
[all...]
/freebsd-current/tools/test/stress2/misc/
H A Dmmap28.sh76 size_t indx, left, len;
112 if (read(rfd, &indx, sizeof(indx)) != sizeof(indx))
114 val = p[indx % len];
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]
[all...]
/freebsd-current/bin/pax/
H A Dtables.c127 u_int indx; local
140 indx = ((unsigned)arcn->sb.st_ino) % L_TAB_SZ;
141 if ((pt = ltab[indx]) != NULL) {
145 ppt = &(ltab[indx]);
191 pt->fow = ltab[indx];
192 ltab[indx] = pt;
214 u_int indx; local
228 indx = ((unsigned)arcn->sb.st_ino) % L_TAB_SZ;
229 if ((pt = ltab[indx]) == NULL)
236 ppt = &(ltab[indx]);
366 u_int indx; local
505 u_int indx; local
573 u_int indx; local
700 u_int indx; local
951 u_int indx; local
1014 u_int indx; local
[all...]
H A Dsel_subs.c101 u_int indx; local
138 indx = ((unsigned)uid) % USR_TB_SZ;
139 if ((pt = usrtb[indx]) != NULL) {
152 pt->fow = usrtb[indx];
153 usrtb[indx] = pt;
198 u_int indx; local
235 indx = ((unsigned)gid) % GRP_TB_SZ;
236 if ((pt = grptb[indx]) != NULL) {
249 pt->fow = grptb[indx];
250 grptb[indx]
[all...]
/freebsd-current/sys/opencrypto/
H A Dcbc_mac.c159 for (size_t indx = 0; indx < AES_CBC_MAC_HASH_LEN; indx++)
160 buf[indx] = ctx->block[indx] ^ s0[indx];
/freebsd-current/usr.bin/procstat/
H A Dprocstat_rlimit.c73 humanize_rlimit(int indx, rlim_t limit) argument
82 rlimit_param[indx].suffix, HN_AUTOSCALE | HN_GETSCALE, HN_DECIMAL);
84 rlimit_param[indx].suffix, HN_AUTOSCALE, HN_DECIMAL);
/freebsd-current/lib/libc/db/btree/
H A Dbtree.h125 /* Get the page's BINTERNAL structure at index indx. */
126 #define GETBINTERNAL(pg, indx) \
127 ((BINTERNAL *)((char *)(pg) + (pg)->linp[indx]))
152 /* Get the page's RINTERNAL structure at index indx. */
153 #define GETRINTERNAL(pg, indx) \
154 ((RINTERNAL *)((char *)(pg) + (pg)->linp[indx]))
175 /* Get the page's BLEAF structure at index indx. */
176 #define GETBLEAF(pg, indx) \
177 ((BLEAF *)((char *)(pg) + (pg)->linp[indx]))
207 /* Get the page's RLEAF structure at index indx
[all...]
/freebsd-current/usr.bin/sort/
H A Dfile.c297 size_t indx = l->count; local
299 if ((l->list == NULL) || (indx >= l->size)) {
308 l->list[indx] = sort_list_item_alloc();
309 sort_list_item_set(l->list[indx], str);
310 l->memsize += sort_list_item_size(l->list[indx]);
853 file_header_heap_swim(struct file_header **fh, size_t indx) argument
856 if (indx > 0) {
859 parent_index = (indx - 1) >> 1;
861 if (file_header_cmp(fh[indx], fh[parent_index]) < 0) {
863 file_header_swap(fh, indx, parent_inde
873 file_header_heap_sink(struct file_header **fh, size_t indx, size_t size) argument
1047 size_t indx = 0; local
1253 sub_list_swim(struct sort_list **sl, size_t indx) argument
1273 sub_list_sink(struct sort_list **sl, size_t indx, size_t size) argument
[all...]
/freebsd-current/contrib/dialog/
H A Dinputstr.c527 const int *indx = dlg_index_wchars(string); local
528 int offset = dlg_find_index(indx, limit, *chr_offset);
555 *chr_offset = indx[offset - 1];
559 *chr_offset = indx[offset + 1];
567 *chr_offset = indx[limit];
571 int gap = indx[offset] - indx[offset - 1];
572 *chr_offset = indx[offset - 1];
588 ? (indx[offset + 1] - indx[offse
653 const int *indx = dlg_index_wchars(string); local
714 const int *indx = dlg_index_wchars(string); local
[all...]
H A Dbuttons.c143 const int *indx = dlg_index_wchars(label); local
148 int first = indx[i];
151 int last = indx[i + 1];
181 const int *indx = dlg_index_wchars(label); local
198 int first = indx[i];
199 int last = indx[i + 1];
H A Dtextbox.c420 const int *indx = dlg_index_wchars(line); local
436 (void) waddnstr(obj->text, line + indx[first], indx[last] - indx[first]);
519 const int *indx; local
546 indx = dlg_index_wchars(caption);
548 (void) waddnstr(widget, caption + indx[0], indx[limit] - indx[0]);
/freebsd-current/usr.sbin/makefs/ffs/
H A Dffs_alloc.c149 ffs_blkpref_ufs1(struct inode *ip, daddr_t lbn, int indx, int32_t *bap) argument
156 if (indx % fs->fs_maxbpg == 0 || bap[indx - 1] == 0) {
165 if (indx == 0 || bap[indx - 1] == 0)
170 ufs_rw32(bap[indx - 1], UFS_FSNEEDSWAP(fs)) + 1);
184 return ufs_rw32(bap[indx - 1], UFS_FSNEEDSWAP(fs)) + fs->fs_frag;
188 ffs_blkpref_ufs2(struct inode *ip, daddr_t lbn, int indx, int64_t *bap) argument
195 if (indx % fs->fs_maxbpg == 0 || bap[indx
[all...]
/freebsd-current/sys/kern/
H A Dkern_malloc.c503 int indx; local
509 indx = flags & (M_WAITOK | M_NOWAIT);
510 if (indx != M_NOWAIT && indx != M_WAITOK) {
514 printf("Bad malloc flags: %x\n", indx);
628 int indx; local
649 indx = kmemsize[size >> KMEM_ZSHIFT];
650 zone = kmemzones[indx].kz_zone[mtp_get_subzone(mtp)];
659 malloc_type_zone_allocated(mtp, va == NULL ? 0 : size, indx);
682 int indx; local
705 int indx; local
1066 int indx; local
1229 uint8_t indx; local
[all...]
H A Dkern_sysctl.c367 int indx; local
370 indx = 0;
375 nodes[indx] = RB_MIN(sysctl_oid_list, &sysctl__children);
377 if (nodes[indx] == needle)
378 return (indx + 1);
380 if (nodes[indx] == NULL) {
382 if (indx-- == 0) {
386 } else if ((nodes[indx]->oid_kind & CTLTYPE) == CTLTYPE_NODE) {
388 if (++indx == CTL_MAXNAME) {
393 nodes[indx]
2267 int indx; local
2315 int error, indx, lvl; local
[all...]
/freebsd-current/sys/riscv/riscv/
H A Dmachdep.c143 int indx; local
146 for (indx = 0; phys_avail[indx + 1] != 0; indx += 2) {
149 size = phys_avail[indx + 1] - phys_avail[indx];
152 (uintmax_t)phys_avail[indx],
153 (uintmax_t)phys_avail[indx + 1] - 1,
/freebsd-current/lib/libutil/
H A Dlogin_cap.c105 size_t indx = 0; local
114 for (indx = 0; str[indx] != 0; indx++) {
115 if (quote && str[indx] == quote) {
122 (str[indx] == '\'' || str[indx] == '"')) {
123 quote = str[indx];
127 strchr(exclude, str[indx]) != NULL)
128 return indx;
159 size_t indx; local
[all...]
/freebsd-current/contrib/libarchive/libarchive/
H A Darchive_ppmd8.c19 #define I2U(indx) (p->Indx2Units[indx])
117 static void InsertNode(CPpmd8 *p, void *node, unsigned indx) argument
120 ((CPpmd8_Node *)node)->Next = (CPpmd8_Node_Ref)p->FreeList[indx];
121 ((CPpmd8_Node *)node)->NU = I2U(indx);
122 p->FreeList[indx] = REF(node);
123 p->Stamps[indx]++;
126 static void *RemoveNode(CPpmd8 *p, unsigned indx) argument
128 CPpmd8_Node *node = NODE((CPpmd8_Node_Ref)p->FreeList[indx]);
129 p->FreeList[indx]
204 AllocUnitsRare(CPpmd8 *p, unsigned indx) argument
230 AllocUnits(CPpmd8 *p, unsigned indx) argument
286 unsigned indx = U2I(nu); local
[all...]
H A Darchive_ppmd7.c34 #define I2U(indx) (p->Indx2Units[indx])
152 static void InsertNode(CPpmd7 *p, void *node, unsigned indx) argument
154 *((CPpmd_Void_Ref *)node) = p->FreeList[indx];
155 p->FreeList[indx] = REF(node);
158 static void *RemoveNode(CPpmd7 *p, unsigned indx) argument
160 CPpmd_Void_Ref *node = (CPpmd_Void_Ref *)Ppmd7_GetPtr(p, p->FreeList[indx]);
161 p->FreeList[indx] = *node;
249 static void *AllocUnitsRare(CPpmd7 *p, unsigned indx) argument
256 if (p->FreeList[indx] !
275 AllocUnits(CPpmd7 *p, unsigned indx) argument
[all...]
/freebsd-current/sys/powerpc/powerpc/
H A Dmachdep.c212 int indx; local
215 for (indx = 0; phys_avail[indx + 1] != 0; indx += 2) {
217 phys_avail[indx + 1] - phys_avail[indx];
224 (uintmax_t)phys_avail[indx],
225 (uintmax_t)phys_avail[indx + 1] - 1,
/freebsd-current/sys/crypto/aesni/
H A Daesni_ccm.c77 int indx = sizeof(*block) - 1; local
80 while (indx > (sizeof(*block) - offset)) {
81 bp[indx] = value & 0xff;
82 indx--;
/freebsd-current/contrib/elftoolchain/elfcopy/
H A Dpe.c56 size_t indx; local
73 if (elf_getshstrndx(e, &indx) == 0)
127 if ((name = elf_strptr(e, indx, sh.sh_name)) ==
/freebsd-current/sbin/camcontrol/
H A Dmodeedit.c1008 size_t indx, len; local
1033 for (indx = 0; indx < len; indx++) {
1034 printf("%02x%c",mode_pars[indx],
1035 (((indx + 1) % 8) == 0) ? '\n' : ' ');
1045 size_t indx, len; local
1064 for (indx = 0; indx < len; indx
[all...]
/freebsd-current/usr.bin/m4/
H A Dextern.h98 extern ptrdiff_t indx(const char *, const char *);

Completed in 401 milliseconds

123