]> granicus.if.org Git - python/commitdiff
SF bug #592859: os.chmod is underdocumented
authorRaymond Hettinger <python@rcn.com>
Mon, 6 Jan 2003 13:31:26 +0000 (13:31 +0000)
committerRaymond Hettinger <python@rcn.com>
Mon, 6 Jan 2003 13:31:26 +0000 (13:31 +0000)
Document constants for permission bits.

Doc/lib/libos.tex

index c93c83542ca2624b787eec85a9a7c74d6ca128db..a2c013b7dc9425997c6d47b35a5f5ce6cbe55ca2 100644 (file)
@@ -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}