aboutsummaryrefslogtreecommitdiff
path: root/jim-win32compat.h
AgeCommit message (Collapse)AuthorFilesLines
2017-10-17signal, exec, wait, pid: improvements, especially to execSteve Bennett1-5/+0
- 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-8/+0
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2016-10-02jim-win32compat.h: Use snprintf rather than _snprintfSteve Bennett1-1/+0
Apparently snprintf exists now and _snprintf is not C99 compliant Reported-by: Evan Hunter <evan@ozhiker.com> Signed-off-by: Steve Bennett <steveb@workware.net.au>
2016-09-07build: fix warnings on mingwSteve Bennett1-0/+4
Apparently some versions of mingw do have S_IRWXU and S_IRWXO Signed-off-by: Steve Bennett <steveb@workware.net.au>
2016-09-07jim-intereactive: reduce permissions on saved history fileSteve Bennett1-0/+4
When creating ~/.jim_history, set permissions to 0600 for security Signed-off-by: Steve Bennett <steveb@workware.net.au>
2016-03-27Windows: Exponent modification is only required by MinGWEvan Hunter1-2/+4
2014-10-10jim-win32compat.h: fix compile error about __strtod on mingwOskari Timperi1-0/+1
2014-01-21many comment changes, some small code changesSteve Bennett1-0/+8
Sweep through and clean up all (most) of the comments in the code. While there, adjust some variable and function names to be more consistent, and make a few small code changes - again, mostly for consistency. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2013-11-07Use __strtod() on mingwSteve Bennett1-1/+6
As strtod() is unable to parse NaN and Inf Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-12-16Fix double to string on mingwunknown1-0/+3
The MS CRT always produces a 3 digit exponent for %e And update [format] tests to account for this difference
2011-11-07Allow building with MSVC on windowsSteve Bennett1-8/+4
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-06-28Fix support for 64-bit mingwSteve Bennett1-15/+12
- 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-09Better handling of environ on Mac OS XSteve Bennett1-1/+0
Shared libraries can't access environ directly, so use _NSGetEnviron() on Mac OS X Also, load modules with (RTLD_NOW | RTLD_LOCAL) instead of RTLD_LAZY Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-06-09Revert to using localtime() and rand()Steve Bennett1-2/+0
Some platforms don't have localtime_r() and rand_r()
2011-06-09Use autosetup instead of autoconfSteve Bennett1-2/+0
Faster, simpler auto-configuration Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-11-17build: fix cygwin build issueSpencer Oliver1-3/+3
Avoid windows.h on cygwin Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
2010-10-30Allow extensions to be built/installed as modulesSteve Bennett1-3/+25
This includes C extensions and Tcl extensions Also adds windows support (mingw32 and cygwin) Now the sqlite*, readline and win32 extensions are supported Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-15Improvements to jim configureSteve Bennett1-2/+0
Create and use config.h Check for backtrace, fork, vfork, syslog, regcomp and others Disable extensions which require missing functions/features Check for one arg vs. two arg mkdir() Distinguish between mingw and native windows The aio extension has reduced functionality for ANSI C only Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-15Fix some build problems and add lost featuresSteve Bennett1-0/+57
Add some missing files needed for autoconf Make jim build standalone and without host jimsh Use (FILE *) for eventloop file handle Don't expect to support dynlib if no mmu Re-add nvp and win32 support (untested) Signed-off-by: Steve Bennett <steveb@workware.net.au>