Home
last modified time | relevance | path

Searched refs:nleft (Results 1 – 25 of 35) sorted by relevance

12

/titanic_51/usr/src/contrib/ast/src/lib/libcmd/
H A Drevlib.c39 register int n, nleft=0; in rev_line() local
74 if(nleft==0) in rev_line()
78 nleft= 1; in rev_line()
85 nleft += cpold-cp; in rev_line()
92 if(nleft) in rev_line()
94 if(nleft==1) in rev_line()
96 else if(sfmove(in,out,nleft,-1) != nleft) in rev_line()
98 nleft = 0; in rev_line()
105 if(nleft) in rev_line()
[all...]
H A Dtail.c205 register Sfoff_t nleft = number; in pipetail() local
219 if ((nleft -= n) <= 0) in pipetail()
223 nleft = number; in pipetail()
226 if (nleft == number) in pipetail()
240 if ((n = number - nleft) > 0) in pipetail()
/titanic_51/usr/src/lib/libcmd/common/
H A Drevlib.c39 register int n, nleft=0; in rev_line() local
74 if(nleft==0) in rev_line()
78 nleft= 1; in rev_line()
85 nleft += cpold-cp; in rev_line()
92 if(nleft) in rev_line()
94 if(nleft==1) in rev_line()
96 else if(sfmove(in,out,nleft,-1) != nleft) in rev_line()
98 nleft = 0; in rev_line()
105 if(nleft) in rev_line()
108 if(sfmove(in,out,nleft,-1) != nleft) in rev_line()
H A Dtail.c205 register Sfoff_t nleft = number; in pipetail() local
219 if ((nleft -= n) <= 0) in pipetail()
223 nleft = number; in pipetail()
226 if (nleft == number) in pipetail()
240 if ((n = number - nleft) > 0) in pipetail()
/titanic_51/usr/src/lib/libbc/libc/stdio/common/
H A Dfwrite.c54 register unsigned nleft; local
63 nleft = count*size;
69 if (((iop->_flag & _IONBF) != 0) || (nleft >= BUFSIZ)) {
70 if ((n=write(fileno(iop),ptr,nleft)) != nleft)
84 return (count - (nleft + size - 1)/size);
85 n = MIN(nleft, n);
91 if ((nleft -= n) == 0) {
H A Dfread.c49 unsigned int nleft; in fread() local
53 nleft = count * size; in fread()
61 return (count - (nleft + size - 1)/size); in fread()
65 n = MIN(nleft, iop->_cnt); in fread()
70 if ((nleft -= n) == 0) in fread()
/titanic_51/usr/src/cmd/mdb/common/mdb/
H A Dmdb_pipeio.c80 size_t n, nleft; in pio_read() local
85 for (nleft = nbytes; nleft == nbytes; nleft -= n) { in pio_read()
95 n = MIN(pd->pipe_used, nleft); in pio_read()
132 if (nleft == nbytes) { in pio_read()
139 return (nbytes - nleft); in pio_read()
146 size_t n, nleft; in pio_write() local
151 for (nleft = nbytes; nleft ! in pio_write()
[all...]
H A Dmdb_io.c1764 size_t m, n, nleft = nbytes; in mdb_iob_nputs() local
1780 while ((p = strnpbrk(q, "\t\n", nleft)) != NULL) { in mdb_iob_nputs()
1789 nleft -= (size_t)(p - q) + 1; /* Update byte count */ in mdb_iob_nputs()
1799 while (nleft != 0) { in mdb_iob_nputs()
1808 m = MIN(nleft, n); /* copy at most n bytes in this pass */ in mdb_iob_nputs()
1811 nleft -= m; in mdb_iob_nputs()
1817 if (m == n && nleft != 0) { in mdb_iob_nputs()
/titanic_51/usr/src/lib/libtecla/common/
H A Dcplfile.c241 int nleft; /* The number of characters still to be processed */ in _cf_complete_file() local
260 nleft = word_end - word_start; in _cf_complete_file()
269 if(nleft > 0 && *lptr == '~') { in _cf_complete_file()
271 if(!cf_read_name(cf, "User", ++lptr, --nleft, cf->usrnam, USR_LEN)) in _cf_complete_file()
278 nleft -= slen; in _cf_complete_file()
283 if(nleft > 0) { in _cf_complete_file()
296 nleft -= FS_DIR_SEP_LEN; in _cf_complete_file()
314 while(nleft > 0) { in _cf_complete_file()
320 for(seglen=0; seglen < nleft; seglen++) { in _cf_complete_file()
332 if(nleft > in _cf_complete_file()
[all...]
H A Derrmsg.c122 int nleft = ERR_MSG_LEN - msglen; in _err_record_msg() local
131 if(nleft > 0) { in _err_record_msg()
132 int nnew = slen < nleft ? slen : nleft; in _err_record_msg()
H A Dchrqueue.c180 int nleft; /* The amount of space remaining in cq->buffers.tail */ in _glq_append_chars() local
244 nleft = GL_CQ_SIZE - boff; in _glq_append_chars()
252 nnew = nleft < ntodo ? nleft : ntodo; in _glq_append_chars()
/titanic_51/usr/src/boot/lib/libc/string/
H A Dstrlcpy.c34 size_t nleft = dsize; in strlcpy() local
37 if (nleft != 0) { in strlcpy()
38 while (--nleft != 0) { in strlcpy()
45 if (nleft == 0) { in strlcpy()
/titanic_51/usr/src/lib/libkmf/ber_der/common/
H A Dio.c53 size_t nleft; in kmfber_read() local
55 nleft = ber->ber_end - ber->ber_ptr; in kmfber_read()
56 actuallen = nleft < len ? nleft : len; in kmfber_read()
/titanic_51/usr/src/lib/libslp/clib/
H A Dslp_net.c576 size_t nleft; in slp_tcp_read() local
581 nleft = 5; in slp_tcp_read()
583 while (nleft != 0) { in slp_tcp_read()
592 nleft -= nread; in slp_tcp_read()
607 nleft = len - 5; in slp_tcp_read()
609 while (nleft != 0) { in slp_tcp_read()
610 if ((nread = read(sockfd, p, nleft)) < 0) { in slp_tcp_read()
624 nleft -= nread; in slp_tcp_read()
/titanic_51/usr/src/cmd/cmd-inet/usr.bin/rdist/
H A Dexpand.c36 int nleft; variable
98 nleft = NCARGS - 4;
603 nleft -= len;
604 if (nleft <= 0 || ++eargc >= GAVSIZ)
/titanic_51/usr/src/cmd/vi/port/
H A Dex_temp.c164 nl = nleft; in getaline()
169 nl = nleft; in getaline()
186 nl = nleft; in putline()
200 nl = nleft; in putline()
237 nleft = BUFSIZE - off;
H A Dex_temp.h98 var short nleft; /* Number usable chars left in output buffer */ variable
H A Dexrecover.c765 nl = nleft; in getaline()
770 nl = nleft; in getaline()
792 nleft = BUFSIZE - off;
H A Dex_io.c265 int nleft = NCARGS; in glob() local
317 if (--nleft <= 0) in glob()
321 --nleft; in glob()
/titanic_51/usr/src/cmd/cmd-inet/usr.lib/ilbd/ilb/
H A Dilb_probe.c135 int nleft = len; in in_cksum() local
147 while (nleft > 1) { in in_cksum()
149 nleft -= 2; in in_cksum()
153 if (nleft == 1) { in in_cksum()
/titanic_51/usr/src/psm/stand/boot/sparc/common/
H A Dwanboot.c473 long nleft; in write_msg_to_ramdisk() local
499 nleft = ramdisk_size - *offset; in write_msg_to_ramdisk()
501 if (nleft > sizeof (buffer)) in write_msg_to_ramdisk()
502 nleft = sizeof (buffer); in write_msg_to_ramdisk()
504 len = http_read_body(handle, addr, nleft); in write_msg_to_ramdisk()
/titanic_51/usr/src/lib/libldap5/sources/ldap/ber/
H A Dio.c213 ber_uint_t nleft; in ber_read() local
215 nleft = ber->ber_end - ber->ber_ptr; in ber_read()
216 actuallen = nleft < len ? nleft : len; in ber_read()
/titanic_51/usr/src/cmd/cmd-inet/usr.lib/vrrpd/
H A Dvrrpd.c3984 int nleft; in in_cksum() local
3989 nleft = plen; in in_cksum()
3991 while (nleft > 1) { in in_cksum()
3993 nleft -= 2; in in_cksum()
3997 if (nleft == 1) { in in_cksum()
4030 int nleft; in vrrp_cksum4() local
4046 nleft = sizeof (struct pshv4); in vrrp_cksum4()
4048 while (nleft > 0) { in vrrp_cksum4()
4050 nleft -= 2; in vrrp_cksum4()
4075 int nleft; in vrrp_cksum6() local
[all...]
/titanic_51/usr/src/cmd/ed/
H A Ded.c246 static int nleft; variable
1675 nl = nleft; in getaline()
1680 nl = nleft; in getaline()
1696 nl = nleft; in putline()
1706 nl = nleft; in putline()
1729 nleft = 512 - off; in getblock()
/titanic_51/usr/src/lib/libshell/common/sh/
H A Dnvtree.c1045 int nleft = 0; in put_tree() local
1071 nleft = array_elem(ap); in put_tree()
1072 if(nleft==0) in put_tree()

12