summaryrefslogtreecommitdiff
path: root/usr.bin/dc/dc.c
AgeCommit message (Expand)Author
2024-04-23correct indentation; no functional changeJonathan Gray
2017-12-06strdup -> bstrdup; from Michael W. BombardieriOtto Moerbeek
2017-11-29Pledge can be done earlier; from ksheOtto Moerbeek
2016-07-17getopt(3) can be called twice (once for bc and once for dc), so reinit getoptOtto 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
2014-11-26Prefer setvbuf() to setlinebuf() for portability; ok deraadt@Todd C. Miller
2014-05-20Use errc/warnc to simplify code.Philip Guenther
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
2007-07-29sync the command usage with its synopsisIgor Sobrado
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-01-15delint wrt return values, including some missing BN returnOtto Moerbeek
2004-10-18Implement command line evaluation of expressions by implementing the -e option.Otto Moerbeek
2004-01-13Add missing include. From espie@Otto Moerbeek
2003-12-01Allow for more registers using a 2 byte index. This feature isOtto Moerbeek
2003-09-19blanksTheo de Raadt
2003-09-19spacesTheo de Raadt
2003-09-19A complete, BSD licensed rewrite of dc(1), using the bn(3) big number routines.Otto Moerbeek