From d62cc5338311d1e11142d94e9b03c3ccc13d06a0 Mon Sep 17 00:00:00 2001 From: Vincent Torri Date: Tue, 26 Mar 2019 10:10:54 -0400 Subject: [PATCH] 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 dbb9779..b03625a 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 316347a..6e0b27c 100644 --- a/src/lib/evil/evil_stdlib.h +++ b/src/lib/evil/evil_stdlib.h @@ -68,38 +68,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 * * @since 1.8.0 -- 2.7.4