Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9f5b07d

Browse files
committed
SF bug #592859: os.chmod is underdocumented
Document constants for permission bits.
1 parent b8c7b9f commit 9f5b07d

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

Doc/lib/libos.tex

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -653,6 +653,28 @@ \subsection{Files and Directories \label{os-file-dir}}
653653

654654
\begin{funcdesc}{chmod}{path, mode}
655655
Change the mode of \var{path} to the numeric \var{mode}.
656+
\var{mode} may take one of the following values:
657+
\begin{itemize}
658+
\item \code{S_ISUID}
659+
\item \code{S_ISGID}
660+
\item \code{S_ENFMT}
661+
\item \code{S_ISVTX}
662+
\item \code{S_IREAD}
663+
\item \code{S_IWRITE}
664+
\item \code{S_IEXEC}
665+
\item \code{S_IRWXU}
666+
\item \code{S_IRUSR}
667+
\item \code{S_IWUSR}
668+
\item \code{S_IXUSR}
669+
\item \code{S_IRWXG}
670+
\item \code{S_IRGRP}
671+
\item \code{S_IWGRP}
672+
\item \code{S_IXGRP}
673+
\item \code{S_IRWXO}
674+
\item \code{S_IROTH}
675+
\item \code{S_IWOTH}
676+
\item \code{S_IXOTH}
677+
\end{itemize}
656678
Availability: \UNIX, Windows.
657679
\end{funcdesc}
658680

0 commit comments

Comments
 (0)