summaryrefslogtreecommitdiff
path: root/usr.bin/dc
AgeCommit message (Expand)Author
2016-12-10replace all references to bn(3) with BN_new(3),Ingo Schwarze
2016-07-17getopt(3) can be called twice (once for bc and once for dc), so reinit getoptOtto Moerbeek
2016-03-27some style(9) and redundant tests for NULL, from Michael W. BombardieriOtto Moerbeek
2015-11-03Surround pledge calls with blank lines.mmcc
2015-10-10Rather than invoking fork/execve of dc(1) on a pipe, compile in the dc(1)Theo de Raadt
2015-10-09Change all tame callers to namechange to pledge(2).Theo de Raadt
2015-10-03Now that dc(1) no longer supports !command with popen(), we can startTheo de Raadt
2015-10-03delete documentation for ! commandTheo de Raadt
2015-10-03disable ! command, makes dc(1) more tameableOtto Moerbeek
2015-02-16Include bn.h and err.h from <openssl/...>, not the old <ssl/...> location.Jeremie Courreges-Anglas
2014-12-01more opportunity to use reallocarray(); ok ottoTheo de Raadt
2014-11-26Prefer setvbuf() to setlinebuf() for portability; ok deraadt@Todd C. Miller
2014-11-26init array field in the proper place, see regress test t27;Otto Moerbeek
2014-10-08userland reallocarray audit.Doug Hogan
2014-05-20Use errc/warnc to simplify code.Philip Guenther
2012-11-07fix fractional number exponentiation, especially for negative exponentsOtto Moerbeek
2012-11-06use BN_set_negative() and BN_is_negative() instead of subtracting orOtto Moerbeek
2012-11-06For exponenttion, only warn if the fractional part of the exponentOtto Moerbeek
2012-08-19Stefan Unterweger pointed out that, contrary to the man page,Jason McIntyre
2012-03-08let length(0.000) conform to what gnu bc does; from AIDA ShinraOtto Moerbeek
2010-10-18more usd/psd stuff lurking...Jason McIntyre
2010-09-19more wacky macro fixing;Jason McIntyre
2010-05-15normalize() cannot be inline and extern at the same time; prompted byOtto Moerbeek
2010-01-02The .Os macro is not optional. Even with groff(1),Ingo Schwarze
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
2009-09-06check for unitialized elements when accessing an array; from Simon Kellner.Otto Moerbeek
2008-11-24although there's no EOF condition defined for the handling of '?',Otto Moerbeek
2008-04-28plug three leaks, one reported and fixed by Andreas Gunnarsson in PR 5802,Otto Moerbeek
2008-04-26use correct printf format for size_t (debug only code)Otto Moerbeek
2007-09-02more malloc(n * m) -> calloc(n, m); from Igor ZinovikTheo de Raadt
2007-07-29sync the command usage with its synopsisIgor Sobrado
2007-05-31convert to new .Dd format;Jason McIntyre
2007-02-24put `I' in the right place; from Igor SobradoJason McIntyre
2006-11-26repair missing DPADD requestsTheo de Raadt
2006-03-25Use fstat(3) instead of stat(3) as a matter of principle. We don'tOtto Moerbeek
2006-03-24For those of us (including me) who can't type: show an error message ifOtto Moerbeek
2006-03-07Typo. ok otto@Kjell Wooding
2006-01-19delint: check value against UINT_MAX before casting to u_int; whileOtto Moerbeek
2006-01-16delint; use size_t as stack size and ssize_t as stack pointer.Otto Moerbeek
2006-01-15delint; index is a global symbol, so rename some locals to avoidOtto Moerbeek
2006-01-15delint wrt return values, including some missing BN returnOtto Moerbeek
2005-12-14Fix parsing of non-decimal fractions, which was giving bogus results.Otto Moerbeek
2005-09-30deploy .An -nosplit; ok jmcJared Yanovich
2005-09-25Fix wrong normalization in compare. From andreas@Otto Moerbeek
2005-04-02- Fix raise for negative exponents (noted by naddy@)Otto Moerbeek
2005-03-29Nicer wrapping. We used to mimick the old dc(1), which printsOtto Moerbeek
2005-03-28Linefeed is part of a line according to POSIX, so take that into accountOtto Moerbeek
2005-03-28spacingTheo de Raadt
2005-03-27Use inclusive bound check for line length, it is more clear.Otto Moerbeek
2005-03-27Make call stack auto-growing, instead of fixed size. Enables much deeperOtto Moerbeek