/freebsd-current/crypto/heimdal/lib/roken/ |
H A D | emalloc.c | 46 emalloc (size_t sz) argument 48 void *tmp = malloc (sz); 50 if (tmp == NULL && sz != 0) 51 errx (1, "malloc %lu failed", (unsigned long)sz);
|
H A D | erealloc.c | 46 erealloc (void *ptr, size_t sz) argument 48 void *tmp = realloc (ptr, sz); 50 if (tmp == NULL && sz != 0) 51 errx (1, "realloc %lu failed", (unsigned long)sz);
|
/freebsd-current/stand/efi/include/ |
H A D | efichar.h | 41 #define EFICHAR_MALLOC(sz) malloc((sz), M_TEMP, M_WAITOK | M_ZERO) 42 #define EFICHAR_FREE(sz) free((sz), M_TEMP) 44 #define EFICHAR_MALLOC(sz) malloc(sz) 45 #define EFICHAR_FREE(sz) free(sz)
|
/freebsd-current/sbin/ipf/libipf/ |
H A D | msgdsize.c | 13 size_t sz = 0; local 17 sz += m->mb_len; 18 return (sz);
|
/freebsd-current/contrib/ntp/sntp/libevent/ |
H A D | mm-internal.h | 42 * @return On success, return a pointer to sz newly allocated bytes. 44 * If the argument sz is 0, simply return NULL. 47 void *event_mm_malloc_(size_t sz); 72 void *event_mm_realloc_(void *p, size_t sz); 75 #define mm_malloc(sz) event_mm_malloc_(sz) 78 #define mm_realloc(p, sz) event_mm_realloc_((p), (sz)) 81 #define mm_malloc(sz) malloc(sz) [all...] |
/freebsd-current/contrib/libevent/ |
H A D | mm-internal.h | 42 * @return On success, return a pointer to sz newly allocated bytes. 44 * If the argument sz is 0, simply return NULL. 47 void *event_mm_malloc_(size_t sz); 72 void *event_mm_realloc_(void *p, size_t sz); 75 #define mm_malloc(sz) event_mm_malloc_(sz) 78 #define mm_realloc(p, sz) event_mm_realloc_((p), (sz)) 81 #define mm_malloc(sz) malloc(sz) [all...] |
/freebsd-current/contrib/libfido2/openbsd-compat/ |
H A D | freezero.c | 22 freezero(void *ptr, size_t sz) argument 26 explicit_bzero(ptr, sz);
|
/freebsd-current/contrib/elftoolchain/libelf/ |
H A D | elf_getident.c | 36 elf_getident(Elf *e, size_t *sz) argument 51 if (sz) { 53 *sz = SARMAG; 55 *sz = EI_NIDENT; 57 *sz = (size_t) e->e_rawsize; 63 if (sz) 64 *sz = 0;
|
H A D | elf_memory.c | 34 elf_memory(char *image, size_t sz) argument 41 if (image == NULL || sz == 0) { 46 return (_libelf_memory((unsigned char *) image, sz, 1));
|
H A D | elf_rawfile.c | 34 elf_rawfile(Elf *e, size_t *sz) argument 45 if (sz) 46 *sz = e ? (size_t) e->e_rawsize : 0;
|
H A D | elf_open.c | 54 elf_openmemory(char *image, size_t sz) argument 61 if (image == NULL || sz == 0) { 66 return (_libelf_memory((unsigned char *) image, sz, 0));
|
/freebsd-current/contrib/mandoc/ |
H A D | compat_vasprintf.c | 34 int sz; local 37 sz = vsnprintf(buf, sizeof(buf), format, ap2); 40 if (sz != -1 && (*ret = malloc(sz + 1)) != NULL) { 41 if (vsnprintf(*ret, sz + 1, format, ap) == sz) 42 return sz;
|
H A D | test-fgetln.c | 8 size_t sz; local 10 return(NULL != fgetln(stdin, &sz));
|
H A D | preconv.c | 115 size_t sz, phsz; local 118 sz = b->sz - offset; 122 if (NULL == (eoln = memchr(ln, '\n', sz))) 123 eoln = ln + sz; 127 if ((sz = (size_t)(eoln - ln)) < 10 || 134 sz -= 10; 136 while (sz > 0) { 137 while (sz > 0 && ' ' == *ln) { 139 sz [all...] |
H A D | mandoc_ohash.c | 33 mandoc_ohash_init(struct ohash *h, unsigned int sz, ptrdiff_t ko) argument 43 ohash_init(h, sz, &info); 47 hash_alloc(size_t sz, void *arg) argument 50 return mandoc_malloc(sz); 54 hash_calloc(size_t n, size_t sz, void *arg) argument 57 return mandoc_calloc(n, sz);
|
H A D | manpath.h | 24 size_t sz; member in struct:manpaths
|
H A D | test-ohash.c | 12 xmalloc(size_t sz, void *arg) { argument 13 return calloc(1,sz); 17 xcalloc(size_t nmemb, size_t sz, void *arg) argument 19 return calloc(nmemb,sz);
|
/freebsd-current/sys/contrib/openzfs/include/os/linux/spl/sys/ |
H A D | vmem.h | 90 #define vmem_alloc(sz, fl) spl_vmem_alloc((sz), (fl), __func__, __LINE__) 91 #define vmem_zalloc(sz, fl) spl_vmem_zalloc((sz), (fl), __func__, __LINE__) 92 #define vmem_free(ptr, sz) spl_vmem_free((ptr), (sz)) 94 extern void *spl_vmem_alloc(size_t sz, int fl, const char *func, int line) 96 extern void *spl_vmem_zalloc(size_t sz, int fl, const char *func, int line) 98 extern void spl_vmem_free(const void *ptr, size_t sz);
|
/freebsd-current/crypto/openssh/openbsd-compat/ |
H A D | freezero.c | 25 freezero(void *ptr, size_t sz) argument 29 explicit_bzero(ptr, sz);
|
/freebsd-current/sys/contrib/openzfs/module/zstd/include/ |
H A D | stdlib.h | 50 #define calloc(n, sz) NULL 51 #define malloc(sz) NULL
|
/freebsd-current/tests/sys/kern/ |
H A D | sysctl_kern_proc.c | 35 size_t sz; local 37 sz = sizeof(pid_max); 38 ATF_REQUIRE(sysctlbyname("kern.pid_max", &pid_max, &sz, NULL, 0) == 0); 46 if (sysctl(mib, 4, NULL, &sz, NULL, 0) == 0) { 47 buf = malloc(sz); 49 (void)sysctl(mib, 4, buf, &sz, NULL, 0); 55 ATF_REQUIRE_ERRNO(ESRCH, sysctl(mib, 4, NULL, &sz, NULL, 0) != 0); 67 size_t sz; local 79 sz = 0; 80 ATF_REQUIRE(sysctl(mib, 4, NULL, &sz, NUL 144 size_t sz, sz1; local [all...] |
/freebsd-current/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_placement_new.h | 20 inline void *operator new(__sanitizer::operator_new_size_type sz, void *p) { argument
|
/freebsd-current/crypto/heimdal/appl/ftp/common/ |
H A D | buffer.c | 47 alloc_buffer (void *oldbuf, size_t *sz, struct stat *st) argument 56 if(new_sz > *sz) { 62 *sz = 0; 65 *sz = new_sz;
|
/freebsd-current/crypto/openssl/test/testutil/ |
H A D | apps_shims.c | 16 void *app_malloc(size_t sz, const char *what) argument 25 if (!TEST_ptr(vp = OPENSSL_malloc(sz))) { 26 TEST_info("Could not allocate %zu bytes for %s\n", sz, what);
|
/freebsd-current/tools/test/stress2/misc/ |
H A D | mmap20.sh | 63 size_t sz; 65 sz = 4096; 66 ptr = mmap(NULL, sz, PROT_READ, MAP_ANON, -1, 0); 70 if (mlock(ptr, sz) != 0) 73 if (mprotect(ptr, sz, PROT_EXEC) != 0) 76 if (madvise(ptr, sz, MADV_WILLNEED) != 0) 79 if (munlock(ptr, sz) != 0)
|