From da71e5a0189fc6ae44111ee24a6367b39ec7ec63 Mon Sep 17 00:00:00 2001 From: carl Date: Sun, 17 Mar 2019 22:23:18 +0800 Subject: [PATCH] Addition of tmpnam system function. --- modules/src/system/tmpnam.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 modules/src/system/tmpnam.c diff --git a/modules/src/system/tmpnam.c b/modules/src/system/tmpnam.c new file mode 100644 index 000000000..1c58261ac --- /dev/null +++ b/modules/src/system/tmpnam.c @@ -0,0 +1,16 @@ +/* Copyright (c) 2019. See the file License in + * the root directory for more information. + * + * Created on: 2019-03-13 + * + */ +#include + +/* This has been placed here, because on some famous platforms, this + * call is completely broken (e.g Windows up to recent versions of CRT) + */ +char* sys_tmpnam(char *buffer) +{ + return tmpnam(buffer); +} +