Searched refs:nbytes (Results 26 - 50 of 354) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/cmd/mdb/common/mdb/
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));
H A Dmdb_fdio.c57 fdio_read(mdb_io_t *io, void *buf, size_t nbytes) argument
62 return (read(fdp->fd_fd, buf, nbytes));
64 return (IOP_READ(io->io_next, buf, nbytes));
68 fdio_write(mdb_io_t *io, const void *buf, size_t nbytes) argument
73 return (write(fdp->fd_fd, buf, nbytes));
75 return (IOP_WRITE(io->io_next, buf, nbytes));
178 fdio_bdev_read(mdb_io_t *io, void *buf, size_t nbytes) argument
181 ssize_t resid = nbytes;
186 return (IOP_READ(io->io_next, buf, nbytes));
205 if (resid == nbytes
219 fdio_bdev_write(mdb_io_t *io, const void *buf, size_t nbytes) argument
[all...]
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);
/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;
/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...]
/illumos-gate/usr/src/lib/libipmp/common/
H A Dipmp_mpathd.c165 ssize_t nbytes; local
168 for (nwritten = 0; nwritten < buflen; nwritten += nbytes) {
169 nbytes = write(fd, &buf[nwritten], buflen - nwritten);
170 if (nbytes == -1)
172 if (nbytes == 0) {
213 ssize_t nbytes = 0; /* total bytes processed */ local
217 while (nbytes < buflen) {
253 prbytes = read(fd, (caddr_t)buffer + nbytes, buflen - nbytes);
259 nbytes
[all...]
/illumos-gate/usr/src/common/smbsrv/
H A Dsmb_utf8.c106 * by wcharp. Up to nbytes bytes are examined.
119 smb_mbtowc(smb_wchar_t *wcharp, const char *mbchar, size_t nbytes) argument
202 * into a multibyte character string mbstring. Up to nbytes bytes are
211 smb_wcstombs(char *mbstring, const smb_wchar_t *wcstring, size_t nbytes) argument
222 while (nbytes > MTS_MB_CHAR_MAX) {
231 nbytes -= len;
234 while (wide_char && nbytes) {
236 if ((len = smb_wctomb(buf, wide_char)) > nbytes) {
243 nbytes -= len;
285 size_t nbytes; local
[all...]
/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A Dmalloc.c393 * malloc(nbytes)
394 * Allocates a block of length specified in bytes. If nbytes is
422 malloc(uint nbytes) argument
443 nbytes += ALIGNSIZ;
444 if (nbytes < SMALLEST_BLK) {
445 nbytes = SMALLEST_BLK;
447 nbytes = roundup(nbytes, ALIGNSIZ);
455 if (weight(_root) < nbytes) {
459 if(!morecore(nbytes))
566 uint nbytes; /* Size of node to be released */ local
753 realloc(ptr_t ptr, uint nbytes) argument
1112 morecore(uint nbytes) argument
1427 int nbytes; local
1439 write(fileno(stderr), stderrbuf, nbytes); local
[all...]
/illumos-gate/usr/src/tools/ctf/dwarf/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;
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/btree/
H A Dbt_split.c99 u_int32_t n, nbytes, nksize; local
187 nbytes = NBINTERNAL(bi->ksize);
191 nbytes = NBINTERNAL(bl->ksize);
201 if (n < nbytes) {
203 bt_pfxsaved += nbytes - n;
205 nbytes = n;
213 nbytes = NRINTERNAL;
220 if (h->upper - h->lower < nbytes + sizeof(indx_t)) {
223 bt_root(t, h, &l, &r, &skip, nbytes) :
224 bt_page(t, h, &l, &r, &skip, nbytes);
544 u_int32_t nbytes; local
628 u_int32_t nbytes; local
[all...]
/illumos-gate/usr/src/uts/common/inet/
H A Dtunables.c107 size_t nbytes; local
111 nbytes = snprintf(pval, psize, "%u", prop_perm2const(pinfo));
113 nbytes = snprintf(pval, psize, "%u,%u", B_FALSE, B_TRUE);
115 nbytes = snprintf(pval, psize, "%u", pinfo->prop_def_bval);
117 nbytes = snprintf(pval, psize, "%u", pinfo->prop_cur_bval);
118 if (nbytes >= psize)
196 size_t nbytes; local
200 nbytes = snprintf(pval, psize, "%u", prop_perm2const(pinfo));
202 nbytes = snprintf(pval, psize, "%u-%u",
205 nbytes
272 size_t nbytes; local
295 size_t nbytes = 0, tbytes = 0; local
474 size_t nbytes = 0, tbytes = 0; local
[all...]
/illumos-gate/usr/src/lib/libnsl/nsl/
H A Dt_sndv.c53 unsigned int bytes_sent, bytes_remaining, bytes_to_send, nbytes; local
108 * nbytes is the sum of the bytecounts in the tiov vector
112 nbytes = _t_bytecount_upto_intmax(tiov, tiovcount);
115 (nbytes > (uint32_t)tsdu_limit)) {
139 if (nbytes == 0 && !(tiptr->ti_prov_flag & (SENDZERO|OLD_SENDZERO))) {
168 if (nbytes != 0) {
169 if ((dataptr = malloc((size_t)nbytes)) == NULL) {
189 bytes_remaining = nbytes;
256 if (nbytes == bytes_remaining) {
287 return (nbytes
[all...]
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;
/illumos-gate/usr/src/cmd/mdb/common/modules/mdb_test/
H A Dmdb_test.c177 size_t nbytes; local
185 nbytes = (size_t)mdb_strtoull(argv->a_un.a_str);
187 nbytes = (size_t)argv->a_un.a_val;
189 buf = mdb_alloc(nbytes, UM_SLEEP | UM_GC);
190 rbytes = mdb_vread(buf, nbytes, addr);
194 nbytes, rbytes);
205 size_t nbytes; local
213 nbytes = (size_t)mdb_strtoull(argv->a_un.a_str);
215 nbytes = (size_t)argv->a_un.a_val;
217 buf = mdb_alloc(nbytes, UM_SLEE
233 size_t nbytes; local
[all...]
/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];
/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/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/lib/libbsdmalloc/common/
H A Dmalloc.bsd43.c97 malloc(size_t nbytes) argument
142 if (nbytes <= (n = pagesz - sizeof (*op))) {
150 while (nbytes > amt + n) {
264 realloc(void *cp, size_t nbytes) argument
273 return (malloc(nbytes));
292 if ((res = malloc(nbytes)) != NULL)
293 (void) memmove(res, cp, nbytes);
312 if (nbytes <= onb && nbytes > sz) {
317 if ((res = malloc(nbytes))
[all...]
/illumos-gate/usr/src/cmd/svr4pkg/libinst/
H A Dcopyf.c309 ssize_t nbytes; local
313 nbytes = write(a_dstFd, cp, mapsize);
321 if ((nbytes >= 0) && (nbytes != (ssize_t)mapsize)) {
324 remains = mapsize - nbytes;
326 nbytes = write(a_dstFd,
328 if (nbytes >= 0) {
329 remains -= nbytes;
331 nbytes = mapsize;
360 if (nbytes <
[all...]
/illumos-gate/usr/src/uts/common/zmod/
H A Dzmod_subr.c45 size_t nbytes = sizeof (struct zchdr) + items * size; local
46 struct zchdr *z = kobj_zalloc(nbytes, KM_NOWAIT|KM_TMP);
52 z->zch_size = nbytes;
/illumos-gate/usr/src/lib/libpicl/
H A Dpicl.c356 picl_get_propval(picl_prophdl_t proph, void *valbuf, size_t nbytes) argument
366 req_attrval.bufsize = (uint32_t)nbytes;
367 if ((size_t)req_attrval.bufsize != nbytes)
369 outargs = alloca(sizeof (picl_retattrval_t) + nbytes);
372 NULL, 0, outargs, sizeof (picl_retattrval_t) + nbytes,
379 if (ret->ret_attrval.nbytes > (uint32_t)nbytes)
383 (size_t)ret->ret_attrval.nbytes);
395 void *valbuf, size_t nbytes)
406 req_attrvalbyname.bufsize = (uint32_t)nbytes;
394 picl_get_propval_by_name(picl_nodehdl_t nodeh, const char *propname, void *valbuf, size_t nbytes) argument
434 picl_set_propval(picl_prophdl_t proph, void *valbuf, size_t nbytes) argument
468 picl_set_propval_by_name(picl_nodehdl_t nodeh, const char *propname, void *valbuf, size_t nbytes) argument
[all...]
/illumos-gate/usr/src/lib/libkvm/common/
H A Dtest.c259 tst_read(uintptr_t addr, void *buf, size_t nbytes) argument
265 printf("kvm_read(%lx, [buf], %lu)\n", addr, nbytes);
266 if ((e = kvm_read(cookie, addr, buf, nbytes)) != nbytes)
268 e, nbytes);
269 for (b = buf, i = 0; i < nbytes; b++, i++)
277 tst_write(uintptr_t addr, void *buf, size_t nbytes) argument
283 printf("kvm_write(%lx, [buf], %lu)\n", addr, nbytes);
284 if ((e = kvm_write(cookie, addr, buf, nbytes)) != nbytes)
[all...]
/illumos-gate/usr/src/lib/libfru/libfruraw/
H A Dfru_access.h92 ssize_t fru_read_segment(segment_hdl_t segment, void *buffer, size_t nbytes,
94 int fru_write_segment(segment_hdl_t segment, const void *data, size_t nbytes,
100 size_t nbytes, door_cred_t *cred);
101 int fru_update_payload(packet_hdl_t packet, const void *data, size_t nbytes,
104 const void *payload, size_t nbytes, segment_hdl_t *newsegment,

Completed in 128 milliseconds

1234567891011>>