/freebsd-13-stable/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);
|
H A D | strndup.c | 42 strndup(const char *old, size_t sz) argument 44 size_t len = strnlen (old, sz);
|
/freebsd-13-stable/contrib/ipfilter/lib/ |
H A D | msgdsize.c | 14 size_t sz = 0; local 18 sz += m->mb_len; 19 return sz;
|
/freebsd-13-stable/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. 46 void *event_mm_malloc_(size_t sz); 68 void *event_mm_realloc_(void *p, size_t sz); 70 #define mm_malloc(sz) event_mm_malloc_(sz) 73 #define mm_realloc(p, sz) event_mm_realloc_((p), (sz)) 76 #define mm_malloc(sz) malloc(sz) [all...] |
/freebsd-13-stable/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. 46 void *event_mm_malloc_(size_t sz); 68 void *event_mm_realloc_(void *p, size_t sz); 70 #define mm_malloc(sz) event_mm_malloc_(sz) 73 #define mm_realloc(p, sz) event_mm_realloc_((p), (sz)) 76 #define mm_malloc(sz) malloc(sz) [all...] |
/freebsd-13-stable/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-13-stable/contrib/mandoc/ |
H A D | compat_vasprintf.c | 41 int sz; local 44 sz = vsnprintf(buf, sizeof(buf), format, ap2); 47 if (sz != -1 && (*ret = malloc(sz + 1)) != NULL) { 48 if (vsnprintf(*ret, sz + 1, format, ap) == sz) 49 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 | 31 mandoc_ohash_init(struct ohash *h, unsigned int sz, ptrdiff_t ko) argument 41 ohash_init(h, sz, &info); 45 hash_alloc(size_t sz, void *arg) argument 48 return mandoc_malloc(sz); 52 hash_calloc(size_t n, size_t sz, void *arg) argument 55 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-13-stable/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); 95 extern void *spl_vmem_zalloc(size_t sz, int fl, const char *func, int line); 96 extern void spl_vmem_free(const void *ptr, size_t sz);
|
/freebsd-13-stable/sys/contrib/openzfs/module/zstd/include/ |
H A D | stdlib.h | 50 #define calloc(n, sz) NULL 51 #define malloc(sz) NULL
|
/freebsd-13-stable/crypto/openssh/openbsd-compat/ |
H A D | freezero.c | 25 freezero(void *ptr, size_t sz) argument 29 explicit_bzero(ptr, sz);
|
/freebsd-13-stable/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-13-stable/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-13-stable/tests/sys/vm/ |
H A D | page_fault_signal.c | 73 int sz; local 75 sz = getpagesize(); 76 p = mmap(NULL, sz, PROT_READ, MAP_ANON, -1, 0); 78 r = munmap(p, sz); 92 int sz; local 94 sz = getpagesize(); 95 p = mmap(NULL, sz, PROT_READ, MAP_ANON, -1, 0); 101 (void)munmap(p, sz); 110 int sz; local 112 sz 129 int sz; local 152 int sz; local [all...] |
/freebsd-13-stable/contrib/llvm-project/compiler-rt/lib/tsan/rtl/ |
H A D | tsan_mman.h | 29 void *user_alloc_internal(ThreadState *thr, uptr pc, uptr sz, 34 void *user_alloc(ThreadState *thr, uptr pc, uptr sz); 35 void *user_calloc(ThreadState *thr, uptr pc, uptr sz, uptr n); 36 void *user_realloc(ThreadState *thr, uptr pc, void *p, uptr sz); 37 void *user_reallocarray(ThreadState *thr, uptr pc, void *p, uptr sz, uptr n); 38 void *user_memalign(ThreadState *thr, uptr pc, uptr align, uptr sz); 40 uptr sz); 41 void *user_aligned_alloc(ThreadState *thr, uptr pc, uptr align, uptr sz); 42 void *user_valloc(ThreadState *thr, uptr pc, uptr sz); 43 void *user_pvalloc(ThreadState *thr, uptr pc, uptr sz); [all...] |
/freebsd-13-stable/contrib/elftoolchain/libdwarf/ |
H A D | dwarf_sections.c | 47 Dwarf_Unsigned sz; local 68 sz = dbg->dbg_section[i].ds_size; 70 SET(debug_info, sz); 72 SET(debug_abbrev, sz); 74 SET(debug_line, sz); 76 SET(debug_loc, sz); 78 SET(debug_aranges, sz); 80 SET(debug_macinfo, sz); 82 SET(debug_pubnames, sz); 84 SET(debug_str, sz); [all...] |
/freebsd-13-stable/sys/dev/random/fenestrasX/ |
H A D | fx_hash.h | 56 fxrng_hash_update(struct fxrng_hash *h, const void *buf, size_t sz) argument 60 rc = blake2b_update(&h->state, buf, sz); 65 fxrng_hash_finish(struct fxrng_hash *h, uint8_t buf[static FXRNG_HASH_SZ], size_t sz) argument 69 rc = blake2b_final(&h->state, buf, sz); 70 ASSERT(rc == 0, "blake2b_final(sz=%zu)", sz);
|