summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libfcntl.tex
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-08-02 20:53:51 (GMT)
committerFred Drake <fdrake@acm.org>2000-08-02 20:53:51 (GMT)
commit6c7a46a2f012a5082bcac325e4cae58a9aadb032 (patch)
treeb5ffbfaf477d5464ed19dfbddca9872f7f6488c7 /Doc/lib/libfcntl.tex
parenta2214c37fd60b81edb04adacb308ba819ceedef6 (diff)
downloadcpython-6c7a46a2f012a5082bcac325e4cae58a9aadb032.zip
cpython-6c7a46a2f012a5082bcac325e4cae58a9aadb032.tar.gz
cpython-6c7a46a2f012a5082bcac325e4cae58a9aadb032.tar.bz2
Rob Hooft <rob@hooft.net>:
Description of fcntl(): Added description of what can go wrong.
Diffstat (limited to 'Doc/lib/libfcntl.tex')
-rw-r--r--Doc/lib/libfcntl.tex10
1 files changed, 8 insertions, 2 deletions
diff --git a/Doc/lib/libfcntl.tex b/Doc/lib/libfcntl.tex
index ea17665..bf4f375 100644
--- a/Doc/lib/libfcntl.tex
+++ b/Doc/lib/libfcntl.tex
@@ -30,8 +30,14 @@ The module defines the following functions:
structure, e.g.\ created by \function{struct.pack()}. The binary
data is copied to a buffer whose address is passed to the C
\cfunction{fcntl()} call. The return value after a successful call
- is the contents of the buffer, converted to a string object. In
- case the \cfunction{fcntl()} fails, an \exception{IOError} is
+ is the contents of the buffer, converted to a string object. The length
+ of the returned string will be the same as the length of the \var{arg}
+ argument. This is limited to 1024 bytes. If the information returned
+ in the buffer by the operating system is larger than 1024 bytes,
+ this is most likely to result in a segmentation violation or a more
+ subtle data corruption.
+
+ If the \cfunction{fcntl()} fails, an \exception{IOError} is
raised.
\end{funcdesc}