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
- Read the overview: MkstempA 5-minute orientation
- Go sideways: Open (system call)A closely related topic
- Go sideways: Berkeley socketsA closely related topic
đź“– Definitions
No dictionary entry for this exact phrase.
🗂️ The subject at a glance
🏆 Landmark papers (most cited)
- No matching papers found.
📚 Books worth reading
Open Library didn't respond; try again in a moment.
đź”— Related topics
- Open (system call) In Unix-like operating systems, a program initializes access to a file in a file system using the open system call. This allocates resources associated…
- Berkeley sockets Berkeley sockets is an application programming interface (API) for Internet domain sockets and Unix domain sockets, used for inter-process communication…
- Exec (system call) In computing, exec is a functionality of an operating system that runs an executable file in the context of an already existing process, replacing the…
- Stat (system call) stat() is a Unix system call that queries the file system for metadata about a file (including special files such as directories). The metadata contains…
- Select (Unix) select is a system call and application programming interface (API) in Unix-like and POSIX-compliant operating systems for examining the status of file…
- Spawn (computing) In computer science, spawn is a function that loads and executes a new child process. The current process may wait for the child to terminate or may continue…
- Umask umask is a shell command that reports or sets the mask value that limits the file permissions for newly created files in many Unix and Unix-like file systems…
- Getaddrinfo In C programming, the functions getaddrinfo() and getnameinfo() convert domain names, hostnames, and IP addresses between human-readable text representations…