Searched refs:size (Results 251 - 275 of 3651) sorted by relevance

<<11121314151617181920>>

/opensolaris-onvv-gate/usr/src/lib/libc/port/stdio/
H A D_findbuf.c56 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;
/opensolaris-onvv-gate/usr/src/lib/libc/port/sys/
H A Dlockf.c45 __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;
/opensolaris-onvv-gate/usr/src/lib/libprtdiag_psr/sparc/ontario/common/
H A Derie.h78 #define OBP_PROP_ECACHE_SIZE "ecache-size"
104 char name[], char loc[], int size);
107 int erie_get_name(picl_nodehdl_t nodeh, char name[], int size);
108 int erie_get_model(picl_nodehdl_t nodeh, char model[], int size);
109 int erie_get_path(picl_nodehdl_t nodeh, char path[], int size);
110 int erie_get_class(picl_nodehdl_t nodeh, char piclclass[], int size);
H A Dhuron.h85 #define OBP_PROP_ECACHE_SIZE "ecache-size"
110 char name[], char loc[], int size);
111 int huron_get_name(picl_nodehdl_t nodeh, char name[], int size);
112 int huron_get_model(picl_nodehdl_t nodeh, char model[], int size);
113 int huron_get_path(picl_nodehdl_t nodeh, char path[], int size);
114 int huron_get_class(picl_nodehdl_t nodeh, char piclclass[], int size);
/opensolaris-onvv-gate/usr/src/uts/common/sys/
H A Dkmem.h55 extern void *kmem_alloc(size_t size, int kmflags);
56 extern void *kmem_zalloc(size_t size, int kmflags);
57 extern void kmem_free(void *buf, size_t size);
58 extern void *kmem_alloc_tryhard(size_t size, size_t *alloc_size, int kmflags);
61 extern size_t kmem_dump_finish(char *buf, size_t size);
/opensolaris-onvv-gate/usr/src/lib/libc/port/gen/
H A Dmalloc.c48 * 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...]
/opensolaris-onvv-gate/usr/src/uts/common/io/xge/drv/
H A Dxge_osdep.h95 /* ---------------------- 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...]
/opensolaris-onvv-gate/usr/src/common/openssl/crypto/bio/
H A Dbss_bio.c98 static int bio_read(BIO *bio, char *buf, int size);
136 size_t size; member in struct:bio_bio_st
137 char *buf; /* "size" elements (if != NULL) */
142 * never more than buffer space (size-len) warrants. */
154 b->size = 17*1024; /* enough for one TLS record (just a default) */
189 size_t size = size_; local
207 if (buf == NULL || size == 0)
217 if (size <= peer_b->size)
218 peer_b->request = size;
[all...]
/opensolaris-onvv-gate/usr/src/uts/common/gssapi/mechs/krb5/krb5/krb/
H A Dparse.c78 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...]
/opensolaris-onvv-gate/usr/src/cmd/backup/lib/
H A Dmemutils.c54 xcalloc(nelem, size)
56 size_t size;
60 cp = calloc(nelem, size);
/opensolaris-onvv-gate/usr/src/common/openssl/crypto/rand/
H A Drandfile.c237 const char *RAND_file_name(char *buf, size_t size) argument
247 if (s != NULL && *s && strlen(s) + 1 < size)
249 if (BUF_strlcpy(buf,s,size) >= size)
262 if (s && *s && strlen(s)+strlen(RFILE)+2 < size)
264 BUF_strlcpy(buf,s,size);
266 BUF_strlcat(buf,"/",size);
268 BUF_strlcat(buf,RFILE,size);
284 if (BUF_strlcpy(buf,"/dev/arandom",size) >= size) {
[all...]
/opensolaris-onvv-gate/usr/src/common/zfs/
H A Dzfs_fletcher.c79 * So blocks of up to 2k will not overflow. Our largest block size is
135 fletcher_2_native(const void *buf, uint64_t size, zio_cksum_t *zcp) argument
138 const uint64_t *ipend = ip + (size / sizeof (uint64_t));
152 fletcher_2_byteswap(const void *buf, uint64_t size, zio_cksum_t *zcp) argument
155 const uint64_t *ipend = ip + (size / sizeof (uint64_t));
169 fletcher_4_native(const void *buf, uint64_t size, zio_cksum_t *zcp) argument
172 const uint32_t *ipend = ip + (size / sizeof (uint32_t));
186 fletcher_4_byteswap(const void *buf, uint64_t size, zio_cksum_t *zcp) argument
189 const uint32_t *ipend = ip + (size / sizeof (uint32_t));
203 fletcher_4_incremental_native(const void *buf, uint64_t size, argument
226 fletcher_4_incremental_byteswap(const void *buf, uint64_t size, zio_cksum_t *zcp) argument
[all...]
/opensolaris-onvv-gate/usr/src/lib/libast/common/comp/
H A Dresolvepath.c42 resolvepath(const char* file, char* path, size_t size) argument
50 if (n >= size)
61 else if (!getcwd(path, size - n))
/opensolaris-onvv-gate/usr/src/lib/libbc/libc/stdio/common/
H A Dsetbuffer.c46 setbuffer(FILE *iop, char *buf, int size) argument
59 /* regular buffered I/O, specified buffer size */
60 if (size <= 0)
62 iop->_bufsiz = size;
/opensolaris-onvv-gate/usr/src/lib/libc/i386/gen/
H A Dmakectxt.c57 size_t size; local
61 size = sizeof (long) * (argc + 1);
64 ucp->uc_stack.ss_size - size) & ~(STACK_ALIGN - 1));
/opensolaris-onvv-gate/usr/src/lib/libnsl/common/
H A Dcommon.c33 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);
/opensolaris-onvv-gate/usr/src/lib/libumem/common/
H A Dvmem_sbrk.c64 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...]
/opensolaris-onvv-gate/usr/src/psm/promif/ieee1275/sun4/
H A Dprom_mmu.c64 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...]
/opensolaris-onvv-gate/usr/src/uts/common/zmod/
H A Dzutil.c222 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...]
/opensolaris-onvv-gate/usr/src/uts/sun4/sys/
H A Dmemlist_plat.h48 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);
/opensolaris-onvv-gate/usr/src/cmd/mdb/common/modules/emlxs/
H A Demlxs.c186 if (log.count >= log.size) {
187 first = log.count - log.size;
306 if (++idx >= log.size) {
358 uint32_t size; local
453 size = (uintptr_t)dump_txtfile.ptr -
456 if (size == 0) {
460 bptr = (uint8_t *)mdb_zalloc(size, UM_SLEEP|UM_GC);
464 "ddinst=%d size=%d\n", ddiinst, size);
468 if (mdb_vread(bptr, size, (uintptr_
[all...]
/opensolaris-onvv-gate/usr/src/lib/libast/common/vmalloc/
H A Dvmpool.c33 ** All elements in a pool have the same size.
35 ** pool: size of a block.
42 static Void_t* poolalloc(Vmalloc_t* vm, reg size_t size) argument
44 static Void_t* poolalloc(vm, size )
46 reg size_t size;
55 if(size <= 0)
57 if(size != vd->pool)
59 vd->pool = size;
78 size = ROUND(size,ALIG
135 reg size_t size; local
227 poolresize(Vmalloc_t* vm, Void_t* data, size_t size, int type ) argument
272 (*_Vmtrace)(vm, (Vmuchar_t*)data, (Vmuchar_t*)data, size, 0); local
337 poolalign(Vmalloc_t* vm, size_t size, size_t align) argument
[all...]
/opensolaris-onvv-gate/usr/src/cmd/krb5/kadmin/gui/visualrt/sunsoft/jws/visual/rt/awt/
H A DCLCheckbox.java132 public Dimension size() { method in class:CLCheckbox
137 Dimension size = new Dimension(0, 0);
140 size.width += metrics.stringWidth(text) + 8;
141 size.width += canvas.rowHeight;
142 size.height = canvas.rowHeight;
144 return size;
H A DScrollableArea.java53 Dimension size = size();
54 d.width = Math.max(d.width, size.width);
55 d.height = Math.max(d.height, size.height);
112 public Dimension viewSize(Dimension size) { argument
113 return size;
/opensolaris-onvv-gate/usr/src/cmd/mailx/
H A Dstralloc.c60 * Allocate size more bytes of space and return the address of the
63 * The string spaces are of exponentially increasing size, to satisfy
64 * the occasional user with enormous string size requests.
68 salloc(unsigned size) argument
75 s = size;
116 * Reallocate size bytes of space and return the address of the
121 srealloc(void *optr, unsigned size) argument
130 s = size;
147 nptr = salloc(size);
149 memcpy(nptr, optr, size); /* XX
[all...]

Completed in 216 milliseconds

<<11121314151617181920>>