summaryrefslogtreecommitdiffstats
path: root/bin/ksh/c_test.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* When system calls indicate an error they return -1, not some arbitraryderaadt2019-06-281-2/+2
| | | | | | value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
* Allow string greater/less than than operators to work with test aka [.millert2019-06-191-6/+3
| | | | | | Previously they were only recognized in [[ ... ]] expressions. This changes sh/ksh to be consistent with test(1) as well as shells like bash and dash. OK jca@ jmc@
* Support 64 bit integers on 32 bit architectures.tobias2018-04-091-2/+2
| | | | | | | No binary change on amd64 and there should be no differences on any other 64 bit architecture either (because long = int64_t). ok cheloha, tb
* The hack for /dev/fd support on systems without it was removed amillert2017-12-261-27/+18
| | | | | | | | long time ago. Update the comments and replace test_stat() calls with stat() since test_stat() now just calls stat() directly. Also rename the "mode" parameter to "amode" in test_eaccess() to match access(2) and make it clear that this is the access mode and not the file mode. OK jca@
* Move system headers from sh.h to those files that actually need them.tb2015-12-141-1/+2
| | | | ok mmcc@ a while ago
* Move string.h include from sh.h to the files that use it.mmcc2015-10-191-1/+3
| | | | ok nicm@
* Apply style(9) to header includes.mmcc2015-10-191-2/+3
| | | | ok nicm@
* Last of the (thing *)0 -> NULL, from Michael McConville. No binarynicm2015-09-181-5/+5
| | | | change.
* correct spelling of NULL from (char *)0. from Michael McConville.tedu2015-09-151-2/+2
| | | | ok md5
* Fix PR #723: test(1) operator precedence inconsistent with POSIXotto2009-03-011-9/+17
| | | | | Make sure ksh builtin test and test(1) do not differ. From Christiano Farina Haesbaert. ok miod@
* lots of indentation cleanup, now ksh is readable like our other code.deraadt2005-03-301-74/+71
| | | | double checked to make sure no binaries change, and eyed by niallo
* spacingderaadt2005-03-281-3/+3
|
* Introduce POSIX hex and octal (0x... and 0...) constants in arithmeticotto2005-02-021-3/+3
| | | | | | | expressions. Work by Matthias Kilian, based on an old diff by myself. Note: MAKEDEV should be updated. Tested by many, thanks. ok millert@ deraadt@
* Use stdbool.h instead of rolling our own bools.millert2004-12-221-3/+3
|
* Ansification plus some minor knf. No binary change on i386 andotto2004-12-201-61/+28
| | | | | sparc64, binary change in lex.o on macppc due to introduction of dopprompt() prototype. ok millert@
* Get rid of #ifdef KSH since we don't care about building a V7 style sh andmillert2004-12-181-3/+1
| | | | the #ifdef KSH code is required to make a POSIX sh. From Matthias Kilian
* Remove unused OS dependent #ifdef blocks, #defines and macro abstraction.millert2004-12-181-84/+14
| | | | First step in making the ksh code easier to read. From Matthias Kilian
* The special case code for "test -x" over NFS was incorrect. Themillert2003-10-101-10/+6
| | | | | | right thing to do is to try access(2) first (since that occurs on the NFS server side) and only check for the absence of an execute bit when access(2) succeeds. Closes PR 3465
* typos; from Brian Poolejmc2003-02-281-2/+2
|
* knftodd2002-06-091-4/+4
|
* pdksh-5.2.14millert1999-07-141-5/+19
|
* patches from pdksh 5.2.13.11millert1999-06-151-3/+3
|
* pdksh-5.2.13 + local changesmillert1998-06-251-5/+39
|
* back outkstailey1997-06-191-6/+7
|
* (foo *)0 -> NULLkstailey1997-06-181-7/+6
|
* update to pdksh-5.2.8downsj1996-08-191-2/+5
|
* Import pdksh 5.2.7.downsj1996-08-141-0/+613