Home
last modified time | relevance | path

Searched refs:cnt (Results 1 – 25 of 333) sorted by relevance

12345678910>>...14

/original-bsd/bin/pax/
H A Dbuf_subs.c380 int cnt;
452 if ((cnt <= 0) && ((cnt = buf_fill()) < 0))
456 cnt = MIN(cnt, res);
520 cnt = MIN(cnt, outcnt);
559 if ((cnt <= 0) && ((cnt = buf_fill()) <= 0)) {
575 cnt = MIN(cnt, incnt);
613 cnt = MIN(cnt, skcnt);
664 cnt = MIN(cnt, size);
753 if ((cnt <= 0) && ((cnt = buf_fill()) <= 0))
755 cnt = MIN(cnt, size);
[all …]
/original-bsd/usr.bin/ex/
H A Dex_vwind.c66 if (cnt > 0)
98 cnt = i;
108 cnt <= WTOP - ex_ZERO && vfit(dot - cnt, cnt) <= WTOP - ex_ZERO)
119 vrollR(cnt);
147 cnt = i;
332 int cnt;
338 cnt--;
350 vroll(cnt) in vroll() argument
373 for (; cnt > 0 && Peek_key != ATTN; cnt--) {
391 vrollR(cnt) in vrollR() argument
[all …]
H A Dex_vadj.c78 if (cnt > 0) {
79 p -= cnt;
305 int cnt; in vopenup()
350 int p, cnt; in vadjAL()
439 vscroll(cnt) in vscroll() argument
449 if (cnt < 0 || cnt > TUBELINES)
775 int p, cnt; in vadjDL()
948 cnt += l;
962 cnt = 0;
980 if (cnt > 1 && l + cnt > vcnt)
[all …]
H A Dex_voper.c31 operate(c, cnt) in operate() argument
119 vrep(cnt);
132 Xcnt = cnt;
325 for (; cnt > 0; cnt--)
349 cnt += 8;
350 vmovcol = cnt;
372 if (cnt > 1) {
375 cnt--;
415 cnt = INF;
743 word(op, cnt)
[all …]
H A Dex_vops.c70 register int cnt; local
114 cnt = dot - addr;
115 if (cnt < 0 || cnt > vcnt || state != VISUAL) {
123 vcline = cnt;
302 if (cnt) in vmove()
507 if (cnt > 1)
636 voOpen(c, cnt) in voOpen() argument
647 cnt = 1;
723 vreplace(vcline, cnt, cnt); in vshftop()
857 return (cnt); in xdw()
[all …]
/original-bsd/usr.bin/vmstat.sparc/
H A Dsum.c55 struct vmmeter cnt; in dosum() local
61 kread(nl[X_CNT].n_value, &cnt, sizeof cnt, "cnt"); in dosum()
63 (void)printf("%9u device interrupts\n", cnt.v_intr); in dosum()
68 (void)printf("%9u traps\n", cnt.v_trap); in dosum()
69 (void)printf("%9u system calls\n", cnt.v_syscall); in dosum()
71 (void)printf("%9u swap ins\n", cnt.v_swpin); in dosum()
72 (void)printf("%9u swap outs\n", cnt.v_swpout); in dosum()
75 (void)printf("%9u page ins\n", cnt.v_pageins); in dosum()
76 (void)printf("%9u page outs\n", cnt.v_pageouts); in dosum()
77 (void)printf("%9u pages paged in\n", cnt.v_pgpgin); in dosum()
[all …]
/original-bsd/usr.bin/pascal/libpc/
H A DREMOVE.c19 register int cnt; local
27 for (cnt = 0; cnt < maxnamlen; cnt++)
28 if (name[cnt] == '\0' || name[cnt] == ' ')
30 if (cnt >= NAMSIZ) {
34 maxnamlen = cnt;
38 for (cnt = 0; cnt < maxnamlen; cnt++)
39 namebuf[cnt] = name[cnt];
40 namebuf[cnt] = '\0';
H A DGETNAME.c39 register int cnt; local
128 for (cnt = 0; cnt < maxnamlen; cnt++)
129 if (name[cnt] == '\0' || name[cnt] == ' ')
131 if (cnt >= NAMSIZ) {
135 maxnamlen = cnt;
140 for (cnt = 0; cnt < maxnamlen; cnt++)
141 filep->fname[cnt] = name[cnt];
142 filep->fname[cnt] = '\0';
H A DINCT.c23 register int cnt; local
25 for (cnt = 0; cnt < paircnt; cnt++) {
34 for (cnt = 0; cnt < singcnt; cnt++) {
/original-bsd/usr.bin/tail/
H A Dread.c127 p = sp + cnt - 1;
138 cnt = 0;
150 if (cnt) {
160 for (cnt = recno - 1; cnt >= 0; --cnt)
161 WR(lines[cnt].l, lines[cnt].len);
163 for (cnt = off - 1; cnt >= recno; --cnt)
164 WR(lines[cnt].l, lines[cnt].len);
167 for (cnt = recno; cnt < off; ++cnt)
168 WR(lines[cnt].l, lines[cnt].len);
169 for (cnt = 0; cnt < recno; ++cnt)
[all …]
/original-bsd/bin/dd/
H A Dconv.c33 int cnt; in def() local
37 for (inp = in.dbp - (cnt = in.dbrcnt); cnt--; ++inp) in def()
88 cnt && *inp++ != '\n'; --cnt); in block()
89 if (!cnt) { in block()
107 for (cnt = 0; in block()
108 cnt < maxlen && (ch = *inp++) != '\n'; ++cnt) in block()
111 for (cnt = 0; in block()
112 cnt < maxlen && (ch = *inp++) != '\n'; ++cnt) in block()
186 int cnt; in unblock() local
191 for (cnt = in.dbrcnt, inp = in.dbp; cnt--;) in unblock()
[all …]
H A Ddd.c77 u_int cnt; in setup() local
152 for (cnt = 0; cnt < 0377; ++cnt) in setup()
154 ctab[cnt] = tolower(ctab[cnt]); in setup()
156 for (cnt = 0; cnt < 0377; ++cnt) in setup()
158 ctab[cnt] = toupper(ctab[cnt]); in setup()
162 for (cnt = 0; cnt < 0377; ++cnt) in setup()
164 ctab[cnt] = ctab[tolower(cnt)]; in setup()
166 for (cnt = 0; cnt < 0377; ++cnt) in setup()
168 ctab[cnt] = ctab[toupper(cnt)]; in setup()
311 int cnt, n, nw; local
[all …]
H A Dposition.c38 int bcnt, cnt, nr, warned; in pos_in() local
52 for (bcnt = in.dbsz, cnt = in.offset, warned = 0; cnt;) { in pos_in()
57 --cnt; in pos_in()
60 --cnt; in pos_in()
93 int cnt, n; in pos_out() local
118 for (cnt = 0; cnt < out.offset; ++cnt) { in pos_out()
135 while (cnt++ < out.offset) in pos_out()
/original-bsd/sys/vm/
H A Dvm_pageout.c86 cnt.v_rev++; in vm_pageout_scan()
128 cnt.v_scan++; in vm_pageout_scan()
151 cnt.v_dfree++; in vm_pageout_scan()
196 page_shortage = cnt.v_inactive_target - cnt.v_inactive_count; in vm_pageout_scan()
508 if (cnt.v_free_target <= cnt.v_free_min) in vm_pageout()
509 cnt.v_free_target = cnt.v_free_min + 1; in vm_pageout()
529 (cnt.v_active_count + cnt.v_inactive_count) / 3; in vm_pageout()
530 if (cnt.v_inactive_target <= cnt.v_free_target) in vm_pageout()
531 cnt.v_inactive_target = cnt.v_free_target + 1; in vm_pageout()
538 if (cnt.v_free_count < cnt.v_free_target || in vm_pageout()
[all …]
/original-bsd/usr.bin/paste/
H A Dpaste.c69 int cnt; member
77 register int cnt; local
83 for (cnt = 0, head = NULL; p = *argv; ++argv, ++cnt) {
96 lp->cnt = cnt;
136 for (cnt = 0; cnt < lp->cnt; ++cnt)
152 register int cnt; local
180 cnt = 0;
193 register int cnt; local
196 for (p = arg, cnt = 0; (ch = *p++); ++arg, ++cnt)
214 if (!cnt) {
[all …]
/original-bsd/old/as.vax/
H A Dasio.c54 bwrite(p, cnt, bp) in bwrite() argument
56 register int cnt;
63 if (cnt == 0)
67 if (put > cnt)
68 put = cnt;
77 cnt -= put;
83 put = cnt - cnt % biobufsize;
93 cnt -= put;
115 if (cnt == 0)
119 if (write(biofd, bp->b_buf, cnt) != cnt) {
[all …]
/original-bsd/sys/sparc/dev/
H A Devent.c70 int s, n, cnt, error; local
100 if (cnt > n)
101 cnt = n;
103 cnt * sizeof(struct firm_event), uio);
104 n -= cnt;
110 if ((ev->ev_get = (ev->ev_get + cnt) % EV_QSIZE) != 0 ||
111 n == 0 || error || (cnt = ev->ev_put) == 0)
113 if (cnt > n)
114 cnt = n;
116 cnt * sizeof(struct firm_event), uio);
[all …]
/original-bsd/old/as.tahoe/
H A Dasio.c53 bwrite(p, cnt, bp) in bwrite() argument
55 register int cnt;
62 if (cnt == 0)
66 if (put > cnt)
67 put = cnt;
76 cnt -= put;
82 put = cnt - cnt % BUFSIZ;
92 cnt -= put;
114 if (cnt == 0)
118 if (write(biofd, bp->b_buf, cnt) != cnt) {
[all …]
/original-bsd/sys/kern/
H A Dkern_subr.c28 u_int cnt; local
39 cnt = iov->iov_len;
40 if (cnt == 0) {
45 if (cnt > n)
46 cnt = n;
66 iov->iov_base += cnt;
67 iov->iov_len -= cnt;
68 uio->uio_resid -= cnt;
69 uio->uio_offset += cnt;
70 cp += cnt;
[all …]
/original-bsd/old/adb/common_source/
H A Daccess.c39 int cnt;
52 bzero(localaddr, cnt);
53 return (cnt);
57 if (ret != cnt)
91 ret = cnt;
95 if (ret != cnt)
195 register int cnt;
208 while (cnt != 0) {
209 if (cnt < nbytes)
210 nbytes = cnt;
[all …]
/original-bsd/usr.bin/tr/
H A Dstr.c65 if (s->cnt-- == 0) {
72 if (s->cnt-- == 0) {
170 for (cnt = 0, func = cp->func; cnt < NCHARS; ++cnt)
171 if ((func)(cnt))
172 *p++ = cnt;
175 s->cnt = 0;
205 s->cnt = 0;
247 s->cnt = backslash(s);
250 s->cnt = 0;
286 if (++cnt == 3) {
[all …]
/original-bsd/lib/libtelnet/
H A Dmisc.c52 auth_encrypt_connect(cnt) in auth_encrypt_connect() argument
53 int cnt; in auth_encrypt_connect()
58 printd(data, cnt) in printd() argument
60 int cnt;
62 if (cnt > 16)
63 cnt = 16;
64 while (cnt-- > 0) {
H A Dauth.c369 int cnt;
395 : cnt;
465 int cnt;
469 if (cnt < 2)
488 int cnt;
492 if (cnt < 2)
506 int cnt;
511 if (cnt < 1) {
613 int cnt, buflen;
631 cnt -= 3;
[all …]
/original-bsd/usr.bin/ctags/
H A Dprint.c30 int cnt; in getline() local
43 else for (cnt = 0, cp = lbuf; GETC(!=, EOF) && cnt < ENDLINE; ++cnt) { in getline()
45 if (cnt > ENDLINE - 2) in getline()
48 ++cnt; in getline()
51 if (cnt > ENDLINE - 2) in getline()
54 ++cnt; in getline()
/original-bsd/lib/libc/stdlib/
H A Dsetenv.c44 register int cnt; local
47 for (p = environ, cnt = 0; *p; ++p, ++cnt);
50 (size_t)(sizeof(char *) * (cnt + 2)));
56 p = malloc((size_t)(sizeof(char *) * (cnt + 2)));
59 bcopy(environ, p, cnt * sizeof(char *));
62 environ[cnt + 1] = NULL;
63 offset = cnt;

12345678910>>...14