summaryrefslogtreecommitdiffstats
path: root/bin/expr/expr.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix overflows while handling 64 bit integers.tobias2018-03-311-47/+52
| | | | | | Based on FreeBSD's expr and NetBSD's old regression test suite. with input by and ok schwarze
* Delete useless setlocale(3) in src/bin/.schwarze2016-10-191-23/+9
| | | | | | Minor cleanup while here: return from main, static void __dead usage, etc. Based on a patch from Jan Stary <hans at stare dot cz>. Feedback and OK tb@, OK millert@.
* need to increase INT_MAX to 64 bits too. from Nathan Holsteintedu2016-01-071-3/+4
|
* use int64_t for arithmetic. 64 bits ought to be enough for anyone.tedu2016-01-061-12/+12
| | | | ok deraadt millert schwarze
* fix exit status on pledge(2) failure.gsoares2015-12-291-2/+2
| | | | OK tb@ jsg@
* Change all tame callers to namechange to pledge(2).deraadt2015-10-091-3/+3
|
* expr can use tame "stdio"deraadt2015-10-041-1/+5
| | | | ok semarie
* avoid casts of malloc() if stdlib.h is presentderaadt2015-08-111-3/+3
|
* add unsigned char casts for specific calls to ctype.h macros.deraadt2013-11-211-2/+2
| | | | ok guenther step
* Don't die with SIGFPE on INT_MIN / -1 or % -1. Instead make INT_MIN /nicm2013-03-281-3/+8
| | | | | | -1 == INT_MIN and % -1 == 0. ok matthew deraadt
* handle -- as POSIX requires; from kili@outback.escape.de; ok ottoderaadt2006-06-211-1/+5
|
* use asprintf instead; dhill@mindcry.orgderaadt2005-11-121-7/+3
|
* ansification, art okderaadt2003-06-111-2/+2
|
* add prototypes; ok millert@ w/ 'static', 'no static', deraadt@jsyn2003-05-141-2/+17
|
* use a variablederaadt2003-04-151-3/+5
|
* ansideraadt2002-07-041-29/+17
|
* knftodd2002-06-091-3/+3
|
* Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert2002-02-161-2/+2
|
* let "expr a : /" work. Mark the next token after the match operator as aderaadt1997-11-131-14/+17
| | | | | pattern, causing the lexical analyzer to short-circuit around operator parsing. my fix to netbsd pr#4187, augustss@cs.chalmers.se
* i am bored enough to fix terminal space/tab ugliesderaadt1997-09-011-2/+2
|
* POSIX 1003.2: exit code is 3 if memory allocation fails, 2 if expr invalid.denny1997-08-191-4/+4
|
* tabifykstailey1997-07-231-20/+20
|
* -Wall'ing.mickey1996-12-141-3/+7
|
* sprintf -> snprintf paranoiamillert1996-09-151-2/+2
|
* update rcsidderaadt1996-06-231-0/+1
|
* handle locale being incorrectderaadt1996-06-101-5/+2
|
* initial import of NetBSD treederaadt1995-10-181-0/+507