dosmktemp
Purpose
Creates a DOS temporary file.
Library
DOS Services Library (libdos.a)
Syntax
#include <dos.h>
DOSFILE dosmktemp ( )
Description
The dosmktemp subroutine creates and opens a temporary
file. The file is open for reading and writing. The
access permission flags are set so that the owner has
read-write permission and all others have no permission.
The file is created in the /tmp directory with a name
that includes the process ID of the running process and a
serial number. The /tmp directory does not need to be
accessible through the DOS file system configuration.
Return Value
Upon successful completion, a non-NULL file handle is
returned. This handle is to be used in subsequent oper-
ations.
If the dosmktemp subroutine fails, -1 is returned and
doserrno is set to indicate the error.
Related Information
In this book: "DOS services library," "doscreate," and
"dosopen."