Add S_ISBLK().

This commit is contained in:
Guido van Rossum 1998-01-29 22:03:41 +00:00
parent c9aef03af4
commit c45c2f3dc1
2 changed files with 10 additions and 2 deletions

View File

@ -14,13 +14,17 @@ The \code{stat} module defines the following functions:
\renewcommand{\indexsubitem}{(in module stat)} \renewcommand{\indexsubitem}{(in module stat)}
\begin{funcdesc}{S_ISDIR}{mode} \begin{funcdesc}{S_ISDIR}{mode}
Return non-zero if the mode was gotten from a directory file. Return non-zero if the mode was gotten from a directory.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{S_ISCHR}{mode} \begin{funcdesc}{S_ISCHR}{mode}
Return non-zero if the mode was gotten from a character special device. Return non-zero if the mode was gotten from a character special device.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{S_ISBLK}{mode}
Return non-zero if the mode was gotten from a block special device.
\end{funcdesc}
\begin{funcdesc}{S_ISREG}{mode} \begin{funcdesc}{S_ISREG}{mode}
Return non-zero if the mode was gotten from a regular file. Return non-zero if the mode was gotten from a regular file.
\end{funcdesc} \end{funcdesc}

View File

@ -14,13 +14,17 @@ The \code{stat} module defines the following functions:
\renewcommand{\indexsubitem}{(in module stat)} \renewcommand{\indexsubitem}{(in module stat)}
\begin{funcdesc}{S_ISDIR}{mode} \begin{funcdesc}{S_ISDIR}{mode}
Return non-zero if the mode was gotten from a directory file. Return non-zero if the mode was gotten from a directory.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{S_ISCHR}{mode} \begin{funcdesc}{S_ISCHR}{mode}
Return non-zero if the mode was gotten from a character special device. Return non-zero if the mode was gotten from a character special device.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{S_ISBLK}{mode}
Return non-zero if the mode was gotten from a block special device.
\end{funcdesc}
\begin{funcdesc}{S_ISREG}{mode} \begin{funcdesc}{S_ISREG}{mode}
Return non-zero if the mode was gotten from a regular file. Return non-zero if the mode was gotten from a regular file.
\end{funcdesc} \end{funcdesc}