diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2002-02-15 14:28:47 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2002-02-15 14:28:47 (GMT) |
commit | 66a15c6f8be47c3acbdddffadc67f50dec8a56e6 (patch) | |
tree | edaf81ee6d40edeacc9f3e2093ddcb2ba302c620 /unix/tclUnixThrd.c | |
parent | 2827a2692798a7a0ec46e684a4ccc83afb39859e (diff) | |
download | tcl-66a15c6f8be47c3acbdddffadc67f50dec8a56e6.zip tcl-66a15c6f8be47c3acbdddffadc67f50dec8a56e6.tar.gz tcl-66a15c6f8be47c3acbdddffadc67f50dec8a56e6.tar.bz2 |
TIP#72 implementation. See ChangeLog for details.
This version builds clean on Solaris/SPARC, with GCC and CC, both with and
without threads and both in 32-bit and 64-bit mode.
Diffstat (limited to 'unix/tclUnixThrd.c')
-rw-r--r-- | unix/tclUnixThrd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/unix/tclUnixThrd.c b/unix/tclUnixThrd.c index 5086b2d..82b4d24 100644 --- a/unix/tclUnixThrd.c +++ b/unix/tclUnixThrd.c @@ -24,7 +24,7 @@ typedef struct ThreadSpecificData { struct tm gtbuf; struct tm ltbuf; struct { - struct dirent ent; + Tcl_DirEntry ent; char name[PATH_MAX+1]; } rdbuf; } ThreadSpecificData; @@ -790,14 +790,14 @@ TclpFinalizeCondition(condPtr) *---------------------------------------------------------------------- */ -struct dirent * +Tcl_DirEntry * TclpReaddir(DIR * dir) { ThreadSpecificData *tsdPtr = TCL_TSD_INIT(&dataKey); - struct dirent *ent; + Tcl_DirEntry *ent; ent = &tsdPtr->rdbuf.ent; - if (readdir_r(dir, ent, &ent) != 0) { + if (Tcl_PlatformReaddir_r(dir, ent, &ent) != 0) { ent = NULL; } return ent; |