Home
last modified time | relevance | path

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

12345678910>>...16

/mirbsd/src/bin/pax/
Dbuf_subs.c211 off_t cnt; in appnd_start() local
240 if ((cnt = (skcnt/blksz) * blksz) < skcnt) in appnd_start()
241 cnt += blksz; in appnd_start()
242 if (ar_rev((off_t)cnt) < 0) in appnd_start()
250 if ((cnt -= skcnt) > 0) { in appnd_start()
266 bufpt = buf + cnt; in appnd_start()
375 pback(char *pt, int cnt) in pback() argument
377 bufpt -= cnt; in pback()
378 memcpy(bufpt, pt, cnt); in pback()
394 off_t cnt; in rd_skip() local
[all …]
/mirbsd/src/gnu/usr.bin/perl/t/op/
Dutftaint.t27 my $cnt = 0;
44 ? "ok " : "not ok ", ++$cnt, " # tainted: $encode, before test\n";
49 ? "ok " : "not ok ", ++$cnt, " # compare: $encode, concat left\n";
52 ? "ok " : "not ok ", ++$cnt, " # tainted: $encode, concat left\n";
57 ? "ok " : "not ok ", ++$cnt, " # compare: $encode, concat right\n";
60 ? "ok " : "not ok ", ++$cnt, " # tainted: $encode, concat right\n";
64 ? "ok " : "not ok ", ++$cnt, " # compare: $encode, join left\n";
67 ? "ok " : "not ok ", ++$cnt, " # tainted: $encode, join left\n";
71 ? "ok " : "not ok ", ++$cnt, " # compare: $encode, join right\n";
74 ? "ok " : "not ok ", ++$cnt, " # tainted: $encode, join right\n";
[all …]
/mirbsd/src/usr.bin/tail/
Dread.c152 int blen, cnt, recno, wrap; local
158 blen = cnt = recno = wrap = 0;
161 if (++cnt > blen) {
164 p = sp + cnt - 1;
168 if (lines[recno].blen < cnt) {
169 lines[recno].blen = cnt + 256;
174 memcpy(lines[recno].l, sp, (lines[recno].len = cnt));
175 cnt = 0;
187 if (cnt) {
189 lines[recno].len = cnt;
[all …]
/mirbsd/src/bin/dd/
Dconv.c63 size_t cnt; in def() local
68 for (inp = in.dbp - (cnt = in.dbrcnt); cnt--; ++inp) in def()
119 size_t cnt, maxlen; in block() local
130 for (inp = in.db, cnt = in.dbrcnt; in block()
131 cnt && *inp++ != '\n'; --cnt); in block()
132 if (!cnt) { in block()
139 in.dbcnt = cnt - 1; in block()
140 in.dbp = inp + cnt - 1; in block()
150 for (cnt = 0; in block()
151 cnt < maxlen && (ch = *inp++) != '\n'; ++cnt) in block()
[all …]
Ddd.c106 u_int cnt; in setup() local
185 for (cnt = 0; cnt < 0377; ++cnt) in setup()
186 casetab[cnt] = tolower(ctab[cnt]); in setup()
188 for (cnt = 0; cnt < 0377; ++cnt) in setup()
189 casetab[cnt] = toupper(ctab[cnt]); in setup()
193 for (cnt = 0; cnt < 0377; ++cnt) in setup()
194 casetab[cnt] = tolower(cnt); in setup()
196 for (cnt = 0; cnt < 0377; ++cnt) in setup()
197 casetab[cnt] = toupper(cnt); in setup()
346 size_t cnt, n; in dd_out() local
[all …]
Dposition.c70 off_t cnt; in pos_in() local
85 for (bcnt = in.dbsz, cnt = in.offset, warned = 0; cnt;) { in pos_in()
90 --cnt; in pos_in()
93 --cnt; in pos_in()
126 off_t cnt; in pos_out() local
151 for (cnt = 0; cnt < out.offset; ++cnt) { in pos_out()
168 while (cnt++ < out.offset) in pos_out()
/mirbsd/src/usr.bin/paste/
Dpaste.c101 int cnt; member
109 int cnt; in parallel() local
116 for (cnt = 0, head = NULL; (p = *argv); ++argv, ++cnt) { in parallel()
125 lp->cnt = cnt; in parallel()
135 for (opencnt = cnt; opencnt;) { in parallel()
139 if (output && lp->cnt && in parallel()
140 (ch = delim[(lp->cnt - 1) % delimcnt])) in parallel()
148 if (output && lp->cnt && in parallel()
149 (ch = delim[(lp->cnt - 1) % delimcnt])) in parallel()
168 for (cnt = 0; cnt < lp->cnt; ++cnt) in parallel()
[all …]
/mirbsd/src/usr.bin/vi/ex/
Dex_z.c37 recno_t cnt, equals, lno; local
54 cnt = cmdp->count;
57 cnt = O_VAL(sp, O_SCROLL) * 2;
59 cnt = O_VAL(sp, O_WINDOW) - 1;
70 if (lno > cnt * 2)
71 cmdp->addr1.lno = (lno - cnt * 2) + 1;
74 cmdp->addr2.lno = (cmdp->addr1.lno + cnt) - 1;
77 cmdp->addr1.lno = lno > cnt ? (lno - cnt) + 1 : 1;
89 cnt = (cnt - 1) / 2;
90 cmdp->addr1.lno = lno > cnt ? lno - cnt : 1;
[all …]
/mirbsd/src/usr.sbin/isdn/isdntrace/
Dq921.c50 int cnt = 0; in decode_lapd() local
59 cnt++; in decode_lapd()
62 cnt++; in decode_lapd()
87 cnt += 2; in decode_lapd()
106 cnt += 2; in decode_lapd()
134 cnt++; in decode_lapd()
144 cnt = n; in decode_lapd()
152 cnt = n; in decode_lapd()
166 cnt = n; in decode_lapd()
174 cnt = n; in decode_lapd()
[all …]
/mirbsd/src/sys/arch/i386/include/
Dbus.h177 #define bus_space_read_multi_1(t, h, o, a, cnt) do { \ argument
179 insb((h) + (o), (a), (cnt)); \
180 } else {void *_addr=(a); int _cnt=(cnt); \
191 #define bus_space_read_multi_2(t, h, o, a, cnt) do { \ argument
193 insw((h) + (o), (a), (cnt)); \
194 } else {void *_addr=(a); int _cnt=(cnt); \
205 #define bus_space_read_multi_4(t, h, o, a, cnt) do { \ argument
207 insl((h) + (o), (a), (cnt)); \
208 } else {void *_addr=(a); int _cnt=(cnt); \
254 #define bus_space_read_region_1(t, h, o, a, cnt) do { \ argument
[all …]
Dpio.h77 insb(int port, void *addr, int cnt) in insb() argument
80 : "+D" (addr), "+c" (cnt) : "d" (port) : "memory", "cc"); in insb()
103 insw(int port, void *addr, int cnt) in insw() argument
106 : "+D" (addr), "+c" (cnt) : "d" (port) : "memory", "cc"); in insw()
129 insl(int port, void *addr, int cnt) in insl() argument
132 : "+D" (addr), "+c" (cnt) : "d" (port) : "memory", "cc"); in insl()
151 outsb(int port, const void *addr, int cnt) in outsb() argument
154 : "+S" (addr), "+c" (cnt) : "d" (port) : "cc"); in outsb()
173 outsw(int port, const void *addr, int cnt) in outsw() argument
176 : "+S" (addr), "+c" (cnt) : "d" (port) : "cc"); in outsw()
[all …]
/mirbsd/src/gnu/usr.sbin/sendmail/libsm/
Dt-sem.c164 int cnt = 0; local
207 cnt = 0;
214 ++cnt;
216 } while (r < 0 && cnt <= MAX_CNT);
222 cnt = 0;
229 ++cnt;
231 } while (r < 0 && cnt <= MAX_CNT);
237 cnt = 0;
244 ++cnt;
246 } while (r <= 0 && cnt <= MAX_CNT);
[all …]
/mirbsd/src/usr.bin/nc/
Dsocks.c123 size_t cnt; in socks_connect() local
152 cnt = atomicio(vwrite, proxyfd, buf, 3); in socks_connect()
153 if (cnt != 3) in socks_connect()
154 err(1, "write failed (%zu/3)", cnt); in socks_connect()
156 cnt = atomicio(read, proxyfd, buf, 2); in socks_connect()
157 if (cnt != 2) in socks_connect()
158 err(1, "read failed (%zu/3)", cnt); in socks_connect()
205 cnt = atomicio(vwrite, proxyfd, buf, wlen); in socks_connect()
206 if (cnt != wlen) in socks_connect()
207 err(1, "write failed (%zu/%zu)", cnt, wlen); in socks_connect()
[all …]
/mirbsd/src/gnu/usr.bin/lynx/src/
DLYList.c44 int cnt; in showlist() local
105 for (cnt = 1; cnt <= refs; cnt++) { in showlist()
106 HTChildAnchor *child = HText_childNextNumber(cnt, &helper); in showlist()
128 HText_FormDescNumber(cnt, &desc); in showlist()
131 cnt, cnt, desc); in showlist()
204 for (cnt = 0; cnt < hidden_links; cnt++) { in showlist()
205 StrAllocCopy(Address, HText_HiddenLinkAt(HTMainText, cnt)); in showlist()
245 int cnt; in print_refs() local
251 for (cnt = 1; cnt <= refs; cnt++) { in print_refs()
252 HTChildAnchor *child = HText_childNextNumber(cnt, &helper); in print_refs()
[all …]
/mirbsd/src/bin/stty/
Dprint.c60 int cnt, ispeed, ospeed; in print() local
63 cnt = 0; in print()
69 cnt += printf("tablet disc; "); in print()
72 cnt += printf("slip disc; "); in print()
75 cnt += printf("ppp disc; "); in print()
78 cnt += printf("strip disc; "); in print()
81 cnt += printf("#%d disc; ", ldisc); in print()
90 cnt += in print()
93 cnt += printf("speed %d baud;", ispeed); in print()
95 cnt += printf(" %d rows; %d columns;", wp->ws_row, wp->ws_col); in print()
[all …]
/mirbsd/src/usr.bin/join/
Djoin.c306 u_long cnt; in slurpit() local
324 cnt = F->setalloc; in slurpit()
330 memset(F->set + cnt, 0, 50 * sizeof(LINE)); in slurpit()
436 u_long cnt; in outoneline() local
444 for (cnt = 0; cnt < olistcnt; ++cnt) { in outoneline()
445 if (olist[cnt].filenum == F->number) in outoneline()
446 outfield(lp, olist[cnt].fieldno, 0); in outoneline()
447 else if (olist[cnt].filenum == 0) in outoneline()
457 for (cnt = 0; cnt < lp->fieldcnt; ++cnt) in outoneline()
458 if (F->joinf != cnt) in outoneline()
[all …]
/mirbsd/src/sys/dev/wscons/
Dwsevent.c134 int s, n, cnt, error; in wsevent_read() local
160 cnt = WSEVENT_QSIZE - ev->get; /* events in [get..QSIZE) */ in wsevent_read()
162 cnt = ev->put - ev->get; /* events in [get..put) */ in wsevent_read()
165 if (cnt > n) in wsevent_read()
166 cnt = n; in wsevent_read()
168 cnt * sizeof(struct wscons_event), uio); in wsevent_read()
169 n -= cnt; in wsevent_read()
175 if ((ev->get = (ev->get + cnt) % WSEVENT_QSIZE) != 0 || in wsevent_read()
176 n == 0 || error || (cnt = ev->put) == 0) in wsevent_read()
178 if (cnt > n) in wsevent_read()
[all …]
/mirbsd/src/usr.bin/pr/
Dpr.c186 int cnt; in onecol() local
266 rc = inln(inf,lbuf,LBUF,&cnt,&cps,0,&mor); in onecol()
267 if (cnt >= 0) { in onecol()
278 if (otln(obuf,cnt+off, &ips, &ops, mor)) in onecol()
281 if (otln(lbuf, cnt, &ips, &ops, mor)) in onecol()
349 int cnt; in vertcol() local
500 rc = inln(inf,ptbf,colwd,&cnt,&cps,1,&mor); in vertcol()
501 vc[cvc++].cnt = cnt; in vertcol()
502 if (cnt >= 0) { in vertcol()
503 ptbf += cnt; in vertcol()
[all …]
/mirbsd/src/usr.bin/top/
Dutils.c109 int cnt = 0; in digits() local
112 cnt++; in digits()
115 return (cnt); in digits()
145 int cnt, ch, length, lastch; in argparse() local
154 lastch = cnt = length = 0; in argparse()
158 cnt++; in argparse()
166 cnt += 3; in argparse()
169 if ((argarray = malloc(cnt * sizeof(char *))) == NULL) in argparse()
185 cnt = 2; in argparse()
194 cnt++; in argparse()
[all …]
/mirbsd/src/usr.bin/vi/common/
Doptions.c824 int base, b_num, cnt, col, colwidth, curlen, s_num; local
854 cnt = op - optlist;
871 if (O_VAL(sp, cnt) == O_D_VAL(sp, cnt))
875 if (O_STR(sp, cnt) == O_D_STR(sp, cnt) ||
876 (O_D_STR(sp, cnt) != NULL &&
877 !strcmp(O_STR(sp, cnt), O_D_STR(sp, cnt))))
883 if (!F_ISSET(&sp->opts[cnt], OPT_SELECTED))
890 F_CLR(&sp->opts[cnt], OPT_SELECTED);
896 if (!O_ISSET(sp, cnt))
901 sizeof(nbuf), "%ld", O_VAL(sp, cnt));
[all …]
/mirbsd/src/sys/dev/rasops/
Drasops24.c129 int fb, width, height, cnt, clr[2]; local
157 for (cnt = width; cnt; cnt--) {
174 for (cnt = width; cnt; cnt--, fb <<= 1) {
520 int n9, n3, n1, cnt, stride, delta; local
582 cnt = (n9 << 5) + (n9 << 2); /* (32*n9) + (4*n9) */
583 n3 = (stride - cnt) / 12;
584 cnt += (n3 << 3) + (n3 << 2); /* (8*n3) + (4*n3) */
585 n1 = (stride - cnt) >> 2;
588 for (cnt = n9; cnt; cnt--) {
601 for (cnt = n3; cnt; cnt--) {
[all …]
/mirbsd/src/usr.bin/vi/vi/
Dvs_smap.c50 size_t cnt, oldy, oldx; local
92 for (p = HMAP, cnt = sp->t_rows; cnt--; ++p)
99 for (p = HMAP, cnt = sp->t_rows; cnt--; ++p)
179 size_t cnt; local
182 for (p = HMAP, cnt = sp->t_rows; cnt--; ++p)
228 for (p = HMAP, cnt = sp->t_rows; --cnt; ++p)
288 #define HANDLE_WEIRDNESS(cnt) { \ argument
289 if ((cnt) >= sp->t_rows) { \
355 size_t cnt_orig, cnt, coff; local
373 cnt = (TMAP - p) + 1;
[all …]
/mirbsd/src/usr.bin/telnet/
Dauth.c404 auth_send(unsigned char *data, int cnt) in auth_send() argument
419 printd(data, cnt); printf("\r\n"); in auth_send()
428 auth_send_cnt = cnt > sizeof(_auth_send_data) in auth_send()
430 : cnt; in auth_send()
438 auth_send_cnt = cnt; in auth_send()
499 auth_is(unsigned char *data, int cnt) in auth_is() argument
503 if (cnt < 2) in auth_is()
513 (*ap->is)(ap, data+2, cnt-2); in auth_is()
520 auth_reply(unsigned char *data, int cnt) in auth_reply() argument
524 if (cnt < 2) in auth_reply()
[all …]
/mirbsd/src/usr.bin/column/
Dcolumn.c138 int chcnt, col, cnt, endcol, numcols; in c_columnate() local
153 while ((cnt = ((chcnt + TAB) & ~(TAB - 1))) <= endcol) { in c_columnate()
155 chcnt = cnt; in c_columnate()
167 int base, chcnt, cnt, col, endcol, numcols, numrows, row; in r_columnate() local
183 while ((cnt = ((chcnt + TAB) & ~(TAB - 1))) <= endcol) { in r_columnate()
185 chcnt = cnt; in r_columnate()
196 int cnt; in print() local
199 for (cnt = entries, lp = list; cnt--; ++lp) in print()
213 int coloff, cnt; in maketbl() local
222 for (cnt = 0, lp = list; cnt < entries; ++cnt, ++lp, ++t) { in maketbl()
[all …]
/mirbsd/src/lib/libedit/
Dkey.c478 node_lookup(EditLine *el, const char *str, key_node_t *ptr, int cnt) in node_lookup() argument
487 (void) node_enum(el, ptr, cnt); in node_lookup()
493 ncnt = key__decode_char(el->el_key.buf, cnt, in node_lookup()
515 cnt)); in node_lookup()
527 node_enum(EditLine *el, key_node_t *ptr, int cnt) in node_enum() argument
531 if (cnt >= KEY_BUFSIZ - 5) { /* buffer too small */ in node_enum()
532 el->el_key.buf[++cnt] = '"'; in node_enum()
533 el->el_key.buf[++cnt] = '\0'; in node_enum()
547 ncnt = key__decode_char(el->el_key.buf, cnt, (unsigned char) ptr->ch); in node_enum()
558 (void) node_enum(el, ptr->sibling, cnt); in node_enum()
[all …]

12345678910>>...16