From: Barry Warsaw Date: Thu, 19 Dec 1996 22:38:56 +0000 (+0000) Subject: posix.open(): third argument (mode) is optional. X-Git-Tag: v1.5a1~689 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fa5a6cff45402dd1ab44879fccb8323bdea1bfc6;p=thirdparty%2FPython%2Fcpython.git posix.open(): third argument (mode) is optional. --- diff --git a/Doc/lib/libposix.tex b/Doc/lib/libposix.tex index 7cc4c0a3da5a..a0fccddb8494 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 7cc4c0a3da5a..a0fccddb8494 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''