Searched refs:nmemb (Results 1 – 3 of 3) sorted by relevance
39 reallocarray(void *optr, size_t nmemb, size_t size) in reallocarray() argument41 if ((nmemb >= MUL_NO_OVERFLOW || size >= MUL_NO_OVERFLOW) && in reallocarray()42 nmemb > 0 && SIZE_MAX / nmemb < size) { in reallocarray()46 return realloc(optr, size * nmemb); in reallocarray()
37 xcalloc(size_t nmemb, size_t size) in xcalloc() argument41 if (size == 0 || nmemb == 0) in xcalloc()43 if (SIZE_T_MAX / nmemb < size) in xcalloc()45 ptr = calloc(nmemb, size); in xcalloc()48 (u_long)(size * nmemb)); in xcalloc()
71 drm_calloc(size_t nmemb, size_t size, int area) in drm_calloc() argument73 return (kmem_zalloc(size * nmemb, KM_NOSLEEP)); in drm_calloc()