SC_CREATE_TEMPORARY_FILE(3)
SCORED LIBRARY (C)
SC_CREATE_TEMPORARY_FILE(3)
NAME
sc_create_temporary_file - create a temporary file

SYNOPSIS
#include <sc.h>

int sc_create_temporary_file( char *filename, int *fd );

DESCRIPTION
sc_create_temporary_file() creates a temporary file in the SCore-D directory. The life time of the created file is the same as the one of the parallel job in which this system call is invoked. Thus, the created file will be deleted when the parallel job terminates.

RETURN VALUES
sc_create_temporary_file() always returns 0 if it succeeds. Otherwise it returns the same error number as the Unix open(2) system call.

SEE ALSO
sc_open_temporary_file(3), scatter(6), system(6), gather(6), scrun(1)

$Id: sc_create_temporary_file.html,v 1.2 2002/02/27 12:39:35 liu Exp $