Searched refs:nbytes (Results 1 - 25 of 353) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/cmd/pools/poolstat/
H A Dpoolstat_utils.c38 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 Dpoolstat_utils.h38 #define REALLOC(p, nbytes) Realloc((p), (nbytes))
39 #define ZALLOC(nbytes) Zalloc((nbytes))
/illumos-gate/usr/src/lib/libdwarf/common/
H A Dpro_encode_nm.h44 int _dwarf_pro_encode_leb128_nm(Dwarf_Unsigned val, int *nbytes,
47 int _dwarf_pro_encode_signed_leb128_nm(Dwarf_Signed value, int *nbytes,
H A Dpro_section.h84 it will see if there's enoungh space for nbytes in current
89 unsigned long nbytes);
91 #define GET_CHUNK(dbg,sectno,ptr,nbytes,error) \
93 (ptr) = _dwarf_pro_buffer((dbg),(sectno),(nbytes)); \
/illumos-gate/usr/src/cmd/fm/eversholt/common/
H A Dalloc.h40 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 Dalloc.c70 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);
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_umem.c63 mdb_umem_handler(size_t nbytes, size_t align, uint_t flags) argument
77 (ulong_t)nbytes);
96 (ulong_t)nbytes);
104 ptr = memalign(align, nbytes);
106 ptr = malloc(nbytes);
126 die("failed to allocate %lu bytes -- terminating\n", (ulong_t)nbytes);
134 mdb_umem_gc_enter(void *ptr, size_t nbytes) argument
139 blkp->blk_size = nbytes;
167 mdb_alloc_align(size_t nbytes, size_t align, uint_t flags) argument
170 size_t obytes = nbytes;
199 mdb_alloc(size_t nbytes, uint_t flags) argument
205 mdb_zalloc(size_t nbytes, uint_t flags) argument
216 mdb_free(void *ptr, size_t nbytes) argument
230 mdb_free_align(void *ptr, size_t nbytes) argument
[all...]
H A Dmdb_memio.c44 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));
/illumos-gate/usr/src/cmd/bhyve/
H A Dsockstream.h34 ssize_t stream_read(int fd, void *buf, ssize_t nbytes);
35 ssize_t stream_write(int fd, const void *buf, ssize_t nbytes);
H A Dsockstream.c42 stream_read(int fd, void *buf, ssize_t nbytes) argument
50 while (len < nbytes) {
51 n = read(fd, p + len, nbytes - len);
66 stream_write(int fd, const void *buf, ssize_t nbytes) argument
74 while (len < nbytes) {
75 n = write(fd, p + len, nbytes - len);
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/speculation/
H A Derr.D_ACT_SPEC.SpeculateWithCopyOut.d43 size_t nbytes;
48 nbytes = 10;
57 copyout(buf, addr, nbytes);
/illumos-gate/usr/src/cmd/fm/modules/common/eversholt/
H A Dalloc.c90 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...]
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_echo.c58 unsigned short nbytes; local
77 nbytes = sr->smb_bcc;
78 data = smb_srm_zalloc(sr, nbytes);
80 if (smb_mbc_decodef(&sr->smb_data, "#c", nbytes, data))
92 MBC_INIT(&reply, SMB_HEADER_ED_LEN + 10 + nbytes);
109 nbytes, nbytes, data);
/illumos-gate/usr/src/lib/libmapmalloc/common/
H A Dvalloc.c45 * memalign(align,nbytes) - do nothing
50 memalign(size_t align, size_t nbytes) argument
/illumos-gate/usr/src/ucbcmd/sum/
H A Dsum.c30 long long nbytes; local
45 nbytes = 0;
47 nbytes++;
63 (nbytes + BUFSIZ - 1) / BUFSIZ);
/illumos-gate/usr/src/lib/libc/port/stdio/
H A Dfmemopen.c65 fmemopen_read(FILE *iop, char *buf, size_t nbytes) argument
69 nbytes = MIN(nbytes, fmp->fmo_lsize - fmp->fmo_pos);
70 if (nbytes == 0) {
74 (void) memcpy(buf, fmp->fmo_buf, nbytes);
75 fmp->fmo_pos += nbytes;
77 return (nbytes);
81 fmemopen_write(FILE *iop, const char *buf, size_t nbytes) argument
95 if (nbytes == 0) {
97 } else if (nbytes >
[all...]
/illumos-gate/usr/src/lib/libc/port/locale/
H A Dwcsnrtombs.c65 size_t nbytes; local
69 nbytes = 0;
77 return (nbytes + nb - 1);
79 nbytes += nb;
81 return (nbytes);
113 return (nbytes + nb - 1);
118 nbytes += nb;
121 return (nbytes);
H A Dfputws.c62 int nbytes = 0; local
64 while ((nbytes < (BUFSIZ - (MB_LEN_MAX * 2))) && nchars) {
74 nbytes += n;
78 if (fputs(buf, fp) < nbytes) {
82 nwritten += nbytes;
/illumos-gate/usr/src/cmd/logadm/
H A Derr.h61 #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);
/illumos-gate/usr/src/psm/stand/boot/common/
H A Dheap_kmem.c121 void kmem_free(void *ptr, size_t nbytes);
148 size_t nbytes; member in struct:kmem_info::need_to_free
439 kmem_alloc(size_t nbytes, int kmflag) argument
450 printf("kmem_alloc(nbytes 0x%lx)\n", nbytes);
453 if (nbytes == 0) {
458 if (nbytes < SMALLEST_BLK) {
459 printf("illegal kmem_alloc call for %lx bytes\n", nbytes);
469 if (mweight(kmem_info.free_root) <= nbytes) {
473 if (!morecore(nbytes)) {
600 kmem_free(void *ptr, size_t nbytes) argument
731 size_t nbytes; local
773 morecore(size_t nbytes) argument
[all...]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dmemalign.c40 * memalign(align, nbytes)
53 * if nbytes = 0,
61 memalign(size_t align, size_t nbytes) argument
81 if (nbytes == 0 || _misaligned(align) || align == 0 ||
98 if (nbytes > MAX_MALLOC) {
102 ROUND(nbytes);
103 if (nbytes < MINSIZE)
104 nbytes = MINSIZE;
108 reqsize = nbytes + align + (MINSIZE + WORDSIZE);
111 if (reqsize < nbytes) {
[all...]
/illumos-gate/usr/src/cmd/bhyve/test/tst/mevent/
H A Dread.requeue.c51 ssize_t nbytes; local
56 if ((nbytes = read(fd, buf, sizeof (buf))) < 0) {
57 ASSERT_INT64_EQ(("bad read: %s", strerror(errno)), nbytes, 1);
59 VERBOSE(("read %ld bytes '%s'", nbytes, buf));
61 ASSERT_INT64_EQ(("wanted a byte of cookie"), nbytes, 1);
/illumos-gate/usr/src/lib/libcmdutils/common/
H A Dwritefile.c51 int nbytes; local
122 nbytes = write(fo, cp, mapsize);
128 if ((nbytes >= 0) && (nbytes != (int)mapsize)) {
129 remains = mapsize - nbytes;
131 nbytes = write(fo,
133 if (nbytes < 0) {
145 remains -= nbytes;
147 nbytes = mapsize;
157 if (nbytes <
[all...]
/illumos-gate/usr/src/cmd/sh/
H A Dblok.c69 alloc(size_t nbytes) argument
71 size_t rbytes = round(nbytes + ALIGNSIZ, ALIGNSIZ);
313 realloc(pp, nbytes)
315 size_t nbytes;
318 realloc(pp, nbytes)
320 size_t nbytes;
327 return (alloc(nbytes));
328 if ((nbytes == 0) && (pp != NULL))
333 if (blen < nbytes) { /* need to grow */
334 q = alloc(nbytes);
[all...]
/illumos-gate/usr/src/lib/libproc/common/
H A DPscantext.c56 int nbytes; /* number of bytes in buffer */ local
142 if ((nbytes = read(P->asfd, buf, 2*BLKSIZE)) <= 0)
145 if (nbytes < BLKSIZE)
148 n2bytes = nbytes - BLKSIZE;
149 nbytes = BLKSIZE;
156 if (nbytes <= 0) { /* shift buffers */
157 if ((nbytes = n2bytes) <= 0)
161 nbytes);
164 if (nbytes == BLKSIZE &&
171 if (syspri = Pissyscall_text(P, p, nbytes))
[all...]

Completed in 93 milliseconds

1234567891011>>