summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Bowman <github@magicmonkey.org>2012-05-16 04:24:05 +0100
committerBen Noordhuis <info@bnoordhuis.nl>2012-05-17 06:05:33 +0200
commitccc4e547ea91ce42a798b88c728d3d17c83ec079 (patch)
treea31241e51c1abe30b564f2080b85d6913f6a46dc
parent1a2255ab44d4c81e6f62a69dca5710f4f31b8a00 (diff)
downloadnode-new-ccc4e547ea91ce42a798b88c728d3d17c83ec079.tar.gz
doc: document fs 'rs+' open mode
-rw-r--r--doc/api/fs.markdown4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/api/fs.markdown b/doc/api/fs.markdown
index 178187a282..79a989e012 100644
--- a/doc/api/fs.markdown
+++ b/doc/api/fs.markdown
@@ -277,6 +277,10 @@ this doesn't turn `fs.open()` into a synchronous blocking call, if that's what
you want then you should be using `fs.openSync()`
An exception occurs if the file does not exist.
+* `'rs+'` - Open file for reading and writing, telling the OS to open it
+synchronously.
+See notes for `'rs'` about using this with caution.
+
* `'w'` - Open file for writing.
The file is created (if it does not exist) or truncated (if it exists).