/freebsd-10.1-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-10.1-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-10.1-release/contrib/llvm/tools/clang/lib/Sema/ |
H A D | MultiplexExternalSemaSource.cpp | 46 for(size_t i = 0; i < Sources.size(); ++i) 54 for(size_t i = 0; i < Sources.size(); ++i) { 64 for(size_t i = 0; i < Sources.size(); ++i) 70 for(size_t i = 0; i < Sources.size(); ++i) 78 for(size_t i = 0; i < Sources.size(); ++i) 87 for (size_t i = 0; i < Sources.size(); ++i) 93 for(size_t i = 0; i < Sources.size(); ++i) 101 for(size_t i = 0; i < Sources.size(); ++i) 112 for(size_t i = 0; i < Sources.size(); ++i) 117 for(size_t i = 0; i < Sources.size(); [all...] |
/freebsd-10.1-release/contrib/binutils/gas/ |
H A D | sb.c | 50 sb_element *size[sb_max_power_two]; member in struct:__anon369 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...] |
H A D | input-file.c | 212 int size; 214 size = fread (buf, sizeof (char), buflen, f_in); 215 if (size < 0) 218 size = 0; 220 return size; 229 register int size; 238 size = do_scrub_chars (input_file_get, where, BUFFER_SIZE); 240 size = fread (where, sizeof (char), BUFFER_SIZE, f_in); 241 if (size < 0) 244 size 210 int size; local 227 register int size; local [all...] |
/freebsd-10.1-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-10.1-release/crypto/heimdal/lib/roken/ |
H A D | test-mem.c | 50 size_t size; member in struct:__anon5077 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-10.1-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-10.1-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-10.1-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-10.1-release/sys/arm/arm/ |
H A D | bus_space_generic.c | 60 generic_bs_map(void *t, bus_addr_t bpa, bus_size_t size, int flags, argument 68 * LINEAR flag is just implied because we use kva_alloc(size). 70 if ((va = pmap_mapdev(bpa, size)) == NULL) 77 generic_bs_alloc(void *t, bus_addr_t rstart, bus_addr_t rend, bus_size_t size, argument 87 generic_bs_unmap(void *t, bus_space_handle_t h, bus_size_t size) argument 90 pmap_unmapdev((vm_offset_t)h, size); 94 generic_bs_free(void *t, bus_space_handle_t bsh, bus_size_t size) argument 102 bus_size_t size, bus_space_handle_t *nbshp) 101 generic_bs_subregion(void *t, bus_space_handle_t bsh, bus_size_t offset, bus_size_t size, bus_space_handle_t *nbshp) argument
|
/freebsd-10.1-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-10.1-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-10.1-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-10.1-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-10.1-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-10.1-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-10.1-release/usr.sbin/IPXrouted/ |
H A D | trace.h | 54 short ift_size; /* size of packet */ 86 #define TRACE_INPUT(ifp, src, size) { \ 91 &packet[sizeof(struct ipx)], size, \ 96 &packet[sizeof(struct ipx)], size); \ 98 #define TRACE_OUTPUT(ifp, dst, size) { \ 104 size, ifp->int_metric); \ 108 &packet[sizeof(struct ipx)], size); \ 111 #define TRACE_SAP_OUTPUT(ifp, dst, size) { \ 117 size, ifp->int_metric); \ 121 &packet[sizeof(struct ipx)], size); \ [all...] |
/freebsd-10.1-release/usr.sbin/fifolog/lib/ |
H A D | fifolog_create.c | 44 fifolog_create(const char *fn, off_t size, ssize_t recsize) argument 86 /* If no configured size, or too large for disk, use device size */ 88 if (i == 0 && (size == 0 || size > ms)) 89 size = ms; 91 if (size == 0 && S_ISREG(st.st_mode)) 92 size = st.st_size; 94 if (size == 0) 95 size [all...] |
/freebsd-10.1-release/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/json/ |
H A D | tst.usdt.c | 40 double size = 250.5; local 48 size *= 1.78; 53 asprintf(&json, FMT, size, idx, odd, even, action);
|
/freebsd-10.1-release/contrib/apr-util/misc/ |
H A D | apr_rmm.c | 53 apr_size_t size; member in struct:rmm_block_t 72 apr_size_t size; member in struct:apr_rmm_t 97 static apr_rmm_off_t find_block_of_size(apr_rmm_t *rmm, apr_size_t size) argument 106 if (blk->size == size) 109 if (blk->size >= size) { 114 if (!bestsize || (blk->size < bestsize)) { 115 bestsize = blk->size; 123 if (bestsize > RMM_BLOCK_SIZE + size) { 309 apr_size_t size; local 332 apr_size_t size; local 360 apr_size_t size, oldsize; local [all...] |
/freebsd-10.1-release/contrib/binutils/libiberty/ |
H A D | setenv.c | 86 register size_t size; local 92 size = 0; 99 ++size; 108 (size + 2) * sizeof (char *)); 110 new_environ = (char **) malloc ((size + 2) * sizeof (char *)); 118 new_environ[size] = (char *) malloc (namelen + 1 + vallen); 119 if (new_environ[size] == NULL) 129 size * sizeof (char *)); 131 memcpy (new_environ[size], name, namelen); 132 new_environ[size][namele [all...] |
/freebsd-10.1-release/contrib/gcclibs/libiberty/ |
H A D | setenv.c | 86 register size_t size; local 92 size = 0; 99 ++size; 108 (size + 2) * sizeof (char *)); 110 new_environ = (char **) malloc ((size + 2) * sizeof (char *)); 118 new_environ[size] = (char *) malloc (namelen + 1 + vallen); 119 if (new_environ[size] == NULL) 129 size * sizeof (char *)); 131 memcpy (new_environ[size], name, namelen); 132 new_environ[size][namele [all...] |