<i>JANITORIAL: dead/DEPRECATED code in tclUnixChan.c</i> status still Open with 4 other changes
by
.
D 2003-04-26T05:20:27
J icomment Logged\sIn:\sYES\s\nuser_id=68433\n\n\nHistory:\n\nStarting\swith\sTcl\s7.6,\scalling\sTcl_MakeFileChannel()\swith\sthe\nsame\sinFd\sand\soutFd\sas\sa\spreviously\sallocated\sFileChannel\swould\nreturn\sthe\sold\sFileChannel\sinstead\sof\sallocating\sa\snew\sone.\nIt's\snot\sclear\swhy\sthis\swas\sdone\s--\sthis\sbehaviour\swas\snot\ndocumented\s--\sbut\spossibly\srelated\sto\sthe\sfollowing\schangelog\nentry:\n\n\s\s\s\s5/23/96\s(bug\sfix)\sFixed\sbug\sthat\sallowed\nTcl_MakeFileChannel\sto\screate\snew\n\s\s\s\schannels\swith\sTcl_Files\sin\sthem\sthat\sare\salready\sused\sby\nanother\schannel.\n\s\s\s\sThis\swould\scause\score\sdumps\swhen\sthe\sTcl_Files\swere\nbeing\sfreed\stwice.\s(JL)\n\nAt\ssome\spoint\sbetween\s7.6\sand\s8.0,\sthe\sTcl_MakeFileChannel()\sAPI\nwas\sreworked:\n\n\s\s\s\s4/23/97\s(removed\sfeature)\sThe\sTcl_File\sinterfaces\shave\nbeen\sremoved.\n\s\s\s\sThe\sTcl_CreateFileHandler/Tcl_DeleteFileHandler\ninterfaces\snow\stake\n\s\s\s\sUnix\sfd's\sand\sare\sonly\ssupported\son\sthe\sUnix\splatform.\n\s\s\s\sTcl_GetChannelFile\shas\sbeen\sreplaced\swith\nTcl_GetChannelHandle.\n\s\s\s\sTcl_MakeFileChannel\snow\stakes\sa\splatform\sspecific\sfile\nhandle.\s(SS)\n\s\s\s\s***\sPOTENTIAL\sINCOMPATIBILITY\s***\n\nTcl\s8.0\salso\skept\strack\sof\sa\sglobal\slist\sof\sopen\sfile\schannels,\nand\sreturned\san\sexisting\schannel\sif\sa\scall\sto\nTcl_MakeFileChannel()\nspecified\sa\spreviously\sused\sfile\sdescriptor.\s\sThis\sbehaviour\swas\nnot\sdocumented\sin\s8.0\seither.\s\sThe\slist\sof\sopen\sfile\nchannels\swas\snot\nused\sfor\sany\sother\spurpose.\n\nIn\sTcl\s8.1,\sthe\sglobal\slist\sof\sfile\schannels\swas\sreplaced\swith\na\sthread-specific\slist\s(CVS\srevision\s1.10,\sr1.1.2.1).\s\sThe\ncaching\nbehaviour\swas\sstill\snot\sdocumented.\n\nShortly\safter\sTcl\s8.3.2,\sthe\sper-thread\slist\sof\sfile\sdescriptors\nwas\s(temporarily)\s#ifdef'ed\sout,\ssince\sit\scaused\sproblems\swith\ntransferring\schannels.\s\sFrom\sthe\sCVS\slog:\n\n\s\s\s\srevision\s1.18\n\s\s\s\sdate:\s2000/05/02\s22:02:37;\s\sauthor:\skupries;\s\sstate:\nExp;\s\slines:\s+24\s-4\n\n\s\s\s\s*\sunix/tclUnixChan.c:\s#ifdef'd\sthe\sthread-local\slist\sof\sfile\n\s\s\s\s\s\schannels\sas\sit\sprevents\sus\sfrom\stransfering\schannels.\nTo\srestore\n\s\s\s\s\s\sthis\swe\smay\sneed\san\sextended\sinterface\sto\sdrivers\sin\sthe\n\s\s\s\s\s\sfuture.\sTarget:\s9.0.\sFound\swhile\stesting\sthe\snew\ntransfer\sof\n\s\s\s\s\s\schannels.\sThe\sinformation\sin\sthis\slist\sfor\sa\schannel\nwas\sleft\n\s\s\s\s\s\sbehind\sand\sthen\scrashed\sthe\ssystem\sduring\sfinalization.\n\nThe\scode\shas\sremained\s#ifdef'ed\sout\ssince\sthen,\salthough\na\spatch\shas\ssince\sbeen\sapplied\sto\smake\sit\swork\sproperly\nif\s-DDEPRECATED\sis\ssupplied;\ssee\sChangeLog\sentry\n2003-01-25\s\sMo\sDeJong\s\s<[email protected]>.\n\n\s*\s*\s*\n\nSUMMARY:\ssince\sthis\spart\sof\sthe\scode\s(a)\sis\sonly\sused\sto\nimplement\san\sundocumented\sand\squite-possibly\sincorrect\sfeature,\nand\s(b)\shas\sbeen\sdisabled\sthroughout\sthe\s8.4\sseries\swithout\s\nany\snoticeable\sill\seffect,\sI\sbelieve\sit\scan\sbe\ssafely\sremoved.\n\n\n
J login jenglish
J mimetype text/plain
J username jenglish
K 727786ffffffffffffffffffffffffffffffffff
U jenglish
Z 95167b6a1f86c0f96488838f16e0ae7c