Home
last modified time | relevance | path

Searched refs:nbyte (Results 1 – 25 of 26) sorted by relevance

12

/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ftp/
H A Dsecure.c208 secure_write(int fd, const void *inbuf, size_t nbyte) in secure_write() argument
215 return (write(fd, buf, nbyte)); in secure_write()
216 for (i = 0; nbyte > 0; nbyte--) in secure_write()
228 static int secure_putbuf(int fd, uchar_t *buf, uint_t nbyte) in secure_putbuf() argument
243 in_buf.length = nbyte; in secure_putbuf()
365 secure_read(int fd, void *inbuf, size_t nbyte) in secure_read() argument
371 return (read(fd, buf, nbyte)); in secure_read()
375 for (i = 0; nbyte > 0; nbyte--) in secure_read()
/illumos-gate/usr/src/lib/libc/port/stdio/
H A D_filbuf.c54 size_t nbyte; in _filbuf() local
115 nbyte = 1; in _filbuf()
117 nbyte = endbuf - iop->_base; in _filbuf()
118 if ((res = _xread(iop, (char *)iop->_base, nbyte)) > 0) { in _filbuf()
/illumos-gate/usr/src/lib/libcurses/screen/
H A Dmbaddch.c147 int n, x, y, nc, m, len, nbyte, ty; in _mbaddch() local
188 nbyte = win->_nbyte; in _mbaddch()
194 if (len > win->_maxx || 2*len < nbyte) in _mbaddch()
221 for (m = nbyte/2; m > 0; m -= 1, wch += 2) in _mbaddch()
226 if ((nbyte%2) != 0) in _mbaddch()
230 for (m = (nbyte / 2) + (nbyte % 2); m < len; ++m) in _mbaddch()
H A Dwgetstr.c59 int nbyte = 0; in wgetnstr() local
95 while (nbyte < n) { in wgetnstr()
114 nbyte = 0; in wgetnstr()
181 nbyte++; in wgetnstr()
/illumos-gate/usr/src/cmd/fs.d/pcfs/fsck/
H A Dinject.c37 extern ssize_t _read(int fildes, void *buf, size_t nbyte);
40 read(int fildes, void *buf, size_t nbyte) in read() argument
52 return (_read(fildes, buf, nbyte)); in read()
/illumos-gate/usr/src/boot/libsa/
H A Ddosfs.c282 dos_read(struct open_file *fd, void *buf, size_t nbyte, size_t *resid) in dos_read() argument
296 nb = (uint_t)nbyte; in dos_read()
334 *resid = nbyte - nb + cnt; in dos_read()
769 uint_t val_in, val_out, offset, blknum, nbyte; in fatget() local
780 nbyte = fs->fatsz != 32 ? 2 : 4; in fatget()
781 if (offset + nbyte > secbyt(fs->spf)) in fatget()
785 if (offset + nbyte > FATBLKSZ) in fatget()
830 ioread(DOS_FS *fs, uint_t offset, void *buf, size_t nbyte) in ioread() argument
840 if ((n = SECSIZ - off) > nbyte) in ioread()
841 n = nbyte; in ioread()
[all …]
/illumos-gate/usr/src/tools/btxld/
H A Dbtxld.c459 copy(int fdi, int fdo, size_t nbyte, off_t offset) in copy() argument
464 while (nbyte) { in copy()
465 if ((n = sizeof(buf)) > nbyte) in copy()
466 n = nbyte; in copy()
470 nbyte -= n; in copy()
479 readx(int fd, void *buf, size_t nbyte, off_t offset) in readx() argument
485 if ((n = read(fd, buf, nbyte)) == -1) in readx()
494 writex(int fd, const void *buf, size_t nbyte) in writex() argument
498 if ((n = write(fd, buf, nbyte)) == -1) in writex()
500 if ((size_t)n != nbyte) in writex()
/illumos-gate/usr/src/lib/libsasl/lib/
H A Dcheckpw.c471 static int retry_read(int fd, void *buf0, unsigned nbyte) in retry_read() argument
477 if (nbyte == 0) return 0; in retry_read()
480 n = read(fd, buf, nbyte); in retry_read()
488 if (nread >= (int) nbyte) return nread; in retry_read()
491 nbyte -= n; in retry_read()
/illumos-gate/usr/src/lib/libc/port/threads/
H A Dscalls.c897 pread(int fildes, void *buf, size_t nbyte, off_t offset) in pread() argument
902 PERFORM(__pread(fildes, buf, nbyte, offset)) in pread()
907 pread64(int fildes, void *buf, size_t nbyte, off64_t offset) in pread64() argument
912 PERFORM(__pread64(fildes, buf, nbyte, offset)) in pread64()
937 pwrite(int fildes, const void *buf, size_t nbyte, off_t offset) in pwrite() argument
942 PERFORM(__pwrite(fildes, buf, nbyte, offset)) in pwrite()
947 pwrite64(int fildes, const void *buf, size_t nbyte, off64_t offset) in pwrite64() argument
952 PERFORM(__pwrite64(fildes, buf, nbyte, offset)) in pwrite64()
/illumos-gate/usr/src/lib/brand/solaris10/s10_brand/common/
H A Ds10_brand.c783 s10_getdents_common(sysret_t *rval, int fd, char *buf, size_t nbyte, in s10_getdents_common() argument
803 nbyte)); in s10_getdents_common()
812 if (nbyte > MAXGETDENTS_SIZE) in s10_getdents_common()
813 nbyte = MAXGETDENTS_SIZE; in s10_getdents_common()
814 local_buf = (char *)malloc(nbyte); in s10_getdents_common()
824 buf, nbyte); in s10_getdents_common()
838 nbyte)) != 0) { in s10_getdents_common()
920 s10_getdents(sysret_t *rval, int fd, struct dirent *buf, size_t nbyte) in s10_getdents() argument
922 return (s10_getdents_common(rval, fd, (char *)buf, nbyte, SYS_getdents, in s10_getdents()
934 s10_getdents64(sysret_t *rval, int fd, struct dirent64 *buf, size_t nbyte) in s10_getdents64() argument
[all …]
/illumos-gate/usr/src/lib/iconv_modules/ko/
H A DMakefile.com66 E2NB = ko_KR-euc%ko_KR-nbyte.so
67 NB2E = ko_KR-nbyte%ko_KR-euc.so
274 $(SYMLINK) -f ko_KR-euc%ko_KR-nbyte.so $(ICONV_DIR)/ko_KR.euc%ko_KR.nbyte.so
281 $(SYMLINK) -f ko_KR-nbyte%ko_KR-euc.so $(ICONV_DIR)/ko_KR.nbyte%ko_KR.euc.so
/illumos-gate/usr/src/pkg/manifests/
H A Dsystem-library-iconv-extra.p5m88 file path=usr/lib/iconv/$(ARCH64)/ko_KR-euc%ko_KR-nbyte.so
92 file path=usr/lib/iconv/$(ARCH64)/ko_KR-nbyte%ko_KR-euc.so
99 link path=usr/lib/iconv/$(ARCH64)/ko_KR.euc%ko_KR.nbyte.so \
100 target=./ko_KR-euc%ko_KR-nbyte.so
107 link path=usr/lib/iconv/$(ARCH64)/ko_KR.nbyte%ko_KR.euc.so \
108 target=./ko_KR-nbyte%ko_KR-euc.so
263 file path=usr/lib/iconv/ko_KR-euc%ko_KR-nbyte.so
267 file path=usr/lib/iconv/ko_KR-nbyte%ko_KR-euc.so
274 link path=usr/lib/iconv/ko_KR.euc%ko_KR.nbyte.so \
275 target=./ko_KR-euc%ko_KR-nbyte.so
[all …]
/illumos-gate/usr/src/boot/i386/isoboot/
H A Disoboot.c120 xfsread(uint64_t inode, void *buf, size_t nbyte) in xfsread() argument
123 if ((size_t)cd9660_fsread(inode, buf, nbyte) != nbyte) { in xfsread()
/illumos-gate/usr/src/lib/fm/topo/modules/common/nic/
H A Dtopo_nic.c318 uint_t nbyte; in nic_create_transceiver() local
324 LIBSFF_KEY_OUI, &oui, &nbyte) == 0 && nbyte == 3) { in nic_create_transceiver()
/illumos-gate/usr/src/cmd/ndmpd/tlm/
H A Dtlm_traverse.c222 fs_getdents(int fildes, struct dirent *buf, size_t *nbyte, in fs_getdents() argument
234 if (*nbyte == 0) { in fs_getdents()
236 *nbyte = rv = getdents(fildes, buf, darg->da_size); in fs_getdents()
244 len = *nbyte; in fs_getdents()
277 *nbyte = len; in fs_getdents()
/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) in xlate_data() argument
542 data.d_size = nbyte; in xlate_data()
580 read_data(FSTATE *fstate, Off offset, void *buf, size_t nbyte, in read_data() argument
583 if (pread(fstate->fd, buf, nbyte, offset) != nbyte) { in read_data()
592 return (xlate_data(fstate, buf, nbyte, xlate_type)); in read_data()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/edit/
H A Dedit.c935 static int putstack(Edit_t *ep,char string[], register int nbyte, int type)
940 int size, offset = ep->e_lookahead + nbyte;
941 *(endp = &p[nbyte]) = 0;
942 endp = &p[nbyte];
999 for(size=offset;size < nbyte;size++)
1002 ep->e_lookahead += nbyte-offset;
1004 while (nbyte > 0)
1006 c = string[--nbyte] & STRIP;
/illumos-gate/usr/src/cmd/dd/
H A Ddd.c505 iread(int fd, char *buf, size_t nbyte) in iread() argument
510 while (nbyte != 0) { in iread()
511 ssize_t nr = read(fd, buf, nbyte); in iread()
520 nbyte -= nr; in iread()
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_modapi.c1089 mdb_dump_aux_ptr(void *buf, size_t nbyte, uint64_t offset, void *arg) in mdb_dump_aux_ptr() argument
1093 return (dat->func(buf, nbyte, offset, dat->arg)); in mdb_dump_aux_ptr()
1106 mdb_dump_aux_partial(void *buf, size_t nbyte, uint64_t offset, void *arg) in mdb_dump_aux_partial() argument
1112 result = dat->func(buf, nbyte, offset, dat->arg); in mdb_dump_aux_partial()
1120 } while (count < nbyte && result == 1); in mdb_dump_aux_partial()
/illumos-gate/usr/src/lib/libproc/common/
H A DPcontrol.c2178 size_t nbyte, /* number of bytes to read */ in Pread() argument
2181 return (P->ops.pop_pread(P, buf, nbyte, address, P->data)); in Pread()
2193 int nbyte; in Pread_string() local
2205 for (nbyte = STRSZ; nbyte == STRSZ && leng < size; addr += STRSZ) { in Pread_string()
2206 if ((nbyte = P->ops.pop_pread(P, string, STRSZ, addr, in Pread_string()
2211 if ((nbyte = strlen(string)) > 0) { in Pread_string()
2212 if (leng + nbyte > size) in Pread_string()
2213 nbyte = size - leng; in Pread_string()
2214 (void) strncpy(buf + leng, string, nbyte); in Pread_string()
2215 leng += nbyte; in Pread_string()
[all …]
/illumos-gate/usr/src/stand/lib/sock/
H A Dsocket.c515 socket_read(int s, void *buf, size_t nbyte, int read_timeout) in socket_read() argument
526 n = recvfrom(s, buf, nbyte, MSG_DONTWAIT, NULL, NULL); in socket_read()
545 socket_write(int s, const void *buf, size_t nbyte, struct sockaddr_in *addr) in socket_write() argument
547 return (sendto(s, buf, nbyte, 0, (struct sockaddr *)addr, in socket_write()
/illumos-gate/usr/src/cmd/truss/
H A Dprint.c98 void grow(private_t *, int nbyte);
609 ssize_t nbyte = ISWRITE(syscall)? pri->sys_args[2] : in prt_iob() local
616 if (Lsp->pr_why == PR_SYSEXIT && nbyte > IOBSIZE) { in prt_iob()
623 if (nbyte <= 0 || elsewhere) in prt_iob()
626 int nb = nbyte > IOBSIZE? IOBSIZE : (int)nbyte; in prt_iob()
634 (nb == nbyte)? in prt_iob()
1406 grow(private_t *pri, int nbyte) /* reallocate format buffer if necessary */ in grow() argument
1408 while (pri->sys_leng + nbyte >= pri->sys_ssize) in grow()
H A Dmain.c2286 int nbyte; in fetchstring() local
2296 for (nbyte = 40; nbyte == 40 && leng < maxleng; addr += 40) { in fetchstring()
2297 if ((nbyte = Pread(Proc, string, 40, addr)) <= 0) in fetchstring()
2299 if (nbyte > 0 && in fetchstring()
2300 (nbyte = strlen(string)) > 0) { in fetchstring()
2301 while (leng + nbyte >= pri->str_bsize) in fetchstring()
2306 leng += nbyte; in fetchstring()
/illumos-gate/usr/src/lib/iconv_modules/utf-8/
H A Dalias100 ko_KR.nbyte ko_KR-nbyte
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlge/
H A Dqlge.c5312 size_t nbyte, total_len; in ql_send_common() local
5339 nbyte = MBLKL(tp); in ql_send_common()
5340 total_len += nbyte; in ql_send_common()
5341 max_seg_len = max(nbyte, max_seg_len); in ql_send_common()
5343 "total length: %d\n", frags, nbyte)); in ql_send_common()
5453 nbyte = (uint16_t)MBLKL(tp); in ql_send_common()
5454 if (nbyte == 0) in ql_send_common()
5459 (caddr_t)tp->b_rptr, nbyte, in ql_send_common()
5465 j, nbyte, ncookies)); in ql_send_common()
5560 nbyte = 0; in ql_send_common()
[all …]

12