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

Skip to content

Commit 74429ea

Browse files
committed
Add doc for access() and ttyname(). Patch by Sean Reifschneider.
1 parent 6892aa3 commit 74429ea

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Doc/lib/libposix.tex

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@ \section{\module{posix} ---
8080

8181
It defines the following functions and constants:
8282

83+
\begin{funcdesc}{access}{path, mode}
84+
Check read/write/execute permissions for this process or extance of file
85+
\var{path}. Return \code{1} if access is granted, \code{0} if not.
86+
See the \UNIX{} manual for the semantics.
87+
\end{funcdesc}
88+
8389
\begin{funcdesc}{chdir}{path}
8490
Change the current working directory to \var{path}.
8591
\end{funcdesc}
@@ -321,6 +327,12 @@ \section{\module{posix} ---
321327
Return the error message corresponding to the error code in \var{code}.
322328
\end{funcdesc}
323329

330+
\begin{funcdesc}{ttyname}{fd}
331+
Return a string which specifies the terminal device associated with
332+
file-descriptor \var{fd}. If \var{fd} is not associated with a terminal
333+
device, an exception is raised.
334+
\end{funcdesc}
335+
324336
\begin{funcdesc}{read}{fd, n}
325337
Read at most \var{n} bytes from file descriptor \var{fd}.
326338
Return a string containing the bytes read.

0 commit comments

Comments
 (0)