summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixPort.h
diff options
context:
space:
mode:
authorsuresh <suresh>1998-05-28 15:18:17 (GMT)
committersuresh <suresh>1998-05-28 15:18:17 (GMT)
commit880fea0671680fcbf80693e02548fda4bc69686f (patch)
tree9457f3e09794b7c76f669d30679b4342cdeed86d /unix/tclUnixPort.h
parent5110e5f588c6e0872c3ce98fd50302f3cd2304bc (diff)
downloadtcl-880fea0671680fcbf80693e02548fda4bc69686f.zip
tcl-880fea0671680fcbf80693e02548fda4bc69686f.tar.gz
tcl-880fea0671680fcbf80693e02548fda4bc69686f.tar.bz2
Added macro ti simply map 'TclpStat(...)' to 'stat(...)'.
Added macro to simply map 'TclpAccess(...)' to 'access(...)'.
Diffstat (limited to 'unix/tclUnixPort.h')
-rw-r--r--unix/tclUnixPort.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/unix/tclUnixPort.h b/unix/tclUnixPort.h
index 4613704..f99910f 100644
--- a/unix/tclUnixPort.h
+++ b/unix/tclUnixPort.h
@@ -300,6 +300,15 @@ EXTERN int gettimeofday _ANSI_ARGS_((struct timeval *tp,
#endif
/*
+ * On UNIX, there's no platform specific implementation of "TclpStat(...)"
+ * or "TclpAccess(...)". Simply call "stat(...)' and "access(...)"
+ * respectively.
+ */
+
+#define TclpStat stat
+#define TclpAccess access
+
+/*
* On systems without symbolic links (i.e. S_IFLNK isn't defined)
* define "lstat" to use "stat" instead.
*/