zmike pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=ef298c428a10a6bc5654c70099913adbb3cd7afb
commit ef298c428a10a6bc5654c70099913adbb3cd7afb Author: Vincent Torri <[email protected]> Date: Tue Mar 26 10:10:54 2019 -0400 evil : remove mkstemp, which is already defined in mingw-w64 Summary: mkstemp is already defined in mingw-w64 Test Plan: compilation Reviewers: zmike Reviewed By: zmike Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8454 --- src/lib/evil/evil_stdlib.c | 6 ------ src/lib/evil/evil_stdlib.h | 32 -------------------------------- 2 files changed, 38 deletions(-) diff --git a/src/lib/evil/evil_stdlib.c b/src/lib/evil/evil_stdlib.c index dbb9779ee4..b03625a24d 100644 --- a/src/lib/evil/evil_stdlib.c +++ b/src/lib/evil/evil_stdlib.c @@ -192,12 +192,6 @@ mkstemps(char *__template, int suffixlen) return -1; } -int -mkstemp(char *__template) -{ - return mkstemps(__template, 0); -} - char * realpath(const char *file_name, char *resolved_name) { diff --git a/src/lib/evil/evil_stdlib.h b/src/lib/evil/evil_stdlib.h index 316347abdd..6e0b27cdda 100644 --- a/src/lib/evil/evil_stdlib.h +++ b/src/lib/evil/evil_stdlib.h @@ -67,38 +67,6 @@ EAPI int unsetenv(const char *name); * */ -/** - * @brief Create a unique temporary file name. - * - * @param __template Template of the file to create. - * @return A file descriptor on success, -1 otherwise. - * - * Take the given file name @p template and overwrite a portion of it - * to create a file name. This file is guaranted not to exist at the - * time invocation and is suitable for use by the function. - * - * The @p template parameter can be any file name with six X's at the end - * for example @em baseXXXXXX, where @em base is the part of the new file - * that you supply and each 'X' is a placeholder for a character supplied - * by mkstemp(). The trailing 'Xs' are replaced with a six-digit value; - * this value is a unique number. Each successful call to mkstemp() - * modifies @p template. - * - * When mkstemp() succeeds, it creates and opens the temporary file for - * reading and writing. - * - * On success, the function returns the file descriptor of the - * temporary file. Otherwise, it returns -1 and errno is set to the - * following values: - * - EINVAL: @p template has an invalid format. - * - EEXISTS: File name already exists. - * - * Conformity: Should follow BSD conformity. - * - * Supported OS: Windows XP. - */ -EAPI int mkstemp(char *__template); - /** * @brief create an unique temporary directory * --
