Searched refs:nbyte (Results 1 - 25 of 27) sorted by relevance

12

/illumos-gate/usr/src/cmd/fs.d/pcfs/fsck/
H A Dinject.c39 extern ssize_t _read(int fildes, void *buf, size_t nbyte);
42 read(int fildes, void *buf, size_t nbyte) argument
54 return (_read(fildes, buf, nbyte));
/illumos-gate/usr/src/lib/libwanboot/common/
H A Dsocket_inet.c44 * nbyte - Number of bytes to read.
49 socket_read(int fildes, void *buf, size_t nbyte, int read_timeout) argument
66 return (recv(fildes, buf, nbyte, 0));
75 * nbyte - Number of bytes to write.
80 socket_write(int fildes, const void *buf, size_t nbyte, argument
83 return (sendto(fildes, buf, nbyte, 0, (struct sockaddr *)addr,
/illumos-gate/usr/src/lib/libc/port/stdio/
H A D_filbuf.c57 size_t nbyte; local
117 nbyte = 1;
119 nbyte = endbuf - iop->_base;
120 if ((res = read(GET_FD(iop), (char *)iop->_base, nbyte)) > 0) {
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ftp/
H A Dsecure.c205 * nbyte on success
210 secure_write(int fd, const void *inbuf, size_t nbyte) argument
217 return (write(fd, buf, nbyte));
218 for (i = 0; nbyte > 0; nbyte--)
230 static int secure_putbuf(int fd, uchar_t *buf, uint_t nbyte) argument
245 in_buf.length = nbyte;
367 secure_read(int fd, void *inbuf, size_t nbyte) argument
373 return (read(fd, buf, nbyte));
377 for (i = 0; nbyte >
[all...]
/illumos-gate/usr/src/lib/libcurses/screen/
H A Dmbaddch.c149 int n, x, y, nc, m, len, nbyte, ty; local
190 nbyte = win->_nbyte;
196 if (len > win->_maxx || 2*len < nbyte)
223 for (m = nbyte/2; m > 0; m -= 1, wch += 2)
228 if ((nbyte%2) != 0)
232 for (m = (nbyte / 2) + (nbyte % 2); m < len; ++m)
H A Dwgetstr.c61 int nbyte = 0; local
97 while (nbyte < n) {
116 nbyte = 0;
183 nbyte++;
/illumos-gate/usr/src/boot/sys/boot/common/
H A Dufsread.c218 fsread_size(ufs_ino_t inode, void *buf, size_t nbyte, size_t *fsizep) argument
229 if ((buf == NULL && nbyte != 0) || dmadat == NULL)
298 if (nbyte > n)
299 nbyte = n;
300 nb = nbyte;
357 return nbyte;
361 fsread(ufs_ino_t inode, void *buf, size_t nbyte) argument
364 return fsread_size(inode, buf, nbyte, NULL);
/illumos-gate/usr/src/boot/lib/libstand/
H A Ddosfs.c295 dos_read(struct open_file *fd, void *buf, size_t nbyte, size_t *resid) argument
308 nb = (u_int)nbyte;
346 *resid = nbyte - nb + cnt;
772 u_int x, offset, off, n, nbyte, lsec; local
784 nbyte = fs->fatsz != 32 ? 2 : 4;
791 if ((n = SECSIZ - off) > nbyte)
792 n = nbyte;
795 nbyte -= n;
797 n = nbyte & (SECSIZ - 1);
798 if (nbyte
825 ioread(DOS_FS *fs, u_int offset, void *buf, u_int nbyte) argument
[all...]
/illumos-gate/usr/src/uts/common/avs/ns/sdbc/
H A Dsafestore.h577 * @param nbyte number of bytes to read
589 #define SSOP_READ_CBLOCK(ssp, resource, buf, nbyte, srcoffset) \
590 ((ssp)->ssop_read_cblock(resource, buf, nbyte, srcoffset))
597 * @param nbyte number of bytes to write
609 #define SSOP_WRITE_CBLOCK(ssp, resource, buf, nbyte, destoffset) \
610 ((ssp)->ssop_write_cblock(resource, buf, nbyte, destoffset))
/illumos-gate/usr/src/tools/btxld/
H A Dbtxld.c447 copy(int fdi, int fdo, size_t nbyte, off_t offset) argument
452 while (nbyte) {
453 if ((n = sizeof(buf)) > nbyte)
454 n = nbyte;
458 nbyte -= n;
467 readx(int fd, void *buf, size_t nbyte, off_t offset) argument
473 if ((n = read(fd, buf, nbyte)) == -1)
482 writex(int fd, const void *buf, size_t nbyte) argument
486 if ((n = write(fd, buf, nbyte)) == -1)
488 if ((size_t)n != nbyte)
[all...]
/illumos-gate/usr/src/boot/sys/boot/arm/at91/boot2/
H A Dboot2.c78 xfsread(ufs_ino_t inode, void *buf, size_t nbyte) argument
80 if ((size_t)fsread(inode, buf, nbyte) != nbyte)
/illumos-gate/usr/src/lib/libsasl/lib/
H A Dcheckpw.c469 * Keep calling the read() system call with 'fd', 'buf', and 'nbyte'
472 static int retry_read(int fd, void *buf0, unsigned nbyte) argument
478 if (nbyte == 0) return 0;
481 n = read(fd, buf, nbyte);
489 if (nread >= (int) nbyte) return nread;
492 nbyte -= n;
/illumos-gate/usr/src/boot/sys/boot/arm/ixp425/boot2/
H A Dboot2.c78 xfsread(ufs_ino_t inode, void *buf, size_t nbyte) argument
80 if ((size_t)fsread(inode, buf, nbyte) != nbyte)
/illumos-gate/usr/src/lib/libc/port/threads/
H A Dscalls.c897 pread(int fildes, void *buf, size_t nbyte, off_t offset) argument
902 PERFORM(__pread(fildes, buf, nbyte, offset))
907 pread64(int fildes, void *buf, size_t nbyte, off64_t offset) argument
912 PERFORM(__pread64(fildes, buf, nbyte, offset))
937 pwrite(int fildes, const void *buf, size_t nbyte, off_t offset) argument
942 PERFORM(__pwrite(fildes, buf, nbyte, offset))
947 pwrite64(int fildes, const void *buf, size_t nbyte, off64_t offset) argument
952 PERFORM(__pwrite64(fildes, buf, nbyte, offset))
/illumos-gate/usr/src/lib/brand/solaris10/s10_brand/common/
H A Ds10_brand.c774 * rval, fd, buf, and nbyte should be passed unmodified from s10_getdents()
783 s10_getdents_common(sysret_t *rval, int fd, char *buf, size_t nbyte, argument
803 nbyte));
812 if (nbyte > MAXGETDENTS_SIZE)
813 nbyte = MAXGETDENTS_SIZE;
814 local_buf = (char *)malloc(nbyte);
824 buf, nbyte);
838 nbyte)) != 0) {
920 s10_getdents(sysret_t *rval, int fd, struct dirent *buf, size_t nbyte) argument
922 return (s10_getdents_common(rval, fd, (char *)buf, nbyte, SYS_getdent
934 s10_getdents64(sysret_t *rval, int fd, struct dirent64 *buf, size_t nbyte) argument
[all...]
/illumos-gate/usr/src/lib/libshell/common/edit/
H A Dedit.c916 * put <string> of length <nbyte> onto lookahead stack
921 static int putstack(Edit_t *ep,char string[], register int nbyte, int type) argument
926 int size, offset = ep->e_lookahead + nbyte;
927 *(endp = &p[nbyte]) = 0;
928 endp = &p[nbyte];
985 for(size=offset;size < nbyte;size++)
988 ep->e_lookahead += nbyte-offset;
990 while (nbyte > 0)
992 c = string[--nbyte] & STRIP;
/illumos-gate/usr/src/cmd/sgs/elfdump/common/
H A Dfake_shdr.c537 xlate_data(FSTATE *fstate, void *buf, size_t nbyte, Elf_Type xlate_type) argument
542 data.d_size = nbyte;
566 * nbyte - # of bytes to read into buf
580 read_data(FSTATE *fstate, Off offset, void *buf, size_t nbyte, argument
583 if (pread(fstate->fd, buf, nbyte, offset) != nbyte) {
592 return (xlate_data(fstate, buf, nbyte, xlate_type));
/illumos-gate/usr/src/cmd/ndmpd/tlm/
H A Dtlm_traverse.c222 fs_getdents(int fildes, struct dirent *buf, size_t *nbyte, argument
234 if (*nbyte == 0) {
236 *nbyte = rv = getdents(fildes, buf, darg->da_size);
244 len = *nbyte;
277 *nbyte = len;
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_modapi.c905 mdb_dump_aux_ptr(void *buf, size_t nbyte, uint64_t offset, void *arg) argument
909 return (dat->func(buf, nbyte, offset, dat->arg));
922 mdb_dump_aux_partial(void *buf, size_t nbyte, uint64_t offset, void *arg) argument
928 result = dat->func(buf, nbyte, offset, dat->arg);
936 } while (count < nbyte && result == 1);
/illumos-gate/usr/src/stand/lib/sock/
H A Dsocket.c511 * Read up to `nbyte' of data from socket `s' into `buf'; if non-zero,
516 socket_read(int s, void *buf, size_t nbyte, int read_timeout) argument
527 n = recvfrom(s, buf, nbyte, MSG_DONTWAIT, NULL, NULL);
541 * Write up to `nbyte' bytes of data from `buf' to the address pointed to
546 socket_write(int s, const void *buf, size_t nbyte, struct sockaddr_in *addr) argument
548 return (sendto(s, buf, nbyte, 0, (struct sockaddr *)addr,
/illumos-gate/usr/src/cmd/truss/
H A Dprint.c93 void grow(private_t *, int nbyte);
606 ssize_t nbyte = ISWRITE(syscall)? pri->sys_args[2] : local
613 if (Lsp->pr_why == PR_SYSEXIT && nbyte > IOBSIZE) {
620 if (nbyte <= 0 || elsewhere)
623 int nb = nbyte > IOBSIZE? IOBSIZE : (int)nbyte;
631 (nb == nbyte)?
1403 grow(private_t *pri, int nbyte) /* reallocate format buffer if necessary */ argument
1405 while (pri->sys_leng + nbyte >= pri->sys_ssize)
H A Dmain.c2281 int nbyte; local
2291 for (nbyte = 40; nbyte == 40 && leng < maxleng; addr += 40) {
2292 if ((nbyte = Pread(Proc, string, 40, addr)) <= 0)
2294 if (nbyte > 0 &&
2295 (nbyte = strlen(string)) > 0) {
2296 while (leng + nbyte >= pri->str_bsize)
2301 leng += nbyte;
/illumos-gate/usr/src/common/net/wanboot/
H A Dboot_http.c2786 http_srv_send(http_conn_t *c_id, const void *buf, size_t nbyte) argument
2791 if ((retval = SSL_write(c_id->ssl, buf, nbyte)) <= 0) {
2796 retval = socket_write(c_id->fd, buf, nbyte, &c_id->host_addr);
2806 http_srv_recv(http_conn_t *c_id, void *buf, size_t nbyte) argument
2811 if ((retval = SSL_read(c_id->ssl, buf, nbyte)) <= 0) {
2816 retval = socket_read(c_id->fd, buf, nbyte, c_id->read_timeout);
/illumos-gate/usr/src/lib/libproc/common/
H A Dllib-lproc67 void *buf, size_t nbyte, uintptr_t address);
69 char *buf, size_t nbyte, uintptr_t address);
71 const void *buf, size_t nbyte, uintptr_t address);
H A DPcontrol.c2171 size_t nbyte, /* number of bytes to read */
2174 return (P->ops.pop_pread(P, buf, nbyte, address, P->data));
2186 int nbyte; local
2198 for (nbyte = STRSZ; nbyte == STRSZ && leng < size; addr += STRSZ) {
2199 if ((nbyte = P->ops.pop_pread(P, string, STRSZ, addr,
2204 if ((nbyte = strlen(string)) > 0) {
2205 if (leng + nbyte > size)
2206 nbyte = size - leng;
2207 (void) strncpy(buf + leng, string, nbyte);
2169 Pread(struct ps_prochandle *P, void *buf, size_t nbyte, uintptr_t address) argument
2216 Pwrite(struct ps_prochandle *P, const void *buf, size_t nbyte, uintptr_t address) argument
[all...]

Completed in 151 milliseconds

12