summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-01-06 13:31:26 (GMT)
committerRaymond Hettinger <python@rcn.com>2003-01-06 13:31:26 (GMT)
commit9f5b07dd922d151663b22609f417abb6d148330f (patch)
tree66fe98b7535b0db4f244024aa54b1343b2f0c3ae /Doc
parentb8c7b9f0ccb3073afba15bbcc68c1ada12a538bf (diff)
downloadcpython-9f5b07dd922d151663b22609f417abb6d148330f.zip
cpython-9f5b07dd922d151663b22609f417abb6d148330f.tar.gz
cpython-9f5b07dd922d151663b22609f417abb6d148330f.tar.bz2
SF bug #592859: os.chmod is underdocumented
Document constants for permission bits.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libos.tex22
1 files changed, 22 insertions, 0 deletions
diff --git a/Doc/lib/libos.tex b/Doc/lib/libos.tex
index c93c835..a2c013b 100644
--- a/Doc/lib/libos.tex
+++ b/Doc/lib/libos.tex
@@ -653,6 +653,28 @@ Availability: \UNIX.
\begin{funcdesc}{chmod}{path, mode}
Change the mode of \var{path} to the numeric \var{mode}.
+\var{mode} may take one of the following values:
+\begin{itemize}
+ \item \code{S_ISUID}
+ \item \code{S_ISGID}
+ \item \code{S_ENFMT}
+ \item \code{S_ISVTX}
+ \item \code{S_IREAD}
+ \item \code{S_IWRITE}
+ \item \code{S_IEXEC}
+ \item \code{S_IRWXU}
+ \item \code{S_IRUSR}
+ \item \code{S_IWUSR}
+ \item \code{S_IXUSR}
+ \item \code{S_IRWXG}
+ \item \code{S_IRGRP}
+ \item \code{S_IWGRP}
+ \item \code{S_IXGRP}
+ \item \code{S_IRWXO}
+ \item \code{S_IROTH}
+ \item \code{S_IWOTH}
+ \item \code{S_IXOTH}
+\end{itemize}
Availability: \UNIX, Windows.
\end{funcdesc}