aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/doc
diff options
context:
space:
mode:
authorAndre Nathan <[email protected]>2019-04-29 09:29:59 -0300
committerJohn Högberg <[email protected]>2019-07-12 09:06:45 +0200
commit924cd70f8b7cf1fa2256055af39723b24fd6238e (patch)
treedc50661270400d205fa83c3552cb94a8c6ee989f /lib/kernel/doc
parentb286b7f1de4aed13ba71b817321673eb67df941e (diff)
downloadotp-924cd70f8b7cf1fa2256055af39723b24fd6238e.tar.gz
otp-924cd70f8b7cf1fa2256055af39723b24fd6238e.tar.bz2
otp-924cd70f8b7cf1fa2256055af39723b24fd6238e.zip
file: allow read_file_info on file descriptors
Diffstat (limited to 'lib/kernel/doc')
-rw-r--r--lib/kernel/doc/src/file.xml6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/kernel/doc/src/file.xml b/lib/kernel/doc/src/file.xml
index b3e8149cc2..d923207f9f 100644
--- a/lib/kernel/doc/src/file.xml
+++ b/lib/kernel/doc/src/file.xml
@@ -1444,7 +1444,11 @@ f.txt: {person, "kalle", 25}.
break this module's atomicity guarantees as it can race with a
concurrent call to
<seealso marker="#write_file_info/2"><c>write_file_info/1,2</c>
- </seealso></p>
+ </seealso>.</p>
+ <p>This option has no effect when the function is
+ given an I/O device instead of a file name. Use
+ <seealso marker="#open/2"><c>open/2</c></seealso> with the
+ <c>raw</c> mode to obtain a file descriptor first.</p>
<note>
<p>As file times are stored in POSIX time on most OS, it is faster to
query file information with option <c>posix</c>.</p>