History log of /openbsd-src/bin/expr/expr.c (Results 1 – 25 of 28)
Revision Date Author Comments
# d51a2013 28-Jan-2022 guenther <guenther@openbsd.org>

When it's the possessive of 'it', it's spelled "its", without the
apostrophe.


# b50a997f 31-Mar-2018 tobias <tobias@openbsd.org>

Fix overflows while handling 64 bit integers.
Based on FreeBSD's expr and NetBSD's old regression test suite.

with input by and ok schwarze


# 8351f622 19-Oct-2016 schwarze <schwarze@openbsd.org>

Delete useless setlocale(3) in src/bin/.
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 mil

Delete useless setlocale(3) in src/bin/.
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@.

show more ...


# 88ce8894 07-Jan-2016 tedu <tedu@openbsd.org>

need to increase INT_MAX to 64 bits too. from Nathan Holstein


# 66d86d0d 06-Jan-2016 tedu <tedu@openbsd.org>

use int64_t for arithmetic. 64 bits ought to be enough for anyone.
ok deraadt millert schwarze


# 9b7f4c17 29-Dec-2015 gsoares <gsoares@openbsd.org>

fix exit status on pledge(2) failure.

OK tb@ jsg@


# 0bd1216c 09-Oct-2015 deraadt <deraadt@openbsd.org>

Change all tame callers to namechange to pledge(2).


# da60dcb2 04-Oct-2015 deraadt <deraadt@openbsd.org>

expr can use tame "stdio"
ok semarie


# 6387ec8b 11-Aug-2015 deraadt <deraadt@openbsd.org>

avoid casts of malloc() if stdlib.h is present


# cd3e3e8c 21-Nov-2013 deraadt <deraadt@openbsd.org>

add unsigned char casts for specific calls to ctype.h macros.
ok guenther step


# eb0048ba 28-Mar-2013 nicm <nicm@openbsd.org>

Don't die with SIGFPE on INT_MIN / -1 or % -1. Instead make INT_MIN /
-1 == INT_MIN and % -1 == 0.

ok matthew deraadt


# 1c330814 21-Jun-2006 deraadt <deraadt@openbsd.org>

handle -- as POSIX requires; from kili@outback.escape.de; ok otto


# 0f6bc68e 12-Nov-2005 deraadt <deraadt@openbsd.org>

use asprintf instead; dhill@mindcry.org


# 28416801 11-Jun-2003 deraadt <deraadt@openbsd.org>

ansification, art ok


# 25064ecf 14-May-2003 jsyn <jsyn@openbsd.org>

add prototypes; ok millert@ w/ 'static', 'no static', deraadt@


# 8b14c5c5 15-Apr-2003 deraadt <deraadt@openbsd.org>

use a variable


# ab83b6d6 04-Jul-2002 deraadt <deraadt@openbsd.org>

ansi


# 885e28c6 09-Jun-2002 todd <todd@openbsd.org>

knf


# c72b5b24 16-Feb-2002 millert <millert@openbsd.org>

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 don

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.

show more ...


# fa6b74f3 13-Nov-1997 deraadt <deraadt@openbsd.org>

let "expr a : /" work. Mark the next token after the match operator as a
pattern, causing the lexical analyzer to short-circuit around operator
parsing. my fix to netbsd pr#4187, augustss@cs.chalmer

let "expr a : /" work. Mark the next token after the match operator as a
pattern, causing the lexical analyzer to short-circuit around operator
parsing. my fix to netbsd pr#4187, augustss@cs.chalmers.se

show more ...


# 31e4d015 01-Sep-1997 deraadt <deraadt@openbsd.org>

i am bored enough to fix terminal space/tab uglies


# f286c4b1 19-Aug-1997 denny <denny@openbsd.org>

POSIX 1003.2: exit code is 3 if memory allocation fails, 2 if expr invalid.


# b050bea3 23-Jul-1997 kstailey <kstailey@openbsd.org>

tabify


# 764064c4 14-Dec-1996 mickey <mickey@openbsd.org>

-Wall'ing.


# 45c72c98 15-Sep-1996 millert <millert@openbsd.org>

sprintf -> snprintf paranoia


12