aboutsummaryrefslogtreecommitdiffstats
path: root/util.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1999-08-18 02:59:05 +0000
committerGuy Harris <guy@alum.mit.edu>1999-08-18 02:59:05 +0000
commitfca713e47f71b641d9823bf2af97ac4ac40b723b (patch)
tree80d8e8644ef4c999ad227e5172af3b116540225d /util.h
parentac4f87218d7bf56558225bc0f78a5a0af25687e6 (diff)
Make a "create_tempfile()" routine that constructs the template to be
used by "mkstemp()" into a buffer supplied as an argument, trying several directories for the tempfile, in the same fashion that the BSD (and probably other) "tempnam()" routines do. Have that routine cope with temporary-file directory names that don't end with "/", as "P_tmpdir" doesn't necessarily end with "/" (and doesn't, in GNU "libc" 2.x, at least on Linux); thanks to Gilbert Ramirez for catching this one, and supplying the code to cope with that. Have the code that creates the temporary file for the "Follow TCP Stream" text use it. svn path=/trunk/; revision=507
Diffstat (limited to 'util.h')
-rw-r--r--util.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/util.h b/util.h
index 88f1ab9d44..5a32055b4c 100644
--- a/util.h
+++ b/util.h
@@ -1,7 +1,7 @@
/* util.h
* Utility definitions
*
- * $Id: util.h,v 1.10 1999/06/12 09:10:20 guy Exp $
+ * $Id: util.h,v 1.11 1999/08/18 02:59:05 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -46,6 +46,8 @@ void simple_dialog(gint, gint *, gchar *, ...)
void simple_dialog(gint, gint *, gchar *, ...);
#endif
+int create_tempfile(char *, int, const char *);
+
#ifdef __cplusplus
}
#endif /* __cplusplus */