Searched refs:size (Results 1 - 25 of 8792) sorted by relevance

1234567891011>>

/freebsd-current/lib/libc/rpc/
H A Drpc_dtablesize.c53 static int size; local
55 if (size == 0) {
56 size = getdtablesize();
57 if (size > FD_SETSIZE)
58 size = FD_SETSIZE;
60 return (size);
/freebsd-current/crypto/openssh/openbsd-compat/
H A Dbsd-malloc.c27 rpl_malloc(size_t size) argument
29 if (size == 0)
30 size = 1;
31 return malloc(size);
37 rpl_calloc(size_t nmemb, size_t size) argument
41 if (size == 0)
42 size = 1;
43 return calloc(nmemb, size);
49 rpl_realloc(void *ptr, size_t size) argument
51 if (size
[all...]
/freebsd-current/tools/tools/crypto/
H A Dcryptorun.sh17 size=256
25 while [ "$size" -le "$max_size" ]; do
26 $crypto -t $threads -a $1 $iterations $size
27 size=$(($size * 2))
29 size=256
/freebsd-current/contrib/tcpdump/
H A Daddrtostr.h41 extern const char *addrtostr(const void *src, char *dst, size_t size);
42 extern const char *addrtostr6(const void *src, char *dst, size_t size);
/freebsd-current/sys/contrib/openzfs/module/os/linux/zfs/
H A Dzfs_racct.c29 zfs_racct_read(uint64_t size, uint64_t iops) argument
31 (void) size, (void) iops;
35 zfs_racct_write(uint64_t size, uint64_t iops) argument
37 (void) size, (void) iops;
/freebsd-current/sys/compat/linuxkpi/common/include/linux/
H A Dcirc_buf.h30 #define CIRC_CNT(head,tail,size) (((head) - (tail)) & ((size) - 1))
31 #define CIRC_SPACE(head,tail,size) CIRC_CNT((tail),((head) + 1),(size))
/freebsd-current/sys/vm/
H A Duma_dbg.h41 int trash_ctor(void *mem, int size, void *arg, int flags);
42 void trash_dtor(void *mem, int size, void *arg);
43 int trash_init(void *mem, int size, int flags);
44 void trash_fini(void *mem, int size);
47 int mtrash_ctor(void *mem, int size, void *arg, int flags);
48 void mtrash_dtor(void *mem, int size, void *arg);
49 int mtrash_init(void *mem, int size, int flags);
50 void mtrash_fini(void *mem, int size);
/freebsd-current/contrib/llvm-project/compiler-rt/lib/memprof/
H A Dmemprof_interceptors_memintrinsics.h21 DECLARE_REAL(void *, memcpy, void *to, const void *from, uptr size)
22 DECLARE_REAL(void *, memset, void *block, int c, uptr size)
30 #define ACCESS_MEMORY_RANGE(offset, size) \
32 __memprof_record_access_range(offset, size); \
35 #define MEMPROF_READ_RANGE(offset, size) ACCESS_MEMORY_RANGE(offset, size)
36 #define MEMPROF_WRITE_RANGE(offset, size) ACCESS_MEMORY_RANGE(offset, size)
H A Dmemprof_interceptors_memintrinsics.cpp26 #define MEMPROF_MEMCPY_IMPL(to, from, size) \
29 return internal_memcpy(to, from, size); \
31 return REAL(memcpy)(to, from, size); \
34 MEMPROF_READ_RANGE(from, size); \
35 MEMPROF_WRITE_RANGE(to, size); \
36 return REAL(memcpy)(to, from, size); \
40 #define MEMPROF_MEMSET_IMPL(block, c, size) \
43 return internal_memset(block, c, size); \
45 return REAL(memset)(block, c, size); \
48 MEMPROF_WRITE_RANGE(block, size); \
82 __memprof_memcpy(void *to, const void *from, uptr size) argument
86 __memprof_memset(void *block, int c, uptr size) argument
90 __memprof_memmove(void *to, const void *from, uptr size) argument
[all...]
/freebsd-current/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/safety/
H A Dtst.copyin2.d30 * Test that there is no value of 'size' which can be passed to copyin
32 * that we test both size = 0 and size = 0xfff...fff
39 size_t size;
42 size_t size;
48 printf("size = 0x%lx\n", (ulong_t)size);
54 tracemem(copyin(curthread->t_procp->p_user.u_envp, size), 10);
58 /pid == $pid && size > (1 << MAX_BITS)/
66 size
[all...]
/freebsd-current/contrib/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_interceptors_memintrinsics.cpp24 void *__tsan_memcpy(void *dst, const void *src, uptr size) { argument
27 COMMON_INTERCEPTOR_MEMCPY_IMPL(ctx, dst, src, size);
29 COMMON_INTERCEPTOR_MEMMOVE_IMPL(ctx, dst, src, size);
33 void *__tsan_memset(void *dst, int c, uptr size) { argument
35 COMMON_INTERCEPTOR_MEMSET_IMPL(ctx, dst, c, size);
38 void *__tsan_memmove(void *dst, const void *src, uptr size) { argument
40 COMMON_INTERCEPTOR_MEMMOVE_IMPL(ctx, dst, src, size);
H A Dtsan_malloc_mac.cpp28 #define COMMON_MALLOC_MEMALIGN(alignment, size) \
30 user_memalign(cur_thread(), StackTrace::GetCurrentPc(), alignment, size)
31 #define COMMON_MALLOC_MALLOC(size) \
32 if (in_symbolizer()) return InternalAlloc(size); \
35 SCOPED_INTERCEPTOR_RAW(malloc, size); \
36 p = user_alloc(thr, pc, size); \
38 invoke_malloc_hook(p, size)
39 #define COMMON_MALLOC_REALLOC(ptr, size) \
40 if (in_symbolizer()) return InternalRealloc(ptr, size); \
45 SCOPED_INTERCEPTOR_RAW(realloc, ptr, size); \
[all...]
/freebsd-current/usr.sbin/fifolog/fifolog_create/
H A Dfifolog_create.c44 fprintf(stderr, "Usage: fifolog_create [-l record-size] "
45 "[-r record-count] [-s size] file\n");
53 int64_t size; local
59 size = 0;
72 if (expand_number(optarg, &size))
84 if (size != 0 && reccnt != 0 && recsize != 0) { /* N N N */
85 if (size != reccnt * recsize)
87 } else if (size != 0 && reccnt != 0 && recsize == 0) { /* N N Z */
88 if (size % reccnt)
91 recsize = size / reccn
[all...]
/freebsd-current/contrib/llvm-project/compiler-rt/lib/asan/
H A Dasan_interceptors_memintrinsics.cpp28 #define ASAN_MEMCPY_IMPL(ctx, to, from, size) \
32 CHECK_RANGES_OVERLAP("memcpy", to, size, from, size); \
34 ASAN_READ_RANGE(ctx, from, size); \
35 ASAN_WRITE_RANGE(ctx, to, size); \
37 return internal_memcpy(to, from, size); \
39 return REAL(memcpy)(to, from, size); \
43 #define ASAN_MEMSET_IMPL(ctx, block, c, size) \
46 ASAN_WRITE_RANGE(ctx, block, size); \
48 return internal_memset(block, c, size); \
62 __asan_memcpy(void *to, const void *from, uptr size) argument
66 __asan_memset(void *block, int c, uptr size) argument
70 __asan_memmove(void *to, const void *from, uptr size) argument
[all...]
/freebsd-current/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_allocator_checks.h41 // two and that the size is a multiple of alignment for POSIX implementation,
42 // and a bit relaxed requirement for non-POSIX ones, that the size is a multiple
44 inline bool CheckAlignedAllocAlignmentAndSize(uptr alignment, uptr size) { argument
47 (size & (alignment - 1)) == 0;
49 return alignment != 0 && size % alignment == 0;
60 // Returns true if calloc(size, n) call overflows on size*n calculation.
61 inline bool CheckForCallocOverflow(uptr size, uptr n) { argument
62 if (!size)
65 return (max / size) <
70 CheckForPvallocOverflow(uptr size, uptr page_size) argument
[all...]
/freebsd-current/contrib/openpam/lib/libpam/
H A Dopenpam_strlcat.c42 openpam_strlcat(char *dst, const char *src, size_t size) argument
46 for (len = 0; *dst && size > 1; ++len, --size)
48 for (; *src && size > 1; ++len, --size)
/freebsd-current/crypto/heimdal/lib/roken/
H A Drealloc.c41 rk_realloc(void *ptr, size_t size) argument
44 return malloc(size);
45 return realloc(ptr, size);
/freebsd-current/sys/dev/qat/qat_api/include/
H A Dicp_sal_iommu.h19 * Function returns page_size rounded size for iommu remapping
30 * @param[in] size Minimum required size.
32 * @retval page_size rounded size for iommu remapping.
35 size_t icp_sal_iommu_get_remap_size(size_t size);
53 * @param[in] size Size of the remapped region.
59 CpaStatus icp_sal_iommu_map(Cpa64U phaddr, Cpa64U iova, size_t size);
76 * @param[in] size Size of the remapped region.
82 CpaStatus icp_sal_iommu_unmap(Cpa64U iova, size_t size);
/freebsd-current/lib/libc/stdlib/
H A Dreallocf.c31 reallocf(void *ptr, size_t size) argument
35 nptr = realloc(ptr, size);
40 * So, to avoid double free, call free() only when size != 0.
43 if (!nptr && ptr && size != 0)
/freebsd-current/lib/libc/gen/
H A Dmemalign.c33 memalign(size_t align, size_t size) argument
40 return (aligned_alloc(align, roundup(size, align)));
42 return (malloc(size));
/freebsd-current/contrib/expat/tests/
H A Dmemcheck.h43 void *tracking_malloc(size_t size);
45 void *tracking_realloc(void *ptr, size_t size);
/freebsd-current/sys/arm64/rockchip/
H A Drk_otp.h28 int rk_otp_read(device_t dev, uint8_t *buffer, int offset, int size);
/freebsd-current/sbin/ipf/libipf/
H A Dbcopywrap.c13 bcopywrap(void *from, void *to, size_t size) argument
15 bcopy((caddr_t)from, (caddr_t)to, size);
H A Dkmemcpywrap.c14 kmemcpywrap(void *from, void *to, size_t size) argument
18 ret = kmemcpy((caddr_t)to, (u_long)from, size);
/freebsd-current/lib/libpathconv/
H A Dpathconv.h28 char * rel2abs(const char *path, const char *base, char *result, const size_t size);
29 char * abs2rel(const char *path, const char *base, char *result, const size_t size);

Completed in 183 milliseconds

1234567891011>>