diff options
author | HummyPkg <af123@hummypkg.org.uk> | 2016-08-19 08:45:08 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2016-08-20 11:01:10 +1000 |
commit | dc7c2751eb01e8aa37740ce494e2857ce11b5ad3 (patch) | |
tree | 96ca0096c0182b7de179249246b3ecad0aa40d70 /jim_tcl.txt | |
parent | 278003ca94cf3d3e5f9619e6b2fd08ab590c0899 (diff) | |
download | jimtcl-dc7c2751eb01e8aa37740ce494e2857ce11b5ad3.zip jimtcl-dc7c2751eb01e8aa37740ce494e2857ce11b5ad3.tar.gz jimtcl-dc7c2751eb01e8aa37740ce494e2857ce11b5ad3.tar.bz2 |
add POSIX lock/unlock methods to aio objects
Diffstat (limited to 'jim_tcl.txt')
-rw-r--r-- | jim_tcl.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/jim_tcl.txt b/jim_tcl.txt index 5c6e206..97dc83e 100644 --- a/jim_tcl.txt +++ b/jim_tcl.txt @@ -58,6 +58,7 @@ Changes between 0.76 and 0.77 3. Added `zlib` 4. Added support for boolean constants in `expr` 5. `string is` now supports 'boolean' class +6. Add support for `aio lock` and `aio unlock` Changes between 0.75 and 0.76 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -4522,6 +4523,14 @@ aio +$handle *isatty*+:: Returns 1 if the stream is a tty device. ++$handle *lock*+:: + Apply a POSIX lock to the open file associated with the handle using + fcntl(2). + The handle must be open for write access. + Returns 1 if the lock was successfully obtained, 0 otherwise. + An error occurs if the handle is not suitable for locking (e.g. + if it is not open for write) + +$handle *ndelay ?0|1?*+:: Set O_NDELAY (if arg). Returns current/new setting. Note that in general ANSI I/O interacts badly with non-blocking I/O. @@ -4558,6 +4567,9 @@ aio +$handle *ssl* *?-server cert priv?*+:: Initiates a SSL/TLS session and returns a new stream ++$handle *unlock*+:: + Release a POSIX lock previously acquired by `aio lock`. + +$handle *verify*+:: Verifies the certificate of a SSL/TLS stream peer |