summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixPort.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-06-29 14:52:29 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-06-29 14:52:29 (GMT)
commitf0048561b7c9f59ae0be8140bbbdc277ed1fb95e (patch)
tree08945f2604742f7be84f9a2c8ef9ce4fa707db43 /unix/tclUnixPort.h
parent75738205252e3a1805dea171f451ee60691a8b65 (diff)
downloadtcl-f0048561b7c9f59ae0be8140bbbdc277ed1fb95e.zip
tcl-f0048561b7c9f59ae0be8140bbbdc277ed1fb95e.tar.gz
tcl-f0048561b7c9f59ae0be8140bbbdc277ed1fb95e.tar.bz2
Use fstat64() in stead of fstat() on platforms which support it.
Diffstat (limited to 'unix/tclUnixPort.h')
-rw-r--r--unix/tclUnixPort.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/unix/tclUnixPort.h b/unix/tclUnixPort.h
index ece0202..791c2a3 100644
--- a/unix/tclUnixPort.h
+++ b/unix/tclUnixPort.h
@@ -120,15 +120,18 @@ extern "C" {
#pragma clang diagnostic pop
#endif
# define timezone _timezone
+ extern int TclOSfstat(int fd, void *statBuf);
extern int TclOSstat(const char *name, void *statBuf);
extern int TclOSlstat(const char *name, void *statBuf);
#ifdef __cplusplus
}
#endif
#elif defined(HAVE_STRUCT_STAT64) && !defined(__APPLE__)
+# define TclOSfstat(fd, buf) fstat64(fd, (struct stat64 *)buf)
# define TclOSstat(name, buf) stat64(name, (struct stat64 *)buf)
# define TclOSlstat(name,buf) lstat64(name, (struct stat64 *)buf)
#else
+# define TclOSfstat(fd, buf) fstat(fd, (struct stat *)buf)
# define TclOSstat(name, buf) stat(name, (struct stat *)buf)
# define TclOSlstat(name, buf) lstat(name, (struct stat *)buf)
#endif