/freebsd-current/libexec/tftpd/ |
H A D | tftp-options.c | 223 /* maximum size of an UDP packet according to the system */ 232 int size = atoi(options[OPT_BLKSIZE].o_request); local 233 if (size < BLKSIZE_MIN || size > BLKSIZE_MAX) { 237 size); 243 size); 248 if (size > (int)maxdgram) { 253 "%ld bytes.\n", size, maxdgram); 260 "%ld bytes.\n", size, maxdgram); 261 size 280 int size, i; local 333 int size; local 369 make_options(int peer __unused, char *buffer, uint16_t size) argument 413 parse_options(int peer, char *buffer, uint16_t size) argument [all...] |
/freebsd-current/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_posix.cpp | 46 void *MmapOrDie(uptr size, const char *mem_type, bool raw_report) { argument 47 size = RoundUpTo(size, GetPageSizeCached()); 48 uptr res = MmapNamed(nullptr, size, PROT_READ | PROT_WRITE, 52 ReportMmapFailureAndDie(size, mem_type, "allocate", reserrno, raw_report); 53 IncreaseTotalMmap(size); 57 void UnmapOrDie(void *addr, uptr size) { argument 58 if (!addr || !size) return; 59 uptr res = internal_munmap(addr, size); 62 ReportMunmapFailureAndDie(addr, size, reserrn 66 MmapOrDieOnFatalError(uptr size, const char *mem_type) argument 83 MmapAlignedOrDieOnFatalError(uptr size, uptr alignment, const char *mem_type) argument 111 MmapNoReserveOrDie(uptr size, const char *mem_type) argument 122 MmapFixedImpl(uptr fixed_addr, uptr size, bool tolerate_enomem, const char *name) argument 141 MmapFixedOrDie(uptr fixed_addr, uptr size, const char *name) argument 145 MmapFixedOrDieOnFatalError(uptr fixed_addr, uptr size, const char *name) argument 149 MprotectNoAccess(uptr addr, uptr size) argument 153 MprotectReadOnly(uptr addr, uptr size) argument 157 MprotectReadWrite(uptr addr, uptr size) argument 215 MapWritableFileToMemory(void *addr, uptr size, fd_t fd, OFF_T offset) argument 357 GetNamedMappingFd(const char *name, uptr size, int *flags) argument 383 GetNamedMappingFd(const char *name, uptr size, int *flags) argument 391 DecorateMapping(uptr addr, uptr size, const char *name) argument 397 DecorateMapping(uptr addr, uptr size, const char *name) argument [all...] |
/freebsd-current/lib/libufs/ |
H A D | block.c | 52 bread(struct uufsd *disk, ufs2_daddr_t blockno, void *data, size_t size) argument 59 BUF_MALLOC(&p2, data, size); 64 cnt = pread(disk->d_fd, p2, size, (off_t)(blockno * disk->d_bsize)); 73 if ((size_t)cnt != size) { 78 memcpy(data, p2, size); 82 fail: memset(data, 0, size); 90 bwrite(struct uufsd *disk, ufs2_daddr_t blockno, const void *data, size_t size) argument 103 BUF_MALLOC(&p2, data, size); 109 memcpy(p2, data, size); 110 cnt = pwrite(disk->d_fd, p2, size, (off_ 127 berase_helper(struct uufsd *disk, ufs2_daddr_t blockno, ufs2_daddr_t size) argument 139 berase_helper(struct uufsd *disk, ufs2_daddr_t blockno, ufs2_daddr_t size) argument 172 berase(struct uufsd *disk, ufs2_daddr_t blockno, ufs2_daddr_t size) argument [all...] |
/freebsd-current/tools/regression/netinet/udpzerobyte/ |
H A D | udpzerobyte.c | 60 ssize_t size; local 79 size = recv(sock_receive, NULL, 0, 0); 80 if (size > 0) 82 domainstr, size); 83 else if (size < 0) 87 size = send(sock_send, NULL, 0, 0); 88 if (size < 0) 92 size = recv(sock_receive, NULL, 0, 0); 93 if (size < 0) 97 size [all...] |
/freebsd-current/sbin/pfctl/ |
H A D | pfctl_radix.c | 93 pfr_add_tables(struct pfr_table *tbl, int size, int *nadd, int flags) argument 97 if (size < 0 || (size && tbl == NULL)) { 105 io.pfrio_size = size; 116 pfr_del_tables(struct pfr_table *tbl, int size, int *ndel, int flags) argument 120 if (size < 0 || (size && tbl == NULL)) { 128 io.pfrio_size = size; 139 pfr_get_tables(struct pfr_table *filter, struct pfr_table *tbl, int *size, argument 144 if (size 164 pfr_get_tstats(struct pfr_table *filter, struct pfr_tstats *tbl, int *size, int flags) argument 208 pfr_add_addrs(struct pfr_table *tbl, struct pfr_addr *addr, int size, int *nadd, int flags) argument 222 pfr_del_addrs(struct pfr_table *tbl, struct pfr_addr *addr, int size, int *ndel, int flags) argument 236 pfr_set_addrs(struct pfr_table *tbl, struct pfr_addr *addr, int size, int *size2, int *nadd, int *ndel, int *nchange, int flags) argument 251 pfr_get_addrs(struct pfr_table *tbl, struct pfr_addr *addr, int *size, int flags) argument 265 pfr_get_astats(struct pfr_table *tbl, struct pfr_astats *addr, int *size, int flags) argument 290 pfr_clr_tstats(struct pfr_table *tbl, int size, int *nzero, int flags) argument 313 pfr_tst_addrs(struct pfr_table *tbl, struct pfr_addr *addr, int size, int *nmatch, int flags) argument 338 pfr_ina_define(struct pfr_table *tbl, struct pfr_addr *addr, int size, int *nadd, int *naddr, int ticket, int flags) argument 368 pfi_get_ifaces(const char *filter, struct pfi_kif *buf, int *size) argument [all...] |
/freebsd-current/contrib/llvm-project/compiler-rt/lib/hwasan/ |
H A D | hwasan_new_delete.cpp | 27 void *res = hwasan_malloc(size, &stack); \ 29 ReportOutOfMemory(size, &stack); \ 33 void *res = hwasan_memalign(static_cast<uptr>(align), size, &stack); \ 35 ReportOutOfMemory(size, &stack); \ 49 # define OPERATOR_NEW_BODY(nothrow) return malloc(size) 63 INTERCEPTOR_ATTRIBUTE SANITIZER_WEAK_ATTRIBUTE void *operator new(size_t size) { argument 67 size_t size) { 71 size_t size, std::nothrow_t const &) { 75 size_t size, std::nothrow_t const &) { 113 size_t size, st 66 operator new[]( size_t size) argument 70 operator new( size_t size, std::nothrow_t const &) argument 74 operator new[]( size_t size, std::nothrow_t const &) argument 112 operator new( size_t size, std::align_val_t align) argument 116 operator new[]( size_t size, std::align_val_t align) argument 120 operator new( size_t size, std::align_val_t align, std::nothrow_t const &) argument 124 operator new[]( size_t size, std::align_val_t align, std::nothrow_t const &) argument [all...] |
/freebsd-current/contrib/llvm-project/compiler-rt/lib/asan/ |
H A D | asan_interceptors_memintrinsics.h | 21 DECLARE_REAL(void *, memcpy, void *to, const void *from, uptr size) 22 DECLARE_REAL(void *, memset, void *block, int c, uptr size) 28 static inline bool QuickCheckForUnpoisonedRegion(uptr beg, uptr size) { argument 29 if (UNLIKELY(size == 0 || size > sizeof(uptr) * ASAN_SHADOW_GRANULARITY)) 30 return !size; 32 uptr last = beg + size - 1; 55 #define ACCESS_MEMORY_RANGE(ctx, offset, size, isWrite) \ 58 uptr __size = (uptr)(size); \ 82 #define ASAN_READ_RANGE(ctx, offset, size) \ [all...] |
/freebsd-current/contrib/llvm-project/lldb/source/Plugins/Process/gdb-remote/ |
H A D | GDBRemoteCommunicationHistory.cpp | 20 GDBRemoteCommunicationHistory::GDBRemoteCommunicationHistory(uint32_t size) argument 22 if (size) 23 m_packets.resize(size); 31 const size_t size = m_packets.size(); local 32 if (size == 0) 47 const size_t size = m_packets.size(); local 48 if (size == 0) 60 const uint32_t size local 79 const uint32_t size = GetNumPacketsInHistory(); local [all...] |
/freebsd-current/sys/dev/ice/ |
H A D | ice_bitops.h | 38 /* Define the size of the bitmap chunk */ 118 * is less than the size of the bitmap. 131 * Clears the bit nr in bitmap. Assumes that nr is less than the size of the 144 * Sets the bit nr in bitmap. Assumes that nr is less than the size of the 157 * Check and clear the bit nr in bitmap. Assumes that nr is less than the size 172 * Check and set the bit nr in bitmap. Assumes that nr is less than the size of 184 * @size: Size of the bitmaps in bits 189 * size. 191 static inline void ice_zero_bitmap(ice_bitmap_t *bmp, u16 size) argument 193 ice_memset(bmp, 0, BITS_TO_CHUNKS(size) * sizeo 211 ice_and_bitmap(ice_bitmap_t *dst, const ice_bitmap_t *bmp1, const ice_bitmap_t *bmp2, u16 size) argument 248 ice_or_bitmap(ice_bitmap_t *dst, const ice_bitmap_t *bmp1, const ice_bitmap_t *bmp2, u16 size) argument 279 ice_xor_bitmap(ice_bitmap_t *dst, const ice_bitmap_t *bmp1, const ice_bitmap_t *bmp2, u16 size) argument 310 ice_andnot_bitmap(ice_bitmap_t *dst, const ice_bitmap_t *bmp1, const ice_bitmap_t *bmp2, u16 size) argument 339 ice_find_next_bit(const ice_bitmap_t *bitmap, u16 size, u16 offset) argument 381 ice_find_first_bit(const ice_bitmap_t *bitmap, u16 size) argument 399 ice_is_any_bit_set(ice_bitmap_t *bitmap, u16 size) argument 414 ice_cp_bitmap(ice_bitmap_t *dst, ice_bitmap_t *src, u16 size) argument 449 ice_bitmap_hweight(ice_bitmap_t *bm, u16 size) argument 471 ice_cmp_bitmap(ice_bitmap_t *bmp1, ice_bitmap_t *bmp2, u16 size) argument 499 ice_bitmap_from_array32(ice_bitmap_t *dst, u32 *src, u16 size) argument [all...] |
/freebsd-current/sys/ddb/ |
H A D | db_examine.c | 70 int size; local 76 size = 4; 80 size = 1; 83 size = 2; 86 size = 4; 89 size = 8; 92 size = sizeof(void *); 108 width = size * 4; 111 value = db_get_value(addr, size, true); 112 addr += size; 256 int size; local 316 db_search(db_addr_t addr, int size, db_expr_t value, db_expr_t mask, unsigned int count) argument [all...] |
/freebsd-current/lib/libc/posix1e/ |
H A D | acl_to_text_nfs4.c | 45 format_who(char *str, size_t size, const acl_entry_t entry, int numeric) argument 59 snprintf(str, size, "owner@"); 72 snprintf(str, size, "user:%d", (unsigned int)*id); 74 snprintf(str, size, "user:%s", pwd->pw_name); 79 snprintf(str, size, "group@"); 92 snprintf(str, size, "group:%d", (unsigned int)*id); 94 snprintf(str, size, "group:%s", grp->gr_name); 99 snprintf(str, size, "everyone@"); 110 format_entry_type(char *str, size_t size, const acl_entry_t entry) argument 121 snprintf(str, size, "allo 140 format_additional_id(char *str, size_t size, const acl_entry_t entry) argument 169 format_entry(char *str, size_t size, const acl_entry_t entry, int flags) argument 231 int error, off = 0, size, entry_id = ACL_FIRST_ENTRY; local [all...] |
/freebsd-current/sys/kern/ |
H A D | kern_malloc.c | 38 * allocator. A set of fixed-size buckets are used for smaller allocations, 120 * When realloc() is called, if the new size is sufficiently smaller than 121 * the old size, realloc() will allocate a new, smaller block to avoid 126 #define REALLOC_FRACTION 1 /* new block if <= half the size */ 190 "Maximum allocation size that malloc(9) would use UMA as backend"); 194 "Minimum size of kernel memory"); 198 "Maximum size of kernel memory"); 202 "Scale factor for kernel memory size"); 207 sysctl_kmem_map_size, "LU", "Current kmem allocation size"); 256 u_long size; local 265 u_long size, limit; local 378 malloc_type_zone_allocated(struct malloc_type *mtp, unsigned long size, int zindx) argument 400 (uintptr_t) mtsp, size, zindx); local 408 malloc_type_allocated(struct malloc_type *mtp, unsigned long size) argument 422 malloc_type_freed(struct malloc_type *mtp, unsigned long size) argument 439 (uintptr_t) mtsp, size, 0); local 455 contigmalloc(unsigned long size, struct malloc_type *type, int flags, vm_paddr_t low, vm_paddr_t high, unsigned long alignment, vm_paddr_t boundary) argument 469 contigmalloc_domainset(unsigned long size, struct malloc_type *type, struct domainset *ds, int flags, vm_paddr_t low, vm_paddr_t high, unsigned long alignment, vm_paddr_t boundary) argument 490 contigfree(void *addr, unsigned long size, struct malloc_type *type) argument 584 malloc_large(size_t size, struct malloc_type *mtp, struct domainset *policy, int flags DEBUG_REDZONE_ARG_DEF) argument 610 free_large(void *addr, size_t size) argument 626 malloc(size_t size, struct malloc_type *mtp, int flags) argument 681 size_t size; local 699 malloc_domainset(size_t size, struct malloc_type *mtp, struct domainset *ds, int flags) argument 752 malloc_exec(size_t size, struct malloc_type *mtp, int flags) argument 759 malloc_domainset_exec(size_t size, struct malloc_type *mtp, struct domainset *ds, int flags) argument 781 malloc_aligned(size_t size, size_t align, struct malloc_type *type, int flags) argument 788 malloc_domainset_aligned(size_t size, size_t align, struct malloc_type *mtp, struct domainset *ds, int flags) argument 796 align, size)); local 821 mallocarray(size_t nmemb, size_t size, struct malloc_type *type, int flags) argument 831 mallocarray_domainset(size_t nmemb, size_t size, struct malloc_type *type, struct domainset *ds, int flags) argument 843 free_save_type(void *addr, struct malloc_type *mtp, u_long size) argument 905 u_long size; local 945 u_long size; local 981 realloc(void *addr, size_t size, struct malloc_type *mtp, int flags) argument 1050 reallocf(void *addr, size_t size, struct malloc_type *mtp, int flags) argument 1064 malloc_size(size_t size) argument 1086 u_long size; local 1239 int size = kmemzones[indx].kz_size; local 1485 int64_t size; local [all...] |
/freebsd-current/crypto/heimdal/lib/roken/ |
H A D | test-mem.c | 50 size_t size; member in struct:__anon6793 95 void *buf, size_t size) 102 p = malloc(size + 2); 107 map.size = size + 2; 109 p[map.size-1] = 0xff; 132 map.size = size + pagesize - (size % pagesize) + pagesize * 2; 134 p = (unsigned char *)mmap(0, map.size, PROT_REA 94 rk_test_mem_alloc(enum rk_test_mem_type type, const char *name, void *buf, size_t size) argument [all...] |
/freebsd-current/tools/test/stress2/testcases/dirnprename/ |
H A D | dirnprename.c | 41 static unsigned long size; variable 57 size = in / op->incarnations; 59 if (size > 1000) 60 size = 1000; /* arbitrary limit number of files pr. dir */ 63 while (size > 0) { 64 reserve_in = 2 * size * op->incarnations + 2 * op->incarnations; 65 reserve_bl = 30 * size * op->incarnations; 68 size = size / 2; 70 if (size [all...] |
/freebsd-current/stand/efi/loader/arch/amd64/ |
H A D | multiboot2.h | 115 multiboot_uint32_t size; member in struct:multiboot_header_tag 122 multiboot_uint32_t size; member in struct:multiboot_header_tag_information_request 130 multiboot_uint32_t size; member in struct:multiboot_header_tag_address 141 multiboot_uint32_t size; member in struct:multiboot_header_tag_entry_address 149 multiboot_uint32_t size; member in struct:multiboot_header_tag_console_flags 157 multiboot_uint32_t size; member in struct:multiboot_header_tag_framebuffer 167 multiboot_uint32_t size; member in struct:multiboot_header_tag_module_align 174 multiboot_uint32_t size; member in struct:multiboot_header_tag_relocatable 205 multiboot_uint32_t size; member in struct:multiboot_tag 211 multiboot_uint32_t size; member in struct:multiboot_tag_string 218 multiboot_uint32_t size; member in struct:multiboot_tag_module 227 multiboot_uint32_t size; member in struct:multiboot_tag_basic_meminfo 235 multiboot_uint32_t size; member in struct:multiboot_tag_bootdev 244 multiboot_uint32_t size; member in struct:multiboot_tag_mmap 263 multiboot_uint32_t size; member in struct:multiboot_tag_vbe 277 multiboot_uint32_t size; member in struct:multiboot_tag_framebuffer_common 317 multiboot_uint32_t size; member in struct:multiboot_tag_elf_sections 327 multiboot_uint32_t size; member in struct:multiboot_tag_apm 342 multiboot_uint32_t size; member in struct:multiboot_tag_efi32 349 multiboot_uint32_t size; member in struct:multiboot_tag_efi64 356 multiboot_uint32_t size; member in struct:multiboot_tag_smbios 366 multiboot_uint32_t size; member in struct:multiboot_tag_old_acpi 373 multiboot_uint32_t size; member in struct:multiboot_tag_new_acpi 380 multiboot_uint32_t size; member in struct:multiboot_tag_network 387 multiboot_uint32_t size; member in struct:multiboot_tag_efi_mmap 396 multiboot_uint32_t size; member in struct:multiboot_tag_efi32_ih 403 multiboot_uint32_t size; member in struct:multiboot_tag_efi64_ih 410 multiboot_uint32_t size; member in struct:multiboot_tag_load_base_addr [all...] |
/freebsd-current/tools/test/stress2/misc/ |
H A D | statfs.sh | 92 int64_t size; 96 size = inodes() - 1000; 98 if (size > 100000) 99 size = 100000; 101 printf("Creating %jd files...", size); fflush(stdout); 103 for (j = 0; j < size; j++) { 117 printf("\nDeleting %jd files...", size); fflush(stdout);
|
/freebsd-current/cddl/contrib/opensolaris/tools/ctf/common/ |
H A D | memory.c | 62 xmalloc(size_t size) argument 66 if ((mem = malloc(size)) == NULL) 73 xcalloc(size_t size) argument 77 mem = xmalloc(size); 78 bzero(mem, size); 109 xrealloc(void *ptr, size_t size) argument 113 if ((mem = realloc(ptr, size)) == NULL)
|
/freebsd-current/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/ |
H A D | TypeTableCollection.cpp | 21 Names.resize(Records.size()); 33 if (Prev.toArrayIndex() == size()) 39 assert(Index.toArrayIndex() < Records.size()); 56 return Index.toArrayIndex() <= size(); 59 uint32_t TypeTableCollection::size() { return Records.size(); } function in class:TypeTableCollection 61 uint32_t TypeTableCollection::capacity() { return Records.size(); }
|
/freebsd-current/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/TargetProcess/ |
H A D | TargetExecutionUtils.cpp | 21 ArgVStorage.reserve(Args.size() + (ProgramName ? 1 : 0)); 22 ArgV.reserve(Args.size() + 1 + (ProgramName ? 1 : 0)); 25 ArgVStorage.push_back(std::make_unique<char[]>(ProgramName->size() + 1)); 27 ArgVStorage.back()[ProgramName->size()] = '\0'; 32 ArgVStorage.push_back(std::make_unique<char[]>(Arg.size() + 1)); 34 ArgVStorage.back()[Arg.size()] = '\0'; 39 return Main(Args.size() + !!ProgramName, ArgV.data());
|
/freebsd-current/lib/libpathconv/ |
H A D | rel2abs.c | 36 * i) size size of result buffer 41 rel2abs(const char *path, const char *base, char *result, const size_t size) argument 47 const char *endp = result + size - 1; 52 if (strlen(path) >= size) 56 } else if (*base != '/' || !size) { 59 } else if (size == 1) 65 if (length >= size) 116 if (length >= size)
|
/freebsd-current/sys/dev/virtio/ |
H A D | virtio_ring.h | 136 int size; local 138 size = num * sizeof(struct vring_desc); 139 size += sizeof(struct vring_avail) + (num * sizeof(uint16_t)) + 141 size = (size + align - 1) & ~(align - 1); 142 size += sizeof(struct vring_used) + 144 return (size); 162 * Assuming a given event_idx value from the other size, if we have
|
/freebsd-current/sys/powerpc/ofw/ |
H A D | ofw_initrd.c | 59 ssize_t size; local 74 size = OF_getencprop(chosen, "linux,initrd-start", cell, sizeof(cell)); 75 if (size == 4) 77 else if (size == 8) 80 printf("ofw_initrd: Wrong linux,initrd-start size\n"); 84 size = OF_getencprop(chosen, "linux,initrd-end", cell, sizeof(cell)); 85 if (size == 4) 87 else if (size == 8) 90 printf("ofw_initrd: Wrong linux,initrd-end size\n");
|
/freebsd-current/sys/arm/arm/ |
H A D | bus_space_generic.c | 66 generic_bs_map(bus_space_tag_t t, bus_addr_t bpa, bus_size_t size, int flags, argument 74 * the LINEAR flag is just implied because we use kva_alloc(size). 76 if ((va = pmap_mapdev(bpa, size)) == NULL) 83 generic_bs_alloc(bus_space_tag_t t, bus_addr_t rstart, bus_addr_t rend, bus_size_t size, argument 92 generic_bs_unmap(bus_space_tag_t t, bus_space_handle_t h, bus_size_t size) argument 95 pmap_unmapdev((void *)h, size); 99 generic_bs_free(bus_space_tag_t t, bus_space_handle_t bsh, bus_size_t size) argument 107 bus_size_t size, bus_space_handle_t *nbshp) 106 generic_bs_subregion(bus_space_tag_t t, bus_space_handle_t bsh, bus_size_t offset, bus_size_t size, bus_space_handle_t *nbshp) argument
|
/freebsd-current/contrib/libarchive/tar/test/ |
H A D | test_option_xattrs.c | 36 size_t size; 61 readval = getXattr("xattrs_xattrs/f", testattr, &size); 62 if(assertEqualInt(size, strlen(testval) + 1) != 0) 63 assertEqualMem(readval, testval, size); 70 readval = getXattr("xattrs_noxattrs/f", testattr, &size); 77 readval = getXattr("noxattrs_xattrs/f", testattr, &size); 84 readval = getXattr("noxattrs_noxattrs/f", testattr, &size);
|
/freebsd-current/lib/libdiff/tests/ |
H A D | libdiff_test.c | 36 size_t size = 65536; local 40 for (unsigned int i = 0; i <= size / sizeof(line); i++) { 46 ATF_REQUIRE(truncate(fn, size / 2) == 0); 47 ATF_REQUIRE((p = mmap(NULL, size, PROT_READ, MAP_PRIVATE, fileno(f), 0)) != MAP_FAILED); 48 ATF_REQUIRE(diff_atomize_file(&d, &cfg, f, p, size, 0) == 0); 49 ATF_REQUIRE((size_t)d.len <= size / 2); 50 ATF_REQUIRE((size_t)d.len >= size / 2 - sizeof(line));
|