]> de.git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
We're doing it this way.
authorDale Weiler <killfieldengine@gmail.com>
Fri, 18 Oct 2013 09:37:26 +0000 (05:37 -0400)
committerDale Weiler <killfieldengine@gmail.com>
Fri, 18 Oct 2013 09:37:26 +0000 (05:37 -0400)
ansi.c
gmqcc.h
msvc.c
platform.h
test.c
util.c

diff --git a/ansi.c b/ansi.c
index 73792aa043b9695d3cd4f8ae24ba05053df6c665..4f0cb095a8022758f2b8f3528d8516c7d9663e24 100644 (file)
--- a/ansi.c
+++ b/ansi.c
@@ -48,10 +48,6 @@ char *platform_strncat(char *dest, const char *src, size_t num) {
     return strncat(dest, src, num);
 }
 
-const char *platform_tmpnam(char *str) {
-    return tmpnam(str);
-}
-
 const char *platform_getenv(const char *var) {
     return getenv(var);
 }
diff --git a/gmqcc.h b/gmqcc.h
index 49b5a824437e2dc3ce2ee7f22849f8148cf75a36..6e0d3ac05ecfca2f7bc858212dc56b8751f539d2 100644 (file)
--- a/gmqcc.h
+++ b/gmqcc.h
@@ -315,7 +315,6 @@ const char      *util_ctime    (const time_t *timer);
 typedef struct fs_file_s fs_file_t;
 
 bool             util_isatty(fs_file_t *);
-const char      *util_tmpnam(char *);
 
 /*
  * A flexible vector implementation: all vector pointers contain some
diff --git a/msvc.c b/msvc.c
index 77afc1056ee407d0cdca27d1a0e4994abb9644a7..3369cd6f8e7b00fe115abe5dc4840a20ed740a2e 100644 (file)
--- a/msvc.c
+++ b/msvc.c
@@ -76,10 +76,6 @@ char *platform_strncat(char *dest, const char *src, size_t num) {
     return strncat_s(dest, num, src, _TRUNCATE);
 }
 
-const char *platform_tmpnam(char *str) {
-    return tmpnam_s(str, L_tmpnam);
-}
-
 const char *platform_getenv(const char *var) {
     char  *buffer = (char *)platform_mem_allocate(GETENV_BUFFER);
     size_t size;
index 50b119a6beb12c0ecc3d739dec673397ed78c898..acb632ee2eba9a1927b4ebf094bc9ce6d5c15f99 100644 (file)
@@ -185,24 +185,6 @@ const char *platform_ctime(const time_t *timer);
  */
 char *platform_strncat(char *dest, const char *src, size_t num);
 
-/*
- * Function: platform_tmpnam
- *  Generates names you can use to create temporary files.
- *
- * Parameters:
- *  str - Pointer that will hold the generated name and will be identical
- *        to the name returned by the function. This is a convenient way
- *        to save the generated name.
- *
- * Returns:
- *  Pointer to the name generate or *NULL* if there is a failure. Failure
- *  can occur if you attempt more than TMP_MAX calls.
- *
- * Remarks:
- *  Returns a name unique in the current workign directory.
- */
-const char *platform_tmpnam(char *str);
-
 /*
  * Function: platform_getenv
  *  Get a value from the current enviroment.
diff --git a/test.c b/test.c
index c415fb87b72dba8f076cbea8a63e043fd39837f0..6ce99964b24f408b5fd482a2ddff7eb83d4d7ce9 100644 (file)
--- a/test.c
+++ b/test.c
@@ -163,8 +163,8 @@ static int task_pclose(fs_file_t **handles) {
         char    *cmd  = NULL;
         popen_t *open = (popen_t*)mem_a(sizeof(popen_t));
 
-        util_tmpnam(open->name_err);
-        util_tmpnam(open->name_out);
+        tmpnam(open->name_err);
+        tmpnam(open->name_out);
 
         (void)mode; /* excluded */
 
diff --git a/util.c b/util.c
index f6b9808657f272125381bc06cb6e9ab39ad619db..3d4b48021952ab1d8a7fa619c677c979875f2667 100644 (file)
--- a/util.c
+++ b/util.c
@@ -281,11 +281,6 @@ bool util_isatty(fs_file_t *file) {
     if (file == (fs_file_t*)stderr) return !!platform_isatty(STDERR_FILENO);
     return false;
 }
-
-const char *util_tmpnam(char *str) {
-    return platform_tmpnam(str);
-}
-
 /*
  * A small noncryptographic PRNG based on:
  * http://burtleburtle.net/bob/rand/smallprng.html