Mkstemp


In computing, mkstemp is a POSIX function for creating a temporary file (a computer file which usually ceases to exist when the program, which opened the file, closes it or terminates).[1] It accepts an argument that determines the location of the temporary file, and the prefix of its generated filename.[1] After mkstemp was added to the Single UNIX Specification, the function tmpnam() was deprecated,[1] 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.[2] mkstemp does not suffer from this problem.[3]

  1. ^ a b c Cite error: The named reference opengroup, mkstemp was invoked but never defined (see the help page).
  2. ^ Cite error: The named reference opengroup, tempnam was invoked but never defined (see the help page).
  3. ^ Cite error: The named reference StevensEtRago2013 was invoked but never defined (see the help page).