libfile: implement make_temp
Create a make_temp() function which creates a name for a temporary file.
Since we do not have any concurrency in barebox we do not need to create
the file right away and can leave that to the caller. Unlike unix
mktemp the resulting filename is dynamically allocated and must be
freed by the caller.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 3f86edf commit 94e561b3648a2c921a6c8faa6c79201c78f8ecfe
@Sascha Hauer Sascha Hauer authored on 22 Jan 2018
Showing 2 changed files
View
include/libfile.h
View
lib/libfile.c