/freebsd-11-stable/usr.bin/sort/ |
H A D | radixsort.h | 38 void rxsort(struct sort_list_item **base, size_t nmemb);
|
/freebsd-11-stable/contrib/mdocml/ |
H A D | compat_reallocarray.c | 39 reallocarray(void *optr, size_t nmemb, size_t size) argument 41 if ((nmemb >= MUL_NO_OVERFLOW || size >= MUL_NO_OVERFLOW) && 42 nmemb > 0 && SIZE_MAX / nmemb < size) { 46 return realloc(optr, size * nmemb);
|
H A D | test-ohash.c | 17 xcalloc(size_t nmemb, size_t sz, void *arg) argument 19 return calloc(nmemb,sz);
|
H A D | dba_write.c | 91 dba_skip(int32_t nmemb, int32_t sz) argument 97 assert(nmemb > 0); 98 assert(nmemb <= 5); 101 if (nmemb - fwrite(&out, sizeof(out[0]), nmemb, ofp))
|
/freebsd-11-stable/lib/libc/stdlib/ |
H A D | reallocarray.c | 33 reallocarray(void *optr, size_t nmemb, size_t size) argument 36 if ((nmemb >= MUL_NO_OVERFLOW || size >= MUL_NO_OVERFLOW) && 37 nmemb > 0 && SIZE_MAX / nmemb < size) { 41 return (realloc(optr, size * nmemb));
|
H A D | heapsort.c | 83 * There two cases. If j == nmemb, select largest of Ki and Kj. If 84 * j < nmemb, select largest of Ki, Kj and Kj+1. 86 #define CREATE(initval, nmemb, par_i, child_i, par, child, size, count, tmp) { \ 87 for (par_i = initval; (child_i = par_i * 2) <= nmemb; \ 90 if (child_i < nmemb && COMPAR(child, child + size) < 0) { \ 118 #define SELECT(par_i, child_i, nmemb, par, child, size, k, count, tmp1, tmp2) { \ 119 for (par_i = 1; (child_i = par_i * 2) <= nmemb; par_i = child_i) { \ 121 if (child_i < nmemb && COMPAR(child, child + size) < 0) { \ 156 heapsort_b(void *vbase, size_t nmemb, size_t size, heapsort_block compar) argument 159 heapsort(void *vbase, size_t nmemb, size_ [all...] |
H A D | bsearch.c | 64 bsearch_b(const void *key, const void *base0, size_t nmemb, size_t size, argument 68 bsearch(const void *key, const void *base0, size_t nmemb, size_t size, 77 for (lim = nmemb; lim != 0; lim >>= 1) {
|
/freebsd-11-stable/contrib/unbound/compat/ |
H A D | reallocarray.c | 34 reallocarray(void *optr, size_t nmemb, size_t size) argument 36 if ((nmemb >= MUL_NO_OVERFLOW || size >= MUL_NO_OVERFLOW) && 37 nmemb > 0 && SIZE_MAX / nmemb < size) { 41 return realloc(optr, size * nmemb);
|
/freebsd-11-stable/crypto/openssh/openbsd-compat/ |
H A D | reallocarray.c | 37 reallocarray(void *optr, size_t nmemb, size_t size) argument 39 if ((nmemb >= MUL_NO_OVERFLOW || size >= MUL_NO_OVERFLOW) && 40 nmemb > 0 && SIZE_MAX / nmemb < size) { 44 return realloc(optr, size * nmemb);
|
H A D | bsd-poll.c | 46 size_t nmemb; local 58 nmemb = howmany(maxfd + 1 , NFDBITS); 59 if ((readfds = calloc(nmemb, sizeof(fd_mask))) == NULL || 60 (writefds = calloc(nmemb, sizeof(fd_mask))) == NULL || 61 (exceptfds = calloc(nmemb, sizeof(fd_mask))) == NULL) {
|
/freebsd-11-stable/sys/dev/drm2/ |
H A D | drm_mem_util.h | 37 static __inline__ void *drm_calloc_large(size_t nmemb, size_t size) argument 39 if (size != 0 && nmemb > SIZE_MAX / size) 42 return malloc(nmemb * size, DRM_MEM_DRIVER, M_NOWAIT | M_ZERO); 46 static __inline__ void *drm_malloc_ab(size_t nmemb, size_t size) argument 48 if (size != 0 && nmemb > SIZE_MAX / size) 51 return malloc(nmemb * size, DRM_MEM_DRIVER, M_NOWAIT);
|
/freebsd-11-stable/sbin/rcorder/ |
H A D | ealloc.h | 7 void *ecalloc(size_t nmemb, size_t size);
|
H A D | ealloc.c | 111 ecalloc(size_t nmemb, size_t size) argument 115 if ((ptr = calloc(nmemb, size)) == NULL)
|
/freebsd-11-stable/crypto/openssh/ |
H A D | xmalloc.c | 53 xcalloc(size_t nmemb, size_t size) argument 57 if (size == 0 || nmemb == 0) 59 if (SIZE_MAX / nmemb < size) 60 fatal("xcalloc: nmemb * size > SIZE_MAX"); 61 ptr = calloc(nmemb, size); 64 size * nmemb); 69 xreallocarray(void *ptr, size_t nmemb, size_t size) argument 73 new_ptr = reallocarray(ptr, nmemb, size); 76 nmemb, size);
|
/freebsd-11-stable/lib/libc/tests/stdlib/ |
H A D | test-sort.h | 53 ssort(int v[], int nmemb) argument 57 for (i = 0; i < nmemb; i++) { 58 for (j = i + 1; j < nmemb; j++) {
|
/freebsd-11-stable/sys/libkern/ |
H A D | bsearch.c | 56 bsearch(key, base0, nmemb, size, compar) 59 size_t nmemb; 68 for (lim = nmemb; lim != 0; lim >>= 1) {
|
/freebsd-11-stable/contrib/gcclibs/libiberty/ |
H A D | bsearch.c | 33 @deftypefn Supplemental void* bsearch (const void *@var{key}, const void *@var{base}, size_t @var{nmemb}, size_t @var{size}, int (*@var{compar})(const void *, const void *)) 35 Performs a search over an array of @var{nmemb} elements pointed to by 71 size_t nmemb, register size_t size, 78 for (lim = nmemb; lim != 0; lim >>= 1) { 70 bsearch(register const void *key, const void *base0, size_t nmemb, register size_t size, register int (*compar)(const void *, const void *)) argument
|
/freebsd-11-stable/contrib/binutils/libiberty/ |
H A D | bsearch.c | 33 @deftypefn Supplemental void* bsearch (const void *@var{key}, const void *@var{base}, size_t @var{nmemb}, size_t @var{size}, int (*@var{compar})(const void *, const void *)) 35 Performs a search over an array of @var{nmemb} elements pointed to by 71 size_t nmemb, register size_t size, 78 for (lim = nmemb; lim != 0; lim >>= 1) { 70 bsearch(register const void *key, const void *base0, size_t nmemb, register size_t size, register int (*compar)(const void *, const void *)) argument
|
/freebsd-11-stable/contrib/ntp/sntp/libpkgver/ |
H A D | colcomp.c | 102 size_t nmemb = 0; local 114 nmemb = sizeof ca / size; 116 printf("argc is <%d>, nmemb = <%d>\n", argc, nmemb); 120 for (i = 0; i < nmemb; ++i) { 124 qsort((void *)base, nmemb, size, qcmp); 128 for (i = 0; i < nmemb; ++i) {
|
/freebsd-11-stable/contrib/ntp/libntp/ |
H A D | emalloc.c | 88 size_t nmemb, 98 if ((nmemb >= MUL_NO_OVERFLOW || size >= MUL_NO_OVERFLOW) && 99 nmemb > 0 && SIZE_MAX / nmemb < size) { 110 return ereallocz(optr, extra + (size * nmemb), 0, TRUE); 112 return ereallocz(optr, extra + (size * nmemb), 0, TRUE, file, line); 86 oreallocarrayxz( void *optr, size_t nmemb, size_t size, size_t extra , const char * file, int line ) argument
|
/freebsd-11-stable/usr.bin/diff/ |
H A D | xmalloc.c | 42 xcalloc(size_t nmemb, size_t size) argument 46 ptr = calloc(nmemb, size); 48 err(2, "xcalloc: allocating %zu * %zu bytes", nmemb, size); 53 xreallocarray(void *ptr, size_t nmemb, size_t size) argument 57 new_ptr = reallocarray(ptr, nmemb, size); 60 nmemb, size);
|
/freebsd-11-stable/contrib/ntp/lib/isc/unix/ |
H A D | stdio.c | 64 isc_stdio_read(void *ptr, size_t size, size_t nmemb, FILE *f, size_t *nret) { argument 69 r = fread(ptr, size, nmemb, f); 70 if (r != nmemb) { 82 isc_stdio_write(const void *ptr, size_t size, size_t nmemb, FILE *f, argument 89 r = fwrite(ptr, size, nmemb, f); 90 if (r != nmemb)
|
/freebsd-11-stable/contrib/ntp/lib/isc/win32/ |
H A D | stdio.c | 63 isc_stdio_read(void *ptr, size_t size, size_t nmemb, FILE *f, size_t *nret) { argument 68 r = fread(ptr, size, nmemb, f); 69 if (r != nmemb) { 81 isc_stdio_write(const void *ptr, size_t size, size_t nmemb, FILE *f, argument 88 r = fwrite(ptr, size, nmemb, f); 89 if (r != nmemb)
|
/freebsd-11-stable/contrib/ntp/lib/isc/include/isc/ |
H A D | stdio.h | 55 isc_stdio_read(void *ptr, size_t size, size_t nmemb, FILE *f, 60 isc_stdio_write(const void *ptr, size_t size, size_t nmemb, FILE *f,
|
/freebsd-11-stable/bin/sh/bltin/ |
H A D | bltin.h | 60 #define fwrite(ptr, size, nmemb, file) outbin(ptr, (size) * (nmemb), file)
|