| /freebsd-14.2/usr.sbin/bhyve/ |
| H A D | block_if.c | 380 bc = arg; in blockif_thr() 404 pthread_cond_wait(&bc->bc_cond, &bc->bc_mtx); in blockif_thr() 664 TAILQ_INSERT_HEAD(&bc->bc_freeq, &bc->bc_reqs[i], be_link); in blockif_open() 668 pthread_create(&bc->bc_btid[i], NULL, blockif_thr, bc); in blockif_open() 673 return (bc); in blockif_open() 699 bc = arg; in blockif_resized() 703 bc->bc_resize_cb(bc, bc->bc_resize_cb_arg, bc->bc_size); in blockif_resized() 912 free(bc); in blockif_close() 931 sectors = bc->bc_size / bc->bc_sectsz; in blockif_chs() 1024 pthread_cond_wait(&bc->bc_work_done_cond, &bc->bc_mtx); in blockif_pause() [all …]
|
| H A D | block_if.h | 71 int blockif_register_resize_callback(struct blockif_ctxt *bc, 73 off_t blockif_size(struct blockif_ctxt *bc); 74 void blockif_chs(struct blockif_ctxt *bc, uint16_t *c, uint8_t *h, 76 int blockif_sectsz(struct blockif_ctxt *bc); 77 void blockif_psectsz(struct blockif_ctxt *bc, int *size, int *off); 78 int blockif_queuesz(struct blockif_ctxt *bc); 79 int blockif_is_ro(struct blockif_ctxt *bc); 80 int blockif_candelete(struct blockif_ctxt *bc); 86 int blockif_close(struct blockif_ctxt *bc); 88 void blockif_pause(struct blockif_ctxt *bc); [all …]
|
| /freebsd-14.2/stand/common/ |
| H A D | bcache.c | 83 #define BHASH(bc, blkno) ((blkno) & ((bc)->bcache_nblks - 1)) argument 85 ((bc)->bcache_ctl[BHASH((bc), (blkno))].bc_blkno != (blkno)) 131 return (bc); in bcache_allocate() 143 bc->bcache_data = malloc(bc->bcache_nblks * bcache_blksize); in bcache_allocate() 147 bc->bcache_data = malloc(bc->bcache_nblks * bcache_blksize + in bcache_allocate() 153 if ((bc->bcache_data == NULL) || (bc->bcache_ctl == NULL)) { in bcache_allocate() 167 return (bc); in bcache_allocate() 252 if (complete || (i == bc->ralen && bc->ralen > 0)) { in read_strategy() 312 ra = bc->bcache_nblks - BHASH(bc, p_blk + p_size); in read_strategy() 330 bc->ralen = 0; in read_strategy() [all …]
|
| /freebsd-14.2/contrib/bc/tests/bc/scripts/ |
| H A D | all.txt | 1 multiply.bc 2 divide.bc 4 add.bc 5 print.bc 6 print2.bc 7 parse.bc 8 root.bc 9 array.bc 11 atan.bc 15 len.bc [all …]
|
| /freebsd-14.2/sys/sys/ |
| H A D | blockcount.h | 44 void _blockcount_wakeup(blockcount_t *bc, u_int old); 47 blockcount_init(blockcount_t *bc) in blockcount_init() argument 49 atomic_store_int(&bc->__count, 0); in blockcount_init() 53 blockcount_acquire(blockcount_t *bc, u_int n) in blockcount_acquire() argument 58 old = atomic_fetchadd_int(&bc->__count, n); in blockcount_acquire() 61 atomic_add_int(&bc->__count, n); in blockcount_acquire() 66 blockcount_release(blockcount_t *bc, u_int n) in blockcount_release() argument 71 old = atomic_fetchadd_int(&bc->__count, -n); in blockcount_release() 74 _blockcount_wakeup(bc, old); in blockcount_release() 87 #define blockcount_sleep(bc, lo, wmesg, prio) \ argument [all …]
|
| /freebsd-14.2/contrib/bc/ |
| H A D | README.md | 1 # `bc` 13 flavor of `bc`. 82 #### `bc` 200 ../bc/configure.sh 268 `bc-gh`. 293 This `bc` can be used as a drop-in replacement for any existing `bc`. This `bc` 311 ## `bc` Libs 318 This `bc` compares favorably to GNU `bc`. 437 system `bc`: 443 or `howard-bc`. [all …]
|
| H A D | Makefile.in | 52 BC_HEADERS = $(INCDIR)/bc.h 65 BC_LIB = $(GENDIR)/lib.bc 71 BC_LIB2 = $(GENDIR)/lib2.bc 93 BC = bc 528 $(MANPAGE) bc 551 @$(RM) -f $(ROOTDIR)/benchmarks/bc/*.txt 582 @$(RM) -f $(TESTSDIR)/bc/parse.txt $(TESTSDIR)/bc/parse_results.txt 583 @$(RM) -f $(TESTSDIR)/bc/print.txt $(TESTSDIR)/bc/print_results.txt 584 @$(RM) -f $(TESTSDIR)/bc/bessel.txt $(TESTSDIR)/bc/bessel_results.txt 585 @$(RM) -f $(TESTSDIR)/bc/strings2.txt $(TESTSDIR)/bc/strings2_results.txt [all …]
|
| H A D | NEWS.md | 146 `tests/bc/scripts/timeconst.bc` doesn't exist. This should only affect 294 to build a `bc` and `dc` that is by default compatible with either the BSD `bc` 337 GNU `bc`. 702 echo "if (1 < 3) 1" | bc 816 The second major bug fix was in `bc`'s `lib2.bc`. The `ceil()` function had a 827 First, the requirements for `bc` were pushed back to POSIX 2008. `bc` uses one 834 `bc` from allocating a large set of memory when `bc` starts. 1075 in the `bc` build system. No `bc` code was changed. 1204 added to this `bc`. 1291 This `bc` should now be the fastest `bc` available, but I may be wrong. [all …]
|
| /freebsd-14.2/contrib/netbsd-tests/lib/libc/regex/data/ |
| H A D | startend.in | 4 [abc] &# a(bc)d b 7 b.*c &# b(bc)c bc 8 b.* &# b(bc)c bc 9 .*c &# b(bc)c bc
|
| H A D | backref.in | 8 a\([bc]\)\1d b abcdabbd abbd b 9 a\(\([bc]\)\2\)*d b abbccd abbccd 10 a\(\([bc]\)\2\)*d b abbcbd 17 \(a\)\1bc*d b aabcd aabcd 18 \(a\)\1bc*d b aabd aabd 19 \(a\)\1bc*d b aabcccd aabcccd 20 \(a\)\1bc*[ce]d b aabcccd aabcccd
|
| H A D | meta.in | 3 a[bc]d & abd abd 8 a\bc &CP EESCAPE 11 a\\bc & a\bc a\bc
|
| H A D | subexp.in | 13 (a|ab)(bc([de]+)f|cde) - abcdef abcdef a,bcdef,de 20 a([bc]?)c - abc abc b 21 a([bc]?)c - ac ac @c 22 a([bc]+)c - abc abc b 23 a([bc]+)c - abcc abcc bc 24 a([bc]+)bc - abcbc abcbc bc 30 (a*)* - bc @b @b
|
| /freebsd-14.2/contrib/bc/tests/bc/ |
| H A D | timeconst.sh | 61 bc="$1" 63 check_exec_arg "$bc" 65 bc="$testdir/../../bin/bc" 66 check_exec_arg "$bc" 97 nums=$(printf 'for (i = 0; i <= 1000; ++i) { i }\n' | bc) 103 printf '%s\n' "$i" | bc -q "$timeconst" > "$out1" 114 printf '%s\n' "$i" | "$bc" "$@" -q "$timeconst" > "$out2"
|
| /freebsd-14.2/usr.bin/gh-bc/tests/ |
| H A D | Makefile | 6 TEST_DIR= ${SRCTOP}/contrib/bc 8 TESTSDIR= ${TESTSBASE}/usr.bin/gh-bc 26 FILESbcDIR= ${TESTSDIR}/tests/bc 27 FILESbc!= echo ${TEST_DIR}/tests/bc/*.* 31 FILESbc_errorsDIR= ${TESTSDIR}/tests/bc/errors 32 FILESbc_errors!= echo ${TEST_DIR}/tests/bc/errors/*.* 36 FILESbc_scriptsDIR= ${TESTSDIR}/tests/bc/scripts 37 FILESbc_scripts!= echo ${TEST_DIR}/tests/bc/scripts/*.*
|
| /freebsd-14.2/usr.bin/gh-bc/ |
| H A D | Makefile | 4 PROG= gh-bc 5 PROGNAME= bc 15 MAN= bc.1 dc.1 17 LINKS= ${BINDIR}/bc ${BINDIR}/dc 32 NLSNAME= bc 73 MAN_SRC_BC= bc/N.1 77 MAN_SRC_BC= bc/A.1 113 lib.c: lib.bc Makefile 116 lib2.c: lib2.bc Makefile 125 bc.1: [all …]
|
| /freebsd-14.2/bin/sh/tests/expansion/ |
| H A D | cmdsubst24.0 | 15 check "$LINENO" "$assign_builtin" "a bc d" 17 check "$LINENO" "$assign_pipeline" "a bc d" 21 check "$LINENO" "$splits" "a@bc@d@a@bc@d@a bc d@a bc d"
|
| /freebsd-14.2/lib/libc/regex/ |
| H A D | regcomp.c | 407 (void)bc; in p_ere_exp() 637 (void)bc; in p_branch_eat_delim() 654 bc->fwd = bc->start; in p_branch_ins_offset() 655 bc->back = bc->start; in p_branch_ins_offset() 663 ++bc->nbranch; in p_branch_ins_offset() 691 (void)bc; in p_branch_empty() 725 (void) bc; in p_bre_pre_parse() 767 bc.nbranch = 0; in p_re() 780 bc.terminate = p->parse_expr(p, &bc); in p_re() 781 ++bc.nchain; in p_re() [all …]
|
| /freebsd-14.2/contrib/bc/manuals/ |
| H A D | build.md | 57 In Visual Studio, open up the solution file (`bc.sln` for `bc`, or `bcl.sln` for 96 ../bc/configure.sh 409 #### `bc` Only 416 ./configure.sh --bc-only 435 ./configure.sh --disable-bc 613 ./configure.sh -s bc.banner 623 ./configure.sh -S bc.banner 670 | bc.expr_exit | Whether to exit bc | 1 | BC_EXPR_EXIT | 682 | bc.digit_clamp | Whether to have bc | 0 | BC_DIGIT_CLAMP | 803 `bc`'s performance. [all …]
|
| H A D | algorithms.md | 3 This `bc` uses the math algorithms below: 49 this `bc` is small code). 72 This `bc` uses the series 96 This `bc` uses the series 118 This `bc` uses the series 141 This `bc` uses the series 159 ### Bessel (`bc` Math Library Only) 161 This `bc` uses the series 328 ### Root (`bc` Math Library 2 Only) 363 ### Pi (`bc` Math Library 2 Only) [all …]
|
| /freebsd-14.2/contrib/bc/gen/ |
| H A D | bc_help.txt | 32 * The bc help text. 40 https://git.gavinhoward.com/gavin/bc/src/tag/%s/manuals/bc/%s.1.md. 42 This bc is compatible with both the GNU bc and the POSIX bc spec. See the GNU bc 43 manual (https://www.gnu.org/software/bc/manual/bc.html) and bc spec 44 (http://pubs.opengroup.org/onlinepubs/9699919799/utilities/bc.html) 47 This bc has three differences to the GNU bc: 59 3) This bc has many more extensions than the GNU bc does. For details, see the 62 This bc also implements the dot (.) extension of the BSD bc. 104 Run the bc code in "file" and exit. See above as well. 162 meant for other bc implementations. [all …]
|
| /freebsd-14.2/contrib/netbsd-tests/lib/libc/regex/data/att/ |
| H A D | basic.dat | 91 BE ab*bc abc (0,3) 92 BE ab*bc abbc (0,4) 93 BE ab*bc abbbbc (0,6) 94 E ab+bc abbc (0,4) 95 E ab+bc abbbbc (0,6) 96 E ab?bc abbc (0,4) 97 E ab?bc abc (0,3) 107 BE a[bc]d abd (0,3) 114 BE a[^bc]d aed (0,3) 146 E (ab|ab*)bc abc (0,3)(0,1) [all …]
|
| /freebsd-14.2/sbin/bsdlabel/ |
| H A D | disktab | 27 :pc#720:oc#0:bc#4096:fc#512: 32 :pc#1440:oc#0:bc#4096:fc#512: 37 :pc#2400:oc#0:bc#4096:fc#512: 42 :pc#2880:oc#0:bc#4096:fc#512: 57 :pc#1600:oc#0:bc#4096:fc#512: 62 :pc#1640:oc#0:bc#4096:fc#512: 67 :pc#2952:oc#0:bc#4096:fc#512: 72 :pc#3444:oc#0:bc#4096:fc#512: 80 :pc#246528:oc#0:bc#4096:fc#512: 177 :pc#2880:oc#0:bc#4096:fc#512: [all …]
|
| /freebsd-14.2/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_send/ |
| H A D | zfs_send_006_pos.ksh | 48 return=$(echo "$PERCENT * $value" | bc) 49 return=$(echo "$return / 100" | bc) 67 total_size=$(echo "$total_size * $block_count" | bc) 77 typeset refer_diff=$(echo "$refer_size - $estimate_size" | bc) 78 refer_diff=$(echo "$refer_diff / 1" | bc) 80 typeset file_diff=$(echo "$file_size - $estimate_size" | bc) 81 file_diff=$(echo "$file_diff / 1" | bc) 151 refer_size=$(echo "$refer_size - $deduct_size" | bc) 192 refer_size=$(echo "$refer_size * 3" | bc)
|
| /freebsd-14.2/contrib/bearssl/src/ssl/ |
| H A D | ssl_engine_default_chapol.c | 35 br_chacha20_run bc; in br_ssl_engine_set_default_chapol() local 42 bc = br_chacha20_sse2_get(); in br_ssl_engine_set_default_chapol() 43 if (bc) { in br_ssl_engine_set_default_chapol() 44 br_ssl_engine_set_chacha20(cc, bc); in br_ssl_engine_set_default_chapol()
|
| /freebsd-14.2/sys/dev/pms/RefTisa/sallsdk/spc/ |
| H A D | mpi.c | 370 bit32 bc; in mpiMsgPrepare() local 386 bc = (((msgHeader->Header) >> SHIFT24) & BC_MASK); in mpiMsgPrepare() 387 SA_DBG6(("mpiMsgProduce: msgHeader bc %d\n", bc)); in mpiMsgPrepare() 396 ((bc & BC_MASK) << SHIFT24) | in mpiMsgPrepare() 470 bit32 bc; in mpiMsgProduce() local 511 bc = (((msgHeader->Header) >> SHIFT24) & BC_MASK); in mpiMsgProduce() 512 SA_DBG6(("mpiMsgProduce: msgHeader bc %d\n", bc)); in mpiMsgProduce() 523 ((bc & BC_MASK) << SHIFT24) | in mpiMsgProduce() 819 bit8 bc in mpiMsgFreeSet() argument 918 bit32 bc; in mpiMsgProduceOQ() local [all …]
|