diff options
| author | donal.k.fellows@manchester.ac.uk <dkf> | 2002-02-15 14:28:47 (GMT) |
|---|---|---|
| committer | donal.k.fellows@manchester.ac.uk <dkf> | 2002-02-15 14:28:47 (GMT) |
| commit | c69f23726dc970b2916a96f57b171e1ebc697e60 (patch) | |
| tree | edaf81ee6d40edeacc9f3e2093ddcb2ba302c620 /unix/tclUnixThrd.c | |
| parent | 44653d205ea98aa42a7cf448a6647158a7da51a4 (diff) | |
| download | tcl-c69f23726dc970b2916a96f57b171e1ebc697e60.zip tcl-c69f23726dc970b2916a96f57b171e1ebc697e60.tar.gz tcl-c69f23726dc970b2916a96f57b171e1ebc697e60.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; |
