Searched defs:nbytes (Results 1 - 25 of 280) 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));
/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/efcode/efdaemon/
H A Defdaemon.c57 int c, fd, nbytes, status; local
137 nbytes = read(fd, &tc, sizeof (tc));
138 if (nbytes < 0) {
/illumos-gate/usr/src/lib/libbc/libc/sys/common/
H A Dgetdents.c62 int ret, nbytes; local
74 nbytes = bytes; /* buffer can only be as large as user expects */
76 if ((nbuf = (char *)malloc(nbytes)) == NULL) {
80 if ((ret = _syscall(SYS_getdents, fd, nbuf, nbytes)) == -1) {
/illumos-gate/usr/src/lib/libc/port/locale/
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;
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);
/illumos-gate/usr/src/cmd/pgrep/
H A Dpsexp.c77 size_t nbytes; local
97 nbytes = regerror(err, &psexp->ps_reg, NULL, 0);
98 buf = alloca(nbytes + 1);
99 (void) regerror(err, &psexp->ps_reg, buf, nbytes);
/illumos-gate/usr/src/cmd/lp/lib/msgs/
H A Dread_fifo.c303 int n, nbytes, count = 0; local
351 nbytes = MSGMAX - (fbp->psave_end - fbp->save);
353 while ((n = read(fifo, fbp->psave_end, nbytes)) == 0 && count < 60)
363 fbp->full = (nbytes == n);
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_logio.c46 logio_read(mdb_io_t *io, void *buf, size_t nbytes) argument
52 rbytes = IOP_READ(io->io_next, buf, nbytes);
66 logio_write(mdb_io_t *io, const void *buf, size_t nbytes) argument
72 wbytes = IOP_WRITE(io->io_next, buf, nbytes);
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/lib/krb5/plugins/kdb/db2/libdb2/recno/
H A Drec_delete.c163 u_int32_t nbytes; local
180 nbytes = NRLEAF(rl);
187 memmove(from + nbytes, from, (char *)to - from);
188 h->upper += nbytes;
193 ip[0] += nbytes;
195 ip[0] = ip[1] < offset ? ip[1] + nbytes : ip[1];
H A Drec_put.c203 u_int32_t nbytes; local
260 nbytes = NRLEAFDBT(data->size);
261 if (h->upper - h->lower < nbytes + sizeof(indx_t)) {
262 status = __bt_split(t, h, NULL, data, dflags, nbytes, idx);
273 h->linp[idx] = h->upper -= nbytes;
/illumos-gate/usr/src/uts/sun4v/io/n2rng/
H A Dn2rng_provider.c66 fips_random(n2rng_t *n2rng, uint8_t *out, size_t nbytes) argument
78 for (i = 0; i < nbytes; i += SHA1BYTES) {
141 /* nbytes - i is bytes to go */
144 bcopy(tempout, &out[i], min(nbytes - i, SHA1BYTES));
/illumos-gate/usr/src/lib/libnsl/nsl/
H A Dt_sndvudata.c61 unsigned int nbytes; local
86 nbytes = _t_bytecount_upto_intmax(tiov, tiovcount);
88 if ((nbytes == 0) &&
95 if ((tiptr->ti_maxpsz > 0) && (nbytes > (uint32_t)tiptr->ti_maxpsz)) {
161 if (nbytes != 0) {
162 if ((dataptr = malloc((size_t)nbytes)) == NULL) {
169 databuf.len = nbytes;
170 databuf.maxlen = nbytes;
H A Dt_rcv.c53 _tx_rcv(int fd, char *buf, unsigned nbytes, int *flags, int api_semantics) argument
170 databuf.maxlen = nbytes;
H A Dt_rcvv.c60 unsigned int nbytes; local
171 nbytes = _t_bytecount_upto_intmax(tiov, tiovcount);
173 if (nbytes != 0 && ((dataptr = malloc(nbytes)) == NULL)) {
185 databuf.maxlen = (int)nbytes;
H A Dt_rcvvudata.c69 unsigned int nbytes; local
116 nbytes = _t_bytecount_upto_intmax(tiov, tiovcount);
118 if (nbytes != 0 && ((dataptr = malloc(nbytes)) == NULL)) {
123 databuf.maxlen = nbytes;
/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/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/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...]
/illumos-gate/usr/src/cmd/mdb/common/modules/logindmux/
H A Dlogindmux.c37 logdmux_uqinfo(const queue_t *q, char *buf, size_t nbytes) argument
56 (void) mdb_snprintf(buf, nbytes, "peer rq : %p\nlower wq : %p",
64 logdmux_lqinfo(const queue_t *q, char *buf, size_t nbytes) argument
69 (void) mdb_snprintf(buf, nbytes, "peer wq : %p\nupper rq : %p",
/illumos-gate/usr/src/cmd/fm/eversholt/common/
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/lib/libmlrpc/common/
H A Dndr_wchar.c117 ndr__wcstombs(char *mbs, const uint16_t *wcs, size_t nbytes) argument
124 if (mbs != NULL && nbytes > 0)
134 if (nbytes > sizeof (junk_mbs))
140 mbslen = nbytes;
146 if (mbslen < nbytes)
/illumos-gate/usr/src/lib/libdwarf/common/
H A Dpro_encode_nm.c56 ** number of bytes used returned thru nbytes arg
59 _dwarf_pro_encode_leb128_nm(Dwarf_Unsigned val, int *nbytes, argument
80 *nbytes = a - space;
87 ** number of bytes used returned thru nbytes arg
91 _dwarf_pro_encode_signed_leb128_nm(Dwarf_Signed value, int *nbytes, argument
121 *nbytes = str - space;

Completed in 333 milliseconds

1234567891011>>