Home
last modified time | relevance | path

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

12

/titanic_53/usr/src/cmd/cmd-inet/usr.bin/ftp/
H A Dsecure.c210 secure_write(int fd, const void *inbuf, size_t nbyte) in secure_write() argument
217 return (write(fd, buf, nbyte)); in secure_write()
218 for (i = 0; nbyte > 0; nbyte--) in secure_write()
230 static int secure_putbuf(int fd, uchar_t *buf, uint_t nbyte) in secure_putbuf() argument
245 in_buf.length = nbyte; in secure_putbuf()
367 secure_read(int fd, void *inbuf, size_t nbyte) in secure_read() argument
373 return (read(fd, buf, nbyte)); in secure_read()
377 for (i = 0; nbyte > 0; nbyte--) in secure_read()
/titanic_53/usr/src/lib/libwanboot/common/
H A Dsocket_inet.c49 socket_read(int fildes, void *buf, size_t nbyte, int read_timeout) in socket_read() argument
66 return (recv(fildes, buf, nbyte, 0)); in socket_read()
80 socket_write(int fildes, const void *buf, size_t nbyte, in socket_write() argument
83 return (sendto(fildes, buf, nbyte, 0, (struct sockaddr *)addr, in socket_write()
/titanic_53/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()
/titanic_53/usr/src/lib/libcurses/screen/
H A Dmbaddch.c149 int n, x, y, nc, m, len, nbyte, ty; in _mbaddch() local
190 nbyte = win->_nbyte; in _mbaddch()
196 if (len > win->_maxx || 2*len < nbyte) in _mbaddch()
223 for (m = nbyte/2; m > 0; m -= 1, wch += 2) in _mbaddch()
228 if ((nbyte%2) != 0) in _mbaddch()
232 for (m = (nbyte / 2) + (nbyte % 2); m < len; ++m) in _mbaddch()
H A Dwgetstr.c61 int nbyte = 0; in wgetnstr() local
97 while (nbyte < n) { in wgetnstr()
116 nbyte = 0; in wgetnstr()
183 nbyte++; in wgetnstr()
/titanic_53/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) in read() argument
54 return (_read(fildes, buf, nbyte)); in read()
/titanic_53/usr/src/boot/sys/boot/common/
H A Dufsread.c217 fsread_size(ufs_ino_t inode, void *buf, size_t nbyte, size_t *fsizep) in fsread_size() argument
228 if ((buf == NULL && nbyte != 0) || dmadat == NULL) in fsread_size()
297 if (nbyte > n) in fsread_size()
298 nbyte = n; in fsread_size()
299 nb = nbyte; in fsread_size()
356 return nbyte; in fsread_size()
360 fsread(ufs_ino_t inode, void *buf, size_t nbyte) in fsread() argument
363 return fsread_size(inode, buf, nbyte, NULL); in fsread()
/titanic_53/usr/src/boot/lib/libstand/
H A Ddosfs.c282 dos_read(struct open_file *fd, void *buf, size_t nbyte, size_t *resid) in dos_read() argument
295 nb = (u_int)nbyte; in dos_read()
333 *resid = nbyte - nb + cnt; in dos_read()
757 u_int val_in, val_out, offset, blknum, nbyte; in fatget() local
768 nbyte = fs->fatsz != 32 ? 2 : 4; in fatget()
769 if (offset + nbyte > secbyt(fs->spf)) in fatget()
773 if (offset + nbyte > FATBLKSZ) in fatget()
818 ioread(DOS_FS *fs, u_int offset, void *buf, size_t nbyte) in ioread() argument
828 if ((n = SECSIZ - off) > nbyte) in ioread()
829 n = nbyte; in ioread()
[all …]
/titanic_53/usr/src/tools/btxld/
H A Dbtxld.c447 copy(int fdi, int fdo, size_t nbyte, off_t offset) in copy() argument
452 while (nbyte) { in copy()
453 if ((n = sizeof(buf)) > nbyte) in copy()
454 n = nbyte; in copy()
458 nbyte -= n; in copy()
467 readx(int fd, void *buf, size_t nbyte, off_t offset) in readx() argument
473 if ((n = read(fd, buf, nbyte)) == -1) in readx()
482 writex(int fd, const void *buf, size_t nbyte) in writex() argument
486 if ((n = write(fd, buf, nbyte)) == -1) in writex()
488 if ((size_t)n != nbyte) in writex()
/titanic_53/usr/src/uts/common/avs/ns/sdbc/
H A Dsafestore.h589 #define SSOP_READ_CBLOCK(ssp, resource, buf, nbyte, srcoffset) \ argument
590 ((ssp)->ssop_read_cblock(resource, buf, nbyte, srcoffset))
609 #define SSOP_WRITE_CBLOCK(ssp, resource, buf, nbyte, destoffset) \ argument
610 ((ssp)->ssop_write_cblock(resource, buf, nbyte, destoffset))
/titanic_53/usr/src/lib/fm/topo/modules/common/nic/
H A Dtopo_nic.c83 uint_t nbyte; in nic_create_transceiver() local
89 LIBSFF_KEY_OUI, &oui, &nbyte) == 0 && nbyte == 3) { in nic_create_transceiver()
/titanic_53/usr/src/boot/sys/boot/arm/at91/boot2/
H A Dboot2.c78 xfsread(ufs_ino_t inode, void *buf, size_t nbyte) in xfsread() argument
80 if ((size_t)fsread(inode, buf, nbyte) != nbyte) in xfsread()
/titanic_53/usr/src/lib/libsasl/lib/
H A Dcheckpw.c472 static int retry_read(int fd, void *buf0, unsigned nbyte) in retry_read() argument
478 if (nbyte == 0) return 0; in retry_read()
481 n = read(fd, buf, nbyte); in retry_read()
489 if (nread >= (int) nbyte) return nread; in retry_read()
492 nbyte -= n; in retry_read()
/titanic_53/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()
/titanic_53/usr/src/boot/sys/boot/arm/ixp425/boot2/
H A Dboot2.c78 xfsread(ufs_ino_t inode, void *buf, size_t nbyte) in xfsread() argument
80 if ((size_t)fsread(inode, buf, nbyte) != nbyte) in xfsread()
/titanic_53/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 …]
/titanic_53/usr/src/lib/iconv_modules/ko/
H A DMakefile.com65 E2NB = ko_KR-euc%ko_KR-nbyte.so
66 NB2E = ko_KR-nbyte%ko_KR-euc.so
270 $(SYMLINK) -f ko_KR-euc%ko_KR-nbyte.so $(ICONV_DIR)/ko_KR.euc%ko_KR.nbyte.so
277 $(SYMLINK) -f ko_KR-nbyte%ko_KR-euc.so $(ICONV_DIR)/ko_KR.nbyte%ko_KR.euc.so
/titanic_53/usr/src/pkg/manifests/
H A Dsystem-library-iconv-extra.mf61 file path=usr/lib/iconv/$(ARCH64)/ko_KR-euc%ko_KR-nbyte.so
65 file path=usr/lib/iconv/$(ARCH64)/ko_KR-nbyte%ko_KR-euc.so
127 file path=usr/lib/iconv/ko_KR-euc%ko_KR-nbyte.so
131 file path=usr/lib/iconv/ko_KR-nbyte%ko_KR-euc.so
205 link path=usr/lib/iconv/$(ARCH64)/ko_KR.euc%ko_KR.nbyte.so \
206 target=./ko_KR-euc%ko_KR-nbyte.so
213 link path=usr/lib/iconv/$(ARCH64)/ko_KR.nbyte%ko_KR.euc.so \
214 target=./ko_KR-nbyte%ko_KR-euc.so
317 link path=usr/lib/iconv/ko_KR.euc%ko_KR.nbyte.so \
318 target=./ko_KR-euc%ko_KR-nbyte.so
[all …]
/titanic_53/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()
/titanic_53/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) in mdb_dump_aux_ptr() argument
909 return (dat->func(buf, nbyte, offset, dat->arg)); in mdb_dump_aux_ptr()
922 mdb_dump_aux_partial(void *buf, size_t nbyte, uint64_t offset, void *arg) in mdb_dump_aux_partial() argument
928 result = dat->func(buf, nbyte, offset, dat->arg); in mdb_dump_aux_partial()
936 } while (count < nbyte && result == 1); in mdb_dump_aux_partial()
/titanic_53/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()
/titanic_53/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;
/titanic_53/usr/src/lib/libproc/common/
H A DPcontrol.c2132 size_t nbyte, /* number of bytes to read */ in Pread() argument
2135 return (P->ops.pop_pread(P, buf, nbyte, address, P->data)); in Pread()
2147 int nbyte; in Pread_string() local
2159 for (nbyte = STRSZ; nbyte == STRSZ && leng < size; addr += STRSZ) { in Pread_string()
2160 if ((nbyte = P->ops.pop_pread(P, string, STRSZ, addr, in Pread_string()
2165 if ((nbyte = strlen(string)) > 0) { in Pread_string()
2166 if (leng + nbyte > size) in Pread_string()
2167 nbyte = size - leng; in Pread_string()
2168 (void) strncpy(buf + leng, string, nbyte); in Pread_string()
2169 leng += nbyte; in Pread_string()
[all …]
/titanic_53/usr/src/cmd/truss/
H A Dprint.c92 void grow(private_t *, int nbyte);
605 ssize_t nbyte = ISWRITE(syscall)? pri->sys_args[2] : in prt_iob() local
612 if (Lsp->pr_why == PR_SYSEXIT && nbyte > IOBSIZE) { in prt_iob()
619 if (nbyte <= 0 || elsewhere) in prt_iob()
622 int nb = nbyte > IOBSIZE? IOBSIZE : (int)nbyte; in prt_iob()
630 (nb == nbyte)? in prt_iob()
1402 grow(private_t *pri, int nbyte) /* reallocate format buffer if necessary */ in grow() argument
1404 while (pri->sys_leng + nbyte >= pri->sys_ssize) in grow()
/titanic_53/usr/src/common/net/wanboot/
H A Dboot_http.c2786 http_srv_send(http_conn_t *c_id, const void *buf, size_t nbyte) in http_srv_send() argument
2791 if ((retval = SSL_write(c_id->ssl, buf, nbyte)) <= 0) { in http_srv_send()
2796 retval = socket_write(c_id->fd, buf, nbyte, &c_id->host_addr); in http_srv_send()
2806 http_srv_recv(http_conn_t *c_id, void *buf, size_t nbyte) in http_srv_recv() argument
2811 if ((retval = SSL_read(c_id->ssl, buf, nbyte)) <= 0) { in http_srv_recv()
2816 retval = socket_read(c_id->fd, buf, nbyte, c_id->read_timeout); in http_srv_recv()

12