Searched refs:nitems (Results 1 - 25 of 241) sorted by relevance

12345678910

/freebsd-10-stable/usr.sbin/bsdinstall/partedit/
H A Ddiskeditor.h45 struct partedit_item *items, int nitems, int *selected, int *scroll);
H A Dpartedit.c48 static struct partedit_item *read_geom_mesh(struct gmesh *mesh, int *nitems);
50 struct partedit_item **items, int *nitems);
52 static void get_mount_points(struct partedit_item *items, int nitems);
77 int i, op, nitems, nscroll; local
124 items = read_geom_mesh(&mesh, &nitems);
132 get_mount_points(items, nitems);
134 if (i >= nitems)
135 i = nitems - 1;
137 items, nitems, &i, &nscroll);
314 int i, nitems, erro local
434 read_geom_mesh(struct gmesh *mesh, int *nitems) argument
461 add_geom_children(struct ggeom *gp, int recurse, struct partedit_item **items, int *nitems) argument
548 get_mount_points(struct partedit_item *items, int nitems) argument
[all...]
H A Ddiskeditor.c63 struct partedit_item *items, int nitems, int *selected, int *nscroll)
164 for (i = cur_scroll; i < MIN(cur_scroll + partlist_height - 2, nitems);
168 if (nitems > partlist_height - 2)
170 nitems > cur_scroll + partlist_height - 2,
205 if (cur_part == nitems - 1)
240 if (cur_scroll + partlist_height - 2 >= nitems)
241 cur_scroll = nitems - (partlist_height - 2);
259 cur_scroll = nitems - (partlist_height - 2);
62 diskeditor_show(const char *title, const char *cprompt, struct partedit_item *items, int nitems, int *selected, int *nscroll) argument
/freebsd-10-stable/lib/libc/gen/
H A Dscandir.c68 size_t nitems = 0; local
98 if (nitems >= arraysz) {
110 names[nitems++] = p;
113 if (nitems && dcomp != NULL)
114 qsort_r(names, nitems, sizeof(struct dirent *),
117 return (nitems);
120 while (nitems > 0)
121 free(names[--nitems]);
H A Dgetpagesize.c71 if (sysctl(mib, nitems(mib), &value, &size, NULL, 0) == -1)
/freebsd-10-stable/sys/net80211/
H A Dieee80211_action.c85 if (act >= nitems(ba_send_action))
90 if (act >= nitems(ht_send_action))
95 if (act >= nitems(meshpl_send_action))
100 if (act >= nitems(meshaction_send_action))
106 if (act >= nitems(vendor_send_action))
127 if (act < nitems(ba_send_action))
131 if (act < nitems(ht_send_action))
135 if (act < nitems(meshpl_send_action))
139 if (act < nitems(meshaction_send_action))
143 if (act < nitems(vendor_send_actio
[all...]
/freebsd-10-stable/tools/regression/mac/mac_bsdextended/
H A Dtest_ugidfw.c154 for (i = 0; i < nitems(test_users); i++, test_num++) {
162 for (i = 0; i < nitems(test_groups); i++, test_num++) {
170 for (i = 0; i < nitems(test_strings); i++) {
211 printf("1..%lu\n", nitems(test_users) + nitems(test_groups) +
212 3 * nitems(test_strings) + 2);
/freebsd-10-stable/usr.sbin/autofs/
H A Dautomount.c88 find_statfs(const struct statfs *mntbuf, int nitems, const char *mountpoint) argument
92 for (i = 0; i < nitems; i++) {
145 const char *prefix, const struct statfs *mntbuf, int nitems)
157 sb = find_statfs(mntbuf, nitems, mountpoint);
188 int i, nitems; local
190 nitems = getmntinfo(&mntbuf, MNT_WAIT);
191 if (nitems <= 0)
196 for (i = 0; i < nitems; i++) {
220 n->n_key, mntbuf, nitems);
226 "/", mntbuf, nitems);
144 mount_if_not_already(const struct node *n, const char *map, const char *options, const char *prefix, const struct statfs *mntbuf, int nitems) argument
263 int i, nitems; local
286 int i, nitems; local
[all...]
/freebsd-10-stable/tests/sys/kern/pipe/
H A Dpipe_overcommit1_test.c46 for (i = 0; i < nitems(pipes); i++)
/freebsd-10-stable/contrib/tcpdump/
H A Dprint-vqp.c48 * | Constant | Packet type | Error Code | nitems |
58 u_int8_t nitems; member in struct:vqp_common_header_t
118 u_int8_t nitems; local
146 nitems = vqp_common_header->nitems;
153 nitems,
160 while (nitems > 0 && tlen > 0) {
204 nitems--;
/freebsd-10-stable/tests/sys/mac/bsdextended/
H A Dugidfw_test.c155 for (i = 0; i < nitems(test_users); i++, test_num++) {
163 for (i = 0; i < nitems(test_groups); i++, test_num++) {
171 for (i = 0; i < nitems(test_strings); i++) {
225 printf("1..%zu\n", nitems(test_users) + nitems(test_groups) +
226 3 * nitems(test_strings) + 2);
/freebsd-10-stable/usr.sbin/bhyve/
H A Dpci_irq.c92 assert(pin > 0 && pin <= nitems(pirqs));
101 assert(pin > 0 && pin <= nitems(pirqs));
118 assert(irq >= 0 && irq < nitems(irq_counts));
128 assert(irq >= 0 && irq < nitems(irq_counts));
139 for (i = 0; i < nitems(pirqs); i++) {
145 for (i = 0; i < nitems(irq_counts); i++) {
159 assert(pi->pi_lintr.pirq_pin <= nitems(pirqs));
180 assert(pi->pi_lintr.pirq_pin <= nitems(pirqs));
205 for (pin = 1; pin < nitems(pirqs); pin++) {
217 for (irq = 0; irq < nitems(irq_count
[all...]
/freebsd-10-stable/contrib/gdb/gdb/mi/
H A Dmi-symbol-cmds.c55 if (LINETABLE (s) != NULL && LINETABLE (s)->nitems > 0)
56 for (i = 0; i < LINETABLE (s)->nitems; i++)
/freebsd-10-stable/lib/libutil/
H A Dkinfo_getproc.c52 if (sysctl(mib, nitems(mib), NULL, &len, NULL, 0) < 0)
59 if (sysctl(mib, nitems(mib), kipp, &len, NULL, 0) < 0)
/freebsd-10-stable/contrib/ncurses/menu/
H A Dm_format.c88 total_rows = (menu->nitems - 1) / cols + 1;
90 minimum(menu->nitems, cols) :
91 (menu->nitems - 1) / total_rows + 1;
/freebsd-10-stable/lib/libc/tests/stdio/
H A Dprint_positional_test.c98 swprintf(wbuf1, nitems(wbuf1),
121 mbsrtowcs(wbuf2, &temp, nitems(wbuf2), NULL);
143 mbsrtowcs(wbuf2, &temp, nitems(wbuf2), NULL);
/freebsd-10-stable/usr.sbin/lpr/lpc/
H A Dmovejobs.c79 static int nitems; variable
99 matchcnt = scanq_jobspec(nitems, queue, SCQ_JSORDER, &jobs_wanted,
215 nitems = getq(pp, &queue);
216 if (nitems == 0) {
233 touch_info.newtime = queue[nitems - 1]->job_time + 1;
242 touch_info.newtime = queue[0]->job_time - nitems - 5;
266 for (i = 0; i < nitems; i++)
/freebsd-10-stable/lib/libcam/
H A Dcamlib.c123 snprintf(cam_errbuf, nitems(cam_errbuf),
146 snprintf(cam_errbuf, nitems(cam_errbuf),
174 snprintf(cam_errbuf, nitems(cam_errbuf),
186 snprintf(cam_errbuf, nitems(cam_errbuf),
199 snprintf(cam_errbuf, nitems(cam_errbuf),
275 snprintf(cam_errbuf, nitems(cam_errbuf),
292 snprintf(cam_errbuf, nitems(cam_errbuf),
305 snprintf(cam_errbuf, nitems(cam_errbuf),
328 snprintf(cam_errbuf, nitems(cam_errbuf),
340 snprintf(cam_errbuf, nitems(cam_errbu
[all...]
/freebsd-10-stable/tools/regression/capsicum/syscalls/
H A Dcap_ioctls_limit.c64 CHECK(cap_ioctls_limit(fd, cmds, nitems(cmds)) == 0);
66 CHECK(cap_ioctls_get(fd, cmds, nitems(cmds)) == nitems(cmds));
71 CHECK(cap_ioctls_limit(fd, cmds, nitems(cmds)) == 0);
73 CHECK(cap_ioctls_get(fd, cmds, 1) == nitems(cmds));
86 CHECK(cap_ioctls_get(fd, cmds, nitems(cmds)) == 1);
91 CHECK(cap_ioctls_limit(fd, cmds, nitems(cmds)) == -1);
94 CHECK(cap_ioctls_get(fd, cmds, nitems(cmds)) == 1);
108 CHECK(cap_ioctls_get(fd, cmds, nitems(cmds)) == 0);
113 CHECK(cap_ioctls_get(fd, cmds, nitems(cmd
[all...]
/freebsd-10-stable/tests/sys/aio/
H A Daio_kqueue_test.c96 for (i = 0; i < nitems(iocb); i++) {
104 for (i = 0; i < nitems(iocb); i++) {
140 cancel = nitems(iocb) - pending;
174 pending, nitems(iocb), cancel);
178 for (j = 0; j < nitems(iocb) && iocb[j] != kq_iocb;
205 for (i = 0; i < nitems(iocb); i++)
/freebsd-10-stable/lib/libc/tests/stdlib/
H A Dtest-sort.h271 #define IVEC_LEN (nitems(initvector))
/freebsd-10-stable/lib/libc/sparc64/sys/
H A D__sparc_utrap_setup.c46 { nitems(ua), ua }
/freebsd-10-stable/usr.bin/truss/
H A Di386-fbsd.c115 nitems(syscallnames),
125 nitems(syscallnames),
H A Damd64-linux32.c123 for (i = 0; i < nitems(bsd_to_linux_errno); i++) {
138 nitems(linux32_syscallnames),
/freebsd-10-stable/lib/libc/tests/gen/
H A Dpopen_test.c79 for (i = 0; i < nitems(allmodes); i++) {
101 for (i = 0; i < nitems(rmodes); i++) {
117 for (i = 0; i < nitems(rmodes); i++) {
145 for (i = 0; i < nitems(wmodes); i++) {
164 for (i = 0; i < nitems(wmodes); i++) {
183 for (i = 0; i < nitems(wmodes); i++) {
184 for (j = 0; j < nitems(wmodes); j++) {
220 for (i = 0; i < nitems(rwmodes); i++) {

Completed in 221 milliseconds

12345678910