/illumos-gate/usr/src/lib/watchmalloc/common/ |
H A D | malloc.c | 118 if (size == 0) in smalloc() 119 size = WORDSIZE; in smalloc() 186 ROUND(size); in malloc_unlocked() 308 ROUND(size); in realloc() 403 if (ts > size) in realloc() 404 ts = size; in realloc() 440 size = MINSIZE; in realloc() 481 size_t ts, size; in realfree() local 1113 #define nextblk(p, size) ((TREE *)((char *)(p) + (size))) argument 1414 if (size == 0) in protect() [all …]
|
/illumos-gate/usr/src/cmd/bhyve/ |
H A D | basl.c | 40 uint8_t size; member 47 uint8_t size; member 354 length->size); 470 const uint8_t size) argument 475 assert(size == 4 || size == 8); 484 length->size = size; 494 const uint8_t size) argument 499 assert(size == 4 || size == 8); 510 pointer->size = size; 642 const uint8_t size) argument [all …]
|
/illumos-gate/usr/src/cmd/mandoc/ |
H A D | mandoc_aux.c | 50 mandoc_calloc(size_t num, size_t size) in mandoc_calloc() argument 54 ptr = calloc(num, size); in mandoc_calloc() 61 mandoc_malloc(size_t size) in mandoc_malloc() argument 65 ptr = malloc(size); in mandoc_malloc() 72 mandoc_realloc(void *ptr, size_t size) in mandoc_realloc() argument 74 ptr = realloc(ptr, size); in mandoc_realloc() 81 mandoc_reallocarray(void *ptr, size_t num, size_t size) in mandoc_reallocarray() argument 83 ptr = reallocarray(ptr, num, size); in mandoc_reallocarray() 90 mandoc_recallocarray(void *ptr, size_t oldnum, size_t num, size_t size) in mandoc_recallocarray() argument 92 ptr = recallocarray(ptr, oldnum, num, size); in mandoc_recallocarray()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/path/ |
H A D | pathprog.c | 47 prog(const char* command, char* path, size_t size) in prog() argument 62 if ((n = readlink(_PROC_PROG, path, size)) > 0 && *path == '/') in prog() 64 if (n < size) in prog() 74 z = size; in prog() 84 e = path + size - 1; in prog() 111 if (n < size) in prog() 117 pathprog(const char* command, char* path, size_t size) in pathprog() argument 122 if ((n = prog(command, path, size)) > 0 && n < size && *path != '/' && (rel = strdup(path))) in pathprog() 124 n = pathpath(rel, NiL, PATH_REGULAR|PATH_EXECUTE, path, size) ? strlen(path) : 0; in pathprog()
|
/illumos-gate/usr/src/uts/sun4v/io/px/ |
H A D | px_tools_4v.c | 81 for (i = 0; i < size; i++) { in pxtool_swap_endian() 231 if ((size <= 0) || (size > 8)) { in pxtool_pcicfg_access() 250 req.size = size; in pxtool_pcicfg_access() 259 switch (size) { in pxtool_pcicfg_access() 276 prg_p->offset, size, data.qw); in pxtool_pcicfg_access() 303 switch (size) { in pxtool_pcicfg_access() 320 prg_p->offset, size, data.qw); in pxtool_pcicfg_access() 387 size, *data_p, bdf, &io_stat); in pxtool_pciiomem_access() 406 size, &io_stat, data_p); in pxtool_pciiomem_access() 461 size_t size; in pxtool_bus_reg_ops() local [all …]
|
/illumos-gate/usr/src/uts/sun4u/io/ |
H A D | mc-us3i.c | 556 mcseg->size = seg->size; in mc_ioctl() 605 mcbank.size = bank->size; in mc_ioctl() 637 mcdevgrp.size = dgrp->size; in mc_ioctl() 854 banki->size = size; in mc_add_bank() 901 segi->size += banki->size; in mc_add_segment() 919 segi->size = banki->size; in mc_add_segment() 1049 size = (dgrp->size * 2)/nbanks; in mc_add_xor_banks() 1096 size = dgrp->size/dgrp->nlogbanks; in mc_add_dgrp_banks() 1199 size = regi->size - (start - reg_start); in get_devgrp_size() 1205 size += regi->size; in get_devgrp_size() [all …]
|
/illumos-gate/usr/src/psm/stand/boot/sparc/common/ |
H A D | sun4u_memlist.c | 49 u_longlong_t size; member 57 static struct memlist *reg_to_list(struct sun4u_prom_memlist *a, size_t size, 59 static void sort_reglist(struct sun4u_prom_memlist *ar, size_t size); 164 u_longlong_t size = 0; in reg_to_list() local 184 if (i < n-1 && (start1 + ar[i].size == start2)) { in reg_to_list() 185 size += ar[i].size; in reg_to_list() 196 size += ar[i].size; in reg_to_list() 205 ptr->ml_size = size ? size : ar[i].size; in reg_to_list() 209 size = 0; in reg_to_list()
|
/illumos-gate/usr/src/uts/common/io/cxgbe/t4nex/ |
H A D | fastlz_api.c | 143 buffer[4] = size & 255; in write_chunk_header() 144 buffer[5] = (size >> 8) & 255; in write_chunk_header() 145 buffer[6] = (size >> 16) & 255; in write_chunk_header() 146 buffer[7] = (size >> 24) & 255; in write_chunk_header() 167 unsigned long fsize = pin_buff->size; in write_compression_hdr() 239 bytes_read = pin_buff->size; in compress_buff() 405 if (pc_buff->offset > pc_buff->size) in decompress_buffer() 476 pc_buff->size, in decompress_buffer() 484 pd_buff->size, in decompress_buffer() 504 pc_buff->size, in decompress_buffer() [all …]
|
/illumos-gate/usr/src/tools/codesign/ |
H A D | codesign_server.pl | 107 my ($size, $cred, $path) = @_; 111 recvfile("$Tmpdir/in.zip", $size) || return; 162 my ($size, $bytes); 164 $size = -s $file; 169 read(F, $bytes, $size); 171 print "OK SIGN $size $path\n"; 172 syswrite(STDOUT, $bytes, $size); 184 my ($file, $size) = @_; 187 if (!read(STDIN, $bytes, $size)) { 195 syswrite(F, $bytes, $size);
|
/illumos-gate/usr/src/uts/intel/io/pci/ |
H A D | pci_memlist.c | 117 prev->ml_size += size + next->ml_size; in memlist_insert() 124 prev->ml_size += size; in memlist_insert() 130 next->ml_size += size; in memlist_insert() 136 entry->ml_size = size; in memlist_insert() 165 if (size == 0) in memlist_remove() 170 rem_end = addr + size - 1; in memlist_remove() 235 total_size = size + align - delta; in memlist_find() 250 (void) memlist_remove(listp, paddr, size); in memlist_find() 261 uint64_t size, int align) in memlist_find_with_startaddr() argument 277 total_size = size + align - delta; in memlist_find_with_startaddr() [all …]
|
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | kgrep.c | 138 uintptr_t addr, size, offset; \ 146 for (addr = base; addr < lim; addr += size) { \ 150 if (mdb_vread(page, size, addr) == -1) \ 223 uintptr_t size = sizeof (uintptr_t); in kgrep() local 242 's', MDB_OPT_UINTPTR, &size, in kgrep() 267 if (size > sizeof (uintmax_t)) { in kgrep() 273 if (size == 0 || (size & (size - 1)) != 0) { in kgrep() 278 if (size == sizeof (uintmax_t)) in kgrep() 281 size_mask = (1ULL << (size * NBBY)) - 1ULL; in kgrep() 286 pattern, size, size_mask); in kgrep() [all …]
|
/illumos-gate/usr/src/common/ficl/softcore/ |
H A D | string.fr | 55 : size-buf { size 2:this -- } 56 size 0< abort" need positive size for size-buf" 57 size 0= if 62 my=> min-buf size over / 1+ * chars to size 67 size allocate 69 size this --> set-buf 70 size this --> set-buflen 74 size this --> get-buflen > if 77 size this --> set-buf 82 u this --> size-buf [all …]
|
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/recno/ |
H A D | rec_put.c | 87 if (data->size > t->bt_reclen) 90 if (t->bt_rdata.size < t->bt_reclen) { 96 t->bt_rdata.size = t->bt_reclen; 100 t->bt_bval, t->bt_reclen - data->size); 102 fdata.size = t->bt_reclen; 105 fdata.size = data->size; 153 tdata.size = t->bt_reclen; 157 tdata.size = 0; 211 if (data->size > t->bt_ovflsize) { 215 tdata.size = NOVFLSIZE; [all …]
|
/illumos-gate/usr/src/lib/libmtmalloc/tests/ |
H A D | reallocs.c | 43 size_t size; in main() local 45 for (size = 1; size <= MAX_CACHE_SZ; size++) { in main() 46 p = malloc(size); in main() 47 q = realloc(p, size); in main() 50 size, p, q); in main()
|
/illumos-gate/usr/src/cmd/sendmail/db/btree/ |
H A D | bt_put.c | 319 __bk.len = data->size; 449 bo.tlen = item->size; 493 min = data->size < bk->len ? data->size : bk->len; 510 repl.size = data->size - (prefix + suffix); 532 ln = BKEYDATA_SIZE(data->size); 555 bk->len = data->size; 678 if (dbt->size > rp->re_len) 702 dbc->rdata.size = rp->re_len; 798 if (dbt->dlen != dbt->size) 822 tlen += dbt->size; [all …]
|
/illumos-gate/usr/src/uts/sun4u/serengeti/io/ |
H A D | sgsbbc_iosram.c | 72 ddi_put##size(tunnel->reg_handle, (uint##size##_t *)sram, \ 78 *(uint##size##_t *)buf = ddi_get##size(tunnel->reg_handle, \ 80 (uint##size##_t *)sram) 266 tunnel->size = toc->iosram_keys[i].size; in tunnel_init() 391 if (size == 0) in iosram_rw() 405 if ((offset + size) > tunnel->size) { in iosram_rw() 421 switch (size) { in iosram_rw() 443 switch (size) { in iosram_rw() 474 int size = -1; in iosram_size() local 482 size = master_iosram->tunnel->tunnel_keys[key].size; in iosram_size() [all …]
|
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/ |
H A D | pol_xdr.c | 45 u_int size; in xdr_nullstring() local 49 size = 0; in xdr_nullstring() 51 size = strlen(*objp) + 1; in xdr_nullstring() 53 if (! xdr_u_int(xdrs, &size)) { in xdr_nullstring() 58 if (size == 0) { in xdr_nullstring() 62 *objp = (char *) mem_alloc(size); in xdr_nullstring() 68 return (xdr_opaque(xdrs, *objp, size)); in xdr_nullstring() 71 if (size != 0) in xdr_nullstring() 72 return (xdr_opaque(xdrs, *objp, size)); in xdr_nullstring() 77 mem_free(*objp, size); in xdr_nullstring()
|
/illumos-gate/usr/src/lib/sun_fc/common/ |
H A D | HBAList.cc | 116 if (index < 0 || index > hbas.size()) { in openHBA() 155 if (index < 0 || index > tgthbas.size()) { in openTgtHBA() 178 if (index < 0 || index > hbas.size()) { in getHBAName() 237 for (int i = 0; i < hbas.size(); i++) { in openHBA() 299 if (hbas.size() == 0) { in getNumberofAdapters() 309 for (int j = 0; j < hbas.size(); j++) { in getNumberofAdapters() 331 return ((uint32_t)hbas.size()); in getNumberofAdapters() 354 if (tgthbas.size() == 0) { in getNumberofTgtAdapters() 362 for (int i = 0; i < tmp.size(); i++) { in getNumberofTgtAdapters() 386 return ((uint32_t)tgthbas.size()); in getNumberofTgtAdapters() [all …]
|
/illumos-gate/usr/src/cmd/sgs/link_audit/common/ |
H A D | hash.c | 35 make_hash(size_t size) in make_hash() argument 40 ptr->size = size; in make_hash() 49 make_ihash(size_t size) in make_ihash() argument 54 ptr->size = size; in make_ihash() 55 ptr->table = malloc(sizeof (hash_entry *) * size); in make_ihash() 69 tmp = tbl->table[bucket = hash_string(key, tbl->size)]; in get_hash() 71 tmp = tbl->table[bucket = labs((long)key) % tbl->size]; in get_hash() 119 tmp = tbl->table[hash_string(key, tbl->size)]; in find_hash() 126 tmp = tbl->table[labs((long)key) % tbl->size]; in find_hash() 143 bucket = hash_string(key, tbl->size); in del_hash() [all …]
|
/illumos-gate/usr/src/lib/iconv_modules/utf-8/utils/ |
H A D | sb_to_utf8_generator.c | 48 tbl[i].size = 1; in main() 51 tbl[i].size = 2; in main() 54 tbl[i].size = ICV_TYPE_ILLEGAL_CHAR; in main() 78 tbl[k].size = ICV_TYPE_ILLEGAL_CHAR; in main() 91 tbl[k].size = 1; in main() 93 tbl[k].size = 2; in main() 95 tbl[k].size = 3; in main() 97 tbl[k].size = 4; in main() 99 tbl[k].size = 5; in main() 101 tbl[k].size = 6; in main() [all …]
|
H A D | cp720_to_ucs4_generator.c | 48 tbl[i].size = 1; in main() 51 tbl[i].size = 2; in main() 54 tbl[i].size = ICV_TYPE_ILLEGAL_CHAR; in main() 92 tbl[k].size = 1; in main() 94 tbl[k].size = 2; in main() 96 tbl[k].size = 3; in main() 98 tbl[k].size = 4; in main() 100 tbl[k].size = 5; in main() 102 tbl[k].size = 6; in main() 107 printf("/* 0x%02X */ { 0x%08X, %-3d},\n", i, l, tbl[i].size); in main()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/vmalloc/ |
H A D | vmopen.c | 67 size_t algn, size, incr; local 84 size = 0; 97 size = -1; /* to tell that addr was not from disc->memoryf */ 106 size = ROUND(sizeof(Vminit_t),incr); /* get initial memory */ 109 memset(addr, 0, size); 134 seg->extent = size; 135 seg->baddr = addr + size; 136 seg->size = size; /* Note: this size is unusually large to mark seg as 143 size = ((seg->baddr - (Vmuchar_t*)bp)/ALIGN) * ALIGN; /**/ ASSERT(size > 0); 162 { if(size > 0) [all …]
|
/illumos-gate/usr/src/lib/libsqlite/src/ |
H A D | pragma.c | 214 if( size<0 ) size = -size; in sqlitePragma() 223 db->cache_size = db->cache_size<0 ? -size : size; in sqlitePragma() 249 if( size<0 ) size = -size; in sqlitePragma() 254 if( size<0 ) size = -size; in sqlitePragma() 255 if( db->cache_size<0 ) size = -size; in sqlitePragma() 256 db->cache_size = size; in sqlitePragma() 301 if( size<0 ) size = -size; in sqlitePragma() 312 size = -size; in sqlitePragma() 318 db->cache_size = size; in sqlitePragma() 343 if( size<0 ) size = -size; in sqlitePragma() [all …]
|
/illumos-gate/usr/src/uts/i86pc/dboot/ |
H A D | dboot_printf.c | 126 uint8_t size; in do_dboot_printf() local 138 size = 0; in do_dboot_printf() 166 if (size == 0) in do_dboot_printf() 167 size = sizeof (long); in do_dboot_printf() 168 else if (size == sizeof (long)) in do_dboot_printf() 169 size = sizeof (long long); in do_dboot_printf() 173 if (size == 0) in do_dboot_printf() 175 else if (size == sizeof (long)) in do_dboot_printf() 197 if (size == 0) in do_dboot_printf() 199 else if (size == sizeof (ulong_t)) in do_dboot_printf()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/ |
H A D | regexp.c | 39 unsigned int size; member 43 block(void* handle, void* data, size_t size) in block() argument 47 if (data || (size = roundof(size, ALIGN_BOUND2)) > (env->buf + env->size - env->cur)) in block() 50 env->cur += size; in block() 55 _re_comp(regexp_t* re, const char* pattern, char* handle, unsigned int size) in _re_comp() argument 60 if (size <= sizeof(Env_t)) in _re_comp() 63 env->size = size - sizeof(Env_t); in _re_comp()
|