diff options
author | Steve Bennett <steveb@workware.net.au> | 2021-07-15 14:15:08 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2022-04-14 11:18:01 +1000 |
commit | 81e1890c0f595c474cabcaa83f66882005336d93 (patch) | |
tree | 75e9fe03c05b9780c1a34039e508121bb6cfced6 /jimiocompat.h | |
parent | 703ac20adb9daff423eea44f4af548f485a97254 (diff) | |
download | jimtcl-81e1890c0f595c474cabcaa83f66882005336d93.zip jimtcl-81e1890c0f595c474cabcaa83f66882005336d93.tar.gz jimtcl-81e1890c0f595c474cabcaa83f66882005336d93.tar.bz2 |
aio: TIP 603 - Implement stat of an open file handle
Although the interface is different ('$handle stat' vs 'chan configure -stat')
the behaviour is the same.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'jimiocompat.h')
-rw-r--r-- | jimiocompat.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/jimiocompat.h b/jimiocompat.h index e44e6d5..5ac7576 100644 --- a/jimiocompat.h +++ b/jimiocompat.h @@ -67,10 +67,12 @@ int Jim_OpenForRead(const char *filename); typedef struct _stat64 jim_stat_t; #define Jim_Stat __stat64 + #define Jim_FileStat _fstat64 #else typedef struct stat jim_stat_t; #define Jim_Stat stat + #define Jim_FileStat fstat #if defined(HAVE_UNISTD_H) #include <unistd.h> @@ -89,4 +91,10 @@ int Jim_OpenForRead(const char *filename); #endif #endif +/* jim-file.c */ +/* Note that this is currently an internal function only. + * It does not form part of the public Jim API + */ +int Jim_FileStoreStatData(Jim_Interp *interp, Jim_Obj *varName, const jim_stat_t *sb); + #endif |