Everything About ___
Live briefing

Everything about Mkstemp

Thread-safe POSIX function for creating a temporary file

In computing, mkstemp is a POSIX function for creating a temporary file. It accepts an argument that determines the location of the temporary file, and the prefix of its generated filename. After mkstemp was added to the Single UNIX Specification, the function tmpnam was deprecated, because the latter carried the risk that a temporary file with the same name could be created by another thread or process within the time from when the caller obtains the temporary filename and attempts to create it. mkstemp does not suffer from this problem. Wikipedia →

đź§­ Start here: a 6-step reading path

  1. Read the overview: MkstempA 5-minute orientation
  2. Go sideways: Open (system call)A closely related topic
  3. Go sideways: Berkeley socketsA closely related topic

đź“– Definitions

No dictionary entry for this exact phrase.

🗂️ The subject at a glance

  1. Usage
  2. Error conditions
  3. Mechanism

🏆 Landmark papers (most cited)

📚 Books worth reading

Open Library didn't respond; try again in a moment.

đź”— Related topics