Searched refs:sz (Results 1 - 25 of 703) sorted by relevance

1234567891011>>

/freebsd-12-stable/crypto/heimdal/lib/roken/
H A Demalloc.c46 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 Derealloc.c46 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 Dmm-internal.h42 * @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 Dmm-internal.h42 * @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 Dmsgdsize.c14 size_t sz = 0; local
18 sz += m->mb_len;
19 return sz;
/freebsd-12-stable/contrib/libstdc++/libsupc++/
H A Dnew_opv.cc35 operator new[] (std::size_t sz) throw (std::bad_alloc) argument
37 return ::operator new(sz);
H A Dnew_opvnt.cc35 operator new[] (std::size_t sz, const std::nothrow_t& nothrow) throw() argument
37 return ::operator new(sz, nothrow);
H A Dnew_opnt.cc41 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 Dnew_op.cc50 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 Dcompat_vasprintf.c41 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 Dtest-fgetln.c8 size_t sz; local
10 return(NULL != fgetln(stdin, &sz));
H A Dpreconv.c115 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 Dmandoc_ohash.c31 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 Dmanpath.h24 size_t sz; member in struct:manpaths
H A Dtest-ohash.c12 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 Delf_getident.c36 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 Delf_memory.c34 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 Delf_rawfile.c34 elf_rawfile(Elf *e, size_t *sz) argument
45 if (sz)
46 *sz = e ? (size_t) e->e_rawsize : 0;
H A Delf_open.c54 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 Dhost-darwin.c34 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 Dhost-darwin.h21 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 Dfreezero.c25 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 Dsanitizer_placement_new.h20 inline void *operator new(__sanitizer::operator_new_size_type sz, void *p) { argument
/freebsd-12-stable/crypto/heimdal/appl/ftp/common/
H A Dbuffer.c47 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 Datomic.h93 #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...]

Completed in 311 milliseconds

1234567891011>>