/opensolaris-onvv-gate/usr/src/cmd/pools/poolstat/ |
H A D | poolstat_utils.c | 38 Realloc(void *ptr, size_t nbytes) argument 40 if ((ptr = realloc(ptr, nbytes))) 48 Zalloc(size_t nbytes) argument 50 return (memset(Realloc(NULL, nbytes), 0, nbytes));
|
H A D | poolstat_utils.h | 38 #define REALLOC(p, nbytes) Realloc((p), (nbytes)) 39 #define ZALLOC(nbytes) Zalloc((nbytes))
|
/opensolaris-onvv-gate/usr/src/cmd/fm/eversholt/common/ |
H A D | alloc.h | 40 void *alloc_realloc(void *ptr, size_t nbytes, const char *fname, int line); 41 void *alloc_malloc(size_t nbytes, const char *fname, int line); 49 #define MALLOC(nbytes) alloc_malloc(nbytes, __FILE__, __LINE__) 50 #define REALLOC(ptr, nbytes) alloc_realloc(ptr, nbytes, __FILE__, __LINE__) 56 #define MALLOC(nbytes) alloc_malloc(nbytes, "???", __LINE__) 57 #define REALLOC(ptr, nbytes) alloc_realloc(ptr, nbytes, " [all...] |
H A D | alloc.c | 70 alloc_malloc(size_t nbytes, const char *fname, int line) argument 72 void *retval = malloc(nbytes); 78 stats_counter_add(Malloctotal, nbytes); 92 alloc_realloc(void *ptr, size_t nbytes, const char *fname, int line) argument 94 void *retval = realloc(ptr, nbytes); 135 alloc_xmalloc(size_t nbytes) argument 139 retval = malloc(nbytes); 143 stats_counter_add(Malloctotal, nbytes);
|
/opensolaris-onvv-gate/usr/src/cmd/lvm/metassist/layout/ |
H A D | layout_messages.h | 44 extern void print_layout_volume_msg(char *type, uint64_t nbytes); 47 extern void print_layout_submirrors_msg(char *type, uint64_t nbytes, int nsubs); 51 extern void print_populate_volume_msg(char *type, uint64_t nbytes); 52 extern void print_populate_volume_ncomps_msg(char *type, uint64_t nbytes, 64 extern void print_hba_insufficient_space_msg(char *name, uint64_t nbytes); 65 extern void print_insufficient_capacity_msg(uint64_t nbytes);
|
H A D | layout_concat.h | 41 uint64_t nbytes, 46 uint64_t nbytes,
|
H A D | layout_stripe.h | 41 uint64_t nbytes, 46 uint64_t nbytes,
|
H A D | layout_messages.c | 39 * FUNCTION: print_layout_volume_msg(char *type, uint64_t nbytes) 48 uint64_t nbytes) 52 (void) bytes_to_sizestr(nbytes, &spstr, universal_units, B_FALSE); 223 * FUNCTION: print_hba_insufficient_space_msg(char *name, uint64_t nbytes) 236 uint64_t nbytes) 240 (void) bytes_to_sizestr(nbytes, &spstr, universal_units, B_FALSE); 250 * FUNCTION: print_insufficient_capacity_msg(uint64_t nbytes) 252 * INPUT: nbytes - available capacity in bytes 255 * is insufficient space for a volume, only nbytes are 260 uint64_t nbytes) 46 print_layout_volume_msg( char *type, uint64_t nbytes) argument 234 print_hba_insufficient_space_msg( char *name, uint64_t nbytes) argument 259 print_insufficient_capacity_msg( uint64_t nbytes) argument 280 print_layout_submirrors_msg( char *type, uint64_t nbytes, int nsubs) argument 330 print_populate_volume_msg( char *type, uint64_t nbytes) argument 354 print_populate_volume_ncomps_msg( char *type, uint64_t nbytes, int ncomps) argument [all...] |
H A D | layout_mirror.h | 42 uint64_t nbytes,
|
/opensolaris-onvv-gate/usr/src/lib/libwanbootutil/common/ |
H A D | wbio.c | 42 ssize_t nbytes; local 45 for (nwritten = 0; nwritten < buflen; nwritten += nbytes) { 46 nbytes = write(fd, &buf[nwritten], buflen - nwritten); 47 if (nbytes <= 0) 62 ssize_t nbytes; local 65 for (nread = 0; nread < buflen; nread += nbytes) { 66 nbytes = read(fd, &buf[nread], buflen - nread); 67 if (nbytes <= 0)
|
/opensolaris-onvv-gate/usr/src/lib/libbsdmalloc/common/ |
H A D | llib-lbsdmalloc | 34 char *malloc(unsigned nbytes); 36 char *realloc(char *cp, unsigned nbytes);
|
/opensolaris-onvv-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_umem.c | 65 mdb_umem_handler(size_t nbytes, size_t align, uint_t flags) argument 79 (ulong_t)nbytes); 98 (ulong_t)nbytes); 106 ptr = memalign(align, nbytes); 108 ptr = malloc(nbytes); 128 die("failed to allocate %lu bytes -- terminating\n", (ulong_t)nbytes); 136 mdb_umem_gc_enter(void *ptr, size_t nbytes) argument 141 blkp->blk_size = nbytes; 169 mdb_alloc_align(size_t nbytes, size_t align, uint_t flags) argument 173 if (nbytes 198 mdb_alloc(size_t nbytes, uint_t flags) argument 204 mdb_zalloc(size_t nbytes, uint_t flags) argument 215 mdb_free(void *ptr, size_t nbytes) argument 229 mdb_free_align(void *ptr, size_t nbytes) argument [all...] |
H A D | mdb_value.c | 66 value_read(mdb_tgt_t *t, void *dst, size_t nbytes, uintptr_t addr) argument 79 size = nbytes; 82 nbytes = MIN(size, nbytes); 93 if (off + nbytes > sizeof (uintmax_t)) 94 nbytes = sizeof (uintmax_t) - off; 96 if (nbytes != 0) 97 bcopy(src + off, dst, nbytes); 99 return (nbytes); 104 value_write(mdb_tgt_t *t, const void *buf, size_t nbytes, uintptr_ argument [all...] |
H A D | mdb_memio.c | 44 memio_read(mdb_io_t *io, void *buf, size_t nbytes) argument 49 if (mdp->md_off + nbytes > mdp->md_size) 50 nbytes = (mdp->md_size - mdp->md_off); 51 bcopy(mdp->md_buf + mdp->md_off, buf, nbytes); 52 mdp->md_off += nbytes; 53 return (nbytes); 56 return (IOP_READ(io->io_next, buf, nbytes));
|
/opensolaris-onvv-gate/usr/src/cmd/dtrace/test/tst/common/speculation/ |
H A D | err.D_ACT_SPEC.SpeculateWithCopyOut.d | 43 size_t nbytes; 48 nbytes = 10; 57 copyout(buf, addr, nbytes);
|
/opensolaris-onvv-gate/usr/src/cmd/fs.d/cachefs/fsck/ |
H A D | res.h | 46 void res_addfile(res *resp, long nbytes); 47 int res_addident(res *resp, int index, rl_entry_t *dp, long nbytes, int file); 48 void res_clearident(res *resp, int index, int nbytes, int file);
|
/opensolaris-onvv-gate/usr/src/cmd/fm/modules/common/eversholt/ |
H A D | alloc.c | 90 alloc_malloc(size_t nbytes, const char *fname, int line) argument 94 ASSERT(nbytes > 0); 96 retval = fmd_hdl_alloc(Hdl, nbytes + HDRSIZ, FMD_SLEEP); 100 bcopy((void *)&nbytes, (void *)retval, sizeof (nbytes)); 104 stats_counter_add(Malloctotal, nbytes); 109 totalcount += nbytes + HDRSIZ; 119 alloc_realloc(void *ptr, size_t nbytes, const char *fname, int line) argument 121 void *retval = alloc_malloc(nbytes, fname, line); 129 bcopy(ptr, retval, (osize < nbytes) 190 alloc_xmalloc(size_t nbytes) argument [all...] |
/opensolaris-onvv-gate/usr/src/lib/libbc/libc/gen/common/ |
H A D | memalign.c | 35 * memalign(align,nbytes) 48 * if nbytes = 0, 56 memalign(align, nbytes) 58 uint nbytes; 72 if (nbytes == 0 || misaligned(align)) { 83 nbytes = roundup(nbytes, ALIGNSIZ); 84 reqsize = nbytes + align + SMALLEST_BLK; 130 nbytes += ALIGNSIZ; 131 frag_size = blksize - nbytes; [all...] |
/opensolaris-onvv-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_echo.c | 54 unsigned short nbytes; local 62 nbytes = sr->smb_bcc; 63 data = smb_srm_zalloc(sr, nbytes); 65 if (smb_mbc_decodef(&sr->smb_data, "#c", nbytes, data)) 69 MBC_INIT(&reply, SMB_HEADER_ED_LEN + 10 + nbytes); 86 nbytes, nbytes, data);
|
/opensolaris-onvv-gate/usr/src/lib/libmapmalloc/common/ |
H A D | valloc.c | 45 * memalign(align,nbytes) - do nothing 50 memalign(size_t align, size_t nbytes) argument
|
/opensolaris-onvv-gate/usr/src/ucbcmd/sum/ |
H A D | sum.c | 30 long long nbytes; local 45 nbytes = 0; 47 nbytes++; 63 (nbytes + BUFSIZ - 1) / BUFSIZ);
|
/opensolaris-onvv-gate/usr/src/cmd/logadm/ |
H A D | err.h | 61 #define MALLOC(nbytes) err_malloc(nbytes, __FILE__, __LINE__) 62 void *err_malloc(int nbytes, const char *fname, int line); 64 #define REALLOC(ptr, nbytes) err_realloc(ptr, nbytes, __FILE__, __LINE__) 65 void *err_realloc(void *ptr, int nbytes, const char *fname, int line);
|
/opensolaris-onvv-gate/usr/src/psm/stand/boot/common/ |
H A D | heap_kmem.c | 123 void kmem_free(void *ptr, size_t nbytes); 150 size_t nbytes; member in struct:kmem_info::need_to_free 441 kmem_alloc(size_t nbytes, int kmflag) argument 452 printf("kmem_alloc(nbytes 0x%lx)\n", nbytes); 455 if (nbytes == 0) { 460 if (nbytes < SMALLEST_BLK) { 461 printf("illegal kmem_alloc call for %lx bytes\n", nbytes); 471 if (mweight(kmem_info.free_root) <= nbytes) { 475 if (!morecore(nbytes)) { 602 kmem_free(void *ptr, size_t nbytes) argument 734 size_t nbytes; local 776 morecore(size_t nbytes) argument [all...] |
/opensolaris-onvv-gate/usr/src/lib/libc/port/gen/ |
H A D | memalign.c | 41 * memalign(align, nbytes) 54 * if nbytes = 0, 62 memalign(size_t align, size_t nbytes) argument 82 if (nbytes == 0 || _misaligned(align) || align == 0 || 99 if (nbytes > MAX_MALLOC) { 103 ROUND(nbytes); 104 if (nbytes < MINSIZE) 105 nbytes = MINSIZE; 109 reqsize = nbytes + align + (MINSIZE + WORDSIZE); 112 if (reqsize < nbytes) { [all...] |
/opensolaris-onvv-gate/usr/src/lib/libcmdutils/common/ |
H A D | writefile.c | 53 int nbytes; local 124 nbytes = write(fo, cp, mapsize); 130 if ((nbytes >= 0) && (nbytes != (int)mapsize)) { 131 remains = mapsize - nbytes; 133 nbytes = write(fo, 135 if (nbytes < 0) { 147 remains -= nbytes; 149 nbytes = mapsize; 159 if (nbytes < [all...] |