Home
last modified time | relevance | path

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

/titanic_41/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_41/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_41/usr/src/lib/libc/port/stdio/
H A D_filbuf.c57 size_t nbyte; in _filbuf() local
117 nbyte = 1; in _filbuf()
119 nbyte = endbuf - iop->_base; in _filbuf()
120 if ((res = read(GET_FD(iop), (char *)iop->_base, nbyte)) > 0) { in _filbuf()
/titanic_41/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_41/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_41/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_41/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_41/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_41/usr/src/lib/brand/solaris10/s10_brand/common/
H A Ds10_brand.c782 s10_getdents_common(sysret_t *rval, int fd, char *buf, size_t nbyte, in s10_getdents_common() argument
802 nbyte)); in s10_getdents_common()
811 if (nbyte > MAXGETDENTS_SIZE) in s10_getdents_common()
812 nbyte = MAXGETDENTS_SIZE; in s10_getdents_common()
813 local_buf = (char *)malloc(nbyte); in s10_getdents_common()
823 buf, nbyte); in s10_getdents_common()
837 nbyte)) != 0) { in s10_getdents_common()
919 s10_getdents(sysret_t *rval, int fd, struct dirent *buf, size_t nbyte) in s10_getdents() argument
921 return (s10_getdents_common(rval, fd, (char *)buf, nbyte, SYS_getdents, in s10_getdents()
933 s10_getdents64(sysret_t *rval, int fd, struct dirent64 *buf, size_t nbyte) in s10_getdents64() argument
[all …]
/titanic_41/usr/src/lib/libshell/common/edit/
H A Dedit.c921 static int putstack(Edit_t *ep,char string[], register int nbyte, int type)
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;
/titanic_41/usr/src/cmd/mdb/common/mdb/
H A Dmdb_modapi.c900 mdb_dump_aux_ptr(void *buf, size_t nbyte, uint64_t offset, void *arg) in mdb_dump_aux_ptr() argument
904 return (dat->func(buf, nbyte, offset, dat->arg)); in mdb_dump_aux_ptr()
917 mdb_dump_aux_partial(void *buf, size_t nbyte, uint64_t offset, void *arg) in mdb_dump_aux_partial() argument
923 result = dat->func(buf, nbyte, offset, dat->arg); in mdb_dump_aux_partial()
931 } while (count < nbyte && result == 1); in mdb_dump_aux_partial()
/titanic_41/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_41/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_41/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 …]
H A Dllib-lproc66 void *buf, size_t nbyte, uintptr_t address);
68 char *buf, size_t nbyte, uintptr_t address);
70 const void *buf, size_t nbyte, uintptr_t address);
/titanic_41/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()
H A Dmain.c2280 int nbyte; in fetchstring() local
2290 for (nbyte = 40; nbyte == 40 && leng < maxleng; addr += 40) { in fetchstring()
2291 if ((nbyte = Pread(Proc, string, 40, addr)) <= 0) in fetchstring()
2293 if (nbyte > 0 && in fetchstring()
2294 (nbyte = strlen(string)) > 0) { in fetchstring()
2295 while (leng + nbyte >= pri->str_bsize) in fetchstring()
2300 leng += nbyte; in fetchstring()
/titanic_41/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()
/titanic_41/usr/src/stand/lib/sock/
H A Dsocket.c516 socket_read(int s, void *buf, size_t nbyte, int read_timeout) in socket_read() argument
527 n = recvfrom(s, buf, nbyte, MSG_DONTWAIT, NULL, NULL); in socket_read()
546 socket_write(int s, const void *buf, size_t nbyte, struct sockaddr_in *addr) in socket_write() argument
548 return (sendto(s, buf, nbyte, 0, (struct sockaddr *)addr, in socket_write()
/titanic_41/usr/src/uts/common/io/fibre-channel/fca/qlge/
H A Dqlge.c5311 size_t nbyte, total_len; in ql_send_common() local
5338 nbyte = MBLKL(tp); in ql_send_common()
5339 total_len += nbyte; in ql_send_common()
5340 max_seg_len = max(nbyte, max_seg_len); in ql_send_common()
5342 "total length: %d\n", frags, nbyte)); in ql_send_common()
5452 nbyte = (uint16_t)MBLKL(tp); in ql_send_common()
5453 if (nbyte == 0) in ql_send_common()
5458 (caddr_t)tp->b_rptr, nbyte, in ql_send_common()
5464 j, nbyte, ncookies)); in ql_send_common()
5559 nbyte = 0; in ql_send_common()
[all …]
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/telnet/
H A Dcommands.c380 int nbyte; /* Number of bytes to send this command */ member
468 count += s->nbyte;