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 /jim_tcl.txt | |
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 'jim_tcl.txt')
-rw-r--r-- | jim_tcl.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/jim_tcl.txt b/jim_tcl.txt index f84101f..442b34a 100644 --- a/jim_tcl.txt +++ b/jim_tcl.txt @@ -67,6 +67,7 @@ Changes between 0.80 and 0.81 10. `open` now supports POSIX-style access arguments 11. TIP 526, `expr` now only allows a single argument (unless --compat is enabled) 12. `try` now supports trap to match on errorcode +13. TIP 603, `aio stat` is now supported to stat a file handle Changes between 0.79 and 0.80 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -4963,6 +4964,10 @@ aio +$handle *sockname*+:: Returns the bound address or path of the socket. See 'getsockname(2)'. ++$handle *stat* ?varName?+:: + Implements the same functionality as `file stat` for a filehandle. + Only available on platforms that support 'fstat(2)' or equivalent. + +$handle *sockopt* '?name value?'+:: With no arguments, returns a dictionary of socket options currently set for the handle (will be empty for a non-socket). With +'name'+ and +'value'+, sets the socket option |