aboutsummaryrefslogtreecommitdiff
path: root/make-bootstrap-jim
AgeCommit message (Collapse)AuthorFilesLines
2023-07-10bootstrap-jim: Set _FILE_OFFSET_BITS=64Steve Bennett1-0/+1
Without this, readdir() doesn't work properly on some 32 bit platforms Signed-off-by: Steve Bennett <steveb@workware.net.au>
2023-07-04aio: change to use unix io, not stdioSteve Bennett1-0/+1
This changes especially makes buffered I/O work with non-blocking channels. - separate read and write buffering - support for timeout on blocking read - read/write on same channel in event loop with buffering - read buffer is the same across read, gets, copyto - autoflush non-blocking writes via event loop - copyto can now copy to any filehandle-like command - add some copyto tests Signed-off-by: Steve Bennett <steveb@workware.net.au>
2022-08-20bootstrap jimsh: assume fork() is available on posix platformsSteve Bennett1-3/+3
There are very few posix platforms where fork isn't available. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2017-10-17signal, exec, wait, pid: improvements, especially to execSteve Bennett1-2/+2
- fix popen [open "|pipeline ..."] to return meaningful status in close (but note that stderr is not captured) - popen pipelines can now be used as the target of exec redirection - overally improvements to exec on windows. Now crt file descriptors are used throughout - add support for [pid], [wait] and popen on windows - os.wait is now wait, and integrates with [exec ... &] to be able to wait for running background tasks - [socket pipe] is now also [pipe] and is supported on windows - [file tempfile] is supported on windows - move duplicated code between jim-aio.c and jim-exec.c to jimiocompat.c - Fix [exec] on windows to match unix semantics wrt sharing the parent stream unless redirected rather than using /dev/null - On windows redirect to or from /dev/null is automatically converted to NUL: - If signal support is disabled, implement a minimal Jim_SignalId() for exec and wait - aio now supports getfd, to return the underlying file descriptor. This is used by exec to support redirection, and allows popen channels to support exec redirection. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2016-10-06Fix for systems without umaskSteve Bennett1-0/+9
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2016-09-04Trim bootstrap jimsh0.77Steve Bennett1-2/+2
No need for references support Signed-off-by: Steve Bennett <steveb@workware.net.au>
2016-08-17Don't unconditionally define _GNU_SOURCESteve Bennett1-1/+7
Also, fix build if JIM_OPTIMIZATION is disabled Signed-off-by: Steve Bennett <steveb@workware.net.au>
2016-08-17bootstrap: Add minimal package require supportSteve Bennett1-1/+1
Makes it easier to run the test suite if a minmal 'package require' is supported. Also omit SSL code from jim-aio.c Signed-off-by: Steve Bennett <steveb@workware.net.au>
2014-12-04bootstrap: Unix platforms have link()Steve Bennett1-0/+1
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2014-09-18bootstrap: set HAVE_MKSTEMP on unixSteve Bennett1-0/+1
All reasonable unix platforms have mkstemp(), so use it in bootstrap jimsh. Without it, exec is non-functional. (Previously it was just assumed to exist in [exec], but not [file tempfile]) Signed-off-by: Steve Bennett <steveb@workware.net.au>
2014-05-12Remove remaining references to berlios.deSteve Bennett1-1/+1
Reported-by: Paul Fertser <fercerpav@gmail.com> Signed-off-by: Steve Bennett <steveb@workware.net.au>
2013-08-23Unbreak shared build on Windows. Collect all version ids to auto.def.Vadim Zborovskii1-0/+3
2012-02-27Add support for aio command: isattySteve Bennett1-0/+1
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-11-07Allow building with MSVC on windowsSteve Bennett1-6/+15
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-11-01Allow bootstrap jim to build in library-only modeSteve Bennett1-1/+5
With -DJIM_BOOTSTRAP_LIB_ONLY Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-09-12Trim the size of the boostrap jimsh sourceSteve Bennett1-3/+10
By removing comments and some large blocks of unnecessary code Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-09-12Fix make-bootstrap-jimSteve Bennett1-1/+3
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-29Add Jim_EvalSource() to replace Jim_Eval_Named()Steve Bennett1-3/+2
Since the line number should correspond to the first line of the script, it is easier to use with __LINE__ if the filename and line number are before the script. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-22Small changes to keep older compilers happySteve Bennett1-0/+2
e.g. gcc 2.95 Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-13Add tcl_platform(pathSeparator)Steve Bennett1-1/+3
Tcl compatible. Also move jimsh initialisation script into initjimsh.tcl Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-08Update make-bootstrap-jim for consistent tcl_platformSteve Bennett1-2/+2
$tcl_platform(platform) should be "windows" on mingw Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-07Do just enough to make Jim useable with msys/mingwSteve Bennett1-1/+5
Convert some paths from backslashes to forward slashes Handle splitting/joining paths which look like z:/abc/def Identify the platform as mingw Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-06-28Fix support for 64-bit mingwSteve Bennett1-3/+3
- Check for mkdir with one arg at configure time - mingw can't really do select(), so support only time events in eventloop - Declare dlerror() to be compatible with mingw Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-06-09Provide a fallback basic [exec] for (e.g.) mingw32Steve Bennett1-0/+11
Use system() to implement [exec] if vfork() and waitpid() are not available. This is just functional enough for simple tasks. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-06-03Add make-bootstrap-jim scriptSteve Bennett1-0/+77
Allows a single source file version of jimsh to be created for bootstrap purposes. Signed-off-by: Steve Bennett <steveb@workware.net.au>