Add doc for access() and ttyname(). Patch by Sean Reifschneider.
authorGuido van Rossum <guido@python.org>
Wed, 6 Jan 1999 23:03:43 +0000 (23:03 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 6 Jan 1999 23:03:43 +0000 (23:03 +0000)
Doc/lib/libposix.tex

index 27f8197cd05182026592d0729cf6dd39129cfb5e..43d63e5cf3ae9923f655bd1ae68121fcc1bb3e9b 100644 (file)
@@ -80,6 +80,12 @@ When exceptions are strings, the string for the exception is
 
 It defines the following functions and constants:
 
+\begin{funcdesc}{access}{path, mode}
+Check read/write/execute permissions for this process or extance of file
+\var{path}.  Return \code{1} if access is granted, \code{0} if not.
+See the \UNIX{} manual for the semantics.
+\end{funcdesc}
+
 \begin{funcdesc}{chdir}{path}
 Change the current working directory to \var{path}.
 \end{funcdesc}
@@ -321,6 +327,12 @@ actually preferable to assign to items of \code{os.environ}.
 Return the error message corresponding to the error code in \var{code}.
 \end{funcdesc}
 
+\begin{funcdesc}{ttyname}{fd}
+Return a string which specifies the terminal device associated with
+file-descriptor \var{fd}.  If \var{fd} is not associated with a terminal
+device, an exception is raised.
+\end{funcdesc}
+
 \begin{funcdesc}{read}{fd, n}
 Read at most \var{n} bytes from file descriptor \var{fd}.
 Return a string containing the bytes read.