summaryrefslogtreecommitdiffstats
path: root/unix/tclLoadDyld.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge 8.7jan.nijtmans2021-04-071-3/+3
|\
| * TIP #595 (for Tcl 8.7) part 1: just rename Tcl_StaticPackage to ↵jan.nijtmans2021-04-071-3/+3
| | | | | | | | Tcl_StaticLibrary, Tcl_PackageInitProc to Tcl_LibraryInitProc and Tcl_PackageUnloadProc to Tcl_LibraryUnloadProc. Adapt documentation, mentioning that the old names are now deprecated.
* | Merge 8.7jan.nijtmans2020-12-081-2/+2
|\ \ | |/
| * Add -finput-charset=UTF-8 and -fextended-identifiers to gcc (and clang). All ↵jan.nijtmans2020-12-081-2/+2
| | | | | | | | C sources can now use UTF-8, as far as gcc/clang/msvc support it. Not used yet
* | Merge 8.7jan.nijtmans2020-11-061-28/+0
|\ \ | |/
| * Deprecate the (internal) functions TclGuessPackageName/TclGetLoadedPackages ↵jan.nijtmans2020-11-061-28/+0
| |\ | | | | | | | | | functions, since they turn out to be useless. The can be removed in 9.0
* | \ Merge 8.7jan.nijtmans2020-10-131-1/+2
|\ \ \ | |/ /
| * | Merge 8.6jan.nijtmans2020-10-131-1/+2
| |\ \ | | |/
| | * More usage of TclNewObj() in stead of Tcl_NewObj() and TclNewIntObj() in ↵jan.nijtmans2020-10-131-1/+2
| | | | | | | | | | | | stead of Tcl_NewIntObj()
* | | Merge 8.7jan.nijtmans2020-08-111-1/+1
|\ \ \ | |/ /
* | | merge 8.7dgp2020-03-091-9/+3
|\ \ \ | |/ /
| * | TCL_UNUSED in the unix sources.dgp2020-03-091-9/+3
| | |
* | | Merge 8.7jan.nijtmans2020-02-281-20/+24
|\ \ \ | |/ /
| * | Mark more unused parametersjan.nijtmans2019-09-031-1/+5
| | |
| * | Merge tip-548 (since using the *WChar* functions leads to less type-casts in ↵jan.nijtmans2019-08-031-15/+15
| |\ \ | | |/ | | | | | | | | | c++) Als finish implementaton for MacOSX
| * | Experiment: compile Tcl with C++ compiler. WIPjan.nijtmans2019-07-041-7/+7
| |/
* | Another (big) round of int -> size_t enhancements. So Tcl can handle string ↵jan.nijtmans2019-02-011-1/+1
|\ \ | |/ | | | | >2GiB in more places.
* | Change ckalloc and friends to Tcl_Alloc and friends. Add two defines, ↵jan.nijtmans2018-09-011-10/+10
|/ | | | TCL_IO_FAILURE and TCL_NO_LENGTH (experimental, still open to be renamed following discussion)
* Fix [d2612a2fa193196787aab33bb57f69b1eef9e30c|d2612a2fa1]: Build breaks ↵jan.nijtmans2017-08-221-0/+2
| | | | | because of gcc error. Only use "#pragma GCC diagnostic" if the compiler supports this. Also re-format tclUnixSock.c without further functional changes.
* Squelch otherwise-unavoidable OSX warnings. It's like magic!dkf2015-04-091-0/+1
|
* unbreak trunk; fix some warningsdkf2012-11-151-1/+2
|
* Finish the TIP #416 implementation as specified (#define's were still ↵jan.nijtmans2012-11-071-2/+2
| | | | missing). Added warning to "load" documentation. Added test case for using -global without specifying filename.
* experimental implementation of FRQ-3579001jan.nijtmans2012-10-241-12/+24
|
* Add "flags" parameter from Tcl_LoadFile to to various internal functions, so ↵jan.nijtmans2012-10-231-5/+8
|\ | | | | | | these flags are available through the whole filesystem for (future) internal use
* | Reduce the amount of ifdeffery somewhat by requiring at least OSX Tiger. That'sdkf2012-08-041-174/+78
| | | | | | | | now everyone we care to support, given that the version after is now not supported by Apple...
* | Factor out a number of common patterns of use of Tcl_DStringAppend.dkf2012-07-031-1/+1
| |
* | [Bug #3216070] Loading extension libraries from embedded Tcl applications.jan.nijtmans2011-03-221-2/+8
|\ \ | |/
| * [Bug #3216070] Loading extension libraries from embedded Tcl applications.jan.nijtmans2011-03-221-2/+8
| |\
| | * bug-3216070jan.nijtmans2011-03-161-2/+2
| |/
* | Adjust ckalloc/ckfree macros to greatly reduce number of explicit casts indkf2011-03-121-13/+9
| | | | | | 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.
| | * fix building on Pantherdas2007-09-051-1/+2
| | |
| | * * unix/tclLoadDyld.c: use dlfcn API on Mac OS X 10.4 and later; fixdas2007-08-141-175/+368
| | | | | | | | | | | | | | | | | | issues with loading from memory on intel and 64bit; add debug messages. * tests/load.test: add test load-10.1 for loading from vfs.
| | * * unix/tclLoadDyld.c (TclpLoadMemory): fix (void*) arithmetic.das2007-04-291-42/+48
| | |
| | * * macosx/tclMacOSXNotify.c (Tcl_InitNotifier, Tcl_WaitForEvent): createdas2006-07-201-23/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| | * typo in TclpLoadMemory() error msgdas2006-03-161-2/+2
| | |
| | * add #include <libkern/OSByteOrder.h> for OSX 10.2das2005-11-271-1/+2
| | |
| | * * unix/tcl.m4 (Darwin): add 64bit support, check for Tiger copyfile(),das2005-11-271-11/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add CFLAGS to SHLIB_LD to support passing -isysroot in env(CFLAGS) to configure (flag can't be present twice, so can't be in both CFLAGS and LDFLAGS during configure), don't use -prebind when deploying on 10.4, define TCL_IO_TRACK_OS_FOR_DRIVER_WITH_BAD_BLOCKING (rdar://3171542). (SC_ENABLE_LANGINFO, SC_TIME_HANDLER): add/fix caching, fix obsolete autoconf macros. Sync with tk/unix/tcl.m4, sync whitespace with HEAD. * unix/configure.in: fix obsolete autoconf macros, sync gratuitous formatting/ordering differences with tk/unix/configure.in. * unix/Makefile.in: add CFLAGS to tclsh/tcltest link to make executable linking the same as during configure (needed to avoid loosing any linker relevant flags in CFLAGS, in particular flags that can't be in LDFLAGS). Avoid concurrent linking of tclsh and compiling of tclTestInit.o or xtTestInit.o during parallel make. (checkstubs, checkdoc, checkexports): dependency and Darwin fixes * unix/tclLoadDyld.c (TclpDlopen): use NSADDIMAGE_OPTION_WITH_SEARCHING on second NSAddImage only. [Bug 1204237] (TclGuessPackageName): should not be MODULE_SCOPE. (TclpLoadMemory): ppc64 and endian (i386) fixes, add support for loading universal (fat) bundles from memory. * unix/tclUnixPort.h: * unix/tclUnixFCmd.c: add support for new Tiger copyfile() API to enable copying of xattrs & ACLs by [file copy]. * generic/tcl.h: add Darwin specifc configure overrides for TCL_WIDE defines to support fat compiles of ppc and ppc64 at the same time, (replaces Darwin CVS fix by emoy, rdar://3693001). add/correct location of version numbers in macosx files. * generic/tclInt.h: clarify fat compile comment. * unix/tclUnixPort.h: add Darwin specifc configure overrides to support fat compiles, where configure runs only once for multiple architectures (replaces Darwin CVS fix by emoy, rdar://3693001). * macosx/tclMacOSXBundle.c: * macosx/tclMacOSXNotify.c: * unix/tclUnixNotfy.c: * unix/tclUnixPort.h: fix #include order to support compile time override of HAVE_COREFOUNDATION in tclUnixPort.h when building for ppc64 * macosx/Tcl.pbproj/default.pbxuser (new file): * macosx/Tcl.pbproj/jingham.pbxuser: * macosx/Tcl.pbproj/project.pbxproj: sync with HEAD. * macosx/README: clarification/cleanup, sync with HEAD, document universal (fat) builds via CFLAGS (i.e. all of ppc ppc64 i386 at once). * macosx/Makefile: add support for reusing configure cache, build target fixes, remove GENERIC_FLAGS override now handled by tcl.m4. * generic/tclIOUtil.c: * generic/tclRegexp.c: * generic/tclVar.c: declare globals used only in own file as static (sync with HEAD). * generic/rege_dfa.c (getvacant): * generic/regexec.c (cfind): * generic/tclCompExpr.c (CompileSubExpr): * unix/tclUnixChan.c (TclUnixWaitForFile): initialise variables to silence gcc 4 warnings. * generic/regguts.h: only #define NDEBUG if not already #defined. * macosx/tclMacOSXNotify.c: sync whitespace & comments with HEAD * unix/configure: regen.
| | * * unix/configure, unix/tcl.m4: revert 2005-07-28 change.das2005-07-301-263/+331
| | | | | | | | | | | | | | | | | | * unix/tclLoadDyld.c (TclpDlopen, TclpLoadMemory): workarounds for bugs/changes in behaviour in Mac OS X 10.4 Tiger, sync formatting changes from HEAD.
| | * * unix/tclLoadDyld.c: fixed header confilict when building this filedas2005-06-041-1/+2
| | | | | | | | | | | | with USE_TCL_STUBS.
| | * * generic/tclIOUtil.c (TclLoadFile):das2005-05-241-41/+281
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclInt.h: * unix/tcl.m4: * unix/tclLoadDyld.c: added support for [load]ing .bundle binaries in addition to .dylib's: .bundle's can be [unload]ed (unlike .dylib's), and can be [load]ed from memory, e.g. directly from VFS without needing to be written out to a temporary location first. [Bug 1202209] * unix/configure: autoconf-2.13
| | * * macosx/tclMacOSXBundle.c:das2005-05-141-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * unix/tclUnixInit.c: * unix/tcl.m4 (Darwin): made use of CoreFoundation API configurable and added test of CoreFoundation availablility to allow building on ppc64, replaced HAVE_CFBUNDLE by HAVE_COREFOUNDATION; test for availability of Tiger or later OSSpinLockLock API. * unix/tclUnixNotfy.c: * unix/Makefile.in: * macosx/tclMacOSXNotify.c (new file): when CoreFoundation is available, use new CFRunLoop based notifier: allows easy integration with other event loops on Mac OS X, in particular the TkAqua Carbon event loop is now integrated via a standard tcl event source (instead of TkAqua upon loading having to finalize the exsting notifier and replace it with its custom version). [Patch 1202052] * tests/unixNotfy.test: don't run unthreaded tests on Darwin since notifier may be using threads even in unthreaded core. * unix/tclUnixPort.h: * unix/tcl.m4 (Darwin): test for thread-unsafe realpath durning configure, as Darwin 7 and later realpath is threadsafe. * macosx/tclMacOSXBundle.c: * unix/tclLoadDyld.c: * unix/tclUnixInit.c: fixed gcc 4.0 warnings. * unix/configure: autoconf-2.13
| * | * unix/tclLoadDyld.c: use RTLD_GLOBAL instead of RTLD_LOCAL.das2009-04-101-3/+3
| | | | | | | | | | | | [Bug 1961211]
* | | Fix two failing tests by matching the can't-lookup-symbol error message.dkf2010-04-051-2/+3
| | |
* | | * generic/tclIOUtil.c (Tcl_LoadFile): Corrections to previous commitdkf2010-04-021-22/+23
| | | | | | | | | | | | | | | * unix/tclLoadDyld.c (TclpDlopen): to make it build on OSX. Also add missing ChangeLog entry for previous commit by KBK.
* | | * generic/tcl.decls: [TIP #357]: First round of changesKevin B Kenny2010-04-021-14/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclDecls.h: to export Tcl_LoadFile, Tcl_FindSymbol, * generic/tclIOUtil.c: and Tcl_FSUnloadFile to the public API. * generic/tclInt.h: * generic/tclLoad.c: * generic/tclLoadNone.c: * generic/tclStubInit.c: * tests/fileSystem.test: * tests/load.test: * tests/unload.test: * unix/tclLoadDl.c: * unix/tclLoadDyld.c: * unix/tclLoadNext.c: * unix/tclLoadOSF.c: * unix/tclLoadShl.c: * unix/tclUnixPipe.c: * win/Makefile.in: * win/tclWinLoad.c:
* | | Revert a few files from the previous commit, preventingnijtmans2010-03-111-3/+3
| | | | | | | | | | | | conflicts with Kevin's TIP #357 work
* | | Remove unnecessary '&' decoration for functionnijtmans2010-03-111-3/+3
| | | | | | | | | | | | | | | pointers. Fix double declaration of TclNativeDupInternalRep