summaryrefslogtreecommitdiffstats
path: root/usr.bin/bc
Commit message (Collapse)AuthorAgeFilesLines
* DIRDEPS_BUILD: Regenerate without local dependencies.bdrewery2016-02-241-6/+0
| | | | | | | | These are no longer needed after the recent 'beforebuild: depend' changes and hooking DIRDEPS_BUILD into a subset of FAST_DEPEND which supports skipping 'make depend'. Sponsored by: EMC / Isilon Storage Division
* bc(1): Fix memory corruption issuespfg2015-11-241-9/+14
| | | | | | | Fix crashes and hangs found by AFL. Improve handling of non-ascii chars. Obtained from: OpenBSD (CVS rev 1.49)
* bc: sync with OpenBSDpfg2015-11-224-13/+14
| | | | | | | | | | | | | | | | | | | tty.c Rev. 1.3 Avoid unintended problems with operator precedence when doing an assignment and comparison. bc.1, Rev. 1.31, 1.32 '.Ql Quit' -> '.Ql quit' because only the lowercase command is valid. Clarify sentence about `quit` in BUGS section. extern.h, Rev. 1.12 whitespace bc.y, Rev. 1.47 Prefer setvbuf() to setlinebuf() for portability Obtained from: OpenBSD MFC after: 2 weeks
* Add META_MODE support.sjg2015-06-131-0/+27
|\ | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-081-2/+0
| |
| * Merge sync of headsjg2015-05-272-2/+2
| |\ | |/ |/|
| * Updated/new dependenciessjg2014-11-191-1/+0
| |
| * Merge from head@274682sjg2014-11-191-2/+2
| |\
| * \ Merge head from 7/28sjg2014-08-191-0/+1
| |\ \
| * | | Updated dependenciessjg2014-05-161-1/+0
| | | |
| * | | Updated dependenciessjg2014-05-101-0/+2
| | | |
| * | | Merge headsjg2014-04-287-131/+288
| |\ \ \ | | |/ /
| * | | Merge from headsjg2013-09-052-0/+3
| |\ \ \
| * | | | Updated dependenciessjg2013-03-111-0/+1
| | | | |
| * | | | Updated dependenciessjg2013-02-161-2/+0
| | | | |
| * | | | Sync with HEAD.obrien2013-02-081-1/+1
| |\ \ \ \
| * | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | | | | Convert to usr.bin/ to LIBADDbapt2014-11-251-2/+1
| |_|_|_|/ |/| | | | | | | | | | | | | | Reduce overlinking
* | | | | Convert LIBCURSES to LIBNCURSES to fix "make checkdpadd"ngie2014-08-261-2/+2
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also, add a missing LIBPANEL dependency for lldb Approved by: rpaulo (mentor) Suggested by: brooks MFC after: 5 days Phabric: D675 (as part of a larger diff) PR: 192762
* | | | Stop casting the const char * to void * to char * to make compile more happybz2014-04-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | after r264573. Someone submit to: OpenBSD MFC after: 13 days X-MFC with: r264573
* | | | Remove duplicate extern declarations after r264573.bz2014-04-171-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Makes things compile better. Someone submit to: OpenBSD MFC after: 13 days X-MFC with: r264573
* | | | Sync with OpenBSD.delphij2014-04-167-129/+281
| | | | | | | | | | | | | | | | MFC after: 2 weeks
* | | | Document -q and --quiet as discouraged compatibility option.delphij2013-12-071-1/+9
| | | | | | | | | | | | | | | | | | | | Suggested by: eadler MFC after: 2 weeks
* | | | Remove mention of the compatibility option 'q', which isdelphij2013-12-072-2/+2
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | intentionally undocumented and its only purpose is that we do not bail out when used as a drop-in replacement of a different implementation. PR: docs/184550 MFC after: 2 weeks
* | | Work around build breakages with GCC 4.2.jkim2013-05-231-0/+1
| | | | | | | | | | | | Reported by: tinderbox
* | | Add the Clang specific -Wmissing-variable-declarations to WARNS=6.ed2013-04-191-0/+2
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | This compiler flag enforces that that people either mark variables static or use an external declarations for the variable, similar to how -Wmissing-prototypes works for functions. Due to the fact that Yacc/Lex generate code that cannot trivially be changed to not warn because of this (lots of yy* variables), add a NO_WMISSING_VARIABLE_DECLARATIONS that can be used to turn off this specific compiler warning. Announced on: toolchain@
* | Make definition match declarationeadler2012-11-151-1/+1
|/ | | | | Approved by: cperciva MFC after: 3 days
* Fix world after byacc import:bapt2012-05-221-1/+0
| | | | | | | | - old yacc(1) use to magicially append stdlib.h, while new one don't - new yacc(1) do declare yyparse by itself, fix redundant declaration of 'yyparse' Approved by: des (mentor)
* Repair function when used with large scaleskevlo2012-03-181-2/+3
| | | | Submitted by: AIDA Shinra <shinra at j10n dot org>
* - Fix an erroneous invocation of the editline.kevlo2012-03-152-21/+32
| | | | | | | | - Fix wrong scaling in the bc.library. - Let length(0.000) conform to what gnu bc does. PR: bin/159227 Submitted by: AIDA Shinra <shinra at j10n dot org>
* Remove extra sentence, a leftover from r202845.stefanf2012-01-251-2/+0
|
* Move most of the remaining USD/PSD/SMM papers into share/docuqs2010-12-041-1241/+0
|
* Fix some more warnings found by clang.brucec2010-11-221-0/+1
|
* - Fix signal handling in bc/dc. Now Ctrl-C terminates the execution.gabor2010-06-061-19/+0
| | | | | Requested by: gk (via private mail) Approved by: delphij (mentor)
* Fix a bug in previous revision.delphij2010-02-051-1/+1
| | | | | | | | | | | | The bc(1) program may need to deal with files when it's being run in interactive mode, so we can not blindly use interactive mode (in turn use libedit) but need to check if the input source is really the standard input. This commit should fix a regression where 'bc -l' would not parse the mathlib. Reported by: trasz
* Use libedit when interacting with tty, which provided historydelphij2010-02-044-1/+65
| | | | | | | | | | functionality, etc. as did by GNU bc. This also fixes an issue where BSDL bc can not handle very long line. Reported by: imp Reviewed by: imp
* - style(9)gabor2010-02-032-32/+41
| | | | Approved by: delphij (mentor)
* - style.Makefile(5)gabor2010-02-031-5/+5
| | | | | Submitted by: uqs Approved by: delphij (mentor)
* - Remove --debug option and intentionally undocument -d, which is onlydelphij2010-01-222-15/+10
| | | | | | | | | kept for compatibility with 4.4BSD behavior. - Sync SYNOPSIS with usage(). - Use an alternative way to represent short and long options which have same semantics. Reviewed by: gabor
* Move USD documents from /usr/share/doc/papers to to /usr/share/doc/usd.delphij2010-01-222-14/+0
| | | | Reviewed by: gabor
* Makefile cleanups:delphij2010-01-211-6/+1
| | | | | | | | o Enable building of USD o Remove commented out targets o Remove WARNS?=6 lines since it's the default Reviewed by: gabor
* Replace GNU bc/dc with BSDL versions ported from OpenBSD. They have a goodgabor2010-01-209-0/+3460
compatibility level with the GNU counterparts and have shown to be mature enough. For now, the GNU versions aren't removed from the tree, just detached from the build. Sponsored by: Google Summer of Code 2008 Portbuild run by: erwin Approved by: delphij
OpenPOWER on IntegriCloud