diff options
author | Guy Harris <guy@alum.mit.edu> | 1999-08-18 02:59:05 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 1999-08-18 02:59:05 +0000 |
commit | fca713e47f71b641d9823bf2af97ac4ac40b723b (patch) | |
tree | 80d8e8644ef4c999ad227e5172af3b116540225d /util.h | |
parent | ac4f87218d7bf56558225bc0f78a5a0af25687e6 (diff) | |
download | wireshark-fca713e47f71b641d9823bf2af97ac4ac40b723b.tar.gz wireshark-fca713e47f71b641d9823bf2af97ac4ac40b723b.tar.bz2 wireshark-fca713e47f71b641d9823bf2af97ac4ac40b723b.zip |
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.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 */ |