| /freebsd/contrib/bc/tests/bc/scripts/ |
| H A D | all.txt | 1 multiply_00100.bc 2 multiply_00200.bc 3 multiply_00300.bc 4 multiply_00400.bc 5 multiply_00500.bc 6 multiply_00600.bc 7 multiply_00700.bc 8 multiply_00800.bc 9 multiply_00900.bc 10 multiply_01000.bc [all …]
|
| /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` 9 This is an implementation of the [POSIX `bc` calculator][12] that implements 10 [GNU `bc`][1] extensions, as well as the period (`.`) extension for the BSD 11 flavor of `bc`. 13 For more information, see this `bc`'s full manual. 15 This `bc` also includes an implementation of `dc` in the same binary, accessible 17 standalone `dc` binary is desired, `bc` can be copied and renamed to `dc`.) The 23 This `bc` also provides `bc`'s math as a library with C bindings, called `bcl`. 29 This `bc` is Free and Open Source Software (FOSS). It is offered under the BSD 34 This `bc` only requires either: [all …]
|
| H A D | NEWS.md | 43 The first bug is that `bc`/`dc` will exit on macOS when the terminal is resized. 57 The bug was that `bc` attempted to jump out when flushing `stdout` on exit, but 71 This is a production release to fix problems in the `bc` manual. 142 This is a production release that fixes a `bc` dependency loop for minimal 168 `tests/bc/scripts/timeconst.bc` doesn't exist. This should only affect 177 This is a production release that moves `bc` to <https://git.gavinhoward.com>. 188 parameter had the same name as the array whose element was used, `bc` would grab 202 * A crash when `bc` and `dc` are built using editline, but history is not 221 This is a production release that fixes a discrepancy from the `bc` standard, 224 The discrepancy from the `bc` standard was with regards to the behavior of the [all …]
|
| H A D | build.gaml | 36 project: @com.gavinhoward.bc 84 // This is the predefined build to match the GNU bc/dc. 108 bc/default_banner: true 109 bc/default_sigint_reset: true 111 bc/default_tty_mode: true 113 bc/default_prompt: @tty_mode 115 bc/default_expr_exit: false 117 bc/default_digit_clamp: true 127 bc/default_banner: true 128 bc/default_sigint_reset: true [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/project/ |
| H A D | github_issues.json | 10 …bc' to perform a calculation in a shell script and I'm getting the incorrect result from a simple … 20 …bc` is not like other calculators that figure out what precision they need. Instead, `bc` requires… 33 "url": "https://github.com/gavinhoward/bc/issues/87#issuecomment-2683017820", 42 "body": "Thanks, i solved the problem with '-l' to 'bc'\n\ne.g:\necho '1 + 1' | bc -l", 48 "url": "https://github.com/gavinhoward/bc/issues/87#issuecomment-2683611929", 65 "url": "https://github.com/gavinhoward/bc/issues/87" 75 …bc files stored in the same directory as the program (from your modified function files from Carl'… 85 …bc` will load the files in the Windows 10 terminal, and that is because, as far as I know, wildcar… 91 "url": "https://github.com/gavinhoward/bc/issues/85#issuecomment-2466757035", 106 "url": "https://github.com/gavinhoward/bc/issues/85#issuecomment-2466996037", [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 limits keyword. [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/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" 84 printf '%s is not part of this bc because of license incompatibility\n' "$timeconst" 85 printf 'Get it at https://github.com/torvalds/linux/blob/master/kernel/time/timeconst.bc\n' 99 # Get a list of numbers. Funny how bc can help with that. [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 12 The general form of configuring, building, and installing this `bc` is as 45 For releases, Windows builds of `bc`, `dc`, and `bcl` are available for download 48 However, if you wish to build it yourself, this `bc` can be built using Visual 54 `{BC,DC}_SIGINT_RESET=0`, `{BC,DC}_TTY_MODE=1`, `{BC,DC}_PROMPT=1`. 60 In Visual Studio, open up the solution file (`bc.sln` for `bc`, or `bcl.sln` for 68 To build `bc`, run the following from the root directory: 71 msbuild -property:Configuration=<config> vs/bc.sln 86 Building `bc`, `dc`, and `bcl` (the library) is more complex than on Windows 95 For example, if the source is in `bc`, the build should happen in `build`, then [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/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 | EH.1.md | 33 bc - arbitrary-precision decimal arithmetic language and calculator 37 **bc** [**-cCghilPqRsvVw**] [**-\-digit-clamp**] [**-\-no-digit-clamp**] [**-\-global-stacks**] [**… 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(1) reserves as a keyword is 59 If parsing scripts meant for other bc(1) implementations still does not work, 64 The following are the options that bc(1) accepts. [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 | EHN.1.md | 33 bc - arbitrary-precision decimal arithmetic language and calculator 37 **bc** [**-cCghilPqRsvVw**] [**-\-digit-clamp**] [**-\-no-digit-clamp**] [**-\-global-stacks**] [**… 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(1) reserves as a keyword is 59 If parsing scripts meant for other bc(1) implementations still does not work, 64 The following are the options that bc(1) accepts. [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 | 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**] [**… 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(1) reserves as a keyword is 59 If parsing scripts meant for other bc(1) implementations still does not work, 64 The following are the options that bc(1) accepts. [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**] [**… 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(1) reserves as a keyword is 59 If parsing scripts meant for other bc(1) implementations still does not work, 64 The following are the options that bc(1) accepts. [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://github.com/gavinhoward/bc/tree/%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. [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
|