aboutsummaryrefslogtreecommitdiff
path: root/jim_tcl.txt
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2021-02-18 08:00:10 +1000
committerSteve Bennett <steveb@workware.net.au>2021-02-27 06:17:42 +1000
commit65a3a3209c778b8e554a9d2528da6ee385aa31ef (patch)
tree89f2ca3d2f344d3de2b6e740c204b1a53f7f7386 /jim_tcl.txt
parent86b1e2af7343aa0db4db5f00552e51d54d3df733 (diff)
downloadjimtcl-65a3a3209c778b8e554a9d2528da6ee385aa31ef.zip
jimtcl-65a3a3209c778b8e554a9d2528da6ee385aa31ef.tar.gz
jimtcl-65a3a3209c778b8e554a9d2528da6ee385aa31ef.tar.bz2
aio: open: support for POSIX open flags
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'jim_tcl.txt')
-rw-r--r--jim_tcl.txt36
1 files changed, 36 insertions, 0 deletions
diff --git a/jim_tcl.txt b/jim_tcl.txt
index 1889ac9..88b62f5 100644
--- a/jim_tcl.txt
+++ b/jim_tcl.txt
@@ -64,6 +64,7 @@ Changes since 0.80
7. Add support for `lsearch -index` and `lsearch -stride`, the latter per TIP 351
8. `lsort -index` now supports multiple indices
9. Add support for `lsort -stride`
+10. `open` now supports POSIX-style access arguments
Changes between 0.79 and 0.80
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -3506,6 +3507,41 @@ It may have any of the following values:
+'access'+ defaults to 'r'.
+Additionally, if POSIX mode is supported by the underlying system,
+then access may insted of consistent of a list of any of the following
+flags, all of which have the standard POSIX meanings. In this case,
+the first flag *must* be one of RDONLY, WRONLY or RDWR.
+
++RDONLY+::
+ Open the file for reading only.
+
++WRONLY+::
+ Open the file for writing only.
+
++RDWR+::
+ Open the file for both reading and writing.
+
++APPEND+::
+ Set the file pointer to the end of the file prior to each write.
+
++BINARY+::
+ Ignored.
+
++CREAT+::
+ Create the file if it does not already exist (without this flag
+ it is an error for the file not to exist).
+
++EXCL+::
+ If CREAT is also specified, an error is returned if the file
+ already exists.
+
++NOCTTY+::
+ If the file is a terminal device, this flag prevents the file
+ from becoming the controlling terminal of the process.
+
++TRUNC+::
+ If the file exists it is truncated to zero length.
+
If a file is opened for both reading and writing, then `seek`
must be invoked between a read and a write, or vice versa.