plan9 man page for tmpfile

Query: tmpfile

OS: plan9

Section: 2

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

TMPFILE(2)							System Calls Manual							TMPFILE(2)

NAME
tmpfile, tmpnam - Stdio temporary files
SYNOPSIS
#include <stdio.h> FILE *tmpfile(void) char *tmpnam(char *s)
DESCRIPTION
Tmpfile creates a temporary file that will automatically be removed when the file is closed or the program exits. The return value is a Stdio FILE* opened in update mode (see fopen(2)). Tmpnam generates a string that is a valid file name and that is not the same as the name of an existing file. If s is zero, it returns a pointer to a string which may be overwritten by subsequent calls to tmpnam. If s is non-zero, it should point to an array of at least L_tmpnam (defined in <stdio.h>) characters, and the answer will be copied there.
FILES
/tmp/tf000000000000 template for tmpfile file names. /tmp/tn000000000000 template for tmpnam file names.
SOURCE
/sys/src/libstdio
BUGS
The files created by tmpfile are not removed until exits(2) is executed; in particular, they are not removed on fclose or if the program terminates abnormally. TMPFILE(2)
Related Man Pages
tempnam(3) - mojave
tmpnam(3) - mojave
tempnam(3) - netbsd
tmpnam(3) - netbsd
tmpfile(3) - osx
Similar Topics in the Unix Linux Community
A shell script to run a script which don't get terminated and send a pattern from the output by mail
Need help with how to search a file for a variable string and delete that line
Is it possible to ascend a numbers based on selected columns?
How to 'improve' this script and also 'fix' the pattern matching part?