/titanic_41/usr/src/cmd/lp/lib/filters/ |
H A D | conv.c | 221 register int nitems, local 227 for (nitems = 0; src[nitems]; nitems++) 230 if (!(dst = (TYPE *)Malloc((nitems + 1) * sizeof(TYPE)))) { 235 for (n = 0; n < nitems; n++) 237 dst[nitems].name = 0; 258 register int nitems, local 264 for (nitems = 0; src[nitems]; nitems++) 267 if (!(dst = (TEMPLATE *)Malloc((nitems + 1) * sizeof(TEMPLATE)))){ 272 for (n = 0; n < nitems; n++) { 279 dst[nitems].keyword = 0; [all …]
|
/titanic_41/usr/src/lib/libc/port/gen/ |
H A D | scandir.c | 79 size_t nitems = 0; in scandir64() local 119 if (nitems >= arraysz) { in scandir64() 121 if (nitems == INT_MAX) { in scandir64() 136 names[nitems++] = p; in scandir64() 139 if (nitems && dcomp != NULL) in scandir64() 140 qsort(names, nitems, sizeof (struct dirent64 *), in scandir64() 144 return ((int)nitems); in scandir64() 147 while (nitems != 0) { in scandir64() 148 free(names[--nitems]); in scandir64() 164 size_t nitems = 0; in scandir() local [all …]
|
/titanic_41/usr/src/ucblib/libucb/port/gen/ |
H A D | scandir.c | 77 int nitems; in scandir64() local 98 nitems = 0; in scandir64() 117 if (++nitems >= arraysz) { in scandir64() 126 names[nitems-1] = p; in scandir64() 129 if (nitems && dcomp != NULL) in scandir64() 130 qsort(names, nitems, sizeof (struct direct64 *), in scandir64() 133 return (nitems); in scandir64() 144 int nitems; in scandir() local 168 nitems = 0; in scandir() 187 if (++nitems >= arraysz) { in scandir() [all …]
|
/titanic_41/usr/src/lib/libbc/libc/gen/common/ |
H A D | scandir.c | 42 int nitems; in scandir() local 62 nitems = 0; in scandir() 80 if (++nitems >= arraysz) { in scandir() 89 names[nitems-1] = p; in scandir() 92 if (nitems && dcomp != NULL) in scandir() 93 qsort(names, nitems, sizeof(struct direct *), dcomp); in scandir() 95 return (nitems); in scandir()
|
/titanic_41/usr/src/cmd/lp/lib/lp/ |
H A D | duplist.c | 51 register int nitems, local 57 nitems = lenlist(src); 58 if (!(dst = (char **)Malloc((nitems + 1) * sizeof(char *)))) { 63 for (n = 0; n < nitems; n++) 71 dst[nitems] = 0;
|
/titanic_41/usr/src/uts/common/io/fibre-channel/fca/oce/ |
H A D | oce_utils.c | 98 list_hdr->nitems = 0; in oce_list_create() 104 ASSERT(list_hdr->nitems == 0); in oce_list_destroy() 120 list_hdr->nitems++; in oce_list_insert_tail() 134 list_hdr->nitems++; in oce_list_insert_head() 149 if (list_hdr->nitems <= 0) { in oce_list_remove_tail() 156 list_hdr->nitems--; in oce_list_remove_tail() 172 if (list_hdr->nitems <= 0) { in oce_list_remove_head() 181 list_hdr->nitems--; in oce_list_remove_head() 194 return (list_hdr->nitems <= 0); in oce_list_is_empty() 203 return (list_hdr->nitems); in oce_list_items_avail()
|
/titanic_41/usr/src/cmd/getdevpolicy/ |
H A D | getdevpolicy.c | 79 int nitems = 0; in getpolicy() local 85 if (modctl(MODGETDEVPOLICY, &nitems, sz, mem) == 0 || errno != ENOMEM) in getpolicy() 88 mem = malloc(nitems * sz); in getpolicy() 92 if (modctl(MODGETDEVPOLICY, &nitems, sz, mem) != 0) in getpolicy() 95 for (i = 0; i < nitems; i++) { in getpolicy()
|
/titanic_41/usr/src/cmd/cat/ |
H A D | cat.c | 331 int nitems; in cat() local 384 nitems = (int)mapsize; in cat() 387 &bufferp[offset], (size_t)nitems)) < 0) { in cat() 408 } while ((nitems -= nwritten) > 0); in cat() 461 while ((nitems = read(fi_desc, bufferp, (size_t)buffsize)) > in cat() 472 (size_t)nitems); in cat() 478 "cat: output error (%d/%d characters written)\n"), nwritten, nitems); in cat() 486 } while ((nitems -= nwritten) > 0); in cat() 490 if (nitems < 0) { in cat()
|
/titanic_41/usr/src/uts/common/os/ |
H A D | devpolicy.c | 404 devpolicy_load(int nitems, size_t sz, devplcysys_t *uitmp) in devpolicy_load() argument 431 if (sz != sizeof (devplcysys_t) || nitems > maxdevpolicy || nitems < 1) in devpolicy_load() 434 mem = nitems * sz; in devpolicy_load() 456 for (i = 1; i < nitems; i++) { in devpolicy_load() 485 audit_devpolicy(nitems, items); in devpolicy_load() 520 for (i = 1; i < nitems; i++) { in devpolicy_load() 548 totitems = nitems; in devpolicy_load() 585 int nitems; in devpolicy_get() local 592 if (copyin(nitemp, &nitems, sizeof (nitems))) in devpolicy_get() 599 else if (nitems < totitems) in devpolicy_get()
|
/titanic_41/usr/src/cmd/rpcbind/ |
H A D | rpcb_check.c | 126 int nitems, i; in find_procname() local 131 nitems = sizeof (pmapmap)/sizeof (struct proc_map); in find_procname() 134 nitems = sizeof (rpcbmap)/sizeof (struct proc_map); in find_procname() 137 for (i = 0; i < nitems; i++) { in find_procname()
|
/titanic_41/usr/src/cmd/format/ |
H A D | menu.c | 62 int nitems; local 68 nitems = 2; 75 nitems++; 77 list = (char **)zalloc(nitems * sizeof (char *));
|
/titanic_41/usr/src/cmd/th_tools/ |
H A D | th_define.c | 381 size_t nitems, uint_t logflags) in dump_log() argument 391 for (i = 1; i < nitems; i++) in dump_log() 402 for (i = 0; i < nitems; i++, items++) { in dump_log() 416 nitems); in dump_log() 668 size_t nitems, in define_nerrs() argument 689 " (op 0x%x 0x%llx)\n\n", nitems, naccess, items->access_type, in define_nerrs() 696 for (i = 0, item = items, at = 0; i < nitems; i++, item++) in define_nerrs() 756 if (nitems == 1 && (at & BOFI_DMA_RW)) in define_nerrs() 761 for (i = 0, item = items; i < nitems; i++, item++) { in define_nerrs() 885 int cnt, nitems, acnt; in reduce_log() local [all …]
|
/titanic_41/usr/src/stand/lib/sa/ |
H A D | stdio.c | 248 fread(void *ptr, size_t size, size_t nitems, FILE *stream) in fread() argument 257 for (items = 0, bytes = 0; items < nitems; items++) { in fread() 330 fwrite(const void *ptr, size_t size, size_t nitems, FILE *stream) in fwrite() argument 344 prom_writestr(ptr, size * nitems); in fwrite() 345 return (nitems); in fwrite()
|
/titanic_41/usr/src/cmd/sgs/rtld/mdbmod/common/ |
H A D | rtld.c | 279 uintptr_t datap, nitems; in Depends() local 317 for (nitems = 1; nitems < apl.apl_nitems; nitems++) { in Depends() 529 uintptr_t datap, nitems; in dcmd_Rtmaps() local 588 for (datap = (uintptr_t)aplp + APLIST_OFF_DATA, nitems = 0; in dcmd_Rtmaps() 589 nitems < apl.apl_nitems; nitems++, datap += sizeof (void *)) { in dcmd_Rtmaps() 851 uintptr_t nitems; in _dcmd_Lm_list() local 878 for (nitems = 1; nitems < al.al_nitems; nitems++) { in _dcmd_Lm_list() 942 uintptr_t datap, nitems; in dcmd_Lm_list() local 982 for (datap = (uintptr_t)aplp + APLIST_OFF_DATA, nitems = 0; in dcmd_Lm_list() 983 nitems < apl.apl_nitems; nitems++, datap += sizeof (void *)) { in dcmd_Lm_list() [all …]
|
/titanic_41/usr/src/cmd/news/ |
H A D | news.c | 411 static int nitems = 0; in count() local 414 nitems++; in count() 416 if (nitems) { in count() 417 printf ("%d news item", nitems); in count() 418 if (nitems != 1) in count()
|
/titanic_41/usr/src/lib/libxcurses/src/libc/stdio/ |
H A D | vfscanf.c | 134 int nitems; in mks_vfscanf() local 146 nitems = 0; in mks_vfscanf() 300 nitems++; in mks_vfscanf() 377 nitems++; in mks_vfscanf() 407 return nitems==0 ? EOF : nitems; in mks_vfscanf()
|
/titanic_41/usr/src/uts/common/avs/ns/rdc/ |
H A D | rdc_diskq.h | 81 long nitems; /* items */ member 96 uint64_t nitems; /* items */ member 166 #define QNITEMS(q) q->disk_hdr.h.nitems 189 #define INC_QNITEMS(q, n) q->disk_hdr.h.nitems += n 190 #define DEC_QNITEMS(q, n) q->disk_hdr.h.nitems -= n 204 #define SET_QNITEMS(q, n) q->disk_hdr.h.nitems = n
|
H A D | rdc_diskq.c | 517 header->h.nitems = 0; in rdc_init_diskq_header() 767 hc->nitems = h1.nitems; in rdc_resume_diskq() 774 if (hc->nitems > 0) { in rdc_resume_diskq() 1562 q->nitems++; in rdc_netqueue_insert() 1564 if (q->nitems > q->nitems_hwm) { in rdc_netqueue_insert() 1565 q->nitems_hwm = q->nitems; in rdc_netqueue_insert() 1659 q->nitems--; in rdc_discard_tmpq() 1836 if (netq && netq->nitems == 0) { in rdc_diskq_buf2queue() 1843 calc_perbuf(netq->nitems); in rdc_diskq_buf2queue() 1866 if (netq->nitems > 0) { in rdc_diskq_buf2queue() [all …]
|
/titanic_41/usr/src/cmd/mkmsgs/ |
H A D | mkmsgs.c | 126 int nitems; /* number of bytes to write */ local 277 nitems = strlen(bufworkp) + 1; 278 if (fwrite(bufworkp, sizeof(*bufworkp), nitems, fp_outp) != nitems) {
|
/titanic_41/usr/src/cmd/perl/contrib/Sun/Solaris/Project/ |
H A D | Project.xs | 150 int nitems; 153 nitems = 0; 154 project_walk(&pwalk_cb, (void*)&nitems); 155 XSRETURN(nitems);
|
/titanic_41/usr/src/cmd/perl/contrib/Sun/Solaris/Lgrp/ |
H A D | Lgrp.xs | 59 #define PUSHARRAY(array, nitems) \ argument 63 if (nitems < 0) { \ 65 } else if (nitems > 0) { \ 66 EXTEND(SP, nitems); \ 67 for (x = 0; x < nitems; x++) { \
|
/titanic_41/usr/src/uts/common/kiconv/kiconv_ko/ |
H A D | kiconv_ko.c | 53 size_t *ret_val, kiconv_table_array_t *table, size_t nitems); 467 kiconv_table_t *table, size_t nitems) in utf8_to_ko() argument 488 index = kiconv_binsearch(utf8, table, nitems); in utf8_to_ko() 538 kiconv_table_array_t *table, size_t nitems) in ko_to_utf8() argument 557 index = kiconv_binsearch(ko_val, table, nitems); in ko_to_utf8()
|
/titanic_41/usr/src/cmd/priocntl/ |
H A D | subr.c | 466 size_t nitems; in read_pidlist() local 476 nitems = fread(pidlist + *npidsp, sizeof (pid_t), NPIDS, filep); in read_pidlist() 480 *npidsp += nitems; in read_pidlist() 481 } while (nitems == NPIDS); in read_pidlist()
|
/titanic_41/usr/src/cmd/prtconf/ |
H A D | pdevinfo.c | 550 int i, prop_type, nitems; in dump_prop_list() local 604 print: nitems = prop_type_guess(dumpops, prop, &prop_data, &prop_type); in dump_prop_list() 605 if (nitems < 0) in dump_prop_list() 652 if (nitems != 0) in dump_prop_list() 653 (void) printf(" items=%i", nitems); in dump_prop_list() 668 if (nitems == 0) in dump_prop_list() 677 for (i = 0; i < nitems - 1; i++) in dump_prop_list() 682 for (i = 0; i < nitems - 1; i++) in dump_prop_list() 689 for (i = 0; i < nitems - 1; i++) { in dump_prop_list() 696 for (i = 0; i < nitems - 1; i++) in dump_prop_list()
|
/titanic_41/usr/src/uts/common/kiconv/kiconv_sc/ |
H A D | kiconv_cck_common.c | 296 kiconv_binsearch(uint32_t key, void *tbl, size_t nitems) in kiconv_binsearch() argument 302 high = nitems - 1; in kiconv_binsearch()
|