Flashnux

GNU/Linux man pages

Livre :
Expressions régulières,
Syntaxe et mise en oeuvre :

ISBN : 978-2-7460-9712-4
EAN : 9782746097124
(Editions ENI)

GNU/Linux

CentOS 2.1AS

(Slurm)

tmpfile(3)


TMPFILE

TMPFILE

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
ERRORS
CONFORMING TO
SEE ALSO

NAME

tmpfile − create a temporary file

SYNOPSIS

#include <stdio.h>

FILE *tmpfile (void);

DESCRIPTION

The tmpfile() function generates a unique temporary filename using the path prefix P_tmpdir defined in <stdio.h>. The temporary file is then opened in binary read/write (w+b) mode. The file will be automatically deleted when it is closed or the program terminates.

RETURN VALUE

The tmpfile() function returns a stream descriptor, or NULL if a unique filename cannot be generated or the unique file cannot be opened.

ERRORS

EACCES

Search permission denied for directory in file’s path prefix.

EEXIST

Unable to generate a unique filename.

EMFILE

Too many file descriptors in use by process.

ENFILE

Too many files open in system.

EROFS

Read-only filesystem.

CONFORMING TO

SVID 3, POSIX, BSD 4.3, ISO 9899, SUSv2

SEE ALSO

mktemp(3), mkstemp(3), tmpnam(3), tempnam(3)



tmpfile(3)