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

1234567891011>>

/freebsd-current/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-current/stand/efi/include/
H A Defichar.h41 #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 Dmsgdsize.c13 size_t sz = 0; local
17 sz += m->mb_len;
18 return (sz);
/freebsd-current/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.
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 Dmm-internal.h42 * @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 Dfreezero.c22 freezero(void *ptr, size_t sz) argument
26 explicit_bzero(ptr, sz);
/freebsd-current/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-current/contrib/mandoc/
H A Dcompat_vasprintf.c34 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 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.c33 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 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-current/sys/contrib/openzfs/include/os/linux/spl/sys/
H A Dvmem.h90 #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 Dfreezero.c25 freezero(void *ptr, size_t sz) argument
29 explicit_bzero(ptr, sz);
/freebsd-current/sys/contrib/openzfs/module/zstd/include/
H A Dstdlib.h50 #define calloc(n, sz) NULL
51 #define malloc(sz) NULL
/freebsd-current/tests/sys/kern/
H A Dsysctl_kern_proc.c35 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 Dsanitizer_placement_new.h20 inline void *operator new(__sanitizer::operator_new_size_type sz, void *p) { argument
/freebsd-current/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-current/crypto/openssl/test/testutil/
H A Dapps_shims.c16 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 Dmmap20.sh63 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)

Completed in 227 milliseconds

1234567891011>>