summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixInit.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge 8.6. TCL_PACKAGE_PATH is not used on Windowsjan.nijtmans2024-03-041-6/+7
|\
* | Proposed fix for [1b8a893ded]: TCL_PACKAGE_PATH path is (wrongly) braced.jan.nijtmans2024-03-041-35/+26
|/
* Correct spelling errors in comments and documentation, but also non-comment pooryorick2023-04-121-2/+2
| | | corrections in history.tcl and tcltest.test.
* Fix [0cb3554903]: macOS 13 SDK deprecates sprintf(). But better not use it ↵jan.nijtmans2023-03-301-2/+2
| | | | on other platforms either.
* Fix [0f19edcb78]: Windows 11 not reported in tcl_platform(osVersion)jan.nijtmans2023-01-041-0/+3
|
* Merge 8.5: Add 4 processor-types to Win32/Cygwin. "platform" -> 1.0.16jan.nijtmans2021-01-051-5/+4
|\
| * Add 4 processor-types to Win32/Cygwin. On Cygwin, don't bother ↵jan.nijtmans2021-01-051-12/+4
| | | | | | | | tcl_platform[os], since "Windows NT" is the only one supported. "platform" -> 1.0.16
* | More usage of TclNewObj() in stead of Tcl_NewObj() and TclNewIntObj() in ↵jan.nijtmans2020-10-131-1/+1
| | | | | | | | stead of Tcl_NewIntObj()
* | Code cleanup: less of use "register" keyword, and better use of typecastsjan.nijtmans2020-08-111-15/+24
| |
* | Eliminate many unnecessary type-casts, mostly (size_t) when value is already ↵jan.nijtmans2020-08-111-2/+2
| | | | | | | | size_t or int
* | Make sure that "Windows NT" is the only supported Windows platform. On ↵jan.nijtmans2020-04-031-9/+2
| | | | | | | | Windows CE, no chance that Tcl 8.6 will ever run .... Windows XP is the minimum now.
* | Remove MODULE_SCOPE function TclpSetInterfaces(), which is just empty. jan.nijtmans2020-03-311-115/+109
| | | | | | Increase size of MSG structure in Cygwin Notifier: Should conform with Win32 size. Some related code cleanup.
* | Fix [8566dc22f9]: various spelling fixes in commentsjan.nijtmans2019-08-221-1/+1
|\ \ | |/
| * Fix [8566dc22f9]: various spelling fixes in commentsjan.nijtmans2019-08-221-1/+1
| |
* | Use GetModuleHandle() in stead of LoadLibrary() for ntdll, which is already ↵jan.nijtmans2017-05-041-11/+7
|\ \ | |/ | | | | loaded by Cygwin.
| * Cherry-pick/backport [65cc894ac5c24495|65cc894ac5]: fix off-by-one possible ↵jan.nijtmans2017-05-041-15/+12
| | | | | | | | | | buffer overrun when looking for encodings; found by coverity Use GetModuleHandle() in stead of LoadLibrary() for ntdll, which is already loaded by Cygwin.
* | Deal with a couple of obscure causes of warnings on some versions of OSX.dkf2017-04-251-19/+39
| |
* | Fix [3cc1d91345]: duplicate calls to TclpFreeAllocCache() on thread existsjan.nijtmans2016-10-111-1/+1
|\ \ | |/
| * Fix [3cc1d91345]: duplicate calls to TclpFreeAllocCache() on thread existsjan.nijtmans2016-10-111-1/+1
| |
* | fix off-by-one possible buffer overrun when looking for encodings; found by ↵Miguel Sofer2015-07-311-1/+1
| | | | | | | | coverity
* | Remove a number of eol-spaces. No change in functionality.jan.nijtmans2014-11-141-1/+1
| |
* | Satisfy required position of __stdcall from VC++jan.nijtmans2014-02-041-2/+2
|\ \ | |/
| * Satisfy required position of __stdcall from VC++jan.nijtmans2014-02-041-2/+2
| |
* | Add missing __stdcall (which crashes on win32), and clean-up indentingjan.nijtmans2014-02-041-10/+11
|\ \ | |/
| * remove duplicate declarationjan.nijtmans2014-02-041-1/+0
| |
| * Add missing __stdcall (which crashes on win32), and clean-up indentingjan.nijtmans2014-02-041-10/+12
| |
* | Fix [651e828a52]: Wrong Windows version reported for Windows 8.1jan.nijtmans2014-02-031-7/+22
|\ \ | |/
| * Fix [651e828a52]: Wrong Windows version reported for Windows 8.1jan.nijtmans2014-02-031-7/+22
| |
| * Prevent inlining of StackGrowsDown(), in case of cross-compilingjan.nijtmans2013-04-021-1/+4
| |
* | Unbreak msvc builds, by depending on tclPort.h for inclusion of <sys/stat.h>jan.nijtmans2013-02-101-1/+0
|\ \ | |/
| * Unbreak msvc builds, by depending on tclPort.h for inclusion of <sys/stat.h>.jan.nijtmans2013-02-101-1/+0
| |
* | revert [8abba84224], and make sure that every source file that uses ↵jan.nijtmans2013-01-171-0/+1
|\ \ | |/ | | | | Tcl_StatBuf has an "#include <sys/stat.h>" before including tcl.h
| * revert [8abba84224], and make sure that every source file that uses ↵jan.nijtmans2013-01-171-0/+1
| | | | | | | | Tcl_StatBuf has an "#include <sys/stat.h>" before including tcl.h
* | On Cygwin, use win32 API in stead of uname() to determine the tcl_platform ↵jan.nijtmans2012-06-061-2/+69
|\ \ | |/ | | | | variables
| * On Cygwin, use win32 API in stead of uname() to determine the tcl_platform ↵jan.nijtmans2012-06-061-2/+69
| |\ | | | | | | | | | variables
| | * On Cygwin, use win32 API in stead of uname() to determine the tcl_platform ↵jan.nijtmans2012-06-061-2/+69
| | | | | | | | | | | | variables
| * | Fix [Bug 3166410]: "out of stack space" on AIXjan.nijtmans2011-03-071-0/+10
| | |
* | | * generic/tclUtil.c (TclDStringToObj): Added internal function to makedkf2012-04-251-5/+2
| | | | | | | | | | | | the fairly-common operation of converting a DString into an Obj a more efficient one.
* | | Adjust ckalloc/ckfree macros to greatly reduce number of explicit casts indkf2011-03-121-2/+2
| | | | | | | | | rest of Tcl source code. No ABI change. API change *should* be harmless.
* | | Now that we're no longer using SCM based on RCS, the RCS Keyword linesdgp2011-03-021-2/+0
|\ \ \ | |/ / | | | cause more harm than good. Purged them (except in zlib files).
| * | Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-021-2/+0
| |\ \ | | |/ | | | more harm than good. Purged them.
| | * Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-011-2/+0
| | | | | | | | | more harm than good. Purged them.
| | * * macosx/tclMacOSXBundle.c: Workaround CF memory managment bug indas2009-10-051-5/+6
| | | | | | | | | | | | * unix/tclUnixInit.c: Mac OS X 10.4 & earlier. [Bug 2569449]
| | * * unix/tclUnixFCmd.c: add workaround for crashing bug in fts_open()das2007-04-291-2/+4
| | | | | | | | | | | | * unix/tclUnixInit.c: without FTS_NOSTAT on 64bit Darwin 8 or earlier.
| | * * library/msgcat/msgcat.tcl (msgcat::Init): on Darwin, add fallback ofdas2006-09-101-1/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tests/msgcat.test: default msgcat locale to * unix/tclUnixInit.c (TclpSetVariables): current CFLocale identifier if available (via private ::tcl::mac::locale global, set at interp init when on Mac OS X 10.3 or later with CoreFoundation). * unix/tcl.m4: add caching to new SC_TCL_* macros for MT-safe wrappers. * unix/configure: autoconf-2.13
| | * * macosx/tclMacOSXNotify.c (Tcl_InitNotifier, Tcl_WaitForEvent): createdas2006-07-201-3/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | notifier thread lazily upon first call to Tcl_WaitForEvent() rather than in Tcl_InitNotifier(). Allows calling exeve() in processes where the event loop has not yet been run (Darwin's execve() fails in processes with more than one thread), in particular allows embedders to call fork() followed by execve(), previously the pthread_atfork() child handler's call to Tcl_InitNotifier() would immediately recreate the notifier thread in the child after a fork. * macosx/tclMacOSXNotify.c (Tcl_InitNotifier): add support for * unix/tclUnixFCmd.c (DoRenameFile, CopyFileAtts): weakly importing * unix/tclUnixInit.c (TclpSetInitialEncodings): symbols not available on OSX 10.2 or 10.3, enables binaires built on later OSX versions to run on earlier ones. * macosx/README: document how to enable weak-linking; cleanup. * unix/tclUnixPort.h: add support for weak-linking; conditionalize AvailabilityMacros.h inclusion; only disable realpath on 10.2 or earlier when threads are enabled. * unix/tclLoadDyld.c (TclpLoadMemoryGetBuffer): change runtime Darwin * unix/tclUnixInit.c (TclpInitPlatform): release check to use global initialized once. * unix/tclUnixFCmd.c (DoRenameFile, TclpObjNormalizePath): add runtime Darwin release check to determine if realpath is threadsafe. * unix/configure.in: add check on Darwin for compiler support of weak * unix/tcl.m4: import and for AvailabilityMacros.h header; move Darwin specific checks & defines that are only relevant to the tcl build out of tcl.m4; restrict framework option to Darwin; cleanup quoting. * unix/configure: autoconf-2.13 * unix/tclLoadDyld.c (TclpLoadMemory): * unix/tclUnixPipe.c (TclpCreateProcess): fix signed-with-unsigned comparison and other warnings from gcc4 -Wextra.
| | * Backport of part of FreeBSD portdkf2006-01-251-3/+10
| | |
| | * * generic/tclUnixInit.c (TclpSetInitialEncodings): Modified sodgp2005-11-031-2/+3
| | | | | | | | | | | | | | | | | | that multiple calls can continue to atttempt to properly set the system encoding. Needed for Tclkit to properly support non-default encodings. Thanks to Yaroslav Schekin. [Bug 1201171].
| | * * generic/tclBasic.c:Miguel Sofer2005-10-231-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclBinary.c: * generic/tclCmdAH.c: * generic/tclCmdIL.c: * generic/tclCmdMZ.c: * generic/tclExecute.c: * generic/tclLink.c: * generic/tclMain.c: * generic/tclProc.c: * generic/tclScan.c: * generic/tclTest.c: * generic/tclVar.c: * mac/tclMacInit.c: * unix/tclUnixInit.c: * win/tclWinInit.c: Insure that the core never calls TclPtrSetVar, Tcl_SetVar2Ex, Tcl_ObjSetVar2 or Tcl_SetObjErrorCode with a 0-ref new value. It is not possible to handle error returns correctly in that case [Bug 1334947], one has the choice of leaking the object in some cases, or else risk crashing in some others.
| | * Solaris mis-names the cp1251 encoding.dkf2005-08-051-1/+2
| | |