diff options
Diffstat (limited to 'mdk-stage1/dietlibc/libstdio/tmpfile.c')
-rw-r--r-- | mdk-stage1/dietlibc/libstdio/tmpfile.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/mdk-stage1/dietlibc/libstdio/tmpfile.c b/mdk-stage1/dietlibc/libstdio/tmpfile.c deleted file mode 100644 index b20d8410d..000000000 --- a/mdk-stage1/dietlibc/libstdio/tmpfile.c +++ /dev/null @@ -1,12 +0,0 @@ -#include "dietstdio.h" -#include <stdlib.h> -#include <unistd.h> - -FILE *tmpfile (void) { - int fd; - char template[20] = "/tmp/tmpfile-XXXXXX"; - if ((fd=mkstemp(template))<0) - return 0; - unlink(template); - return __stdio_init_file(fd,1); -} |