tg
a2042321ac
meh, just don’t ever use ls(1) in a test; on some, it shows dotdirs
2012-12-28 04:25:32 +00:00
tg
39682506ff
experimental test rewriting for QNX fun
2012-12-28 04:01:17 +00:00
tg
113db497ba
RT says QNX 4 has _SIGMAX not SIGMAX or NSIG
2012-12-28 03:35:34 +00:00
tg
192ea7638b
now that we found out the root case for the recent QNX problem…
...
03:11⎜«RT|AO:#!/bin/mksh» YES it WORKS now!
… there’s no reason for sys_nerr to not be const, either ☺
2012-12-28 03:20:35 +00:00
tg
595f57ebad
mark glob-range-3 as need-pass: no
2012-12-28 03:18:46 +00:00
tg
f7acd1f3fc
AIEEE!
...
03:00⎜«RT|AO:#!/bin/mksh» cc -c -o a.out does not output a.out but conftest.o (!!)
evil… just use tcfn=conftest.o for now, cf. cid 1004713D70A5362BACF (but why must it be one?)
2012-12-28 03:05:17 +00:00
tg
b2396677e7
harmonise sys_{sig,err}list ⓐ checks, ⓑ uses, ⓒ _decl values when not needed, ⓓ prototypes; ⓔ “const” is a keyword and thus space-separated from the preceding ‘*’ pointer indicator
2012-12-28 02:28:39 +00:00
tg
64eddba65f
-D__EXT_UNIX_MISC needed for “extern const char * const sys_errlist[];” on QNX
2012-12-27 15:52:47 +00:00
tg
f998054508
16:39⎜«RT|Chatzilla:#!/bin/mksh» ok, tested cc -E outputs preprocessed out with leading space(!).
...
16:49⎜<mirabilos:#!/bin/mksh> that's like NeXTstep which insers spaces around =
16:49⎜<mirabilos:#!/bin/mksh> but we can sed that away I guess.
16:49⎜«RT|Chatzilla:#!/bin/mksh» yeah, modifying grep/sed lines adding " *" works
2012-12-24 17:50:10 +00:00
tg
866635468b
RT says glob-range-3 breaks on QNX nowadays
2012-12-24 14:37:13 +00:00
tg
865728fb3d
let printf stuff compile again after cstrerror-related change
2012-12-22 22:15:21 +00:00
tg
6d5e27a31a
gcc-snapshot (see below) issued a clobber warning, and both it and mgcc
...
yowled about the memmove test until I found a compromise
gcc version 4.8.0 20121120 (experimental) [trunk revision 193662] (Debian 20121120-1)
2012-12-22 00:03:42 +00:00
tg
ce602be6be
sync clog et al.
2012-12-17 23:46:33 +00:00
tg
68b1abe64d
force HAVE_SILENT_IDIVWRAPV=0 for test-build, since it’s used by me to
...
generate the CPPFLAGS for mksh for base and installer, and it’s archdep
2012-12-17 23:37:44 +00:00
tg
8e6fa9a5c6
now we can actually prefer sys_errlist[] (oh, and _sys_errlist[] also exists, a̲n̲d̲ fix a pasto) over strerror(3) like we do for sys_siglist[] and strsignal(3); our implementation is smaller and does more code reuse than even MirBSD libc’s after all
2012-12-17 23:31:30 +00:00
tg
12c662b6e2
thanks to ISC (Interactive) Unix, we now know a few samples of errnos
...
that get used, plus one for the realpath-1 regression test; also make
sys_siglist_decl detection nicer and poison strerror() with non-const
return value ifdef DEBUG, make it always const
2012-12-17 23:18:11 +00:00
tg
006d2c3c02
__CRAZY=Yes clean wants switch(enum) to be complete
2012-12-17 23:09:15 +00:00
tg
ae1ec32dbc
fix whitespace; ACK RT’s Minix-vmd stmts
2012-12-17 22:57:50 +00:00
tg
4c5d7094ef
RT also said what was missing on SunOS 4.1.1 (it also needs -DMKSH_UNEMPLOYED?)
2012-12-17 22:14:27 +00:00
tg
b8d3f12025
merge/genericise RT’s port to Minix-vmd
2012-12-17 21:55:06 +00:00
tg
0780070d24
add a few assertions for LLVM+Clang 3.2 scan-build; no !DEBUG changes
2012-12-08 18:30:31 +00:00
tg
c4e88acd83
Correct mistake when doing hashtable lookup collision resolution… oops
2012-12-07 23:46:38 +00:00
tg
98b6cd9b8d
add testcase for basic I/O redir which RT had issues with on Linux 0.11
2012-12-07 23:43:09 +00:00
tg
f654a3dea4
fix libFirm/cparser -Wsign-compare
2012-12-05 19:38:25 +00:00
tg
75af4e244a
add -fno-asynchronous-unwind-tables for all GCC builds, as suggested by dalias and chris2
2012-12-05 19:38:05 +00:00
tg
d8a6ce41de
shuffle declarations around (all shared between even only two files go into sh.h even if they’re not supposed to be used elsewhere) and make some static; libFirm/cparser has -Wmissing-declarations against it
2012-12-05 18:54:10 +00:00
tg
cf807eb83a
Add assertions and shuffle code around for LLVM+Clang scan-build.
2012-12-04 01:18:34 +00:00
tg
68c4dae6ef
Rewrite the getn function (again) to fix any remaining issues.
2012-12-04 01:12:11 +00:00
tg
9d2fefeac4
Be more careful with string array bounds! Found by LLVM+Clang scan-build.
2012-12-04 01:11:17 +00:00
tg
5a70000aaf
Keep LLVM+Clang from nagging about “"foo" + 1 ≠ "foo1"” warning.
2012-12-04 01:10:35 +00:00
tg
7fc9e1b492
revert cid 100506499941EC578A6: musl has _ALL_SOURCE now, aliased to
...
_GNU_SOURCE which we already define for convenience; thanks to dalias
and chris2 on IRC for discussion and being accomodating!
2012-12-03 22:10:02 +00:00
tg
2213c5887a
how many times can you botch a gettimeofday mirtoconf check?
2012-12-03 13:07:11 +00:00
tg
6e41c9c2ee
catch MSYS dash printf builtin not working
2012-12-01 14:22:09 +00:00
tg
b868c517b7
remove *all* nonnull assertions and other workarounds for clang scan-build
...
this beast evolved in the last 2½ years, and we’ve had trouble with
some of them earlier
2012-12-01 01:36:30 +00:00
tg
f6728353bd
fix “null argument where non-null required” warning
2012-11-30 22:17:32 +00:00
tg
ce6cdb96f2
regenerate Makefiles
2012-11-30 20:49:18 +00:00
tg
0f3071a8b2
MKSH_DISABLE_EXPERIMENTAL is a NOP again; use ${ precmd;} in dot.mkshrc
2012-11-30 20:19:16 +00:00
tg
f63bcae02c
… oh well, but MidnightBSD gcc picks on "" too, so just stick to NULL, it’s cheapest
2012-11-30 19:58:48 +00:00
tg
0f46c5e321
so’s clang…
2012-11-30 19:57:35 +00:00
tg
9a6ebef8ca
The MidnightBSD/amd64 system compiler (Target: amd64-undermydesk-freebsd)
...
gcc version 4.2.1 20070719 [MidnightBSD] has stricter -Wformat checking
2012-11-30 19:51:25 +00:00
tg
77c4cb88e4
implement tty tracking and bump to R41 for feature completeness
...
• tty_fd is now never closed
• new tty_hasstate tracks tty_state (cf. thread around
http://article.gmane.org/gmane.os.miros.mksh/79 and PLD bug)
• as users requested, importing COLUMNS or LINES from the environment
now removes its special-ness as does unsetting it
• otherwise, setting COLUMNS or LINES is honoured until the next SIGWINCH
arrives or change_winsz is otherwise run (e.g. before displaying the
prompt in the interactive command line editing modes)
• SIGWINCH is now honoured before each reading of $COLUMNS and $LINES too
• change the Uhr to match – it no longer calls stty(1) ☺
2012-11-30 19:25:08 +00:00
tg
730bc915bd
tty_close() before exec() is not necessary, it’s FD_CLOEXEC anyway
...
only tty_close() left are now after the early init in main, which
is new, and when not FTALKING…
2012-11-30 19:20:01 +00:00
tg
80e364b7ad
use proper parenthesēs; int → bool; use same var (eno) for temp. errno
2012-11-30 19:02:10 +00:00
tg
e36075e58d
open distinguishes between >=0 and ==-1 but <-1 is undef, make it error
2012-11-30 17:34:46 +00:00
tg
63863a90d8
oops, this list is s’pos’ta be sorted
2012-11-30 16:45:25 +00:00
tg
cbf1cea38a
sync clog
2012-11-26 23:14:46 +00:00
tg
007cf09db6
use EPOCHREALTIME as variable, somewhat compatible with “zmodload zsh/datetime”, as ormaaj belatedly found out
2012-11-26 22:49:51 +00:00
tg
b58d7b8053
fix regression wrt. pdksh (introduced between R40e and R40f)
...
about how and when the display is redrawn by reverting one
bool back to an int, as it’s used as a counter (hm, should
be an unsigned I guess but…)
on the other hand, xlp_valid should’ve been a bool, make it so
2012-11-26 22:39:14 +00:00
tg
9f15657f7b
make cats more flexible
2012-11-26 16:39:43 +00:00
tg
c9970fb7ba
make regression testsuite once again safe to run with -DMKSH_NOPROSPECTOFWORK
2012-11-25 22:23:31 +00:00