diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-06-29 14:54:06 (GMT) |
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-06-29 14:54:06 (GMT) |
| commit | 25ba69eb02a45ced6213d909a7a7f37712177c30 (patch) | |
| tree | 2c169fee7d6296592c6b634639949a2b837d416e /unix/tclUnixFile.c | |
| parent | 0c80a3cac0062e82e9cce20f2bc05c3fc8a4e367 (diff) | |
| parent | f0048561b7c9f59ae0be8140bbbdc277ed1fb95e (diff) | |
| download | tcl-25ba69eb02a45ced6213d909a7a7f37712177c30.zip tcl-25ba69eb02a45ced6213d909a7a7f37712177c30.tar.gz tcl-25ba69eb02a45ced6213d909a7a7f37712177c30.tar.bz2 | |
Merge 8.7
Diffstat (limited to 'unix/tclUnixFile.c')
| -rw-r--r-- | unix/tclUnixFile.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/unix/tclUnixFile.c b/unix/tclUnixFile.c index 05876a8..c2e904f 100644 --- a/unix/tclUnixFile.c +++ b/unix/tclUnixFile.c @@ -1198,6 +1198,29 @@ TclpUtime( #ifdef __CYGWIN__ int +TclOSfstat( + int fd, + void *cygstat) +{ + struct stat buf; + Tcl_StatBuf *statBuf = (Tcl_StatBuf *)cygstat; + int result = fstat(fd, &buf); + + statBuf->st_mode = buf.st_mode; + statBuf->st_ino = buf.st_ino; + statBuf->st_dev = buf.st_dev; + statBuf->st_rdev = buf.st_rdev; + statBuf->st_nlink = buf.st_nlink; + statBuf->st_uid = buf.st_uid; + statBuf->st_gid = buf.st_gid; + statBuf->st_size = buf.st_size; + statBuf->st_atime = buf.st_atime; + statBuf->st_mtime = buf.st_mtime; + statBuf->st_ctime = buf.st_ctime; + return result; +} + +int TclOSstat( const char *name, void *cygstat) |
