| /freebsd-14.2/bin/pax/ |
| H A D | buf_subs.c | 440 if ((cnt <= 0) && ((cnt = buf_fill()) < 0)) in rd_skip() 444 cnt = MIN(cnt, res); in rd_skip() 483 int cnt; in wr_rdbuf() local 496 cnt = MIN(cnt, outcnt); in wr_rdbuf() 520 int cnt; in rd_wrbuf() local 544 cnt = MIN(cnt, incnt); in rd_wrbuf() 576 cnt = MIN(cnt, skcnt); in wr_skip() 619 cnt = MIN(cnt, size); in wr_rdfile() 700 if ((cnt <= 0) && ((cnt = buf_fill()) <= 0)) in rd_wrfile() 702 cnt = MIN(cnt, size); in rd_wrfile() [all …]
|
| /freebsd-14.2/lib/libcrypt/ |
| H A D | crypt-sha256.c | 127 for (cnt = key_len; cnt > 32; cnt -= 32) in crypt_sha256() 133 for (cnt = key_len; cnt > 0; cnt >>= 1) 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() 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() 180 for (cnt = 0; cnt < rounds; ++cnt) { in crypt_sha256() 357 int i, cnt; in main() local 359 for (cnt = 0; cnt < (int)ntests; ++cnt) { in main() 407 for (cnt = 0; cnt < ntests2; ++cnt) { in main() [all …]
|
| H A D | crypt-sha512.c | 127 for (cnt = key_len; cnt > 64; cnt -= 64) in crypt_sha512() 133 for (cnt = key_len; cnt > 0; cnt >>= 1) 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() 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() 180 for (cnt = 0; cnt < rounds; ++cnt) { in crypt_sha512() 390 int i, cnt; in main() local 392 for (cnt = 0; cnt < (int)ntests; ++cnt) { in main() 430 for (cnt = 0; cnt < ntests2; ++cnt) { in main() [all …]
|
| /freebsd-14.2/usr.sbin/nfsdumpstate/ |
| H A D | nfsdumpstate.c | 121 int cnt, i; in dump_openstate() local 137 cnt = 0; in dump_openstate() 138 while (dp[cnt].ndcl_clid.nclid_idlen > 0 && cnt < DUMPSIZE) { in dump_openstate() 142 dp[cnt].ndcl_nopens, in dump_openstate() 144 dp[cnt].ndcl_nlocks, in dump_openstate() 170 cnt++; in dump_openstate() 181 int cnt, i; in dump_lockstate() local 200 cnt = 0; in dump_lockstate() 201 while (lp[cnt].ndlck_clid.nclid_idlen > 0 && cnt < DUMPSIZE) { in dump_lockstate() 221 lp[cnt].ndlck_end); in dump_lockstate() [all …]
|
| /freebsd-14.2/usr.bin/tail/ |
| H A D | read.c | 169 cnt = 0; in lines() 182 if (cnt) { in lines() 193 for (cnt = recno - 1; cnt >= 0; --cnt) in lines() 194 WR(llines[cnt].l, llines[cnt].len); in lines() 196 for (cnt = off - 1; cnt >= recno; --cnt) in lines() 197 WR(llines[cnt].l, llines[cnt].len); in lines() 200 for (cnt = recno; cnt < off; ++cnt) in lines() 201 WR(llines[cnt].l, llines[cnt].len); in lines() 202 for (cnt = 0; cnt < recno; ++cnt) in lines() 203 WR(llines[cnt].l, llines[cnt].len); in lines() [all …]
|
| /freebsd-14.2/bin/dd/ |
| H A D | conv.c | 62 size_t cnt; in def() local 65 for (inp = in.dbp - (cnt = in.dbrcnt); cnt--; ++inp) in def() 117 for (inp = in.db, cnt = in.dbrcnt; cnt && *inp++ != '\n'; --cnt) in block() 119 if (!cnt) { in block() 138 for (cnt = 0; cnt < maxlen && (ch = *inp++) != '\n'; in block() 139 ++cnt) in block() 142 for (cnt = 0; cnt < maxlen && (ch = *inp++) != '\n'; in block() 143 ++cnt) in block() 220 size_t cnt; in unblock() local 224 for (inp = in.dbp - (cnt = in.dbrcnt); cnt--; ++inp) in unblock() [all …]
|
| H A D | dd.c | 271 for (cnt = 0; cnt <= 0377; ++cnt) in setup() 272 casetab[cnt] = ctab[cnt]; in setup() 274 for (cnt = 0; cnt <= 0377; ++cnt) in setup() 275 casetab[cnt] = cnt; in setup() 282 for (cnt = 200; cnt <= 0377; ++cnt) in setup() 286 for (cnt = 0; cnt <= 0377; ++cnt) in setup() 289 for (cnt = 0; cnt <= 0377; ++cnt) in setup() 297 for (cnt = 0; cnt <= 0377; ++cnt) in setup() 301 for (cnt = 0; cnt <= 0377; ++cnt) in setup() 305 for (cnt = 0; cnt <= 0377; ++cnt) in setup() [all …]
|
| /freebsd-14.2/usr.bin/paste/ |
| H A D | paste.c | 124 int cnt; member 132 int cnt; in parallel() local 139 for (cnt = 0, head = tmp = NULL; (p = *argv); ++argv, ++cnt) { in parallel() 147 lp->cnt = cnt; in parallel() 180 for (cnt = 0; cnt < lp->cnt; ++cnt) in parallel() 215 cnt = needdelim = 0; in sequential() 222 cnt = 0; in sequential() 241 int cnt; in tr() local 244 for (p = arg, cnt = 0; (ch = *p++); ++arg, ++cnt) in tr() 262 if (!cnt) in tr() [all …]
|
| /freebsd-14.2/sys/powerpc/powerpc/ |
| H A D | bus_machdep.c | 261 while (cnt--) in native_bs_rr_1() 271 while (cnt--) in native_bs_rr_2() 281 while (cnt--) in native_bs_rr_4() 291 while (cnt--) in native_bs_rr_8() 374 while (cnt--) in native_bs_wr_1() 385 while (cnt--) in native_bs_wr_2() 396 while (cnt--) in native_bs_wr_4() 407 while (cnt--) in native_bs_wr_8() 417 while (cnt--) in native_bs_sm_1() 427 while (cnt--) in native_bs_sm_2() [all …]
|
| H A D | uio_machdep.c | 69 size_t cnt; in uiomove_fromphys() local 88 cnt = iov->iov_len; in uiomove_fromphys() 89 if (cnt == 0) { in uiomove_fromphys() 94 if (cnt > n) in uiomove_fromphys() 95 cnt = n; in uiomove_fromphys() 97 cnt = min(cnt, PAGE_SIZE - page_offset); in uiomove_fromphys() 126 iov->iov_len -= cnt; in uiomove_fromphys() 127 uio->uio_resid -= cnt; in uiomove_fromphys() 128 uio->uio_offset += cnt; in uiomove_fromphys() 129 offset += cnt; in uiomove_fromphys() [all …]
|
| /freebsd-14.2/crypto/openssl/crypto/ |
| H A D | ppccpuid.pl | 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 301 mtctr $cnt 323 mr r3,$cnt 334 slwi $cnt,$cnt,2 369 sub. $cnt,$cnt,$tick # conditional --$cnt [all …]
|
| /freebsd-14.2/sys/contrib/openzfs/module/os/linux/zfs/ |
| H A D | zfs_uio.c | 62 ulong_t cnt; in zfs_uiomove_iov() local 113 skip += cnt; in zfs_uiomove_iov() 123 n -= cnt; in zfs_uiomove_iov() 133 ulong_t cnt; in zfs_uiomove_bvec_impl() local 149 skip += cnt; in zfs_uiomove_bvec_impl() 159 n -= cnt; in zfs_uiomove_bvec_impl() 281 cnt = copy_to_iter(p, cnt, uio->uio_iter); in zfs_uiomove_iter() 283 cnt = copy_from_iter(p, cnt, uio->uio_iter); in zfs_uiomove_iter() 290 if (cnt == 0) in zfs_uiomove_iter() 354 if (cnt == 0) in zfs_uio_prefaultpages() [all …]
|
| /freebsd-14.2/contrib/ofed/libibmad/ |
| H A D | dump.c | 799 int cnt; in mad_dump_portinfo() local 805 _dump_fields(buf + cnt, bufsz - cnt, val, in mad_dump_portinfo() 839 int cnt; in mad_dump_perfcounters_ext() local 845 _dump_fields(buf + cnt, bufsz - cnt, val, in mad_dump_perfcounters_ext() 851 int cnt; in mad_dump_perfcounters_xmt_sl() local 864 int cnt; in mad_dump_perfcounters_rcv_sl() local 877 int cnt; in mad_dump_perfcounters_xmt_disc() local 890 int cnt; in mad_dump_perfcounters_rcv_err() local 920 int cnt; in mad_dump_perfcounters_port_op_rcv_counters() local 933 int cnt; in mad_dump_perfcounters_port_flow_ctl_counters() local [all …]
|
| /freebsd-14.2/contrib/nvi/ex/ |
| H A D | ex_z.c | 34 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() 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() 104 cnt = (cnt - 1) / 2; in ex_z() 105 cmdp->addr1.lno = lno > cnt ? lno - cnt : 1; in ex_z() [all …]
|
| /freebsd-14.2/contrib/netcat/ |
| H A D | socks.c | 134 size_t cnt; in socks_connect() local 169 if (cnt != 3) in socks_connect() 173 if (cnt != 2) in socks_connect() 174 err(1, "read failed (%zu/3)", cnt); in socks_connect() 222 if (cnt != wlen) in socks_connect() 226 if (cnt != 4) in socks_connect() 233 if (cnt != 6) in socks_connect() 238 if (cnt != 18) in socks_connect() 258 if (cnt != wlen) in socks_connect() 262 if (cnt != 8) in socks_connect() [all …]
|
| /freebsd-14.2/sys/i386/i386/ |
| H A D | uio_machdep.c | 66 size_t cnt; in uiomove_fromphys() local 84 cnt = iov->iov_len; in uiomove_fromphys() 85 if (cnt == 0) { in uiomove_fromphys() 90 if (cnt > n) in uiomove_fromphys() 91 cnt = n; in uiomove_fromphys() 93 cnt = min(cnt, PAGE_SIZE - page_offset); in uiomove_fromphys() 122 iov->iov_len -= cnt; in uiomove_fromphys() 123 uio->uio_resid -= cnt; in uiomove_fromphys() 124 uio->uio_offset += cnt; in uiomove_fromphys() 125 offset += cnt; in uiomove_fromphys() [all …]
|
| /freebsd-14.2/sys/arm/arm/ |
| H A D | uio_machdep.c | 66 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() 120 iov->iov_len -= cnt; in uiomove_fromphys() 121 uio->uio_resid -= cnt; in uiomove_fromphys() 122 uio->uio_offset += cnt; in uiomove_fromphys() 123 offset += cnt; in uiomove_fromphys() [all …]
|
| /freebsd-14.2/sys/amd64/amd64/ |
| H A D | uio_machdep.c | 65 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() 125 iov->iov_len -= cnt; in uiomove_fromphys() 126 uio->uio_resid -= cnt; in uiomove_fromphys() 127 uio->uio_offset += cnt; in uiomove_fromphys() 128 offset += cnt; in uiomove_fromphys() [all …]
|
| /freebsd-14.2/contrib/sendmail/libsm/ |
| H A D | t-sem.c | 208 cnt = 0; 215 ++cnt; 223 cnt = 0; 230 ++cnt; 238 cnt = 0; 245 ++cnt; 253 cnt = 0; 260 ++cnt; 267 cnt = 0; 274 ++cnt; [all …]
|
| /freebsd-14.2/usr.bin/tr/ |
| H A D | tr.c | 77 wint_t ch, cnt, lastch; in main() local 224 s1.cnt == 1 && s2.cnt == 1) { in main() 241 s1.cnt == 1 && s2.cnt == 1) { in main() 278 for (cnt = 0; cnt < WINT_MAX; cnt++) { in main() 288 cmap_add(map, cnt, cnt); in main() 290 cnt >= cmap_max(map)) in main() 295 for (p = carray, cnt = 0; cnt < NCHARS_SB; cnt++) { in main() 296 if (cmap_lookup(map, cnt) == OOBCH && iswrune(cnt)) in main() 297 *p++ = cnt; in main() 299 cmap_add(map, cnt, cnt); in main() [all …]
|
| /freebsd-14.2/sys/arm64/arm64/ |
| H A D | uio_machdep.c | 63 size_t cnt; in uiomove_fromphys() local 83 cnt = iov->iov_len; in uiomove_fromphys() 84 if (cnt == 0) { in uiomove_fromphys() 89 if (cnt > n) in uiomove_fromphys() 90 cnt = n; in uiomove_fromphys() 92 cnt = min(cnt, PAGE_SIZE - page_offset); in uiomove_fromphys() 123 iov->iov_len -= cnt; in uiomove_fromphys() 124 uio->uio_resid -= cnt; in uiomove_fromphys() 125 uio->uio_offset += cnt; in uiomove_fromphys() 126 offset += cnt; in uiomove_fromphys() [all …]
|
| /freebsd-14.2/sys/riscv/riscv/ |
| H A D | uio_machdep.c | 63 size_t cnt; in uiomove_fromphys() local 83 cnt = iov->iov_len; in uiomove_fromphys() 84 if (cnt == 0) { in uiomove_fromphys() 89 if (cnt > n) in uiomove_fromphys() 90 cnt = n; in uiomove_fromphys() 92 cnt = min(cnt, PAGE_SIZE - page_offset); in uiomove_fromphys() 123 iov->iov_len -= cnt; in uiomove_fromphys() 124 uio->uio_resid -= cnt; in uiomove_fromphys() 125 uio->uio_offset += cnt; in uiomove_fromphys() 126 offset += cnt; in uiomove_fromphys() [all …]
|
| /freebsd-14.2/contrib/llvm-project/openmp/runtime/src/ |
| H A D | kmp_safe_c_api.h | 36 #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) 68 #define KMP_STRNCPY_S(dst, bsz, src, cnt) strncpy(dst, src, cnt) 69 #define KMP_STRNCAT_S(dst, bsz, src, cnt) strncat(dst, src, cnt)
|
| /freebsd-14.2/tests/sys/cddl/zfs/tests/snapshot/ |
| H A D | snapshot_015_pos.ksh | 98 typeset -i cnt=0 99 while ((cnt < snap_cnt)); do 100 testfile=$mntpnt/testfile.$cnt 103 if ! datasetexists $fs@snap.$cnt ; then 104 log_fail "ERROR: $fs@snap.$cnt should exists." 107 ((cnt += 1)) 111 ((cnt = RANDOM % snap_cnt)) 112 log_must $ZFS rollback -r $fs@snap.$cnt 117 if ((i <= cnt)); then 131 log_must $RMDIR $mntpnt/$(get_snapdir_name)/snap.$cnt [all …]
|
| /freebsd-14.2/sys/contrib/openzfs/tests/zfs-tests/tests/functional/snapshot/ |
| H A D | snapshot_015_pos.ksh | 85 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 94 ((cnt += 1)) 98 ((cnt = RANDOM % snap_cnt)) 99 log_must zfs rollback -r $fs@snap.$cnt 104 if ((i <= cnt)); then 118 log_must rmdir $snapdir/snapshot/snap.$cnt [all …]
|