Home
last modified time | relevance | path

Searched refs:bc (Results 1 – 25 of 380) sorted by relevance

12345678910>>...16

/freebsd-13.1/usr.sbin/bhyve/
H A Dblock_if.c360 bc = arg; in blockif_thr()
372 while (!bc->bc_paused && blockif_dequeue(bc, t, &be)) { in blockif_thr()
391 pthread_cond_wait(&bc->bc_paused_cond, &bc->bc_mtx); in blockif_thr()
393 pthread_cond_wait(&bc->bc_cond, &bc->bc_mtx); in blockif_thr()
637 pthread_create(&bc->bc_btid[i], NULL, blockif_thr, bc); in blockif_open()
642 return (bc); in blockif_open()
668 bc = arg; in blockif_resized()
672 bc->bc_resize_cb(bc, bc->bc_resize_cb_arg, bc->bc_size); in blockif_resized()
882 free(bc); in blockif_close()
901 sectors = bc->bc_size / bc->bc_sectsz; in blockif_chs()
[all …]
H A Dblock_if.h71 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);
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);
89 void blockif_resume(struct blockif_ctxt *bc);
[all …]
/freebsd-13.1/stand/common/
H A Dbcache.c86 #define BHASH(bc, blkno) ((blkno) & ((bc)->bcache_nblks - 1)) argument
88 ((bc)->bcache_ctl[BHASH((bc), (blkno))].bc_blkno != (blkno))
134 return (bc); in bcache_allocate()
146 bc->bcache_data = malloc(bc->bcache_nblks * bcache_blksize); in bcache_allocate()
150 bc->bcache_data = malloc(bc->bcache_nblks * bcache_blksize + in bcache_allocate()
156 if ((bc->bcache_data == NULL) || (bc->bcache_ctl == NULL)) { in bcache_allocate()
170 return (bc); in bcache_allocate()
255 if (complete || (i == bc->ralen && bc->ralen > 0)) { in read_strategy()
315 ra = bc->bcache_nblks - BHASH(bc, p_blk + p_size); in read_strategy()
333 bc->ralen = 0; in read_strategy()
[all …]
/freebsd-13.1/contrib/bc/tests/bc/scripts/
H A Dall.txt1 multiply.bc
2 divide.bc
4 add.bc
5 print.bc
6 parse.bc
7 array.bc
8 atan.bc
12 len.bc
13 rand.bc
17 ifs.bc
[all …]
/freebsd-13.1/sys/sys/
H A Dblockcount.h46 void _blockcount_wakeup(blockcount_t *bc, u_int old);
49 blockcount_init(blockcount_t *bc) in blockcount_init() argument
51 atomic_store_int(&bc->__count, 0); in blockcount_init()
55 blockcount_acquire(blockcount_t *bc, u_int n) in blockcount_acquire() argument
60 old = atomic_fetchadd_int(&bc->__count, n); in blockcount_acquire()
63 atomic_add_int(&bc->__count, n); in blockcount_acquire()
68 blockcount_release(blockcount_t *bc, u_int n) in blockcount_release() argument
73 old = atomic_fetchadd_int(&bc->__count, -n); in blockcount_release()
76 _blockcount_wakeup(bc, old); in blockcount_release()
89 #define blockcount_sleep(bc, lo, wmesg, prio) \ argument
[all …]
/freebsd-13.1/contrib/bc/
H A DREADME.md1 # `bc`
8 flavor of `bc`.
20 This `bc` also provides `bc`'s math as a library with C bindings, called `bcl`.
77 #### `bc`
116 On POSIX-compatible systems, `bc` is built as `bin/bc` and `dc` is built as
198 ../bc/configure.sh
266 `bc-gh`.
285 This `bc` is robust.
291 This `bc` can be used as a drop-in replacement for any existing `bc`. This `bc`
310 ## `bc` Libs
[all …]
H A D.gitignore8 bin/*bc
9 bin/*bc.exe
13 bc.old
21 manuals/bc.1
22 manuals/bc.1.ronn
23 manuals/bc.1.md
34 timeconst.bc
56 tests/bc/scripts/add.txt
57 tests/bc/scripts/divide.txt
58 tests/bc/scripts/multiply.txt
[all …]
H A DMakefile.in52 BC_HEADERS = $(INCDIR)/bc.h
65 BC_LIB = $(GENDIR)/lib.bc
71 BC_LIB2 = $(GENDIR)/lib2.bc
93 BC = bc
521 $(MANPAGE) bc
544 @$(RM) -f $(ROOTDIR)/benchmarks/bc/*.txt
573 @$(RM) -f $(TESTSDIR)/bc/parse.txt $(TESTSDIR)/bc/parse_results.txt
574 @$(RM) -f $(TESTSDIR)/bc/print.txt $(TESTSDIR)/bc/print_results.txt
575 @$(RM) -f $(TESTSDIR)/bc/bessel.txt $(TESTSDIR)/bc/bessel_results.txt
576 @$(RM) -f $(TESTSDIR)/bc/strings2.txt $(TESTSDIR)/bc/strings2_results.txt
[all …]
H A DNEWS.md15 was because `bc` was too strict.
34 exists in all versions of `bc`.
129 them to functions in `bc`.
351 echo "if (1 < 3) 1" | bc
465 The second major bug fix was in `bc`'s `lib2.bc`. The `ceil()` function had a
476 First, the requirements for `bc` were pushed back to POSIX 2008. `bc` uses one
483 `bc` from allocating a large set of memory when `bc` starts.
724 in the `bc` build system. No `bc` code was changed.
853 added to this `bc`.
940 This `bc` should now be the fastest `bc` available, but I may be wrong.
[all …]
/freebsd-13.1/contrib/netbsd-tests/lib/libc/regex/data/
H A Dstartend.in4 [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 Dbackref.in8 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 Dmeta.in3 a[bc]d & abd abd
8 a\bc &CP EESCAPE
11 a\\bc & a\bc a\bc
H A Dsubexp.in13 (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-13.1/contrib/bc/gen/
H A Dbc_help.txt32 * The bc help text.
40 https://git.yzena.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.
73 Run the bc code in "file" and exit. See above as well.
119 meant for other bc implementations.
[all …]
/freebsd-13.1/contrib/bc/manuals/
H A Dalgorithms.md3 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
260 ### Root (`bc` Math Library 2 Only)
295 ### Pi (`bc` Math Library 2 Only)
[all …]
H A Dbuild.md57 In Visual Studio, open up the solution file (`bc.sln` for `bc`, or `bcl.sln` for
96 ../bc/configure.sh
287 want to replace the default `bc`.
381 #### `bc` Only
388 ./configure.sh --bc-only
407 ./configure.sh --disable-bc
455 This `bc` has 7 extra operators:
522 ./configure.sh -s bc.banner
532 ./configure.sh -S bc.banner
679 `bc`'s performance.
[all …]
/freebsd-13.1/usr.bin/gh-bc/tests/
H A DMakefile7 TEST_DIR= ${SRCTOP}/contrib/bc
9 TESTSDIR= ${TESTSBASE}/usr.bin/gh-bc
27 FILESbcDIR= ${TESTSDIR}/tests/bc
28 FILESbc!= echo ${TEST_DIR}/tests/bc/*.*
32 FILESbc_errorsDIR= ${TESTSDIR}/tests/bc/errors
33 FILESbc_errors!= echo ${TEST_DIR}/tests/bc/errors/*.*
37 FILESbc_scriptsDIR= ${TESTSDIR}/tests/bc/scripts
38 FILESbc_scripts!= echo ${TEST_DIR}/tests/bc/scripts/*.*
/freebsd-13.1/usr.bin/gh-bc/
H A DMakefile5 PROG= gh-bc
6 PROGNAME= bc
14 MAN= bc.1 dc.1
16 LINKS= ${BINDIR}/bc ${BINDIR}/dc
31 NLSNAME= bc
57 MAN_SRC_BC= bc/N.1
61 MAN_SRC_BC= bc/A.1
106 lib.c: lib.bc Makefile
109 lib2.c: lib2.bc Makefile
118 bc.1:
[all …]
/freebsd-13.1/bin/sh/tests/expansion/
H A Dcmdsubst24.016 check "$LINENO" "$assign_builtin" "a bc d"
18 check "$LINENO" "$assign_pipeline" "a bc d"
22 check "$LINENO" "$splits" "a@bc@d@a@bc@d@a bc d@a bc d"
/freebsd-13.1/lib/libc/regex/
H A Dregcomp.c410 (void)bc; in p_ere_exp()
640 (void)bc; in p_branch_eat_delim()
657 bc->fwd = bc->start; in p_branch_ins_offset()
658 bc->back = bc->start; in p_branch_ins_offset()
666 ++bc->nbranch; in p_branch_ins_offset()
694 (void)bc; in p_branch_empty()
728 (void) bc; in p_bre_pre_parse()
770 bc.nbranch = 0; in p_re()
783 bc.terminate = p->parse_expr(p, &bc); in p_re()
784 ++bc.nchain; in p_re()
[all …]
/freebsd-13.1/contrib/bc/tests/bc/
H A Dtimeconst.sh47 bc="$1"
50 bc="$testdir/../../bin/bc"
81 nums=$(printf 'for (i = 0; i <= 1000; ++i) { i }\n' | bc)
87 printf '%s\n' "$i" | bc -q "$timeconst" > "$out1"
98 printf '%s\n' "$i" | "$bc" "$@" -q "$timeconst" > "$out2"
/freebsd-13.1/contrib/netbsd-tests/lib/libc/regex/data/att/
H A Dbasic.dat91 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-13.1/sbin/bsdlabel/
H A Ddisktab28 :pc#720:oc#0:bc#4096:fc#512:
33 :pc#1440:oc#0:bc#4096:fc#512:
38 :pc#2400:oc#0:bc#4096:fc#512:
43 :pc#2880:oc#0:bc#4096:fc#512:
58 :pc#1600:oc#0:bc#4096:fc#512:
63 :pc#1640:oc#0:bc#4096:fc#512:
68 :pc#2952:oc#0:bc#4096:fc#512:
73 :pc#3444:oc#0:bc#4096:fc#512:
81 :pc#246528:oc#0:bc#4096:fc#512:
178 :pc#2880:oc#0:bc#4096:fc#512:
[all …]
/freebsd-13.1/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_send/
H A Dzfs_send_006_pos.ksh48 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-13.1/contrib/bearssl/src/ssl/
H A Dssl_engine_default_chapol.c35 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()

12345678910>>...16