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
18f7a453
Commit
18f7a453
authored
Dec 09, 1999
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document the new stuff in the os module.
parent
89143df5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
2 deletions
+47
-2
Doc/lib/libos.tex
Doc/lib/libos.tex
+47
-2
No files found.
Doc/lib/libos.tex
View file @
18f7a453
...
...
@@ -107,6 +107,12 @@ These functions are described in ``Files and Directories'' (section
\ref
{
os-file-dir
}
).
\end{funcdescni}
\begin{funcdesc}
{
ctermid
}{}
Return the filename corresponding to the controlling terminal of the
process.
Availability:
\UNIX
{}
.
\end{funcdesc}
\begin{funcdesc}
{
getegid
}{}
Return the current process' effective group id.
Availability:
\UNIX
{}
.
...
...
@@ -248,6 +254,12 @@ errors), \code{None} is returned.
Availability:
\UNIX
{}
, Windows.
\end{funcdesc}
\begin{funcdesc}
{
tmpfile
}{}
Return a new file object opened in update mode (
\samp
{
w+
}
). The file
has no directory entries associated with it and will be automatically
deleted once there are no file descriptors for the file.
Availability:
\UNIX
{}
.
\end{funcdesc}
\subsection
{
File Descriptor Operations
\label
{
os-fd-ops
}}
...
...
@@ -575,6 +587,31 @@ Create a symbolic link pointing to \var{src} named \var{dst}.
Availability:
\UNIX
{}
.
\end{funcdesc}
\begin{funcdesc}
{
tempnam
}{
\optional
{
dir
\optional
{
, prefix
}}}
Return a unique path name that is reasonable for creating a temporary
file. This will be an absolute path that names a potential directory
entry in the directory
\var
{
dir
}
or a common location for temporary
files if
\var
{
dir
}
is omitted or
\code
{
None
}
. If given and not
\code
{
None
}
,
\var
{
prefix
}
is used to provide a short prefix to the
filename. Applications are responsible for properly creating and
managing files created using paths returned by
\function
{
tempnam()
}
;
no automatic cleanup is provided.
\end{funcdesc}
\begin{funcdesc}
{
tmpnam
}{}
Return a unique path name that is reasonable for creating a temporary
file. This will be an absolute path that names a potential directory
entry in a common location for temporary files. Applications are
responsible for properly creating and managing files created using
paths returned by
\function
{
tmpnam()
}
; no automatic cleanup is
provided.
\end{funcdesc}
\begin{datadesc}
{
TMP
_
MAX
}
The maximum number of unique names that
\function
{
tmpnam()
}
will
generate before reusing names.
\end{datadesc}
\begin{funcdesc}
{
unlink
}{
path
}
Remove the file
\var
{
path
}
. This is the same function as
\function
{
remove()
}
; the
\function
{
unlink()
}
name is its traditional
...
...
@@ -591,9 +628,17 @@ Availability: Macintosh, \UNIX{}, Windows.
\subsection
{
Process Management
\label
{
os-process
}}
These functions may be used to create and manage
additional
processes.
These functions may be used to create and manage
processes.
\begin{funcdesc}
{
abort
}{}
Generate a
\constant
{
SIGABRT
}
signal to the current process. On
\UNIX
, the default behavior is to produce a core dump; on Windows, the
process immediately returns an exit code of
\code
{
3
}
. Be aware that
programs which use
\function
{
signal.signal()
}
to register a handler
for
\constant
{
SIGABRT
}
will behave differently.
Availability:
\UNIX
, Windows.
\end{funcdesc}
\begin{funcdesc}
{
execl
}{
path, arg0, arg1, ...
}
This is equivalent to
...
...
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