Home
last modified time | relevance | path

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

12345678910>>...40

/freebsd/bin/pax/
H A Dbuf_subs.c205 off_t cnt; in appnd_start() local
234 if ((cnt = (skcnt/blksz) * blksz) < skcnt) in appnd_start()
235 cnt += blksz; in appnd_start()
236 if (ar_rev((off_t)cnt) < 0) in appnd_start()
244 if ((cnt -= skcnt) > 0) { in appnd_start()
260 bufpt = buf + cnt; in appnd_start()
369 pback(char *pt, int cnt) in pback() argument
371 bufpt -= cnt; in pback()
372 memcpy(bufpt, pt, cnt); in pback()
388 off_t cnt; in rd_skip() local
[all …]
/freebsd/lib/libcrypt/
H A Dcrypt-sha256.c69 size_t salt_len, key_len, cnt, rounds; in crypt_sha256() local
127 for (cnt = key_len; cnt > 32; cnt -= 32) in crypt_sha256()
129 SHA256_Update(&ctx, alt_result, cnt); in crypt_sha256()
133 for (cnt = key_len; cnt > 0; cnt >>= 1) in crypt_sha256()
134 if ((cnt & 1) != 0) in crypt_sha256()
146 for (cnt = 0; cnt < key_len; ++cnt) in crypt_sha256()
154 for (cnt = key_len; cnt >= 32; cnt -= 32) { in crypt_sha256()
158 memcpy(cp, temp_result, cnt); in crypt_sha256()
164 for (cnt = 0; cnt < 16 + alt_result[0]; ++cnt) in crypt_sha256()
172 for (cnt = salt_len; cnt >= 32; cnt -= 32) { in crypt_sha256()
[all …]
H A Dcrypt-sha512.c69 size_t salt_len, key_len, cnt, rounds; in crypt_sha512() local
127 for (cnt = key_len; cnt > 64; cnt -= 64) in crypt_sha512()
129 SHA512_Update(&ctx, alt_result, cnt); in crypt_sha512()
133 for (cnt = key_len; cnt > 0; cnt >>= 1) in crypt_sha512()
134 if ((cnt & 1) != 0) in crypt_sha512()
146 for (cnt = 0; cnt < key_len; ++cnt) in crypt_sha512()
154 for (cnt = key_len; cnt >= 64; cnt -= 64) { in crypt_sha512()
158 memcpy(cp, temp_result, cnt); in crypt_sha512()
164 for (cnt = 0; cnt < 16 + alt_result[0]; ++cnt) in crypt_sha512()
172 for (cnt = salt_len; cnt >= 64; cnt -= 64) { in crypt_sha512()
[all …]
/freebsd/usr.sbin/nfsdumpstate/
H A Dnfsdumpstate.c120 int cnt, i; in dump_openstate() local
136 cnt = 0; in dump_openstate()
137 while (dp[cnt].ndcl_clid.nclid_idlen > 0 && cnt < DUMPSIZE) { in dump_openstate()
138 printf("%-13s ", client_flags(dp[cnt].ndcl_flags)); in dump_openstate()
140 dp[cnt].ndcl_nopenowners, in dump_openstate()
141 dp[cnt].ndcl_nopens, in dump_openstate()
142 dp[cnt].ndcl_nlockowners, in dump_openstate()
143 dp[cnt].ndcl_nlocks, in dump_openstate()
144 dp[cnt].ndcl_ndelegs, in dump_openstate()
145 dp[cnt].ndcl_nolddelegs); in dump_openstate()
[all …]
/freebsd/usr.bin/tail/
H A Dread.c143 int blen, cnt, recno, wrap; in lines() local
148 blen = cnt = recno = wrap = 0; in lines()
152 if (++cnt > blen) { in lines()
155 p = sp + cnt - 1; in lines()
159 if ((int)llines[recno].blen < cnt) { in lines()
160 llines[recno].blen = cnt + 256; in lines()
165 bcopy(sp, llines[recno].l, llines[recno].len = cnt); in lines()
166 cnt = 0; in lines()
179 if (cnt) { in lines()
182 llines[recno].len = cnt; in lines()
[all …]
/freebsd/bin/dd/
H A Dconv.c56 size_t cnt; in def() local
59 for (inp = in.dbp - (cnt = in.dbrcnt); cnt--; ++inp) in def()
100 size_t cnt, maxlen; in block() local
111 for (inp = in.db, cnt = in.dbrcnt; cnt && *inp++ != '\n'; --cnt) in block()
113 if (!cnt) { in block()
120 in.dbcnt = cnt - 1; in block()
121 in.dbp = inp + cnt - 1; in block()
132 for (cnt = 0; cnt < maxlen && (ch = *inp++) != '\n'; in block()
133 ++cnt) in block()
136 for (cnt = 0; cnt < maxlen && (ch = *inp++) != '\n'; in block()
[all …]
H A Ddd.c134 u_int cnt; in setup() local
259 for (cnt = 0; cnt <= 0377; ++cnt) in setup()
260 casetab[cnt] = ctab[cnt]; in setup()
262 for (cnt = 0; cnt <= 0377; ++cnt) in setup()
263 casetab[cnt] = cnt; in setup()
270 for (cnt = 200; cnt <= 0377; ++cnt) in setup()
271 casetab[cnt] = casetab[cnt & 0x7f]; in setup()
274 for (cnt = 0; cnt <= 0377; ++cnt) in setup()
275 casetab[cnt] = tolower(casetab[cnt]); in setup()
277 for (cnt = 0; cnt <= 0377; ++cnt) in setup()
[all …]
/freebsd/usr.bin/paste/
H A Dpaste.c111 int cnt; member
119 int cnt; in parallel() local
126 for (cnt = 0, head = tmp = NULL; (p = *argv); ++argv, ++cnt) { in parallel()
134 lp->cnt = cnt; in parallel()
144 for (opencnt = cnt; opencnt;) { in parallel()
147 if (output && lp->cnt && in parallel()
148 (ch = delim[(lp->cnt - 1) % delimcnt])) in parallel()
156 if (output && lp->cnt && in parallel()
157 (ch = delim[(lp->cnt - 1) % delimcnt])) in parallel()
167 for (cnt = 0; cnt < lp->cnt; ++cnt) in parallel()
[all …]
/freebsd/sys/powerpc/powerpc/
H A Dbus_machdep.c238 native_bs_rm_1(bus_space_handle_t bsh, bus_size_t ofs, uint8_t *addr, size_t cnt) in native_bs_rm_1() argument
240 ins8(__ppc_ba(bsh, ofs), addr, cnt); in native_bs_rm_1()
244 native_bs_rm_2(bus_space_handle_t bsh, bus_size_t ofs, uint16_t *addr, size_t cnt) in native_bs_rm_2() argument
246 ins16(__ppc_ba(bsh, ofs), addr, cnt); in native_bs_rm_2()
250 native_bs_rm_4(bus_space_handle_t bsh, bus_size_t ofs, uint32_t *addr, size_t cnt) in native_bs_rm_4() argument
252 ins32(__ppc_ba(bsh, ofs), addr, cnt); in native_bs_rm_4()
256 native_bs_rm_8(bus_space_handle_t bsh, bus_size_t ofs, uint64_t *addr, size_t cnt) in native_bs_rm_8() argument
258 ins64(__ppc_ba(bsh, ofs), addr, cnt); in native_bs_rm_8()
262 native_bs_rr_1(bus_space_handle_t bsh, bus_size_t ofs, uint8_t *addr, size_t cnt) in native_bs_rr_1() argument
266 while (cnt--) in native_bs_rr_1()
[all …]
H A Duio_machdep.c66 size_t cnt; in uiomove_fromphys() local
85 cnt = iov->iov_len; in uiomove_fromphys()
86 if (cnt == 0) { in uiomove_fromphys()
91 if (cnt > n) in uiomove_fromphys()
92 cnt = n; in uiomove_fromphys()
94 cnt = min(cnt, PAGE_SIZE - page_offset); in uiomove_fromphys()
105 error = copyout(cp, iov->iov_base, cnt); in uiomove_fromphys()
108 error = copyin(iov->iov_base, cp, cnt); in uiomove_fromphys()
119 bcopy(cp, iov->iov_base, cnt); in uiomove_fromphys()
122 bcopy(iov->iov_base, cp, cnt); in uiomove_fromphys()
[all …]
/freebsd/crypto/openssl/crypto/
H A Dppccpuid.pl209 my ($out,$cnt,$max)=("r3","r4","r5");
217 mtctr $cnt
239 mr r3,$cnt
249 mr r0,$cnt
250 slwi $cnt,$cnt,2
285 sub. $cnt,$cnt,$tick # conditional --$cnt
290 srwi $cnt,$cnt,2
291 sub r3,r0,$cnt
301 mtctr $cnt
323 mr r3,$cnt
[all …]
/freebsd/contrib/ofed/libibmad/
H A Ddump.c799 int cnt; in mad_dump_portinfo() local
801 cnt = _dump_fields(buf, bufsz, val, IB_PORT_FIRST_F, IB_PORT_LAST_F); in mad_dump_portinfo()
802 if (cnt < 0) in mad_dump_portinfo()
805 _dump_fields(buf + cnt, bufsz - cnt, val, in mad_dump_portinfo()
821 int cnt, cnt2; in mad_dump_perfcounters() local
823 cnt = _dump_fields(buf, bufsz, val, in mad_dump_perfcounters()
825 if (cnt < 0) in mad_dump_perfcounters()
828 cnt2 = _dump_fields(buf + cnt, bufsz - cnt, val, in mad_dump_perfcounters()
833 _dump_fields(buf + cnt + cnt2, bufsz - cnt - cnt2, val, in mad_dump_perfcounters()
839 int cnt; in mad_dump_perfcounters_ext() local
[all …]
/freebsd/contrib/nvi/ex/
H A Dex_z.c34 recno_t cnt, equals, lno; in ex_z() local
51 cnt = cmdp->count; in ex_z()
53 cnt = O_VAL(sp, O_WINDOW) - 1; in ex_z()
63 if (lno > cnt * 2) in ex_z()
64 cmdp->addr1.lno = (lno - cnt * 2) + 1; in ex_z()
67 cmdp->addr2.lno = (cmdp->addr1.lno + cnt) - 1; in ex_z()
70 cmdp->addr1.lno = lno > cnt ? (lno - cnt) + 1 : 1; in ex_z()
82 cnt = (cnt - 1) / 2; in ex_z()
83 cmdp->addr1.lno = lno > cnt ? lno - cnt : 1; in ex_z()
84 cmdp->addr2.lno = lno + cnt; in ex_z()
[all …]
/freebsd/contrib/netcat/
H A Dsocks.c134 size_t cnt; in socks_connect() local
168 cnt = atomicio(vwrite, proxyfd, buf, 3); in socks_connect()
169 if (cnt != 3) in socks_connect()
170 err(1, "write failed (%zu/3)", cnt); in socks_connect()
172 cnt = atomicio(read, proxyfd, buf, 2); in socks_connect()
173 if (cnt != 2) in socks_connect()
174 err(1, "read failed (%zu/3)", cnt); in socks_connect()
221 cnt = atomicio(vwrite, proxyfd, buf, wlen); in socks_connect()
222 if (cnt != wlen) in socks_connect()
223 err(1, "write failed (%zu/%zu)", cnt, wlen); in socks_connect()
[all …]
/freebsd/sys/i386/i386/
H A Duio_machdep.c63 size_t cnt; in uiomove_fromphys() local
81 cnt = iov->iov_len; in uiomove_fromphys()
82 if (cnt == 0) { in uiomove_fromphys()
87 if (cnt > n) in uiomove_fromphys()
88 cnt = n; in uiomove_fromphys()
90 cnt = min(cnt, PAGE_SIZE - page_offset); in uiomove_fromphys()
99 error = copyout(cp, iov->iov_base, cnt); in uiomove_fromphys()
102 error = copyin(iov->iov_base, cp, cnt); in uiomove_fromphys()
114 bcopy(cp, iov->iov_base, cnt); in uiomove_fromphys()
117 bcopy(iov->iov_base, cp, cnt); in uiomove_fromphys()
[all …]
/freebsd/sys/arm/arm/
H A Duio_machdep.c63 size_t cnt; in uiomove_fromphys() local
82 cnt = iov->iov_len; in uiomove_fromphys()
83 if (cnt == 0) { in uiomove_fromphys()
88 if (cnt > n) in uiomove_fromphys()
89 cnt = n; in uiomove_fromphys()
91 cnt = min(cnt, PAGE_SIZE - page_offset); in uiomove_fromphys()
99 error = copyout(cp, iov->iov_base, cnt); in uiomove_fromphys()
102 error = copyin(iov->iov_base, cp, cnt); in uiomove_fromphys()
113 bcopy(cp, iov->iov_base, cnt); in uiomove_fromphys()
116 bcopy(iov->iov_base, cp, cnt); in uiomove_fromphys()
[all …]
/freebsd/usr.bin/tr/
H A Dtr.c66 wint_t ch, cnt, lastch; in main() local
213 s1.cnt == 1 && s2.cnt == 1) { in main()
221 } while (s1.state == CCLASS_LOWER && s1.cnt > 1); in main()
226 } while (s2.state == CCLASS_UPPER && s2.cnt > 1); in main()
230 s1.cnt == 1 && s2.cnt == 1) { in main()
238 } while (s1.state == CCLASS_UPPER && s1.cnt > 1); in main()
243 } while (s2.state == CCLASS_LOWER && s2.cnt > 1); in main()
267 for (cnt = 0; cnt < WINT_MAX; cnt++) { in main()
268 if (Cflag && !iswrune(cnt)) in main()
270 if (cmap_lookup(map, cnt) == OOBCH) { in main()
[all …]
/freebsd/contrib/sendmail/libsm/
H A Dt-sem.c165 int cnt = 0; local
208 cnt = 0;
215 ++cnt;
217 } while (r < 0 && cnt <= MAX_CNT);
223 cnt = 0;
230 ++cnt;
232 } while (r < 0 && cnt <= MAX_CNT);
238 cnt = 0;
245 ++cnt;
247 } while (r <= 0 && cnt <= MAX_CNT);
[all …]
/freebsd/sys/riscv/riscv/
H A Duio_machdep.c60 size_t cnt; in uiomove_fromphys() local
80 cnt = iov->iov_len; in uiomove_fromphys()
81 if (cnt == 0) { in uiomove_fromphys()
86 if (cnt > n) in uiomove_fromphys()
87 cnt = n; in uiomove_fromphys()
89 cnt = min(cnt, PAGE_SIZE - page_offset); in uiomove_fromphys()
100 error = copyout(cp, iov->iov_base, cnt); in uiomove_fromphys()
103 error = copyin(iov->iov_base, cp, cnt); in uiomove_fromphys()
112 bcopy(cp, iov->iov_base, cnt); in uiomove_fromphys()
115 bcopy(iov->iov_base, cp, cnt); in uiomove_fromphys()
[all …]
/freebsd/sys/arm64/arm64/
H A Duio_machdep.c60 size_t cnt; in uiomove_fromphys() local
80 cnt = iov->iov_len; in uiomove_fromphys()
81 if (cnt == 0) { in uiomove_fromphys()
86 if (cnt > n) in uiomove_fromphys()
87 cnt = n; in uiomove_fromphys()
89 cnt = min(cnt, PAGE_SIZE - page_offset); in uiomove_fromphys()
100 error = copyout(cp, iov->iov_base, cnt); in uiomove_fromphys()
103 error = copyin(iov->iov_base, cp, cnt); in uiomove_fromphys()
112 bcopy(cp, iov->iov_base, cnt); in uiomove_fromphys()
115 bcopy(iov->iov_base, cp, cnt); in uiomove_fromphys()
[all …]
/freebsd/sys/amd64/amd64/
H A Duio_machdep.c62 size_t cnt; in uiomove_fromphys() local
82 cnt = iov->iov_len; in uiomove_fromphys()
83 if (cnt == 0) { in uiomove_fromphys()
88 if (cnt > n) in uiomove_fromphys()
89 cnt = n; in uiomove_fromphys()
91 cnt = min(cnt, PAGE_SIZE - page_offset); in uiomove_fromphys()
102 error = copyout(cp, iov->iov_base, cnt); in uiomove_fromphys()
105 error = copyin(iov->iov_base, cp, cnt); in uiomove_fromphys()
114 bcopy(cp, iov->iov_base, cnt); in uiomove_fromphys()
117 bcopy(iov->iov_base, cp, cnt); in uiomove_fromphys()
[all …]
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/
H A Dzfs_uio.c69 ulong_t cnt; in zfs_uiomove_iov() local
72 cnt = MIN(iov->iov_len - skip, n); in zfs_uiomove_iov()
80 if (copy_to_user(iov->iov_base+skip, p, cnt)) in zfs_uiomove_iov()
86 (iov->iov_base + skip), cnt)) { in zfs_uiomove_iov()
92 (iov->iov_base + skip), cnt); in zfs_uiomove_iov()
97 (iov->iov_base + skip), cnt); in zfs_uiomove_iov()
101 cnt - b_left; in zfs_uiomove_iov()
113 memcpy(iov->iov_base + skip, p, cnt); in zfs_uiomove_iov()
115 memcpy(p, iov->iov_base + skip, cnt); in zfs_uiomove_iov()
120 skip += cnt; in zfs_uiomove_iov()
[all …]
/freebsd/contrib/llvm-project/openmp/runtime/src/
H A Dkmp_safe_c_api.h36 #define KMP_MEMCPY(dst, src, cnt) memcpy_s(dst, cnt, src, cnt) argument
49 #define KMP_STRNCPY(dst, src, cnt) strncpy_s(dst, cnt, src, cnt)
52 #define KMP_VSNPRINTF(dst, cnt, fmt, arg) \
53 vsnprintf_s(dst, cnt, _TRUNCATE, fmt, arg)
64 #define KMP_MEMCPY_S(dst, bsz, src, cnt) memcpy(dst, src, cnt)
[all...]
/freebsd/tests/sys/cddl/zfs/tests/snapshot/
H A Dsnapshot_015_pos.ksh95 typeset -i cnt=0
96 while ((cnt < snap_cnt)); do
97 testfile=$mntpnt/testfile.$cnt
99 log_must $MKDIR $mntpnt/$(get_snapdir_name)/snap.$cnt
100 if ! datasetexists $fs@snap.$cnt ; then
101 log_fail "ERROR: $fs@snap.$cnt should exists."
104 ((cnt += 1))
108 ((cnt = RANDOM % snap_cnt))
109 log_must $ZFS rollback -r $fs@snap.$cnt
114 if ((i <= cnt)); then
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/snapshot/
H A Dsnapshot_015_pos.ksh85 typeset -i cnt=0
86 while ((cnt < snap_cnt)); do
87 testfile=$mntpnt/testfile.$cnt
89 log_must mkdir $snapdir/snapshot/snap.$cnt
90 if ! datasetexists $fs@snap.$cnt ; then
91 log_fail "ERROR: $fs@snap.$cnt should exists."
94 ((cnt += 1))
98 ((cnt = RANDOM % snap_cnt))
99 log_must zfs rollback -r $fs@snap.$cnt
104 if ((i <= cnt)); then
[all …]

12345678910>>...40