/illumos-gate/usr/src/tools/smatch/src/validation/ |
H A D | vla-sizeof.c | 1 unsigned long vla_sizeof0(int size) argument 3 int a[size]; 7 unsigned long vla_sizeof1(int size) argument 10 int a[size]; 15 unsigned long vla_sizeof2(int size) argument 18 int a[size]; 23 void* vla_inc(int size, void *base) argument 26 int a[size];
|
H A D | builtin-prototype.c | 1 void memcpy(void *dst, const void *src, unsigned int size); 2 void memcpy(void *dst, const void *src, unsigned int size) argument 4 __builtin_memcpy(dst, src, size);
|
H A D | sm_indirection1.c | 5 int frob(int size) argument
|
/illumos-gate/usr/src/lib/libmtmalloc/tests/ |
H A D | reallocs.c | 43 size_t size; local 45 for (size = 1; size <= MAX_CACHE_SZ; size++) { 46 p = malloc(size); 47 q = realloc(p, size); 49 (void) fprintf(stderr, "size: %d, p: 0x%p, q: 0x%p\n", 50 size, p, q);
|
/illumos-gate/usr/src/cmd/ipf/lib/common/ |
H A D | bcopywrap.c | 3 int bcopywrap(from, to, size) 5 size_t size; 7 bcopy((caddr_t)from, (caddr_t)to, size);
|
H A D | kmemcpywrap.c | 4 int kmemcpywrap(from, to, size) 6 size_t size; 10 ret = kmemcpy((caddr_t)to, (u_long)from, size);
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | bits.h | 13 static inline unsigned long long sign_bit(unsigned size) argument 15 return 1ULL << (size - 1); 18 static inline unsigned long long sign_mask(unsigned size) argument 20 unsigned long long sbit = sign_bit(size); 24 static inline unsigned long long bits_mask(unsigned size) argument 26 unsigned long long sbit = sign_bit(size); 31 static inline long long zero_extend(long long val, unsigned size) argument 33 return val & bits_mask(size); 36 static inline long long sign_extend(long long val, unsigned size) argument 38 if (val & sign_bit(size)) 45 sign_extend_safe(long long val, unsigned size) argument 53 bits_extend(long long val, unsigned size, int is_signed) argument [all...] |
H A D | compat-cygwin.c | 35 void *blob_alloc(unsigned long size) argument 38 size = (size + 4095) & ~4095; 39 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); 43 memset(ptr, 0, size); 47 void blob_free(void *addr, unsigned long size) argument 49 size = (size + 4095) & ~4095; 50 munmap(addr, size);
|
H A D | compat.h | 16 * of this size (the underlying allocator may be a mmap that 22 void *blob_alloc(unsigned long size); 23 void blob_free(void *addr, unsigned long size);
|
H A D | sset.c | 16 unsigned int size = last - first + 1; local 17 struct sset *s = malloc(sizeof(*s) + size * 2 * sizeof(s->sets[0])); 19 s->size = size;
|
/illumos-gate/usr/src/lib/fm/libldom/sparc/ |
H A D | ldom_alloc.c | 29 ldom_alloc(size_t size) argument 31 return (umem_alloc(size, UMEM_DEFAULT)); 35 ldom_free(void *data, size_t size) argument 37 umem_free(data, size);
|
/illumos-gate/usr/src/tools/smatch/src/compat/ |
H A D | mmap-blob.c | 13 * Our blob allocator enforces the strict CHUNK size 16 void *blob_alloc(unsigned long size) argument 20 if (size & ~CHUNK) 21 die("internal error: bad allocation size (%lu bytes)", size); 22 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); 28 void blob_free(void *addr, unsigned long size) argument 30 if (!size || (size & ~CHUNK) || ((unsigned long) addr & 512)) 31 die("internal error: bad blob free (%lu bytes at %p)", size, add [all...] |
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/safety/ |
H A D | tst.copyin2.d | 30 * 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...] |
/illumos-gate/usr/src/cmd/lp/lib/msgs/ |
H A D | _putmessage.c | 50 int size = 0; local 63 size = MESG_LEN; 73 (void) htos(buf + size, t_short); 75 size += 4; 81 (void) ltos(buf + size, t_long); 83 size += 8; 91 (void) htos(buf + size, t_short); 93 size += 4; 97 (void) memcpy(buf + size, t_string, t_short); 99 (buf + size)[ [all...] |
H A D | write_fifo.c | 49 int write_fifo ( int fifo, char * buf, unsigned int size ) 51 int write_fifo (fifo, buf, size) 54 unsigned int size; 61 (void)memcpy (buf + TAIL_ENDSYNC(size), Endsync, TAIL_ENDSYNC_LEN); 63 CALC_CHKSUM (buf, size, chksum); 64 (void)htos (buf + TAIL_CHKSUM(size), chksum); 86 if ((wbytes = write(fifo, buf, size)) > 0) 87 if (wbytes != size)
|
/illumos-gate/usr/src/uts/common/io/cxgbe/t4nex/ |
H A D | cudbg_common.c | 51 get_scratch_buff(struct cudbg_buffer *pdbg_buff, u32 size, argument 57 scratch_offset = pdbg_buff->size - size; 59 if (pdbg_buff->offset > (int)scratch_offset || pdbg_buff->size < size) { 65 pscratch_buff->size = size; 66 pdbg_buff->size -= size; 77 pdbg_buff->size [all...] |
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | topo_alloc.c | 35 topo_alloc(size_t size, int flags) argument 37 return (umem_alloc(size, flags)); 42 topo_zalloc(size_t size, int flags) argument 44 void *data = topo_alloc(size, flags); 46 bzero(data, size); 52 topo_free(void *data, size_t size) argument 54 umem_free(data, size); 58 topo_hdl_alloc(topo_hdl_t *thp, size_t size) argument 62 return (ap->ta_alloc(size, ap->ta_flags)); 66 topo_hdl_zalloc(topo_hdl_t *thp, size_t size) argument 74 topo_hdl_free(topo_hdl_t *thp, void *data, size_t size) argument 82 topo_mod_alloc(topo_mod_t *mod, size_t size) argument 88 topo_mod_zalloc(topo_mod_t *mod, size_t size) argument 94 topo_mod_free(topo_mod_t *mod, void *data, size_t size) argument [all...] |
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | valloc.c | 37 valloc(size_t size) argument 41 if (size == 0) 47 return (memalign(pagesize, size));
|
H A D | reallocf.c | 19 reallocf(void *ptr, size_t size) argument 21 void *nptr = realloc(ptr, size); 23 /* If size is zero, realloc will have already freed ptr. */ 24 if (nptr == NULL && size != 0)
|
H A D | calloc.c | 41 calloc(size_t num, size_t size) argument 46 if (num == 0 || size == 0) 49 total = num * size; 52 if (total / num != size) {
|
/illumos-gate/usr/src/psm/promif/ieee1275/sun4/ |
H A D | prom_map.c | 40 prom_map(caddr_t virthint, unsigned long long physaddr, u_int size) argument 50 if ((virt = prom_allocate_virt((u_int)1, size)) == 0) 54 if (prom_claim_virt(size, virt) != virt) 58 if (prom_map_phys(-1, size, virt, physaddr) != 0) { 63 (void) prom_free_virt(size, virt); 70 prom_unmap(caddr_t virt, u_int size) argument 72 (void) prom_unmap_virt(size, virt); 73 prom_free_virt(size, virt);
|
/illumos-gate/usr/src/lib/libast/common/stdio/ |
H A D | _stdvbuf.c | 29 _stdsetvbuf(Sfio_t* f, char* buf, int type, size_t size) argument 31 return setvbuf(f, buf, type, size);
|
/illumos-gate/usr/src/lib/libdwarf/common/ |
H A D | dwarf_harmless.h | 29 void dwarf_harmless_init(struct Dwarf_Harmless_s *dhp,unsigned size);
|
/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_nv.c | 34 fmd_nv_alloc(nv_alloc_t *nva, size_t size) argument 36 return (fmd_alloc(size, FMD_SLEEP)); 41 fmd_nv_free(nv_alloc_t *nva, void *buf, size_t size) argument 43 fmd_free(buf, size);
|
/illumos-gate/usr/src/lib/libast/common/sfio/ |
H A D | sfresize.c | 29 int sfresize(Sfio_t* f, Sfoff_t size) argument 31 int sfresize(f, size) 33 Sfoff_t size; 40 if(size < 0 || f->extent < 0 || 49 if(f->extent >= size) 50 { if((f->flags&SF_MALLOC) && (f->next - f->data) <= size) 51 { size_t s = (((size_t)size + 1023)/1024)*1024; 53 if(s < f->size && (d = realloc(f->data, s)) ) 55 f->size = s; 59 memclear((char*)(f->data+size), (in [all...] |