Age | Commit message (Collapse) | Author | |
---|---|---|---|
2024-11-07 | Use LibreSSLs specialized functions to print base 10 and base 16. | Otto Moerbeek | |
Also optimize the general case a bit. ok semarie@ | |||
2024-04-23 | correct indentation; no functional change | Jonathan Gray | |
ok tb@ | |||
2023-03-08 | Delete obsolete /* ARGSUSED */ lint comments. | Philip Guenther | |
ok miod@ millert@ | |||
2021-11-10 | Move two BIGNUMs in printnumber() from the stack to the heap to | Theo Buehler | |
prepare bc(1) and dc(1) for opaque BIGNUMs. "looks sane" otto | |||
2021-03-08 | Add some references, most of these were removed when we stopped building | Jonathan Gray | |
and installing USD/SMM/PSD docs. jmc@ agrees with the direction, ok millert@ on an earlier diff | |||
2019-09-06 | More Version 1 AT&T UNIX history. | Ingo Schwarze | |
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>. | |||
2017-12-29 | small optimization in bexp; from kshe | Otto Moerbeek | |
2017-12-17 | Use proper BN functions for error reporting; from kshe | Otto Moerbeek | |
2017-12-12 | Use bn_checkp() always; from kshe | Otto Moerbeek | |
2017-12-12 | Minor cleanup from kshe | Otto Moerbeek | |
2017-12-12 | optimize add, sub and mul; from kshe; ok tom@ | Otto Moerbeek | |
2017-12-07 | zap a few stray backslashes from the time thesse two were #defines; from | Otto Moerbeek | |
Ilya Kaliman | |||
2017-12-06 | strdup -> bstrdup; from Michael W. Bombardieri | Otto Moerbeek | |
2017-12-05 | use a global BN_CTX; from kshe with a twist from myself | Otto Moerbeek | |
2017-12-02 | make 0Z do what the original dc and gnu bcc do; ok tom@ | Otto Moerbeek | |
2017-12-02 | Add a caveat wrt use of non-decimal fractional notation; from kshe; ok jmc@ | Otto Moerbeek | |
2017-12-01 | fix buglet in split_number() and optimize count_digits(); | Otto Moerbeek | |
from kshe with a twist from myself; ok tb@ | |||
2017-11-29 | fold bsqrt_stop into bsqrt; from kshe; ok tom@ | Otto Moerbeek | |
2017-11-29 | simplify print_ascii; from kshe; ok tom@ | Otto Moerbeek | |
2017-11-29 | Pledge can be done earlier; from kshe | Otto Moerbeek | |
2017-11-28 | zap newline in warn(); from kshe | Otto Moerbeek | |
2017-11-28 | zap dead stores; prompted by a diff from kshe | Otto Moerbeek | |
2017-11-28 | garbage collect a few functions that are not really needed; from kshe | Otto Moerbeek | |
2017-11-28 | document that the 'e' command is non-portable; from kshe; ok jmc@ | Otto Moerbeek | |
2017-11-27 | Safer handling of the jump_table[] in dc's bcode.c | Tom Cosgrove | |
Based on a diff sent to tech@ by kshe59 (at)zoho (dot) eu - thanks ok otto@, who also remembered to check the regression tests | |||
2017-02-26 | Move away from BN_zero, the one returning an int is deprecated and the | Otto Moerbeek | |
new one is a void function. From Daniel Cegielka. | |||
2017-02-23 | Introduce e command, equivalent to p, but writes to stderr | Otto Moerbeek | |
2016-12-10 | replace all references to bn(3) with BN_new(3), | Ingo Schwarze | |
and make sure all BN*(3) pages point back to BN_new(3) | |||
2016-07-17 | getopt(3) can be called twice (once for bc and once for dc), so reinit getopt | Otto Moerbeek | |
ok deraadt@ | |||
2016-03-27 | some style(9) and redundant tests for NULL, from Michael W. Bombardieri | Otto Moerbeek | |
2015-11-03 | Surround pledge calls with blank lines. | mmcc | |
2015-10-10 | Rather than invoking fork/execve of dc(1) on a pipe, compile in the dc(1) | Theo de Raadt | |
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 | |||
2015-10-09 | Change all tame callers to namechange to pledge(2). | Theo de Raadt | |
2015-10-03 | Now that dc(1) no longer supports !command with popen(), we can start | Theo de Raadt | |
off with tame "stdio rpath". Once the (optional) file is opened, a further drop down to tame "stdio" works. | |||
2015-10-03 | delete documentation for ! command | Theo de Raadt | |
2015-10-03 | disable ! command, makes dc(1) more tameable | Otto Moerbeek | |
2015-02-16 | Include bn.h and err.h from <openssl/...>, not the old <ssl/...> location. | Jeremie Courreges-Anglas | |
Remove unneeded ssl.h includes. Also built-checked against openssl-1.0.1e. ok otto@ | |||
2014-12-01 | more opportunity to use reallocarray(); ok otto | Theo de Raadt | |
2014-11-26 | Prefer setvbuf() to setlinebuf() for portability; ok deraadt@ | Todd C. Miller | |
2014-11-26 | init array field in the proper place, see regress test t27; | Otto Moerbeek | |
from Sebastien Marie | |||
2014-10-08 | userland reallocarray audit. | Doug Hogan | |
Replace malloc() and realloc() calls that may have integer overflow in the multiplication of the arguments with reallocarray(). ok deraadt@ | |||
2014-05-20 | Use errc/warnc to simplify code. | Philip Guenther | |
Also, in 'ftp', always put the error message last, after the hostname/ipaddr. ok jsing@ krw@ millert@ | |||
2012-11-07 | fix fractional number exponentiation, especially for negative exponents | Otto Moerbeek | |
2012-11-06 | use BN_set_negative() and BN_is_negative() instead of subtracting or | Otto Moerbeek | |
comparing to zero | |||
2012-11-06 | For exponenttion, only warn if the fractional part of the exponent | Otto Moerbeek | |
is non-zero and avoid div by zero. Prompted by Andres Perera. | |||
2012-08-19 | Stefan Unterweger pointed out that, contrary to the man page, | Jason McIntyre | |
dc exited after processing any expressions and/or files; this is the doc fix, as requested by (and ok) otto | |||
2012-03-08 | let length(0.000) conform to what gnu bc does; from AIDA Shinra | Otto Moerbeek | |
2010-10-18 | more usd/psd stuff lurking... | Jason McIntyre | |
2010-09-19 | more wacky macro fixing; | Jason McIntyre | |
2010-05-15 | normalize() cannot be inline and extern at the same time; prompted by | Otto Moerbeek | |
jsg@ |