ec_open_tmpfile

March 26, 2020 Contributors

Name

ec_open_tmpfile — Open a file with a unique name; unlink the file from disk and returns its descriptor

Synopsis

#include "util.h"

| int **ec_open_tmpfile** ( | ); |   |

void;

Description

Open a file with a unique name; unlink the file from disk and return its descriptor.

Return Values

On success this function returns a file descriptor; on failure, -1.

Threading

It is legal to call this function in any thread.

See Also

ec_open_tmpfile2, ec_open_tmpfile3