summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>1996-12-19 22:38:56 (GMT)
committerBarry Warsaw <barry@python.org>1996-12-19 22:38:56 (GMT)
commitfa5a6cff45402dd1ab44879fccb8323bdea1bfc6 (patch)
tree6930d6c671de72b988da77a44a3ff94332c3b219 /Doc
parentbab218e4205d85f9b2438e87cdcd7e11cbf45e91 (diff)
downloadcpython-fa5a6cff45402dd1ab44879fccb8323bdea1bfc6.zip
cpython-fa5a6cff45402dd1ab44879fccb8323bdea1bfc6.tar.gz
cpython-fa5a6cff45402dd1ab44879fccb8323bdea1bfc6.tar.bz2
posix.open(): third argument (mode) is optional.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libposix.tex6
-rw-r--r--Doc/libposix.tex6
2 files changed, 8 insertions, 4 deletions
diff --git a/Doc/lib/libposix.tex b/Doc/lib/libposix.tex
index 7cc4c0a..a0fccdd 100644
--- a/Doc/lib/libposix.tex
+++ b/Doc/lib/libposix.tex
@@ -225,10 +225,12 @@ Add \var{incr} to the process' ``niceness''. Return the new niceness.
(Not on MS-DOS.)
\end{funcdesc}
-\begin{funcdesc}{open}{file\, flags\, mode}
+\begin{funcdesc}{open}{file\, flags\optional{\, mode}}
Open the file \var{file} and set various flags according to
\var{flags} and possibly its mode according to \var{mode}.
-Return the file descriptor for the newly opened file.
+The default \var{mode} is 0777 (octal), and the current umask value is
+first masked out. Return the file descriptor for the newly opened
+file.
Note: this function is intended for low-level I/O. For normal usage,
use the built-in function \code{open}, which returns a ``file object''
diff --git a/Doc/libposix.tex b/Doc/libposix.tex
index 7cc4c0a..a0fccdd 100644
--- a/Doc/libposix.tex
+++ b/Doc/libposix.tex
@@ -225,10 +225,12 @@ Add \var{incr} to the process' ``niceness''. Return the new niceness.
(Not on MS-DOS.)
\end{funcdesc}
-\begin{funcdesc}{open}{file\, flags\, mode}
+\begin{funcdesc}{open}{file\, flags\optional{\, mode}}
Open the file \var{file} and set various flags according to
\var{flags} and possibly its mode according to \var{mode}.
-Return the file descriptor for the newly opened file.
+The default \var{mode} is 0777 (octal), and the current umask value is
+first masked out. Return the file descriptor for the newly opened
+file.
Note: this function is intended for low-level I/O. For normal usage,
use the built-in function \code{open}, which returns a ``file object''