/freebsd-12-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);
|
/freebsd-12-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-12-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-12-stable/contrib/ipfilter/lib/ |
H A D | msgdsize.c | 14 size_t sz = 0; local 18 sz += m->mb_len; 19 return sz;
|
/freebsd-12-stable/contrib/libstdc++/libsupc++/ |
H A D | new_opv.cc | 35 operator new[] (std::size_t sz) throw (std::bad_alloc) argument 37 return ::operator new(sz);
|
H A D | new_opvnt.cc | 35 operator new[] (std::size_t sz, const std::nothrow_t& nothrow) throw() argument 37 return ::operator new(sz, nothrow);
|
H A D | new_opnt.cc | 41 operator new (std::size_t sz, const std::nothrow_t&) throw() argument 46 if (sz == 0) 47 sz = 1; 48 p = (void *) malloc (sz); 63 p = (void *) malloc (sz);
|
H A D | new_op.cc | 50 operator new (std::size_t sz) throw (std::bad_alloc) argument 55 if (sz == 0) 56 sz = 1; 57 p = (void *) malloc (sz); 68 p = (void *) malloc (sz);
|
/freebsd-12-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-12-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-12-stable/contrib/gcc/config/ |
H A D | host-darwin.c | 34 darwin_gt_pch_get_address (size_t sz, int fd ATTRIBUTE_UNUSED) argument 36 if (sz <= sizeof (pch_address_space)) 46 darwin_gt_pch_use_address (void *addr, size_t sz, int fd, size_t off) argument 55 ret = (addr == pch_address_space && sz <= sizeof (pch_address_space)); 57 sz = 0; 60 sz = (sz + pagesize - 1) / pagesize * pagesize; 62 if (munmap (pch_address_space + sz, sizeof (pch_address_space) - sz) != 0) 67 mmap_result = mmap (addr, sz, [all...] |
H A D | host-darwin.h | 21 extern void * darwin_gt_pch_get_address (size_t sz, int fd); 22 extern int darwin_gt_pch_use_address (void *addr, size_t sz, int fd,
|
/freebsd-12-stable/crypto/openssh/openbsd-compat/ |
H A D | freezero.c | 25 freezero(void *ptr, size_t sz) argument 29 explicit_bzero(ptr, sz);
|
/freebsd-12-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-12-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-12-stable/sys/sparc64/include/ |
H A D | atomic.h | 93 #define itype(sz) uint ## sz ## _t 98 #define atomic_cas(p, e, s, sz) \ 99 atomic_cas_ ## sz((p), (e), (s)) 101 #define atomic_cas_acq(p, e, s, sz) ({ \ 102 itype(sz) v; \ 103 v = atomic_cas((p), (e), (s), sz); \ 108 #define atomic_cas_rel(p, e, s, sz) ({ \ 109 itype(sz) v; \ 111 v = atomic_cas((p), (e), (s), sz); \ [all...] |