Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
74429eac
Commit
74429eac
authored
Jan 06, 1999
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add doc for access() and ttyname(). Patch by Sean Reifschneider.
parent
6892aa37
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
Doc/lib/libposix.tex
Doc/lib/libposix.tex
+12
-0
No files found.
Doc/lib/libposix.tex
View file @
74429eac
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment