/freebsd/usr.sbin/bhyve/ |
H A D | block_if.c | 135 blockif_enqueue(struct blockif_ctxt *bc, struct blockif_req *breq, in blockif_enqueue() argument 142 be = TAILQ_FIRST(&bc->bc_freeq); in blockif_enqueue() 145 TAILQ_REMOVE(&bc->bc_freeq, be, be_link); in blockif_enqueue() 160 TAILQ_FOREACH(tbe, &bc->bc_pendq, be_link) { in blockif_enqueue() 165 TAILQ_FOREACH(tbe, &bc->bc_busyq, be_link) { in blockif_enqueue() 174 TAILQ_INSERT_TAIL(&bc->bc_pendq, be, be_link); in blockif_enqueue() 179 blockif_dequeue(struct blockif_ctxt *bc, pthread_t t, struct blockif_elem **bep) in blockif_dequeue() argument 183 TAILQ_FOREACH(be, &bc->bc_pendq, be_link) { in blockif_dequeue() 190 TAILQ_REMOVE(&bc->bc_pendq, be, be_link); in blockif_dequeue() 193 TAILQ_INSERT_TAIL(&bc->bc_busyq, be, be_link); in blockif_dequeue() [all …]
|
H A D | block_if.h | 69 int blockif_add_boot_device(struct pci_devinst *const pi, struct blockif_ctxt *const bc); 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); 81 int blockif_read(struct blockif_ctxt *bc, struct blockif_req *breq); [all …]
|
/freebsd/contrib/bc/ |
H A D | README.md | 1 # `bc` 4 because of spam. If you need to report a bug with `bc`, email gavin at this site 11 This is an implementation of the [POSIX `bc` calculator][12] that implements 12 [GNU `bc`][1] extensions, as well as the period (`.`) extension for the BSD 13 flavor of `bc`. 15 For more information, see this `bc`'s full manual. 17 This `bc` also includes an implementation of `dc` in the same binary, accessible 19 standalone `dc` binary is desired, `bc` can be copied and renamed to `dc`.) The 25 This `bc` also provides `bc`' 335 Performance`bc`""Comparison to GNU `bc` global() argument 345 Extensions`bc`""Comparison to GNU `bc` global() argument [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 95 BC_EXEC = $(BIN)/$(EXEC_PREFIX)$(BC) 97 BC_FUZZER = $(BIN)/$(BC)_fuzzer_c 98 BC_FUZZER_C = $(BIN)/$(BC)_fuzzer_C 115 BC_MANPAGE_NAME = $(EXEC_PREFIX)$(BC)$(EXEC_SUFFIX).1 116 BC_MANPAGE = $(MANUALS)/$(BC).1 306 @printf ' test_bc runs the bc test suite, if bc has been built\n' [all …]
|
H A D | NEWS.md | 21 The first bug is that `bc`/`dc` will exit on macOS when the terminal is resized. 35 The bug was that `bc` attempted to jump out when flushing `stdout` on exit, but 49 This is a production release to fix problems in the `bc` manual. 120 This is a production release that fixes a `bc` dependency loop for minimal 146 `tests/bc/scripts/timeconst.bc` doesn't exist. This should only affect 155 This is a production release that moves `bc` to <https://git.gavinhoward.com>. 166 parameter had the same name as the array whose element was used, `bc` would grab 180 * A crash when `bc` and `dc` are built using editline, but history is not 199 This is a production release that fixes a discrepancy from the `bc` standard, 202 The discrepancy from the `bc` standard was with regards to the behavior of the [all …]
|
/freebsd/stand/common/ |
H A D | bcache.c | 83 #define BHASH(bc, blkno) ((blkno) & ((bc)->bcache_nblks - 1)) argument 84 #define BCACHE_LOOKUP(bc, blkno) \ argument 85 ((bc)->bcache_ctl[BHASH((bc), (blkno))].bc_blkno != (blkno)) 90 static void bcache_invalidate(struct bcache *bc, daddr_t blkno); 91 static void bcache_insert(struct bcache *bc, daddr_t blkno); 92 static void bcache_free_instance(struct bcache *bc); 123 struct bcache *bc = malloc(sizeof (struct bcache)); in bcache_allocate() local 129 if (bc == NULL) { in bcache_allocate() 131 return (bc); in bcache_allocate() 141 bc->bcache_nblks = bcache_total_nblks >> i; in bcache_allocate() [all …]
|
/freebsd/contrib/bc/tests/bc/scripts/ |
H A D | all.txt | 1 multiply.bc 2 divide.bc 3 subtract.bc 4 add.bc 5 print.bc 6 print2.bc 7 parse.bc 8 root.bc 9 array.bc 10 array2.bc [all …]
|
/freebsd/contrib/bc/include/ |
H A D | lex.h | 32 * Definitions for bc's lexer. 75 // char for numbers. In bc and dc, capital letters are part of numbers, to a 112 /// Marker for invalid tokens, used by bc and dc for const data. 277 /// bc auto keyword. 280 /// bc break keyword. 283 /// bc continue keyword. 286 /// bc define keyword. 289 /// bc for keyword. 292 /// bc if keyword. 295 /// bc limit [all...] |
/freebsd/sys/sys/ |
H A D | blockcount.h | 42 int _blockcount_sleep(blockcount_t *bc, struct lock_object *, const char *wmesg, 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() 59 KASSERT(old + n > old, ("%s: counter overflow %p", __func__, bc)); 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() [all …]
|
/freebsd/lib/libc/regex/grot/ |
H A D | tests | 47 a\( bC EPAREN 48 a\(b bC EPAREN 56 a\) bC EPAREN 57 \) bC EPAREN 114 \(\{1\}a\) bC BADRPT 124 ^\{1\} bC BADRPT 128 a[bc]d & abd abd 132 a\bc & abc abc 134 a\\bc & a\bc a\bc 135 \{ bC BADRPT [all …]
|
/freebsd/contrib/bc/manuals/ |
H A D | build.md | 3 This `bc` attempts to be as portable as possible. It can be built on any 9 The general form of configuring, building, and installing this `bc` is as 42 For releases, Windows builds of `bc`, `dc`, and `bcl` are available for download 43 from <https://git.gavinhoward.com/gavin/bc> and GitHub. 45 However, if you wish to build it yourself, this `bc` can be built using Visual 51 `{BC,DC}_SIGINT_RESET=0`, `{BC,DC}_TTY_MODE=1`, `{BC,DC}_PROMPT=1`. 57 In Visual Studio, open up the solution file (`bc.sln` for `bc`, or `bcl.sln` for 65 To build `bc`, run the following from the root directory: 68 msbuild -property:Configuration=<config> vs/bc.sln 83 Building `bc`, `dc`, and `bcl` (the library) is more complex than on Windows [all …]
|
H A D | algorithms.md | 3 This `bc` uses the math algorithms below: 7 This `bc` uses brute force addition, which is linear (`O(n)`) in the number of 12 This `bc` uses brute force subtraction, which is linear (`O(n)`) in the number 17 This `bc` uses two algorithms: [Karatsuba][1] and brute force. 22 this `bc`, is superlinear but subpolynomial (bounded by `O(n^log_2(3))`). 35 This `bc` uses Algorithm D ([long division][2]). Long division is polynomial 49 this `bc` is small code). 57 This `bc` implements [Exponentiation by Squaring][3], which (via Karatsuba) has 63 This `bc` implements the fast algorithm [Newton's Method][4] (also known as the 70 ### Sine and Cosine (`bc` Math Library Only) [all …]
|
/freebsd/contrib/bc/tests/bc/ |
H A D | timeconst.sh | 28 # Tests the timeconst.bc script from the Linux kernel build. 29 # You can find the script at kernel/time/timeconst.bc in any Linux repo. 56 timeconst="$testdir/scripts/timeconst.bc" 61 bc="$1" 63 check_exec_arg "$bc" 65 bc="$testdir/../../bin/bc" 66 check_exec_arg "$bc" 96 # Get a list of numbers. Funny how bc can help with that. 97 nums=$(printf 'for (i = 0; i <= 1000; ++i) { i }\n' | bc) [all...] |
/freebsd/contrib/bc/manuals/bc/ |
H A D | E.1 | 28 .TH "BC" "1" "August 2024" "Gavin D. Howard" "General Commands Manual" 34 \f[B]bc\f[R] [\f[B]\-cCghilPqRsvVw\f[R]] [\f[B]\-\-digit\-clamp\f[R]] 52 After parsing and handling options, this bc(1) reads any files given on 55 This bc(1) is a drop\-in replacement for \f[I]any\f[R] bc(1), including 56 (and especially) the GNU bc(1). 60 \f[B]Note\f[R]: If running this bc(1) on \f[I]any\f[R] script meant for 61 another bc(1) gives a parse error, it is probably because a word this 69 If parsing scripts meant for other bc(1) implementations still does not 73 The following are the options that bc(1) accepts. 127 then after processing all expressions and files, bc(1) will exit, unless [all …]
|
H A D | EN.1 | 28 .TH "BC" "1" "August 2024" "Gavin D. Howard" "General Commands Manual" 34 \f[B]bc\f[R] [\f[B]\-cCghilPqRsvVw\f[R]] [\f[B]\-\-digit\-clamp\f[R]] 52 After parsing and handling options, this bc(1) reads any files given on 55 This bc(1) is a drop\-in replacement for \f[I]any\f[R] bc(1), including 56 (and especially) the GNU bc(1). 60 \f[B]Note\f[R]: If running this bc(1) on \f[I]any\f[R] script meant for 61 another bc(1) gives a parse error, it is probably because a word this 69 If parsing scripts meant for other bc(1) implementations still does not 73 The following are the options that bc(1) accepts. 127 then after processing all expressions and files, bc(1) will exit, unless [all …]
|
H A D | EH.1.md | 33 bc - arbitrary-precision decimal arithmetic language and calculator 37 **bc** [**-cCghilPqRsvVw**] [**-\-digit-clamp**] [**-\-no-digit-clamp**] [**-\-global-stacks**] [**-\-help**] [**-\-interactive**] [**-\-mathlib**] [**-\-no-prompt**] [**-\-no-read-prompt**] [**-\-quiet**] [**-\-standard**] [**-\-warn**] [**-\-version**] [**-e** *expr*] [**-\-expression**=*expr*...] [**-f** *file*...] [**-\-file**=*file*...] [*file*...] 41 bc(1) is an interactive processor for a language first standardized in 1991 by 46 After parsing and handling options, this bc(1) reads any files given on the 49 This bc(1) is a drop-in replacement for *any* bc(1), including (and 50 especially) the GNU bc(1). It also has many extensions and extra features beyond 53 **Note**: If running this bc(1) on *any* script meant for another bc(1) gives a 54 parse error, it is probably because a word this bc( [all...] |
H A D | EH.1 | 28 .TH "BC" "1" "August 2024" "Gavin D. Howard" "General Commands Manual" 34 \f[B]bc\f[R] [\f[B]\-cCghilPqRsvVw\f[R]] [\f[B]\-\-digit\-clamp\f[R]] 52 After parsing and handling options, this bc(1) reads any files given on 55 This bc(1) is a drop\-in replacement for \f[I]any\f[R] bc(1), including 56 (and especially) the GNU bc(1). 60 \f[B]Note\f[R]: If running this bc(1) on \f[I]any\f[R] script meant for 61 another bc(1) gives a parse error, it is probably because a word this 69 If parsing scripts meant for other bc(1) implementations still does not 73 The following are the options that bc(1) accepts. 127 then after processing all expressions and files, bc(1) will exit, unless [all …]
|
H A D | EHN.1.md | 33 bc - arbitrary-precision decimal arithmetic language and calculator 37 **bc** [**-cCghilPqRsvVw**] [**-\-digit-clamp**] [**-\-no-digit-clamp**] [**-\-global-stacks**] [**-\-help**] [**-\-interactive**] [**-\-mathlib**] [**-\-no-prompt**] [**-\-no-read-prompt**] [**-\-quiet**] [**-\-standard**] [**-\-warn**] [**-\-version**] [**-e** *expr*] [**-\-expression**=*expr*...] [**-f** *file*...] [**-\-file**=*file*...] [*file*...] 41 bc(1) is an interactive processor for a language first standardized in 1991 by 46 After parsing and handling options, this bc(1) reads any files given on the 49 This bc(1) is a drop-in replacement for *any* bc(1), including (and 50 especially) the GNU bc(1). It also has many extensions and extra features beyond 53 **Note**: If running this bc(1) on *any* script meant for another bc(1) gives a 54 parse error, it is probably because a word this bc( [all...] |
H A D | EHN.1 | 28 .TH "BC" "1" "August 2024" "Gavin D. Howard" "General Commands Manual" 34 \f[B]bc\f[R] [\f[B]\-cCghilPqRsvVw\f[R]] [\f[B]\-\-digit\-clamp\f[R]] 52 After parsing and handling options, this bc(1) reads any files given on 55 This bc(1) is a drop\-in replacement for \f[I]any\f[R] bc(1), including 56 (and especially) the GNU bc(1). 60 \f[B]Note\f[R]: If running this bc(1) on \f[I]any\f[R] script meant for 61 another bc(1) gives a parse error, it is probably because a word this 69 If parsing scripts meant for other bc(1) implementations still does not 73 The following are the options that bc(1) accepts. 127 then after processing all expressions and files, bc(1) will exit, unless [all …]
|
H A D | E.1.md | 33 bc - arbitrary-precision decimal arithmetic language and calculator 37 **bc** [**-cCghilPqRsvVw**] [**-\-digit-clamp**] [**-\-no-digit-clamp**] [**-\-global-stacks**] [**-\-help**] [**-\-interactive**] [**-\-mathlib**] [**-\-no-prompt**] [**-\-no-read-prompt**] [**-\-quiet**] [**-\-standard**] [**-\-warn**] [**-\-version**] [**-e** *expr*] [**-\-expression**=*expr*...] [**-f** *file*...] [**-\-file**=*file*...] [*file*...] 41 bc(1) is an interactive processor for a language first standardized in 1991 by 46 After parsing and handling options, this bc(1) reads any files given on the 49 This bc(1) is a drop-in replacement for *any* bc(1), including (and 50 especially) the GNU bc(1). It also has many extensions and extra features beyond 53 **Note**: If running this bc(1) on *any* script meant for another bc(1) gives a 54 parse error, it is probably because a word this bc( [all...] |
H A D | EN.1.md | 33 bc - arbitrary-precision decimal arithmetic language and calculator 37 **bc** [**-cCghilPqRsvVw**] [**-\-digit-clamp**] [**-\-no-digit-clamp**] [**-\-global-stacks**] [**-\-help**] [**-\-interactive**] [**-\-mathlib**] [**-\-no-prompt**] [**-\-no-read-prompt**] [**-\-quiet**] [**-\-standard**] [**-\-warn**] [**-\-version**] [**-e** *expr*] [**-\-expression**=*expr*...] [**-f** *file*...] [**-\-file**=*file*...] [*file*...] 41 bc(1) is an interactive processor for a language first standardized in 1991 by 46 After parsing and handling options, this bc(1) reads any files given on the 49 This bc(1) is a drop-in replacement for *any* bc(1), including (and 50 especially) the GNU bc(1). It also has many extensions and extra features beyond 53 **Note**: If running this bc(1) on *any* script meant for another bc(1) gives a 54 parse error, it is probably because a word this bc( [all...] |
H A D | HN.1 | 28 .TH "BC" "1" "August 2024" "Gavin D. Howard" "General Commands Manual" 34 \f[B]bc\f[R] [\f[B]\-cCghilPqRsvVw\f[R]] [\f[B]\-\-digit\-clamp\f[R]] 56 After parsing and handling options, this bc(1) reads any files given on 59 This bc(1) is a drop\-in replacement for \f[I]any\f[R] bc(1), including 60 (and especially) the GNU bc(1). 64 \f[B]Note\f[R]: If running this bc(1) on \f[I]any\f[R] script meant for 65 another bc(1) gives a parse error, it is probably because a word this 73 If parsing scripts meant for other bc(1) implementations still does not 77 The following are the options that bc(1) accepts. 142 then after processing all expressions and files, bc(1) will exit, unless [all …]
|
/freebsd/contrib/bc/gen/ |
H A D | bc_help.txt | 32 * The bc help text. 38 bc is a command-line, arbitrary-precision calculator with a Turing-complete 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 [all...] |
/freebsd/contrib/netbsd-tests/lib/libc/regex/data/ |
H A D | repet_bounded.in | 6 \{ bC BADRPT 10 \{\} bC BADRPT 29 a\{1 bC EBRACE 31 a\{1a bC EBRACE 33 a\{1a\} bC BADBR 38 a\{,2\} bC BADBR 43 a\{,\} bC BADBR 45 a\{1,x\} bC BADBR 47 a\{1,x bC EBRACE 49 a\{300\} bC BADBR [all …]
|
H A D | backref.in | 2 a\(b\)\2c bC ESUBREG 3 a\(b\1\)c bC ESUBREG 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
|