/illumos-gate/usr/src/cmd/sgs/crle/common/ |
H A D | hash.c | 35 make_hash(int size, Hash_type type, ulong_t ident) argument 42 if ((tbl->t_entry = calloc((unsigned)(sizeof (Hash_ent *)), size)) == 0) 47 tbl->t_size = size;
|
/illumos-gate/usr/src/cmd/cdrw/ |
H A D | bstream.h | 39 int (*bstr_read)(struct _bstr_hndl *h, uchar_t *buf, off_t size); 40 int (*bstr_write)(struct _bstr_hndl *h, uchar_t *buf, off_t size); 42 int (*bstr_size)(struct _bstr_hndl *h, off_t *size);
|
/illumos-gate/usr/src/cmd/sgs/test/ld/x64/tls/ie/ |
H A D | style1-main.s | 40 .size main, .-main 48 .size foo, 8 58 .size bar, 8
|
/illumos-gate/usr/src/cmd/tail/ |
H A D | extern.h | 38 #define WR(p, size) do { \ 39 if (write(STDOUT_FILENO, p, size) != (ssize_t)size) \
|
/illumos-gate/usr/src/cmd/truss/ |
H A D | htbl.c | 43 init_hash(unsigned int size) argument 49 if ((size & (size - 1)) != 0) 53 htp->size = size; 55 my_calloc((size_t)size, sizeof (hashb_t), NULL); 58 for (i = 0; i < size; i++) { 74 for (i = 0; i < htp->size; i++) { 126 bucket = hash_str(key, htp->size); 185 for (i = 0; i < tbl->size; [all...] |
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/krb5/krb/ |
H A D | unparse.c | 95 int size = length; local 106 size++; 109 return size; 175 int flags, char **name, unsigned int *size) 238 if (size) { 239 if (*name && (*size < totalsize)) { 241 *name = krb5int_realloc(*name, totalsize, *size); 245 *size = totalsize; 298 char **name, unsigned int *size) 300 return k5_unparse_name(context, principal, 0, name, size); 174 k5_unparse_name(krb5_context context, krb5_const_principal principal, int flags, char **name, unsigned int *size) argument 297 krb5_unparse_name_ext(krb5_context context, krb5_const_principal principal, char **name, unsigned int *size) argument 313 krb5_unparse_name_flags_ext(krb5_context context, krb5_const_principal principal, int flags, char **name, unsigned int *size) argument [all...] |
/illumos-gate/usr/src/uts/common/exec/elf/ |
H A D | old_notes.c | 66 size_t size; local 79 if ((size = prhasx(p)? prgetprxregsize(p) : 0) != 0) 81 + nlwp * roundup(size, sizeof (Word)); 90 if ((size = prnwindows(ttolwp(t))) != 0) { 91 size = sizeof (gwindows_t) - 92 (SPARC_MAXREGWINDOW - size) * 95 roundup(size, sizeof (Word)); 211 size_t size = prnwindows(lwp); local 213 if (size != 0) { 214 size [all...] |
/illumos-gate/usr/src/tools/ctf/dwarf/common/ |
H A D | pro_alloc.c | 77 _dwarf_p_get_alloc(Dwarf_P_Debug dbg, Dwarf_Unsigned size) argument 85 lp = (memory_list_t *) malloc(size + sizeof(memory_list_t)); 91 /* point to 'size' bytes just beyond lp struct */ 93 memset(sp, 0, size);
|
/illumos-gate/usr/src/stand/lib/fs/common/ |
H A D | promfs.c | 42 static ssize_t promfs_read(int fd, caddr_t buf, size_t size); 92 promfs_read(int fd, caddr_t buf, size_t size) argument 94 return (prom_fread(fsih, fd, buf, size));
|
/illumos-gate/usr/src/lib/libast/common/cdt/ |
H A D | dtrestore.c | 26 ** From without, list is not nil and data->size must be 0. 50 { if(dt->data->size != 0) 68 { dt->data->size = 0; 84 dt->data->size = -1;
|
/illumos-gate/usr/src/cmd/lp/lib/forms/ |
H A D | putform.c | 122 int size = 0, local 136 size += n; 141 if (!size)
|
/illumos-gate/usr/src/cmd/lp/lib/msgs/ |
H A D | mdisconnect.c | 114 int size; local 120 size = putmessage((char *)0, S_GOODBYE); 121 if ((msgbuf = (char *)Malloc((unsigned)size)))
|
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/emlxs/ |
H A D | emlxs_fw.c | 101 /* Return image data and size */ 103 fw->size = fw_table->size; 110 fw->size = 0;
|
/illumos-gate/usr/src/uts/common/vm/ |
H A D | as.h | 117 size_t a_size; /* total size of address space */ 126 size_t a_sizedir; /* size of object directory */ 129 size_t a_resvsize; /* size of reserved part of address space */ 270 faultcode_t as_fault(struct hat *hat, struct as *as, caddr_t addr, size_t size, 272 faultcode_t as_faulta(struct as *as, caddr_t addr, size_t size); 273 int as_setprot(struct as *as, caddr_t addr, size_t size, uint_t prot); 274 int as_checkprot(struct as *as, caddr_t addr, size_t size, uint_t prot); 275 int as_unmap(struct as *as, caddr_t addr, size_t size); 276 int as_map(struct as *as, caddr_t addr, size_t size, int ((*crfp)()), 287 int as_incore(struct as *as, caddr_t addr, size_t size, cha [all...] |
/illumos-gate/usr/src/uts/common/io/i40e/ |
H A D | i40e_osdep.c | 26 i40e_allocate_virt_mem(struct i40e_hw *hw, struct i40e_virt_mem *mem, u32 size) argument 28 mem->va = kmem_zalloc(size, KM_SLEEP); 29 mem->size = size; 38 kmem_free(mem->va, mem->size); 45 enum i40e_memory_type type, u64 size, u32 alignment) 79 rc = ddi_dma_mem_alloc(mem->idm_dma_handle, size, 90 "memory for common code", size); 130 mem->size = (size_t)size; 44 i40e_allocate_dma_mem(struct i40e_hw *hw, struct i40e_dma_mem *mem, enum i40e_memory_type type, u64 size, u32 alignment) argument [all...] |
/illumos-gate/usr/src/boot/lib/libz/ |
H A D | zutil.c | 220 voidpf ZLIB_INTERNAL zcalloc (voidpf opaque, unsigned items, unsigned size) argument 223 ulg bsize = (ulg)items*size; 279 voidpf ZLIB_INTERNAL zcalloc (voidpf opaque, uInt items, uInt size) argument 282 return _halloc((long)items, size); 299 extern voidp malloc OF((uInt size)); 300 extern voidp calloc OF((uInt items, uInt size)); 304 voidpf ZLIB_INTERNAL zcalloc (opaque, items, size) 307 unsigned size; 309 if (opaque) items += size - size; /* mak [all...] |
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/keytab/ |
H A D | kt_file.c | 553 * krb5_ktf_keytab_size() - Determine the size required to externalize 1038 * The length indicates the size of the block in the file (this may be 1039 * larger than the size of the next record, since we are using a first 1193 krb5_int32 size; 1201 if (!xfread(&size, sizeof(size), 1, KTFILEP(id))) { 1205 size = ntohl(size); 1207 if (size > 0) { 1208 krb5_int32 minus_size = -size; 1190 krb5_int32 size; local 1247 krb5_int32 size; local 1434 fseek(KTFILEP(id), start_pos + size, SEEK_SET); local 1463 krb5_int16 count, size, enctype; local 1641 krb5_int32 size; local [all...] |
/illumos-gate/usr/src/uts/sun4u/io/ |
H A D | mc-us3i.c | 280 /* Set the pointer and size of property in the soft state */ 435 size_t size; local 472 * return 0: size, number of segments, and all segment ids, 494 size = sizeof (*mcmem) + (nsegments - 1) * 496 mcmem = kmem_zalloc(size, KM_SLEEP); 498 mcmem->size = memsize; 509 if (copyout(mcmem, (void *)arg, size)) 512 kmem_free(mcmem, size); 518 * return 0: base, size, number of banks, and all bank ids, 549 size 836 mc_add_bank(int bankid, uint64_t mask, uint64_t match, uint64_t size, int dgrpid) argument 1016 uint64_t id, size, xmatch; local 1083 uint64_t size; local 1173 uint64_t size; local [all...] |
/illumos-gate/usr/src/cmd/sendmail/db/db/ |
H A D | db_auto.c | 52 logrec.size = sizeof(rectype) + sizeof(txn_num) + sizeof(DB_LSN) 58 + sizeof(u_int32_t) + (hdr == NULL ? 0 : hdr->size) 59 + sizeof(u_int32_t) + (dbt == NULL ? 0 : dbt->size) 61 if ((ret = __os_malloc(logrec.size, NULL, &logrec.data)) != 0) 86 memcpy(bp, &hdr->size, sizeof(hdr->size)); 87 bp += sizeof(hdr->size); 88 memcpy(bp, hdr->data, hdr->size); 89 bp += hdr->size; 96 memcpy(bp, &dbt->size, sizeo [all...] |
/illumos-gate/usr/src/uts/common/fs/smbclnt/netsmb/ |
H A D | subr_mchain.c | 211 m_getblk(int size, int type) argument 216 /* Make size at least MLEN. */ 217 if (size < MLEN) 218 size = MLEN; 219 mblk = allocb_wait(size, BPRI_LO, STR_NOSIG, &error); 323 * Check if object of size 'size' fit to the current position and 326 * Note: size should be <= MLEN 329 mb_reserve(struct mbchain *mbp, int size) argument 336 * If the requested size i 371 mb_put_inline(struct mbchain *mbp, void *src, int size) argument 478 mb_put_mem(struct mbchain *mbp, const void *vsrc, int size, int type) argument 545 size_t size; local 582 mb_put_uio(struct mbchain *mbp, uio_t *uiop, size_t size) argument 696 md_get_inline(struct mdchain *mdp, void *dst, int size) argument 815 md_get_mem(struct mdchain *mdp, void *vdst, int size, int type) argument 880 md_get_mbuf(struct mdchain *mdp, int size, mblk_t **ret) argument 907 md_get_uio(struct mdchain *mdp, uio_t *uiop, size_t size) argument [all...] |
/illumos-gate/usr/src/uts/common/io/drm/ |
H A D | drm_bufs.c | 53 drm_order(unsigned long size) argument 56 unsigned long tmp = size; 61 if (size & ~(1 << order)) 83 unsigned long size, drm_map_type_t type, 97 if ((offset & PAGE_MASK) || (size & PAGE_MASK)) 99 if (offset + size < offset) 120 map->size = size; 137 map->handle = ddi_umem_alloc(map->size, 178 kva = gfxp_map_kernel_space(map->offset, map->size, 82 drm_addmap(drm_device_t *dev, unsigned long offset, unsigned long size, drm_map_type_t type, drm_map_flags_t flags, drm_local_map_t **map_ptr) argument 405 int size; local 513 int size; local 785 uint_t size; local [all...] |
/illumos-gate/usr/src/uts/i86xpv/io/ |
H A D | privcmd_hcall.c | 79 import_buffer(import_export_t *iep, void *uaddr, void *kaddr, size_t size, argument 83 iep->ie_size = size; 86 if (size == 0 || uaddr == NULL) { 92 iep->ie_kaddr = kmem_alloc(size, KM_SLEEP); 100 (ddi_copyin(uaddr, iep->ie_kaddr, size, 0) != 0)) { 148 import_handle(import_export_t *iep, void *field, size_t size, int flags) argument 155 err = import_buffer(iep, ptr, NULL, size, (flags)); 257 size_t size; local 259 size = roundup(howmany(op.u.shadow_op.pages, NBBY), 262 &op.u.shadow_op.dirty_bitmap, size, IE_IMPEX 884 size_t size; local 963 int size = 0; local 1102 int size = 0; local 1150 int size = 0; local [all...] |
/illumos-gate/usr/src/lib/libm/common/m9x/ |
H A D | __fex_sym.c | 66 static int phsize = 0; /* size of ph */ 69 static int stbufsize = 0; /* size of stbuf */ 114 int i, size; local 128 size = h.e_phnum * h.e_phentsize; 129 if (size > phsize) 134 if ((ph = (Elf_Phdr*)malloc(size)) == NULL) 136 phsize = size; 141 read(fd, ph, size) != (ssize_t)size) 149 size [all...] |
/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | fsys_fat.c | 204 int size; local 209 size = FAT_SUPER->root_max - filepos; 210 if (size > len) 211 size = len; 212 if (!devread(FAT_SUPER->root_offset, filepos, size, buf)) 214 filepos += size; 215 return size; 272 size = (1 << FAT_SUPER->clustsize_bits) - offset; 273 if (size > len) 274 size [all...] |
/illumos-gate/usr/src/cmd/nscd/ |
H A D | nscd_dbimpl.c | 381 int size; local 387 size = sizeof (*hash) + strlen(name) + 1; 388 array_o = size = roundup(size); 391 size += (num_data + num_array) * sizeof (void **); 392 size = roundup(size); 395 data_o = size; 396 size += dataSize; 399 hash = (nscd_hash_t *)calloc(1, size); 485 _nscd_alloc_db( int size) argument [all...] |