Manifest of check-in
[95ec292536]
- * macosx/tclMacOSXNotify.c (Tcl_InitNotifier, Tcl_WaitForEvent): create
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/tclMacOSXFCmd.c (TclMacOSXCopyFileAttributes): add support
* macosx/tclMacOSXNotify.c (Tcl_InitNotifier): for weakly
* unix/tclUnixInit.c (Tcl_GetEncodingNameFromEnvironment): importing
symbols not available on OSX 10.2 or 10.3, enables binaires built on
later OSX versions to run on earlier ones.
* macosx/Tcl.xcodeproj/project.pbxproj: enable weak-linking; turn on
extra warnings.
* 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 and help messages.
* unix/configure: autoconf-2.59
* unix/tclConfig.h.in: autoheader-2.59
* unix/tclLoadDyld.c (TclpLoadMemory): fix signed-with-unsigned
comparison and other warnings from gcc4 -Wextra.
by
das on
2006-07-20 06:18:37.
B 25ff7e8b0a8a08f1b6f8c86b6c7f9f5fe7f17e3d
C \t*\smacosx/tclMacOSXNotify.c\s(Tcl_InitNotifier,\sTcl_WaitForEvent):\screate\n\tnotifier\sthread\slazily\supon\sfirst\scall\sto\sTcl_WaitForEvent()\srather\sthan\n\tin\sTcl_InitNotifier().\sAllows\scalling\sexeve()\sin\sprocesses\swhere\sthe\n\tevent\sloop\shas\snot\syet\sbeen\srun\s(Darwin's\sexecve()\sfails\sin\sprocesses\n\twith\smore\sthan\sone\sthread),\sin\sparticular\sallows\sembedders\sto\scall\n\tfork()\sfollowed\sby\sexecve(),\spreviously\sthe\spthread_atfork()\schild\n\thandler's\scall\sto\sTcl_InitNotifier()\swould\simmediately\srecreate\sthe\n\tnotifier\sthread\sin\sthe\schild\safter\sa\sfork.\n\n\t*\smacosx/tclMacOSXFCmd.c\s(TclMacOSXCopyFileAttributes):\s\s\s\sadd\ssupport\n\t*\smacosx/tclMacOSXNotify.c\s(Tcl_InitNotifier):\s\s\s\s\s\s\s\s\s\s\s\s\sfor\sweakly\n\t*\sunix/tclUnixInit.c\s(Tcl_GetEncodingNameFromEnvironment):\simporting\n\tsymbols\snot\savailable\son\sOSX\s10.2\sor\s10.3,\senables\sbinaires\sbuilt\son\n\tlater\sOSX\sversions\sto\srun\son\searlier\sones.\n\t*\smacosx/Tcl.xcodeproj/project.pbxproj:\senable\sweak-linking;\sturn\son\n\t\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sextra\swarnings.\n\t*\smacosx/README:\sdocument\show\sto\senable\sweak-linking;\scleanup.\n\t*\sunix/tclUnixPort.h:\sadd\ssupport\sfor\sweak-linking;\sconditionalize\n\tAvailabilityMacros.h\sinclusion;\sonly\sdisable\srealpath\son\s10.2\sor\searlier\n\twhen\sthreads\sare\senabled.\n\t*\sunix/tclLoadDyld.c\s(TclpLoadMemoryGetBuffer):\schange\sruntime\sDarwin\n\t*\sunix/tclUnixInit.c\s(TclpInitPlatform):\s\s\s\s\s\s\s\srelease\scheck\sto\suse\n\t\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sglobal\sinitialized\sonce.\n\t*\sunix/tclUnixFCmd.c\s(DoRenameFile,\sTclpObjNormalizePath):\sadd\sruntime\n\tDarwin\srelease\scheck\sto\sdetermine\sif\srealpath\sis\sthreadsafe.\n\t*\sunix/configure.in:\sadd\scheck\son\sDarwin\sfor\scompiler\ssupport\sof\sweak\n\t*\sunix/tcl.m4:\s\s\s\s\s\s\simport\sand\sfor\sAvailabilityMacros.h\sheader;\n\tmove\sDarwin\sspecific\schecks\s&\sdefines\sthat\sare\sonly\srelevant\sto\sthe\stcl\n\tbuild\sout\sof\stcl.m4;\srestrict\sframework\soption\sto\sDarwin;\scleanup\n\tquoting\sand\shelp\smessages.\n\t*\sunix/configure:\sautoconf-2.59\n\t*\sunix/tclConfig.h.in:\sautoheader-2.59\n\n\t*\sunix/tclLoadDyld.c\s(TclpLoadMemory):\sfix\ssigned-with-unsigned\n\tcomparison\sand\sother\swarnings\sfrom\sgcc4\s-Wextra.\n
D 2006-07-20T06:18:37
F ChangeLog 8d2fbeaacb1ba4ed899357d8db9743f37d64939d
F macosx/README f83456408d226ece269cd30b890025849c458cc6
F macosx/Tcl.xcodeproj/project.pbxproj ac66d8253687aacf1faeb34d213094873aa79f33
F macosx/tclMacOSXFCmd.c 23a89c5af414191c2f9b6c4464f04aab7f027f94
F macosx/tclMacOSXNotify.c 65e73fb0e12a60a53951ce0d356424cb387f5ad6
F unix/configure 26426c540198186803f1fb7ee09346c218ae9070 x
F unix/configure.in 0d93e2cf5ebf1eedf1e1b9571761d64a5ec57b6e
F unix/tcl.m4 91755e2dec6553532c85d43bab7044e7a07ecb64
F unix/tclConfig.h.in c99218672a88076c56b0ea4d00b1e6936f0f42e8
F unix/tclLoadDyld.c 497dcd1d9c56cdca8f5b6b3166ab14fff434daf9
F unix/tclUnixFCmd.c 4967d5a65999579ad84d8d5441e156e5067609be
F unix/tclUnixInit.c d04b35d38f0e6047fa3f5d01b711f1428682c9cb
F unix/tclUnixPort.h 256bce07f9fd9b5cfc6bb737b510bb66c52cb553
P 25ff7e8b0a8a08f1b6f8c86b6c7f9f5fe7f17e3d
U das
Z 5cf5bc5ecf8a1a38a619d2c3a4668796