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
6df3fd37
Commit
6df3fd37
authored
Jun 25, 2005
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug [ 1186072 ] tempnam doc doesn't include link to tmpfile
parent
e21d9ab3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
Doc/lib/libos.tex
Doc/lib/libos.tex
+9
-8
No files found.
Doc/lib/libos.tex
View file @
6df3fd37
...
...
@@ -1101,8 +1101,8 @@ On \UNIX, the environment variable \envvar{TMPDIR} overrides
behavior of this function depends on the C library implementation;
some aspects are underspecified in system documentation.
\warning
{
Use of
\function
{
tempnam()
}
is vulnerable to symlink attacks;
consider using
\function
{
tmpfile()
}
instead.
}
Availability: Macintosh,
\UNIX
, Windows.
consider using
\function
{
tmpfile()
}
(section
\ref
{
os-newstreams
}
)
instead.
}
Availability: Macintosh,
\UNIX
, Windows.
\end{funcdesc}
\begin{funcdesc}
{
tmpnam
}{}
...
...
@@ -1113,12 +1113,13 @@ responsible for properly creating and managing files created using
paths returned by
\function
{
tmpnam()
}
; no automatic cleanup is
provided.
\warning
{
Use of
\function
{
tmpnam()
}
is vulnerable to symlink attacks;
consider using
\function
{
tmpfile()
}
instead.
}
Availability:
\UNIX
, Windows. This function probably shouldn't be used
on Windows, though: Microsoft's implementation of
\function
{
tmpnam()
}
always creates a name in the root directory of the current drive, and
that's generally a poor location for a temp file (depending on
privileges, you may not even be able to open a file using this name).
consider using
\function
{
tmpfile()
}
(section
\ref
{
os-newstreams
}
)
instead.
}
Availability:
\UNIX
, Windows. This function probably
shouldn't be used on Windows, though: Microsoft's implementation of
\function
{
tmpnam()
}
always creates a name in the root directory of the
current drive, and that's generally a poor location for a temp file
(depending on privileges, you may not even be able to open a file
using this name).
\end{funcdesc}
\begin{datadesc}
{
TMP
_
MAX
}
...
...
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