diff options
author | Guido van Rossum <guido@python.org> | 1999-01-06 23:03:43 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1999-01-06 23:03:43 (GMT) |
commit | 74429eacb54dd388086d52fba21d68751ce3ee51 (patch) | |
tree | cb0def4a3c1cb88d44d5d79f2a55240dcf56f35e /Doc/lib/libposix.tex | |
parent | 6892aa372de9852fabbcb0d1f005493ac8035345 (diff) | |
download | cpython-74429eacb54dd388086d52fba21d68751ce3ee51.zip cpython-74429eacb54dd388086d52fba21d68751ce3ee51.tar.gz cpython-74429eacb54dd388086d52fba21d68751ce3ee51.tar.bz2 |
Add doc for access() and ttyname(). Patch by Sean Reifschneider.
Diffstat (limited to 'Doc/lib/libposix.tex')
-rw-r--r-- | Doc/lib/libposix.tex | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Doc/lib/libposix.tex b/Doc/lib/libposix.tex index 27f8197..43d63e5 100644 --- a/Doc/lib/libposix.tex +++ b/Doc/lib/libposix.tex @@ -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. |