summaryrefslogtreecommitdiff
path: root/src/lib/evil
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2019-03-26 10:10:54 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-03-26 10:10:54 -0400
commitef298c428a10a6bc5654c70099913adbb3cd7afb (patch)
treeb2918974d846a279b3d6563c233843ea5309f654 /src/lib/evil
parent17e60a55851c8d37ccd8cabb5757a9c0f59e2930 (diff)
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
Diffstat (limited to 'src/lib/evil')
-rw-r--r--src/lib/evil/evil_stdlib.c6
-rw-r--r--src/lib/evil/evil_stdlib.h32
2 files changed, 0 insertions, 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)
192 return -1; 192 return -1;
193} 193}
194 194
195int
196mkstemp(char *__template)
197{
198 return mkstemps(__template, 0);
199}
200
201char * 195char *
202realpath(const char *file_name, char *resolved_name) 196realpath(const char *file_name, char *resolved_name)
203{ 197{
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);
68 */ 68 */
69 69
70/** 70/**
71 * @brief Create a unique temporary file name.
72 *
73 * @param __template Template of the file to create.
74 * @return A file descriptor on success, -1 otherwise.
75 *
76 * Take the given file name @p template and overwrite a portion of it
77 * to create a file name. This file is guaranted not to exist at the
78 * time invocation and is suitable for use by the function.
79 *
80 * The @p template parameter can be any file name with six X's at the end
81 * for example @em baseXXXXXX, where @em base is the part of the new file
82 * that you supply and each 'X' is a placeholder for a character supplied
83 * by mkstemp(). The trailing 'Xs' are replaced with a six-digit value;
84 * this value is a unique number. Each successful call to mkstemp()
85 * modifies @p template.
86 *
87 * When mkstemp() succeeds, it creates and opens the temporary file for
88 * reading and writing.
89 *
90 * On success, the function returns the file descriptor of the
91 * temporary file. Otherwise, it returns -1 and errno is set to the
92 * following values:
93 * - EINVAL: @p template has an invalid format.
94 * - EEXISTS: File name already exists.
95 *
96 * Conformity: Should follow BSD conformity.
97 *
98 * Supported OS: Windows XP.
99 */
100EAPI int mkstemp(char *__template);
101
102/**
103 * @brief create an unique temporary directory 71 * @brief create an unique temporary directory
104 * 72 *
105 * @since 1.8.0 73 * @since 1.8.0