summaryrefslogtreecommitdiffstats
path: root/unix/tclKqueueNotfy.c
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/tclKqueueNotfy.c
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/tclKqueueNotfy.c')
-rw-r--r--unix/tclKqueueNotfy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/tclKqueueNotfy.c b/unix/tclKqueueNotfy.c
index 6606c8c..c0b9f6f 100644
--- a/unix/tclKqueueNotfy.c
+++ b/unix/tclKqueueNotfy.c
@@ -162,7 +162,7 @@ PlatformEventsControl(
int numChanges;
struct kevent changeList[2];
struct PlatformEventData *newPedPtr;
- struct stat fdStat;
+ Tcl_StatBuf fdStat;
if (isNew) {
newPedPtr = (struct PlatformEventData *)
@@ -180,7 +180,7 @@ PlatformEventsControl(
* with regular files belonging to tsdPtr.
*/
- if (fstat(filePtr->fd, &fdStat) == -1) {
+ if (TclOSfstat(filePtr->fd, &fdStat) == -1) {
Tcl_Panic("fstat: %s", strerror(errno));
} else if ((fdStat.st_mode & S_IFMT) == S_IFREG
|| (fdStat.st_mode & S_IFMT) == S_IFDIR