Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add some references, most of these were removed when we stopped building | 2021-03-08 | 1 | -2/+8 | |
| | | | | | | and installing USD/SMM/PSD docs. jmc@ agrees with the direction, ok millert@ on an earlier diff | ||||
* | More Version 1 AT&T UNIX history. | 2019-09-06 | 1 | -4/+4 | |
| | | | | | | This became possible because copies of the original v1 manuals have shown up on the Internet some time ago. Reminded by Sevan Janiyan <venture37 at geeklan dot co dot uk>. | ||||
* | small optimization in bexp; from kshe | 2017-12-29 | 1 | -5/+5 | |
| | |||||
* | Use proper BN functions for error reporting; from kshe | 2017-12-17 | 1 | -5/+11 | |
| | |||||
* | Use bn_checkp() always; from kshe | 2017-12-12 | 1 | -3/+2 | |
| | |||||
* | Minor cleanup from kshe | 2017-12-12 | 1 | -23/+17 | |
| | |||||
* | optimize add, sub and mul; from kshe; ok tom@ | 2017-12-12 | 1 | -28/+15 | |
| | |||||
* | zap a few stray backslashes from the time thesse two were #defines; from | 2017-12-07 | 1 | -3/+3 | |
| | | | | Ilya Kaliman | ||||
* | strdup -> bstrdup; from Michael W. Bombardieri | 2017-12-06 | 2 | -7/+4 | |
| | |||||
* | use a global BN_CTX; from kshe with a twist from myself | 2017-12-05 | 1 | -50/+18 | |
| | |||||
* | make 0Z do what the original dc and gnu bcc do; ok tom@ | 2017-12-02 | 2 | -3/+4 | |
| | |||||
* | Add a caveat wrt use of non-decimal fractional notation; from kshe; ok jmc@ | 2017-12-02 | 1 | -3/+8 | |
| | |||||
* | fix buglet in split_number() and optimize count_digits(); | 2017-12-01 | 1 | -18/+50 | |
| | | | | from kshe with a twist from myself; ok tb@ | ||||
* | fold bsqrt_stop into bsqrt; from kshe; ok tom@ | 2017-11-29 | 1 | -27/+12 | |
| | |||||
* | simplify print_ascii; from kshe; ok tom@ | 2017-11-29 | 1 | -11/+3 | |
| | |||||
* | Pledge can be done earlier; from kshe | 2017-11-29 | 1 | -4/+6 | |
| | |||||
* | zap newline in warn(); from kshe | 2017-11-28 | 1 | -2/+2 | |
| | |||||
* | zap dead stores; prompted by a diff from kshe | 2017-11-28 | 1 | -6/+3 | |
| | |||||
* | garbage collect a few functions that are not really needed; from kshe | 2017-11-28 | 1 | -27/+6 | |
| | |||||
* | document that the 'e' command is non-portable; from kshe; ok jmc@ | 2017-11-28 | 1 | -2/+3 | |
| | |||||
* | Safer handling of the jump_table[] in dc's bcode.c | 2017-11-27 | 1 | -8/+17 | |
| | | | | | | Based on a diff sent to tech@ by kshe59 (at)zoho (dot) eu - thanks ok otto@, who also remembered to check the regression tests | ||||
* | Move away from BN_zero, the one returning an int is deprecated and the | 2017-02-26 | 2 | -6/+6 | |
| | | | | new one is a void function. From Daniel Cegielka. | ||||
* | Introduce e command, equivalent to p, but writes to stderr | 2017-02-23 | 2 | -3/+21 | |
| | |||||
* | replace all references to bn(3) with BN_new(3), | 2016-12-10 | 1 | -3/+3 | |
| | | | | and make sure all BN*(3) pages point back to BN_new(3) | ||||
* | getopt(3) can be called twice (once for bc and once for dc), so reinit getopt | 2016-07-17 | 1 | -1/+3 | |
| | | | | ok deraadt@ | ||||
* | some style(9) and redundant tests for NULL, from Michael W. Bombardieri | 2016-03-27 | 2 | -43/+23 | |
| | |||||
* | Surround pledge calls with blank lines. | 2015-11-03 | 1 | -1/+5 | |
| | |||||
* | Rather than invoking fork/execve of dc(1) on a pipe, compile in the dc(1) | 2015-10-10 | 4 | -8/+41 | |
| | | | | | | | | | | | code directly and use it as a subfunction. This refactoring allows use of pledge "stdio rpath proc tty" in the main bc(1) process before fork, pledge "stdio rpath tty" after fork, and fully reduced to "stdio" in the dc(1) child. This requires two recent to the kernel code (allowing sigsuspend(), and kill() self as pid 0). ok otto | ||||
* | Change all tame callers to namechange to pledge(2). | 2015-10-09 | 1 | -7/+7 | |
| | |||||
* | Now that dc(1) no longer supports !command with popen(), we can start | 2015-10-03 | 1 | -1/+7 | |
| | | | | | off with tame "stdio rpath". Once the (optional) file is opened, a further drop down to tame "stdio" works. | ||||
* | delete documentation for ! command | 2015-10-03 | 1 | -6/+2 | |
| | |||||
* | disable ! command, makes dc(1) more tameable | 2015-10-03 | 1 | -10/+2 | |
| | |||||
* | Include bn.h and err.h from <openssl/...>, not the old <ssl/...> location. | 2015-02-16 | 4 | -8/+6 | |
| | | | | | | Remove unneeded ssl.h includes. Also built-checked against openssl-1.0.1e. ok otto@ | ||||
* | more opportunity to use reallocarray(); ok otto | 2014-12-01 | 4 | -11/+11 | |
| | |||||
* | Prefer setvbuf() to setlinebuf() for portability; ok deraadt@ | 2014-11-26 | 1 | -3/+3 | |
| | |||||
* | init array field in the proper place, see regress test t27; | 2014-11-26 | 1 | -4/+4 | |
| | | | | from Sebastien Marie | ||||
* | userland reallocarray audit. | 2014-10-08 | 1 | -2/+2 | |
| | | | | | | | Replace malloc() and realloc() calls that may have integer overflow in the multiplication of the arguments with reallocarray(). ok deraadt@ | ||||
* | Use errc/warnc to simplify code. | 2014-05-20 | 1 | -5/+3 | |
| | | | | | | Also, in 'ftp', always put the error message last, after the hostname/ipaddr. ok jsing@ krw@ millert@ | ||||
* | fix fractional number exponentiation, especially for negative exponents | 2012-11-07 | 3 | -26/+39 | |
| | |||||
* | use BN_set_negative() and BN_is_negative() instead of subtracting or | 2012-11-06 | 3 | -17/+11 | |
| | | | | comparing to zero | ||||
* | For exponenttion, only warn if the fractional part of the exponent | 2012-11-06 | 1 | -5/+21 | |
| | | | | is non-zero and avoid div by zero. Prompted by Andres Perera. | ||||
* | Stefan Unterweger pointed out that, contrary to the man page, | 2012-08-19 | 1 | -11/+17 | |
| | | | | | | dc exited after processing any expressions and/or files; this is the doc fix, as requested by (and ok) otto | ||||
* | let length(0.000) conform to what gnu bc does; from AIDA Shinra | 2012-03-08 | 1 | -2/+2 | |
| | |||||
* | more usd/psd stuff lurking... | 2010-10-18 | 1 | -8/+2 | |
| | |||||
* | more wacky macro fixing; | 2010-09-19 | 1 | -5/+5 | |
| | |||||
* | normalize() cannot be inline and extern at the same time; prompted by | 2010-05-15 | 1 | -2/+2 | |
| | | | | jsg@ | ||||
* | The .Os macro is not optional. Even with groff(1), | 2010-01-02 | 1 | -2/+3 | |
| | | | | | | forgetting it lets the footer line look incomplete and unbalanced. Markup error found by mandoc(1), also required to fix the mandoc build. ok jmc@ sobrado@ | ||||
* | rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and | 2009-10-27 | 5 | -25/+5 | |
| | | | | | | | unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms | ||||
* | check for unitialized elements when accessing an array; from Simon Kellner. | 2009-09-06 | 1 | -3/+3 | |
| | |||||
* | although there's no EOF condition defined for the handling of '?', | 2008-11-24 | 1 | -2/+3 | |
| | | | | | | but anyway reset the eof condition on stdin, so you don't get an infinite loop in the typical program after a ^D. reported by Tamas TEVESZ. |