Manpage of TMPFILE64

Google
Web www.fiveanddime.net

TMPFILE64

Section: NEWLIB (3)
Updated: 2005 Feb 23
Index Return to Main Contents
 

NAME

4.7 `tmpfile64'--create a large temporary file

 

SYNOPSIS


     #include <stdio.h>
     FILE *tmpfile64(void);


     FILE *_tmpfile64_r(void *REENT);  

DESCRIPTION

Create a large temporary file (a file which will be deleted automatically), using a name generated by `tmpnam'. The temporary file is opened with the mode `"wb+"', permitting you to read and write anywhere in it as a binary file (without any data transformations the host system may perform for text files). The file may be larger than 2GB.


   The alternate function `_tmpfile64_r' is a reentrant version.  The argument REENT is a pointer to a reentrancy structure.


   Both `tmpfile64' and `_tmpfile64_r' are only defined if __LARGE64_FILES is defined.

 

RETURNS

`tmpfile64' normally returns a pointer to the temporary file. If no temporary file could be created, the result is NULL, and `errno' records the reason for failure.

 

PORTABILITY

`tmpfile64' is a glibc extension.


   Supporting OS subroutines required: `close', `fstat', `getpid', `isatty', `lseek64', `open64', `read', `sbrk', `write'.


   `tmpfile64' also requires the global pointer `environ'.

 

SEE ALSO

tmpfile64 is part of the libc library. The full documentation for libc is maintained as a Texinfo manual. If info and libc are properly installed at your site, the command
info libc

will give you access to the complete manual.


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURNS
PORTABILITY
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 21:25:32 GMT, May 16, 2005



www.fiveanddime.net








Google
Web www.fiveanddime.net