/freebsd-current/contrib/sendmail/include/sm/ |
H A D | heap.h | 32 # define sm_malloc(size) sm_malloc_tagged(size, __FILE__, __LINE__, SmHeapGroup) 44 # define sm_malloc_tagged(size, file, line, grp) sm_malloc(size) 45 # define sm_malloc_tagged_x(size, file, line, grp) sm_malloc_x(size) 47 # define sm_heap_register(ptr, size, file, line, grp) (true) 87 # define sm_pmalloc(size) sm_malloc_tagged(size, __FILE__, __LINE__, 0) 88 # define sm_pmalloc_x(size) sm_malloc_tagged_ [all...] |
/freebsd-current/sys/powerpc/powerpc/ |
H A D | db_interface.c | 29 db_read_bytes(vm_offset_t addr, size_t size, char *data) argument 41 if (size == 8) 43 if (size == 4) 45 else if (size == 2) 48 while (size-- > 0) 56 db_write_bytes(vm_offset_t addr, size_t size, char *data) argument 68 cnt = size; 70 if (size == 8) 72 if (size == 4) 75 if (size [all...] |
/freebsd-current/lib/libc/stdio/ |
H A D | setvbuf.c | 48 setvbuf(FILE * __restrict fp, char * __restrict buf, int mode, size_t size) argument 55 * Verify arguments. The `int' limit on `size' is due to this 56 * particular implementation. Note, buf and size are ignored 60 if ((mode != _IOFBF && mode != _IOLBF) || size > INT_MAX) 85 * Find optimal I/O size for seek optimization. This also returns 90 if (size == 0) { 92 size = iosize; 97 if ((buf = malloc(size)) == NULL) { 100 * failure, but try again with file system size. 103 if (size ! [all...] |
/freebsd-current/lib/libc/stdlib/ |
H A D | merge.c | 107 mergesort_b(void *base, size_t nmemb, size_t size, cmp_t cmp) argument 109 mergesort(void *base, size_t nmemb, size_t size, cmp_t cmp) 118 if (size < PSIZE / 2) { /* Pointers must fit into 2 * size. */ 127 if (__is_aligned(size, ISIZE) && __is_aligned(base, ISIZE)) 130 if ((list2 = malloc(nmemb * size + PSIZE)) == NULL) 134 setup(list1, list2, nmemb, size, cmp); 135 last = list2 + nmemb * size; 158 while ((b += size) < t && CMP(q, b) >sense) 164 EXPONENTIAL: for (i = size; ; 266 setup(u_char *list1, u_char *list2, size_t n, size_t size, cmp_t cmp) argument 337 insertionsort(u_char *a, size_t n, size_t size, cmp_t cmp) argument [all...] |
/freebsd-current/sys/contrib/openzfs/module/os/linux/spl/ |
H A D | spl-kmem.c | 39 * But large enough to avoid logging any warnings when a allocation size is 55 * of free pages. Therefore, a maximum kmem size with reasonable safely 63 "Maximum size in bytes for a kmem_alloc()"); 135 spl_kvmalloc(size_t size, gfp_t lflags) argument 148 return (kvmalloc(size, lflags)); 153 if (size > PAGE_SIZE) { 173 (size <= PAGE_SIZE << PAGE_ALLOC_COSTLY_ORDER)) { 188 void *ptr = kmalloc_node(size, kmalloc_lflags, NUMA_NO_NODE); 189 if (ptr || size <= PAGE_SIZE || 194 return (spl_vmalloc(size, lflag 205 spl_kmem_alloc_impl(size_t size, int flags, int node) argument 290 spl_kmem_free_impl(const void *buf, size_t size) argument 320 spl_kmem_alloc_debug(size_t size, int flags, int node) argument 335 spl_kmem_free_debug(const void *ptr, size_t size) argument 404 spl_kmem_alloc_track(size_t size, int flags, const char *func, int line, int node) argument 445 spl_kmem_free_track(const void *ptr, size_t size) argument 470 spl_kmem_alloc(size_t size, int flags, const char *func, int line) argument 485 spl_kmem_zalloc(size_t size, int flags, const char *func, int line) argument 502 spl_kmem_free(const void *buf, size_t size) argument 518 int size = ((len - 1) < kd->kd_size) ? (len - 1) : kd->kd_size; local 561 spl_kmem_init_tracking(struct list_head *list, spinlock_t *lock, int size) argument [all...] |
/freebsd-current/contrib/llvm-project/compiler-rt/lib/msan/ |
H A D | msan_interface_internal.h | 74 void __msan_unpoison(const void *a, uptr size); 80 void __msan_clear_and_unpoison(void *a, uptr size); 82 void* __msan_memcpy(void *dst, const void *src, uptr size); 88 void __msan_poison(const void *a, uptr size); 90 void __msan_poison_stack(void *a, uptr size); 92 // Copy size bytes from src to dst and unpoison the result. 95 void __msan_load_unpoisoned(void *src, uptr size, void *dst); 100 sptr __msan_test_shadow(const void *x, uptr size); 103 void __msan_check_mem_is_initialized(const void *x, uptr size); 106 void __msan_set_origin(const void *a, uptr size, u3 [all...] |
H A D | msan_allocator.cpp | 34 void OnMap(uptr p, uptr size) const {} 35 void OnMapSecondary(uptr p, uptr size, uptr user_begin, argument 37 void OnUnmap(uptr p, uptr size) const { 38 __msan_unpoison((void *)p, size); 43 ReleaseMemoryPagesToOS(shadow_p, shadow_p + size); 46 ReleaseMemoryPagesToOS(origin_p, origin_p + size); 184 static void *MsanAllocate(BufferedStackTrace *stack, uptr size, uptr alignment, argument 186 if (UNLIKELY(size > max_malloc_size)) { 188 Report("WARNING: MemorySanitizer failed to allocate 0x%zx bytes\n", size); 192 ReportAllocationSizeTooBig(size, max_malloc_siz 244 uptr size = meta->requested_size; local 293 MsanCalloc(BufferedStackTrace *stack, uptr nmemb, uptr size) argument 330 msan_malloc(uptr size, BufferedStackTrace *stack) argument 334 msan_calloc(uptr nmemb, uptr size, BufferedStackTrace *stack) argument 338 msan_realloc(void *ptr, uptr size, BufferedStackTrace *stack) argument 348 msan_reallocarray(void *ptr, uptr nmemb, uptr size, BufferedStackTrace *stack) argument 360 msan_valloc(uptr size, BufferedStackTrace *stack) argument 364 msan_pvalloc(uptr size, BufferedStackTrace *stack) argument 378 msan_aligned_alloc(uptr alignment, uptr size, BufferedStackTrace *stack) argument 389 msan_memalign(uptr alignment, uptr size, BufferedStackTrace *stack) argument 400 msan_posix_memalign(void **memptr, uptr alignment, uptr size, BufferedStackTrace *stack) argument 437 __sanitizer_get_estimated_allocated_size(uptr size) argument [all...] |
/freebsd-current/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_ring_buffer.h | 18 // RingBuffer<T>: fixed-size ring buffer optimized for speed of push(). 33 UnmapOrDie(this, SizeInBytes(size())); 35 uptr size() const { function in class:__sanitizer::RingBuffer 45 uptr SizeInBytes() { return SizeInBytes(size()); } 58 CHECK_LT(Idx, size()); 61 IdxNext -= size(); 82 // bytes. Has significant constraints on size and alignment of storage. 87 // Top byte of long_ stores the buffer size in pages. 98 void Init(void *storage, uptr size) { argument 100 CHECK(IsPowerOfTwo(size)); 116 CompactRingBuffer(void *storage, uptr size) argument 122 uptr size = other.GetStorageSize(); local 139 uptr size() const { return GetStorageSize() / sizeof(T); } function in class:__sanitizer::CompactRingBuffer [all...] |
H A D | sanitizer_allocator_dlsym.h | 42 static void *Callocate(SIZE_T nmemb, SIZE_T size) { argument 43 void *ptr = InternalCalloc(nmemb, size); 51 uptr size = internal_allocator()->GetActuallyAllocatedSize(ptr); local 52 Details::OnFree(ptr, size); 64 uptr size = internal_allocator()->GetActuallyAllocatedSize(ptr); local 65 uptr memcpy_size = Min(new_size, size); 73 static void OnAllocate(const void *ptr, uptr size) {} argument 74 static void OnFree(const void *ptr, uptr size) {} argument
|
/freebsd-current/contrib/bearssl/src/rsa/ |
H A D | rsa_i31_keygen.c | 32 unsigned size, uint32_t pubexp) 35 sk, kbuf_priv, pk, kbuf_pub, size, pubexp, 29 br_rsa_i31_keygen(const br_prng_class **rng, br_rsa_private_key *sk, void *kbuf_priv, br_rsa_public_key *pk, void *kbuf_pub, unsigned size, uint32_t pubexp) argument
|
H A D | rsa_i62_keygen.c | 34 unsigned size, uint32_t pubexp) 37 sk, kbuf_priv, pk, kbuf_pub, size, pubexp, 31 br_rsa_i62_keygen(const br_prng_class **rng, br_rsa_private_key *sk, void *kbuf_priv, br_rsa_public_key *pk, void *kbuf_pub, unsigned size, uint32_t pubexp) argument
|
/freebsd-current/crypto/openssh/openbsd-compat/ |
H A D | recallocarray.c | 38 recallocarray(void *ptr, size_t oldnmemb, size_t newnmemb, size_t size) argument 44 return calloc(newnmemb, size); 46 if ((newnmemb >= MUL_NO_OVERFLOW || size >= MUL_NO_OVERFLOW) && 47 newnmemb > 0 && SIZE_MAX / newnmemb < size) { 51 newsize = newnmemb * size; 53 if ((oldnmemb >= MUL_NO_OVERFLOW || size >= MUL_NO_OVERFLOW) && 54 oldnmemb > 0 && SIZE_MAX / oldnmemb < size) { 58 oldsize = oldnmemb * size;
|
/freebsd-current/crypto/openssh/regress/misc/fuzz-harness/ |
H A D | pubkey_fuzz.cc | 9 int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) argument 12 int r = sshkey_from_blob(data, size, &k);
|
H A D | privkey_fuzz.cc | 10 int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) argument 13 struct sshbuf *b = sshbuf_from(data, size);
|
/freebsd-current/contrib/ntp/include/ |
H A D | ieee754io.h | 55 int fetch_ieee754 (unsigned char **bufp, int size, l_fp *lfpp, offsets_t offsets); 56 int put_ieee754 (unsigned char **bufpp, int size, l_fp *lfpp, offsets_t offsets);
|
/freebsd-current/crypto/heimdal/lib/roken/ |
H A D | getcwd.c | 46 getcwd(char *path, size_t size) argument 52 strlcpy(path, xxx, size);
|
/freebsd-current/sys/contrib/xz-embedded/freebsd/ |
H A D | xz_config.h | 56 #define kmalloc(size, flags) xz_malloc(size) 58 #define vmalloc(size) xz_malloc(size) 61 #define memeq(a, b, size) (memcmp((a), (b), (size)) == 0) 62 #define memzero(buf, size) bzero((buf), (size))
|
/freebsd-current/tools/regression/iscsi/ |
H A D | ctl.conf | 15 size 4G 19 size 4G 28 size 4G 32 size 4G
|
/freebsd-current/contrib/libfido2/openbsd-compat/ |
H A D | recallocarray.c | 39 recallocarray(void *ptr, size_t oldnmemb, size_t newnmemb, size_t size) argument 45 return calloc(newnmemb, size); 47 if ((newnmemb >= MUL_NO_OVERFLOW || size >= MUL_NO_OVERFLOW) && 48 newnmemb > 0 && SIZE_MAX / newnmemb < size) { 52 newsize = newnmemb * size; 54 if ((oldnmemb >= MUL_NO_OVERFLOW || size >= MUL_NO_OVERFLOW) && 55 oldnmemb > 0 && SIZE_MAX / oldnmemb < size) { 59 oldsize = oldnmemb * size;
|
/freebsd-current/contrib/mandoc/ |
H A D | compat_recallocarray.c | 42 recallocarray(void *ptr, size_t oldnmemb, size_t newnmemb, size_t size) argument 48 return calloc(newnmemb, size); 50 if ((newnmemb >= MUL_NO_OVERFLOW || size >= MUL_NO_OVERFLOW) && 51 newnmemb > 0 && SIZE_MAX / newnmemb < size) { 55 newsize = newnmemb * size; 57 if ((oldnmemb >= MUL_NO_OVERFLOW || size >= MUL_NO_OVERFLOW) && 58 oldnmemb > 0 && SIZE_MAX / oldnmemb < size) { 62 oldsize = oldnmemb * size;
|
/freebsd-current/contrib/llvm-project/lld/Common/ |
H A D | Memory.cpp | 16 lld::SpecificAllocBase::getOrCreate(void *tag, size_t size, size_t align, argument 21 void *storage = context().bAlloc.Allocate(size, align);
|
/freebsd-current/sys/contrib/openzfs/module/nvpair/ |
H A D | nvpair_alloc_spl.c | 32 nv_alloc_sleep_spl(nv_alloc_t *nva, size_t size) argument 34 return (vmem_alloc(size, KM_SLEEP)); 38 nv_alloc_pushpage_spl(nv_alloc_t *nva, size_t size) argument 40 return (vmem_alloc(size, KM_PUSHPAGE)); 44 nv_alloc_nosleep_spl(nv_alloc_t *nva, size_t size) argument 46 return (kmem_alloc(size, KM_NOSLEEP)); 50 nv_free_spl(nv_alloc_t *nva, void *buf, size_t size) argument 52 kmem_free(buf, size);
|
/freebsd-current/sys/contrib/xz-embedded/userspace/ |
H A D | xz_config.h | 45 #define kmalloc(size, flags) malloc(size) 47 #define vmalloc(size) malloc(size) 50 #define memeq(a, b, size) (memcmp(a, b, size) == 0) 51 #define memzero(buf, size) memset(buf, 0, size) 61 * small code size. You may be able to save a few bytes by #defining 121 * could save a few bytes in code size [all...] |
/freebsd-current/sys/contrib/openzfs/cmd/zstream/ |
H A D | zstream.h | 28 extern int sfread(void *buf, size_t size, FILE *fp); 29 extern void *safe_malloc(size_t size);
|
/freebsd-current/crypto/openssl/include/openssl/ |
H A D | buffer.h | 35 # define BUF_strndup(s, size) OPENSSL_strndup(s, size) 36 # define BUF_memdup(data, size) OPENSSL_memdup(data, size) 37 # define BUF_strlcpy(dst, src, size) OPENSSL_strlcpy(dst, src, size) 38 # define BUF_strlcat(dst, src, size) OPENSSL_strlcat(dst, src, size) 45 size_t max; /* size of buffer */
|