Searched refs:arraysz (Results 1 - 2 of 2) sorted by relevance

/freebsd-11-stable/lib/libc/gen/
H A Dscandir.c85 size_t arraysz, numitems; local
92 arraysz = 32; /* initial estimate of the array size */
93 names = (struct dirent **)malloc(arraysz * sizeof(struct dirent *));
115 if (numitems >= arraysz) {
118 names2 = reallocarray(names, arraysz,
125 arraysz *= 2;
/freebsd-11-stable/usr.sbin/lpr/common_source/
H A Dcommon.c122 size_t arraysz, entrysz, nitems; local
140 arraysz = (stbuf.st_size / 24);
141 if (arraysz < 16)
142 arraysz = 16;
143 queue = (struct jobqueue **)malloc(arraysz * sizeof(struct jobqueue *));
169 if (++nitems > arraysz) {
171 arraysz, 2 * sizeof(struct jobqueue *));
176 arraysz *= 2;

Completed in 158 milliseconds