summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixPort.h
diff options
context:
space:
mode:
authorhobbs <hobbs@noemail.net>2002-02-08 09:33:02 (GMT)
committerhobbs <hobbs@noemail.net>2002-02-08 09:33:02 (GMT)
commitf2cd5579a84160faf2402f50767c63e96343d113 (patch)
treeddc852096661b311770cc5de932600eeb110f05f /unix/tclUnixPort.h
parent26f44ce50a1e99ec5912128536e1698d7b2257ab (diff)
downloadtcl-f2cd5579a84160faf2402f50767c63e96343d113.zip
tcl-f2cd5579a84160faf2402f50767c63e96343d113.tar.gz
tcl-f2cd5579a84160faf2402f50767c63e96343d113.tar.bz2
* unix/tclUnixPort.h:
* unix/tclUnixThrd.c: added thread-safe versions of readdir, localtime, gmtime and inet_ntoa for threaded build. (jgdavidson) FossilOrigin-Name: 66e9f4d6b4ef7c1907dce967a7da98539d8b762b
Diffstat (limited to 'unix/tclUnixPort.h')
-rw-r--r--unix/tclUnixPort.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/unix/tclUnixPort.h b/unix/tclUnixPort.h
index 4ca092a..0fafe9f 100644
--- a/unix/tclUnixPort.h
+++ b/unix/tclUnixPort.h
@@ -19,7 +19,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclUnixPort.h,v 1.18 2001/08/30 08:53:15 vincentdarley Exp $
+ * RCS: @(#) $Id: tclUnixPort.h,v 1.19 2002/02/08 09:33:03 hobbs Exp $
*/
#ifndef _TCLUNIXPORT
@@ -497,6 +497,14 @@ typedef pthread_mutex_t TclpMutex;
EXTERN void TclpMutexInit _ANSI_ARGS_((TclpMutex *mPtr));
EXTERN void TclpMutexLock _ANSI_ARGS_((TclpMutex *mPtr));
EXTERN void TclpMutexUnlock _ANSI_ARGS_((TclpMutex *mPtr));
+EXTERN struct dirent * TclpReaddir(DIR *);
+EXTERN struct tm * TclpLocaltime(time_t *);
+EXTERN struct tm * TclpGmtime(time_t *);
+EXTERN char * TclpInetNtoa(struct in_addr);
+#define readdir(x) TclpReaddir(x)
+#define localtime(x) TclpLocaltime(x)
+#define gmtime(x) TclpGmtime(x)
+#define inet_ntoa(x) TclpInetNtoa(x)
#else
typedef int TclpMutex;
#define TclpMutexInit(a)