Home
last modified time | relevance | path

Searched refs:nalloc (Results 1 – 19 of 19) sorted by relevance

/openbsd-src/usr.bin/rsync/
H A Dmisc.c41 u_int nalloc; in addargs() local
50 nalloc = args->nalloc; in addargs()
52 nalloc = 32; in addargs()
54 } else if (args->num+2 >= nalloc) in addargs()
55 nalloc *= 2; in addargs()
57 args->list = recallocarray(args->list, args->nalloc, nalloc, in addargs()
61 args->nalloc = nalloc; in addargs()
75 args->nalloc = args->num = 0; in freeargs()
H A Dextern.h264 u_int nalloc; member
/openbsd-src/lib/libc/gen/
H A Dgetusershell.c86 size_t nshells, nalloc, linesize; in initshells() local
97 nalloc = 10; // just an initial guess in initshells()
99 shells = reallocarray(NULL, nalloc, sizeof (char *)); in initshells()
110 if (nshells + 1 == nalloc) { in initshells()
111 char **new = reallocarray(shells, nalloc * 2, sizeof(char *)); in initshells()
115 nalloc *= 2; in initshells()
/openbsd-src/usr.sbin/bgpd/
H A Dpftable.c48 int nalloc; member
163 pft->nalloc = pft->naddrs = 0; in pftable_clear_all()
199 if (pft->nalloc <= pft->naddrs) in pftable_add_work()
200 pft->nalloc = pft->nalloc == 0 ? 1 : pft->nalloc * 2; in pftable_add_work()
201 tmp = reallocarray(pft->worklist, pft->nalloc, sizeof(*tmp)); in pftable_add_work()
208 pft->nalloc = pft->naddrs = 0; in pftable_add_work()
254 pft->nalloc = pft->naddrs = 0; in pftable_commit()
/openbsd-src/usr.sbin/smtpd/
H A Dutil.c607 uint nalloc; in addargs() local
617 nalloc = args->nalloc; in addargs()
619 nalloc = 32; in addargs()
621 } else if (args->num+2 >= nalloc) in addargs()
622 nalloc *= 2; in addargs()
624 tmp = reallocarray(args->list, nalloc, sizeof(char *)); in addargs()
628 args->nalloc = nalloc; in addargs()
H A Dsmtpd.h1686 uint nalloc;
1685 uint nalloc; global() member
/openbsd-src/usr.bin/mail/
H A Dmain.c211 cc = cat(cc, nalloc(optarg, GCC)); in main()
217 bcc = cat(bcc, nalloc(optarg, GBCC)); in main()
239 to = cat(to, nalloc(argv[i], GTO)); in main()
H A Dnames.c49 nalloc(char *str, int ntype) in nalloc() function
97 t = nalloc(nbuf, ntype); in extract()
424 np = nalloc(cp, ntype); in gexpand()
H A Dsend.c451 cat(hp->h_to, nalloc(np->n_name, np->n_type)); in fixhead()
454 cat(hp->h_cc, nalloc(np->n_name, np->n_type)); in fixhead()
457 cat(hp->h_bcc, nalloc(np->n_name, np->n_type)); in fixhead()
H A Dextern.h43 struct name *nalloc(char *, int);
/openbsd-src/lib/libexpat/tests/
H A Dminicheck.c95 int nalloc = tc->allocated + 100; in tcase_add_test() local
96 size_t new_size = sizeof(tcase_test_function) * nalloc; in tcase_add_test()
101 tc->allocated = nalloc; in tcase_add_test()
/openbsd-src/sys/arch/octeon/dev/
H A Doctboot.c101 int argc = 0, error, havesyms = 0, i, nalloc = 0; in octboot_kexec() local
183 nalloc++; in octboot_kexec()
344 for (i = 0; i < eh.e_phnum && nalloc > 0; i++) { in octboot_kexec()
348 nalloc--; in octboot_kexec()
/openbsd-src/usr.bin/ssh/
H A Dmisc.c1077 u_int nalloc; in addargs()
1086 nalloc = args->nalloc; in replacearg()
1088 nalloc = 32; in replacearg()
1092 else if (args->num >= args->nalloc) in replacearg()
1094 else if (args->num+2 >= nalloc) in replacearg()
1095 nalloc *= 2; in replacearg()
1097 args->list = xrecallocarray(args->list, args->nalloc, in replacearg()
1098 nalloc, sizeof(char *)); in replacearg()
1099 args->nalloc in replacearg()
1056 u_int nalloc; addargs() local
[all...]
H A Dmisc.h129 u_int nalloc;
128 u_int nalloc; global() member
/openbsd-src/gnu/usr.bin/binutils/binutils/
H A Dieee.c778 unsigned int nalloc; in ieee_alloc_type() local
784 nalloc = info->types.alloc; in ieee_alloc_type()
785 if (nalloc == 0) in ieee_alloc_type()
786 nalloc = 4; in ieee_alloc_type()
787 while (indx >= nalloc) in ieee_alloc_type()
788 nalloc *= 2; in ieee_alloc_type()
792 nalloc * sizeof *info->types.types)); in ieee_alloc_type()
795 (nalloc - info->types.alloc) * sizeof *info->types.types); in ieee_alloc_type()
797 tend = info->types.types + nalloc; in ieee_alloc_type()
801 info->types.alloc = nalloc; in ieee_alloc_type()
[all …]
/openbsd-src/gnu/usr.bin/binutils-2.17/binutils/
H A Dieee.c779 unsigned int nalloc; in ieee_alloc_type() local
785 nalloc = info->types.alloc; in ieee_alloc_type()
786 if (nalloc == 0) in ieee_alloc_type()
787 nalloc = 4; in ieee_alloc_type()
788 while (indx >= nalloc) in ieee_alloc_type()
789 nalloc *= 2; in ieee_alloc_type()
793 nalloc * sizeof *info->types.types)); in ieee_alloc_type()
796 (nalloc - info->types.alloc) * sizeof *info->types.types); in ieee_alloc_type()
798 tend = info->types.types + nalloc; in ieee_alloc_type()
802 info->types.alloc = nalloc; in ieee_alloc_type()
[all …]
/openbsd-src/gnu/usr.bin/gcc/gcc/
H A Dc-format.c1226 int nalloc; local
1227 nalloc = 2 * dollar_arguments_alloc + 16;
1228 dollar_arguments_used = xrealloc (dollar_arguments_used, nalloc);
1230 nalloc);
1232 nalloc - dollar_arguments_alloc);
1233 dollar_arguments_alloc = nalloc;
/openbsd-src/gnu/gcc/gcc/
H A Dc-format.c1109 int nalloc; in maybe_read_dollar_number() local
1110 nalloc = 2 * dollar_arguments_alloc + 16; in maybe_read_dollar_number()
1112 nalloc); in maybe_read_dollar_number()
1114 nalloc); in maybe_read_dollar_number()
1116 nalloc - dollar_arguments_alloc); in maybe_read_dollar_number()
1117 dollar_arguments_alloc = nalloc; in maybe_read_dollar_number()
/openbsd-src/gnu/usr.bin/binutils/gdb/
H A Dprocfs.c2973 static int nalloc = 0; in proc_get_LDT_entry() local
2984 if (nldt > nalloc) in proc_get_LDT_entry()
2988 nalloc = nldt; in proc_get_LDT_entry()