Home
last modified time | relevance | path

Searched refs:nmemb (Results 1 – 3 of 3) sorted by relevance

/titanic_50/usr/src/cmd/mandoc/
H A Dcompat_reallocarray.c39 reallocarray(void *optr, size_t nmemb, size_t size) in reallocarray() argument
41 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()
/titanic_50/usr/src/cmd/ssh/libssh/common/
H A Dxmalloc.c37 xcalloc(size_t nmemb, size_t size) in xcalloc() argument
41 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()
/titanic_50/usr/src/uts/common/io/drm/
H A Ddrm_memory.c71 drm_calloc(size_t nmemb, size_t size, int area) in drm_calloc() argument
73 return (kmem_zalloc(size * nmemb, KM_NOSLEEP)); in drm_calloc()