/freebsd-11.0-release/contrib/ntp/lib/isc/ |
H A D | print.c | 52 isc_print_snprintf(char *str, size_t size, const char *format, ...) { argument 57 ret = vsnprintf(str, size, format, ap); 68 isc_print_vsnprintf(char *str, size_t size, const char *format, va_list ap) { argument 104 if (size > 1) { 106 size--; 178 if (size > 1) { 180 size--; 386 while (pad > 0 && size > 1) { 388 size--; 393 while (*cp != '\0' && size > [all...] |
/freebsd-11.0-release/sys/boot/efi/boot1/ |
H A D | ufs_module.c | 49 int size; local 53 size = nblk * DEV_BSIZE; 56 devinfo->dev->Media->MediaId, lba, size, buf); 59 DPRINTF("dskread: failed dev: %p, id: %u, lba: %lu, size: %d, " 61 devinfo->dev->Media->MediaId, lba, size, 100 size_t size; local 116 if (fsread_size(ino, NULL, 0, &size) < 0 || size <= 0) { 117 printf("Failed to read size of '%s' ino: %d\n", filepath, ino); 121 if ((status = bs->AllocatePool(EfiLoaderData, size, [all...] |
/freebsd-11.0-release/tools/regression/netinet/udpzerobyte/ |
H A D | udpzerobyte.c | 62 ssize_t size; local 81 size = recv(sock_receive, NULL, 0, 0); 82 if (size > 0) 84 domainstr, size); 85 else if (size < 0) 89 size = send(sock_send, NULL, 0, 0); 90 if (size < 0) 94 size = recv(sock_receive, NULL, 0, 0); 95 if (size < 0) 99 size [all...] |
/freebsd-11.0-release/lib/libc/posix1e/ |
H A D | acl_to_text_nfs4.c | 47 format_who(char *str, size_t size, const acl_entry_t entry, int numeric) argument 61 snprintf(str, size, "owner@"); 74 snprintf(str, size, "user:%d", (unsigned int)*id); 76 snprintf(str, size, "user:%s", pwd->pw_name); 80 snprintf(str, size, "group@"); 93 snprintf(str, size, "group:%d", (unsigned int)*id); 95 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 168 format_entry(char *str, size_t size, const acl_entry_t entry, int flags) argument 230 int error, off = 0, size, entry_id = ACL_FIRST_ENTRY; local [all...] |
/freebsd-11.0-release/sys/ddb/ |
H A D | db_examine.c | 71 int size; local 77 size = 4; 81 size = 1; 84 size = 2; 87 size = 4; 90 size = 8; 93 size = sizeof(void *); 109 width = size * 4; 112 value = db_get_value(addr, size, true); 113 addr += size; 257 int size; local 317 db_search(db_addr_t addr, int size, db_expr_t value, db_expr_t mask, unsigned int count) argument [all...] |
/freebsd-11.0-release/crypto/heimdal/lib/asn1/ |
H A D | der_get.c | 40 * returned and `size' where the number of used bytes is stored. 46 unsigned *ret, size_t *size) 59 if(size) *size = oldlen; 65 int *ret, size_t *size) 79 if(size) *size = oldlen; 85 size_t *val, size_t *size) 95 if(size) *size 45 der_get_unsigned(const unsigned char *p, size_t len, unsigned *ret, size_t *size) argument 64 der_get_integer(const unsigned char *p, size_t len, int *ret, size_t *size) argument 84 der_get_length(const unsigned char *p, size_t len, size_t *val, size_t *size) argument 118 der_get_boolean(const unsigned char *p, size_t len, int *data, size_t *size) argument 131 der_get_general_string(const unsigned char *p, size_t len, heim_general_string *str, size_t *size) argument 163 der_get_utf8string(const unsigned char *p, size_t len, heim_utf8_string *str, size_t *size) argument 170 der_get_printable_string(const unsigned char *p, size_t len, heim_printable_string *str, size_t *size) argument 184 der_get_ia5_string(const unsigned char *p, size_t len, heim_ia5_string *str, size_t *size) argument 191 der_get_bmp_string(const unsigned char *p, size_t len, heim_bmp_string *data, size_t *size) argument 222 der_get_universal_string(const unsigned char *p, size_t len, heim_universal_string *data, size_t *size) argument 252 der_get_visible_string(const unsigned char *p, size_t len, heim_visible_string *str, size_t *size) argument 259 der_get_octet_string(const unsigned char *p, size_t len, heim_octet_string *data, size_t *size) argument 272 der_get_octet_string_ber(const unsigned char *p, size_t len, heim_octet_string *data, size_t *size) argument 341 der_get_heim_integer(const unsigned char *p, size_t len, heim_integer *data, size_t *size) argument 427 der_get_time(const unsigned char *p, size_t len, time_t *data, size_t *size) argument 448 der_get_generalized_time(const unsigned char *p, size_t len, time_t *data, size_t *size) argument 455 der_get_utctime(const unsigned char *p, size_t len, time_t *data, size_t *size) argument 462 der_get_oid(const unsigned char *p, size_t len, heim_oid *data, size_t *size) argument 510 der_get_tag(const unsigned char *p, size_t len, Der_class *class, Der_type *type, unsigned int *tag, size_t *size) argument 542 der_match_tag(const unsigned char *p, size_t len, Der_class class, Der_type type, unsigned int tag, size_t *size) argument 556 der_match_tag2(const unsigned char *p, size_t len, Der_class class, Der_type *type, unsigned int tag, size_t *size) argument 578 der_match_tag_and_length(const unsigned char *p, size_t len, Der_class class, Der_type *type, unsigned int tag, size_t *length_ret, size_t *size) argument 623 der_get_bit_string(const unsigned char *p, size_t len, heim_bit_string *data, size_t *size) argument [all...] |
H A D | der_put.c | 42 * the number of characters written in `size' (if non-NULL). 47 der_put_unsigned (unsigned char *p, size_t len, const unsigned *v, size_t *size) argument 66 *size = base - p; 73 *size = 1; 79 der_put_integer (unsigned char *p, size_t len, const int *v, size_t *size) argument 114 *size = base - p; 120 der_put_length (unsigned char *p, size_t len, size_t val, size_t *size) argument 127 *size = 1; 140 if(size) 141 *size 147 der_put_boolean(unsigned char *p, size_t len, const int *data, size_t *size) argument 160 der_put_general_string(unsigned char *p, size_t len, const heim_general_string *str, size_t *size) argument 174 der_put_utf8string(unsigned char *p, size_t len, const heim_utf8_string *str, size_t *size) argument 181 der_put_printable_string(unsigned char *p, size_t len, const heim_printable_string *str, size_t *size) argument 188 der_put_ia5_string(unsigned char *p, size_t len, const heim_ia5_string *str, size_t *size) argument 195 der_put_bmp_string(unsigned char *p, size_t len, const heim_bmp_string *data, size_t *size) argument 212 der_put_universal_string(unsigned char *p, size_t len, const heim_universal_string *data, size_t *size) argument 231 der_put_visible_string(unsigned char *p, size_t len, const heim_visible_string *str, size_t *size) argument 238 der_put_octet_string(unsigned char *p, size_t len, const heim_octet_string *data, size_t *size) argument 250 der_put_heim_integer(unsigned char *p, size_t len, const heim_integer *data, size_t *size) argument 302 der_put_generalized_time(unsigned char *p, size_t len, const time_t *data, size_t *size) argument 322 der_put_utctime(unsigned char *p, size_t len, const time_t *data, size_t *size) argument 342 der_put_oid(unsigned char *p, size_t len, const heim_oid *data, size_t *size) argument 372 der_put_tag(unsigned char *p, size_t len, Der_class class, Der_type type, unsigned int tag, size_t *size) argument 403 der_put_length_and_tag(unsigned char *p, size_t len, size_t len_val, Der_class class, Der_type type, unsigned int tag, size_t *size) argument 451 der_put_bit_string(unsigned char *p, size_t len, const heim_bit_string *data, size_t *size) argument [all...] |
/freebsd-11.0-release/crypto/heimdal/lib/roken/ |
H A D | test-mem.c | 50 size_t size; member in struct:__anon6060 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...] |
H A D | base64.c | 55 base64_encode(const void *data, int size, char **str) argument 62 if (size > INT_MAX/4 || size < 0) { 67 p = s = (char *) malloc(size * 4 / 3 + 4); 74 for (i = 0; i < size;) { 77 if (i < size) 81 if (i < size) 88 if (i > size) 90 if (i > size + 1)
|
/freebsd-11.0-release/contrib/llvm/include/llvm/ADT/ |
H A D | StringSwitch.h | 59 if (!Result && N-1 == Str.size() && 70 if (!Result && Str.size() >= N-1 && 71 std::memcmp(S, Str.data() + Str.size() + 1 - N, N-1) == 0) { 81 if (!Result && Str.size() >= N-1 && 94 (N0-1 == Str.size() && std::memcmp(S0, Str.data(), N0-1) == 0) || 95 (N1-1 == Str.size() && std::memcmp(S1, Str.data(), N1-1) == 0))) { 107 (N0-1 == Str.size() && std::memcmp(S0, Str.data(), N0-1) == 0) || 108 (N1-1 == Str.size() && std::memcmp(S1, Str.data(), N1-1) == 0) || 109 (N2-1 == Str.size() && std::memcmp(S2, Str.data(), N2-1) == 0))) { 122 (N0-1 == Str.size() [all...] |
/freebsd-11.0-release/contrib/binutils/gas/ |
H A D | sb.c | 50 sb_element *size[sb_max_power_two]; member in struct:__anon362 56 sb_build (sb *ptr, int size) argument 61 assert (size < sb_max_power_two); 63 e = free_list.size[size]; 67 e = (sb_element *) xmalloc (sizeof (sb_element) + (1 << size)); 68 e->next = free_list.size[size]; 69 e->size = 1 << size; [all...] |
/freebsd-11.0-release/sys/vm/ |
H A D | vm_init.c | 108 kva_import(void *unused, vmem_size_t size, int flags, vmem_addr_t *addrp) argument 114 result = vm_map_find(kernel_map, NULL, 0, &addr, size, 0, 173 vm_size_t size = 0; local 196 * Discount the physical memory larger than the size of kernel_map 205 * End of first pass, size has been calculated so allocate memory 208 size = (vm_size_t)v; 209 firstaddr = kmem_malloc(kernel_arena, round_page(size), 219 if ((vm_size_t)((char *)v - firstaddr) != size) 220 panic("startup: table size inconsistency"); 226 size [all...] |
/freebsd-11.0-release/contrib/llvm/lib/TableGen/ |
H A D | TableGenBackend.cpp | 25 assert((Prefix.str().size() + Suffix.size() <= MAX_LINE_LEN) && 28 for (size_t i = (size_t)OS.tell() - Pos, e = MAX_LINE_LEN - Suffix.size(); 39 size_t PSLen = Prefix.size() + Suffix.size(); 43 size_t Length = std::min(Desc.size() - Pos, MAX_LINE_LEN - PSLen); 46 } while (Pos < Desc.size());
|
/freebsd-11.0-release/sys/dev/drm/ |
H A D | radeon_mem.c | 44 static struct mem_block *split_block(struct mem_block *p, int start, int size, argument 54 newblock->size = p->size - (start - p->start); 60 p->size -= newblock->size; 65 if (size < p->size) { 70 newblock->start = start + size; 71 newblock->size = p->size 86 alloc_block(struct mem_block *heap, int size, int align2, struct drm_file *file_priv) argument 138 init_heap(struct mem_block **heap, int start, int size) argument [all...] |
/freebsd-11.0-release/sys/dev/drm2/radeon/ |
H A D | radeon_mem.c | 43 static struct mem_block *split_block(struct mem_block *p, int start, int size, argument 53 newblock->size = p->size - (start - p->start); 59 p->size -= newblock->size; 64 if (size < p->size) { 69 newblock->start = start + size; 70 newblock->size = p->size 85 alloc_block(struct mem_block *heap, int size, int align2, struct drm_file *file_priv) argument 137 init_heap(struct mem_block **heap, int start, int size) argument [all...] |
/freebsd-11.0-release/sys/dev/virtio/ |
H A D | virtio_ring.h | 129 int size; local 131 size = num * sizeof(struct vring_desc); 132 size += sizeof(struct vring_avail) + (num * sizeof(uint16_t)) + 134 size = (size + align - 1) & ~(align - 1); 135 size += sizeof(struct vring_used) + 137 return (size); 155 * Assuming a given event_idx value from the other size, if we have
|
/freebsd-11.0-release/lib/libcasper/services/cap_random/ |
H A D | cap_random.c | 62 nvlist_add_number(nvl, "size", 95 size_t size; local 99 if (!nvlist_exists_number(nvlin, "size")) 102 size = (size_t)nvlist_get_number(nvlin, "size"); 103 if (size == 0 || size > MAXSIZE) 106 data = malloc(size); 110 arc4random_buf(data, size); 112 nvlist_move_binary(nvlout, "data", data, size); [all...] |
/freebsd-11.0-release/libexec/rtld-elf/amd64/ |
H A D | rtld_machdep.h | 64 #define round(size, align) \ 65 (((size) + (align) - 1) & ~((align) - 1)) 66 #define calculate_first_tls_offset(size, align) \ 67 round(size, align) 68 #define calculate_tls_offset(prev_offset, prev_size, size, align) \ 69 round((prev_offset) + (size), align) 70 #define calculate_tls_end(off, size) (off)
|
/freebsd-11.0-release/libexec/rtld-elf/i386/ |
H A D | rtld_machdep.h | 64 #define round(size, align) \ 65 (((size) + (align) - 1) & ~((align) - 1)) 66 #define calculate_first_tls_offset(size, align) \ 67 round(size, align) 68 #define calculate_tls_offset(prev_offset, prev_size, size, align) \ 69 round((prev_offset) + (size), align) 70 #define calculate_tls_end(off, size) (off)
|
/freebsd-11.0-release/sys/compat/linuxkpi/common/include/linux/ |
H A D | mm.h | 53 * needed for size bytes. 56 get_order(unsigned long size) argument 60 size = (size - 1) >> PAGE_SHIFT; 62 while (size) { 64 size >>= 1; 81 unsigned long addr, unsigned long pfn, unsigned long size, 86 vma->vm_len = size; 80 io_remap_pfn_range(struct vm_area_struct *vma, unsigned long addr, unsigned long pfn, unsigned long size, vm_memattr_t prot) argument
|
/freebsd-11.0-release/crypto/openssl/crypto/bn/ |
H A D | exp.c | 17 int j, i, size = SIZE, num = NUM, mod = MOD; local 31 while (size <= 1024 * 8) { 32 BN_rand(&a, size, 0, 0); 33 BN_rand(&b, size, 1, 0); 34 BN_rand(&c, size, 0, 1); 52 printf("%5d bit:%6.2f %6d %6.4f %4d m_set(%5.4f)\n", size, 58 size *= 2;
|
/freebsd-11.0-release/contrib/llvm/tools/lldb/include/lldb/Utility/ |
H A D | ProcessStructReader.h | 34 size_t size; member in struct:lldb_private::ProcessStructReader::FieldImpl 62 auto size = field_type.GetByteSize(nullptr); 64 if (size > 8) 68 m_fields[const_name] = FieldImpl{field_type, byte_index, static_cast<size_t>(size)}; 89 auto size = iter->second.size; 90 if (sizeof(RetType) < size) 93 if (offset + size > m_data.GetByteSize()) 95 return (RetType)(m_data.GetMaxU64(&offset, size));
|
/freebsd-11.0-release/contrib/sendmail/libsm/ |
H A D | rpool.c | 50 ** size -- size of block. 60 sm_rpool_allocblock_x(rpool, size) 62 size_t size; 66 p = sm_malloc_x(sizeof(SM_POOLHDR_T) + size); 77 ** size -- size of block. 84 sm_rpool_allocblock(rpool, size) 86 size_t size; 90 p = sm_malloc(sizeof(SM_POOLHDR_T) + size); [all...] |
/freebsd-11.0-release/lib/libc/db/recno/ |
H A D | rec_utils.c | 69 if (sizeof(recno_t) > t->bt_rkey.size) { 74 t->bt_rkey.size = sizeof(recno_t); 77 key->size = sizeof(recno_t); 92 &data->size, &t->bt_rdata.data, &t->bt_rdata.size)) 97 if (rl->dsize + 1 > t->bt_rdata.size) { 102 t->bt_rdata.size = rl->dsize + 1; 105 data->size = rl->dsize; 108 data->size = rl->dsize;
|
/freebsd-11.0-release/sys/powerpc/powerpc/ |
H A D | db_interface.c | 31 db_read_bytes(vm_offset_t addr, size_t size, char *data) argument 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 == 4 && (addr & 3) == 0 && ((uintptr_t)data & 3) == 0) 73 if (size == 2 && (addr & 1) == 0 && ((uintptr_t)data & 1) == 0) 78 kdb_cpu_sync_icache((void *)addr, size);
|