/illumos-gate/usr/src/lib/libbc/libc/gen/common/ |
H A D | memalign.c | 38 * Returns a block of specified size on a specified alignment boundary. 63 register uint blksize; /* Current (shrinking) block size */ 66 register uint frag_size; /* size of fragments fore and aft */ 70 * check for valid size and alignment parameters 81 * fragment of minimum size cannot be created. 91 * get size of the entire block (overhead and all) 94 blksize = blk->size; 120 blk->size = frag_size; 122 aligned_blk->size = blksize; 137 blk->size [all...] |
/illumos-gate/usr/src/lib/libc/port/stdio/ |
H A D | _findbuf.c | 56 int size = BUFSIZ; local 60 struct stat64 stbuf; /* used to get file system block size */ 65 size = _SMBFSZ - PUSHBACK; 81 * right size for a buffer; 82 * avoid 0-size buffers as returned for some 86 size = stbuf.st_blksize; 88 if ((buf = (Uchar *)malloc(sizeof (Uchar)*(size+_SMBFSZ))) != 98 endbuf = iop->_base + size;
|
/illumos-gate/usr/src/lib/libc/port/sys/ |
H A D | lockf.c | 45 __lockf(int fildes, int function, off_t size) argument 51 if (size < 0) { 52 l.l_start = size; 53 l.l_len = -size; 56 l.l_len = size;
|
/illumos-gate/usr/src/common/nvpair/ |
H A D | nvpair_alloc_fixed.c | 61 * bufsz size of pre-allocated buffer 84 nv_fixed_alloc(nv_alloc_t *nva, size_t size) argument 89 if (size == 0 || new + size > nvb->nvb_lim) 92 nvb->nvb_cur = P2ROUNDUP(new + size, sizeof (uintptr_t)); 99 nv_fixed_free(nv_alloc_t *nva, void *buf, size_t size) argument
|
/illumos-gate/usr/src/cmd/nscd/ |
H A D | nscd_biggest.c | 51 int size, guess, base, last; local 57 size = table[0].num; 58 if (table[size].num < n) /* biggest so far */ 59 guess = size; 62 last = size;
|
/illumos-gate/usr/src/cmd/sgs/include/ |
H A D | monv.h | 56 Size size; member in struct:_prof_object 68 Size size; member in struct:_prof_header 88 * the size of (Address) equal to 8 95 Size size; member in struct:_prof_buffer 103 Size size; member in struct:_prof_call_graph 110 Size size; member in struct:_prof_module_list
|
/illumos-gate/usr/src/cmd/gcore/ |
H A D | gcore.c | 43 convert_path(const char *path, char *fname, size_t size, argument 53 fname[size - 1] = '\0'; 54 size--; 56 while ((p = strchr(path, '%')) != NULL && size != 0) { 57 len = MIN(size, p - path); 61 if ((size -= len) == 0) 67 len = snprintf(fname, size, "%d", (int)pip->pr_pid); 70 len = snprintf(fname, size, "%d", (int)pip->pr_uid); 73 len = snprintf(fname, size, "%d", (int)pip->pr_gid); 76 len = snprintf(fname, size, " [all...] |
/illumos-gate/usr/src/cmd/svr4pkg/libinst/ |
H A D | nblk.c | 41 nblk(fsblkcnt_t size, ulong_t bsize, ulong_t frsize) argument 46 if (size == 0 || bsize == 0) 57 tot = howmany(size, bsize); 69 roundup(size, frsize) : 70 roundup(size, bsize);
|
/illumos-gate/usr/src/test/libc-tests/tests/fpround/ |
H A D | fpround_test.c | 38 const int size = 100; local 39 char buffer[size], check[size]; 45 status = snprintf(check, size, "%+-.*f", DECIMAL_DIG, val); 52 status = snprintf(buffer, size, "%+-#.*f", precision, val);
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | kmem.h | 57 extern void *kmem_alloc(size_t size, int kmflags); 58 extern void *kmem_zalloc(size_t size, int kmflags); 59 extern void kmem_free(void *buf, size_t size); 60 extern void *kmem_alloc_tryhard(size_t size, size_t *alloc_size, int kmflags); 63 extern size_t kmem_dump_finish(char *buf, size_t size);
|
/illumos-gate/usr/src/boot/sys/boot/fdt/dts/arm/ |
H A D | ts7800.dts | 37 #size-cells = <1>; 48 #size-cells = <0>; 54 d-cache-line-size = <32>; // 32 bytes 55 i-cache-line-size = <32>; // 32 bytes 56 d-cache-size = <0x8000>; // L1, 32K 57 i-cache-size = <0x8000>; // L1, 32K 71 #size-cells = <1>; 82 #size-cells = <1>; 116 #size-cells = <1>; 129 #size [all...] |
H A D | db88f5182.dts | 40 #size-cells = <1>; 51 #size-cells = <0>; 57 d-cache-line-size = <32>; // 32 bytes 58 i-cache-line-size = <32>; // 32 bytes 59 d-cache-size = <0x8000>; // L1, 32K 60 i-cache-size = <0x8000>; // L1, 32K 74 #size-cells = <1>; 84 #size-cells = <1>; 93 #size-cells = <1>; 100 #size [all...] |
H A D | dreamplug-1001.dts | 44 #size-cells = <1>; 58 #size-cells = <0>; 64 d-cache-line-size = <32>; // 32 bytes 65 i-cache-line-size = <32>; // 32 bytes 66 d-cache-size = <0x4000>; // L1, 16K 67 i-cache-size = <0x4000>; // L1, 16K 82 #size-cells = <1>; 91 #size-cells = <1>; 101 #size-cells = <1>; 206 #size [all...] |
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | malloc.c | 48 * contains all elts of the same size. The tree is ordered by size. 53 * The header of a block contains the size of the data part in bytes. 54 * Since the size of a block is 0%4, the low two bits of the header 94 #define FREESIZE (1<<5) /* size for preserving free blocks until next malloc */ 121 _smalloc(size_t size) argument 126 ASSERT(size % WORDSIZE == 0); 128 if (size == 0) 129 size = WORDSIZE; 132 i = size / WORDSIZ 163 malloc(size_t size) argument 179 _malloc_unlocked(size_t size) argument 302 realloc(void *old, size_t size) argument 491 size_t ts, size; local 601 _morecore(size_t size) argument [all...] |
/illumos-gate/usr/src/uts/common/io/xge/drv/ |
H A D | xge_osdep.h | 95 /* ---------------------- fixed size primitive types ----------------------- */ 123 #define xge_os_memzero(addr, size) bzero(addr, size) 124 #define xge_os_memcpy(dst, src, size) bcopy(src, dst, size) 125 #define xge_os_memcmp(src1, src2, size) bcmp(src1, src2, size) 214 #define __xge_os_cacheline_size 64 /* L1-cache line size: x86_64 */ 216 #define __xge_os_cacheline_size 64 /* L1-cache line size: sparcv9 */ 228 static inline void *__xge_os_malloc(pci_dev_h pdev, unsigned long size, argument 237 xge_os_free(pci_dev_h pdev, const void *vaddr, unsigned long size) argument 247 __xge_os_dma_malloc(pci_dev_h pdev, unsigned long size, int dma_flags, pci_dma_h *p_dmah, pci_dma_acc_h *p_dma_acch, char *file, int line) argument 287 xge_os_dma_free(pci_dev_h pdev, const void *vaddr, int size, pci_dma_acc_h *p_dma_acch, pci_dma_h *p_dmah) argument 357 xge_os_dma_map(pci_dev_h pdev, pci_dma_h dmah, void *vaddr, size_t size, int dir, int dma_flags) argument 395 xge_os_dma_unmap(pci_dev_h pdev, pci_dma_h dmah, dma_addr_t dma_addr, size_t size, int dir) argument [all...] |
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/krb5/krb/ |
H A D | parse.c | 78 register int i,c,size; local 101 size = 0; 113 size++; 123 fcompsize[i] = size; 125 size = 0; 136 fcompsize[i] = size; 138 size = 0; 143 size++; 147 realmsize = size; 149 fcompsize[i] = size; [all...] |
/illumos-gate/usr/src/lib/libumem/common/ |
H A D | vmem_sbrk.c | 64 size_t vmem_sbrk_pagesize = 0; /* the preferred page size of the heap */ 76 size_t sf_size; /* the size of this buffer */ 89 * Try to extend src with [pos, pos + size). 94 vmem_sbrk_extend_alloc(vmem_t *src, void *pos, size_t size, size_t alloc, argument 100 ret = _vmem_extend_alloc(src, pos, size, alloc, vmflags); 106 ASSERT(sizeof (sbrk_fail_t) <= size); 109 fp->sf_size = size; 122 * Try to add at least size bytes to src, using the sbrk_fails list 125 vmem_sbrk_tryfail(vmem_t *src, size_t size, int vmflags) argument 131 if (fp->sf_size >= size) { 152 vmem_sbrk_alloc(vmem_t *src, size_t size, int vmflags) argument [all...] |
/illumos-gate/usr/src/lib/libnsl/common/ |
H A D | common.c | 33 thr_get_storage(pthread_key_t *keyp, size_t size, void (*destructor)(void *)) argument 40 if (addr == NULL && size != 0) { 41 addr = calloc(1, size);
|
/illumos-gate/usr/src/lib/libbc/libc/stdio/common/ |
H A D | setbuffer.c | 46 setbuffer(FILE *iop, char *buf, int size) argument 59 /* regular buffered I/O, specified buffer size */ 60 if (size <= 0) 62 iop->_bufsiz = size;
|
/illumos-gate/usr/src/cmd/backup/lib/ |
H A D | memutils.c | 54 xcalloc(nelem, size) 56 size_t size; 60 cp = calloc(nelem, size);
|
/illumos-gate/usr/src/psm/promif/ieee1275/sun4/ |
H A D | prom_mmu.c | 64 prom_map_phys(int mode, size_t size, caddr_t virt, unsigned long long physaddr) argument 79 ci[6] = p1275_size2cell(size); /* Arg4: SA2: size */ 96 prom_unmap_phys(size_t size, caddr_t virt) argument 98 (void) prom_unmap_virt(size, virt); 105 prom_allocate_virt(uint_t align, size_t size) argument 123 ci[6] = p1275_size2cell(size); /* Arg4: SA2: size */ 140 prom_claim_virt(size_t size, caddr_t virt) argument 155 ci[6] = p1275_size2cell(size); /* Arg 173 prom_free_virt(size_t size, caddr_t virt) argument 198 prom_unmap_virt(size_t size, caddr_t virt) argument [all...] |
/illumos-gate/usr/src/uts/common/zmod/ |
H A D | zutil.c | 222 voidpf zcalloc (voidpf opaque, unsigned items, unsigned size) argument 225 ulg bsize = (ulg)items*size; 281 voidpf zcalloc (voidpf opaque, unsigned items, unsigned size) argument 284 return _halloc((long)items, size); 301 extern voidp malloc OF((uInt size)); 302 extern voidp calloc OF((uInt items, uInt size)); 306 voidpf zcalloc (opaque, items, size) 309 unsigned size; 311 if (opaque) items += size - size; /* mak [all...] |
/illumos-gate/usr/src/lib/libast/common/comp/ |
H A D | resolvepath.c | 42 resolvepath(const char* file, char* path, size_t size) argument 50 if (n >= size) 61 else if (!getcwd(path, size - n))
|
/illumos-gate/usr/src/uts/sun4/sys/ |
H A D | memlist_plat.h | 48 u_longlong_t size; member in struct:prom_memlist 53 extern void size_physavail(prom_memlist_t *physavail, size_t size, 55 extern pgcnt_t size_virtalloc(prom_memlist_t *avail, size_t size);
|
/illumos-gate/usr/src/common/zfs/ |
H A D | zfs_fletcher.c | 82 * So blocks of up to 2k will not overflow. Our largest block size is 139 fletcher_2_native(const void *buf, uint64_t size, argument 143 const uint64_t *ipend = ip + (size / sizeof (uint64_t)); 158 fletcher_2_byteswap(const void *buf, uint64_t size, argument 162 const uint64_t *ipend = ip + (size / sizeof (uint64_t)); 177 fletcher_4_native(const void *buf, uint64_t size, argument 181 const uint32_t *ipend = ip + (size / sizeof (uint32_t)); 196 fletcher_4_byteswap(const void *buf, uint64_t size, argument 200 const uint32_t *ipend = ip + (size / sizeof (uint32_t)); 214 fletcher_4_incremental_native(const void *buf, uint64_t size, argument 237 fletcher_4_incremental_byteswap(const void *buf, uint64_t size, zio_cksum_t *zcp) argument [all...] |