diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-11-08 15:50:06 (GMT) |
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-11-08 15:50:06 (GMT) |
| commit | 9c9ce91ef5f2bc6693e38d6ff6fad7047ea71a17 (patch) | |
| tree | b02c2e910970c492686bd483912511528edff050 /unix/tclUnixThrd.c | |
| parent | ed208233801b034319f1e70229a69631cffd2105 (diff) | |
| download | tcl-9c9ce91ef5f2bc6693e38d6ff6fad7047ea71a17.zip tcl-9c9ce91ef5f2bc6693e38d6ff6fad7047ea71a17.tar.gz tcl-9c9ce91ef5f2bc6693e38d6ff6fad7047ea71a17.tar.bz2 | |
Tcl-9 huge cleanup: Remove many unused internal functions which do nothing more than occupy the internal stub table.
Diffstat (limited to 'unix/tclUnixThrd.c')
| -rw-r--r-- | unix/tclUnixThrd.c | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/unix/tclUnixThrd.c b/unix/tclUnixThrd.c index f475aed..bb78e51 100644 --- a/unix/tclUnixThrd.c +++ b/unix/tclUnixThrd.c @@ -15,12 +15,6 @@ #ifdef TCL_THREADS -typedef struct { - char nabuf[16]; -} ThreadSpecificData; - -static Tcl_ThreadDataKey dataKey; - /* * masterLock is used to serialize creation of mutexes, condition variables, * and thread local storage. This is the only place that can count on the @@ -623,52 +617,6 @@ TclpFinalizeCondition( } #endif /* TCL_THREADS */ -/* - *---------------------------------------------------------------------- - * - * TclpReaddir, TclpInetNtoa -- - * - * These procedures replace core C versions to be used in a threaded - * environment. - * - * Results: - * See documentation of C functions. - * - * Side effects: - * See documentation of C functions. - * - * Notes: - * TclpReaddir is no longer used by the core (see 1095909), but it - * appears in the internal stubs table (see #589526). - * - *---------------------------------------------------------------------- - */ - -#ifndef TCL_NO_DEPRECATED -Tcl_DirEntry * -TclpReaddir( - DIR * dir) -{ - return TclOSreaddir(dir); -} - -#undef TclpInetNtoa -char * -TclpInetNtoa( - struct in_addr addr) -{ -#ifdef TCL_THREADS - ThreadSpecificData *tsdPtr = TCL_TSD_INIT(&dataKey); - unsigned char *b = (unsigned char*) &addr.s_addr; - - sprintf(tsdPtr->nabuf, "%u.%u.%u.%u", b[0], b[1], b[2], b[3]); - return tsdPtr->nabuf; -#else - return inet_ntoa(addr); -#endif -} -#endif /* TCL_NO_DEPRECATED */ - #ifdef TCL_THREADS /* * Additions by AOL for specialized thread memory allocator. |
