aboutsummaryrefslogtreecommitdiffstats
path: root/tempfile.c
AgeCommit message (Collapse)AuthorFilesLines
2011-11-09Removed 'old-style parameter declaration'.stig1-4/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39773 f5534014-38df-0310-8fa8-9805f1628bb7
2011-04-21Include time.h as compilation might fail with old gilb (2.4)etxrab1-0/+1
Thanks Jeff. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36767 f5534014-38df-0310-8fa8-9805f1628bb7
2010-11-16Add a cast to fix:etxrab1-1/+1
tempfile.c(202) : warning C4267: '=' : conversion from 'size_t' to 'unsigned long' git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34911 f5534014-38df-0310-8fa8-9805f1628bb7
2010-11-16Fix warning.cmaynard1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34904 f5534014-38df-0310-8fa8-9805f1628bb7
2010-11-16Use more meaningful temp file name. Fixes bug 1882.cmaynard1-18/+35
Template chosen is: wireshark_<iface>_YYYYmmddHHMMSS_XXXXXX ... where <iface> is the interface name (or UUID part of the interface if applicable) YYYYmmddHHMMSS are as described in "man strftime". XXXXXX is a template filled in with random characters. See "man mkstemp". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34902 f5534014-38df-0310-8fa8-9805f1628bb7
2010-08-26Doxygen fixes.etxrab1-0/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33942 f5534014-38df-0310-8fa8-9805f1628bb7
2010-03-11Squelch some compiler warnings.guy1-4/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32165 f5534014-38df-0310-8fa8-9805f1628bb7
2009-07-02Pull mkstemp() into tempfile.c. That's the only place we use it now, andgerald1-1/+145
it's arguably the only place we _should_ use it. Add create_tempdir() to tempfile.c and use it to create a temp directory for IP maps. This should fix bug 3530. (This still doesn't work on IE 8 / Vista here. IE gives an access denied error in OpenLayers.js, but this is a separate issue). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28920 f5534014-38df-0310-8fa8-9805f1628bb7
2009-07-01Updates to create_tempfile:gerald1-83/+39
- Use g_get_tmp_dir, just like get_tempfile_path. - Don't make the caller worry about the path buffer length. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28915 f5534014-38df-0310-8fa8-9805f1628bb7
2009-04-16Fix the last(?) of the Win64 compilation problems.gerald1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28065 f5534014-38df-0310-8fa8-9805f1628bb7
2009-04-08Use wireshark (instead of ether) for temp file name prefix.wmeier1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27992 f5534014-38df-0310-8fa8-9805f1628bb7
2009-03-10Copy comment from tempfile.h to tempfile.cwmeier1-0/+5
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27687 f5534014-38df-0310-8fa8-9805f1628bb7
2008-05-22Move the file utility functions from wiretap to libwsutil so thatmorriss1-2/+1
libwireshark (and the plugins using those functions) do not depend on wiretap on Windows. While doing that, rename the eth_* functions to ws_*. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25354 f5534014-38df-0310-8fa8-9805f1628bb7
2008-02-03More rewrite of prohibited APIs (sprintf, strcpy, strcat).stig1-8/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24258 f5534014-38df-0310-8fa8-9805f1628bb7
2007-01-12Win32: MSVC > 6 doesn't work well with Unicode filenames!ulfl1-10/+2
fix this, by providing required functions in the new file file_util.c - it's mostly copied from GLib (g_open alike - that take UTF8 as filename format but don't use msvcrt.dll V6 for this as the glib files do) "link" to these functions in file_util.h: #define eth_open eth_stdio_open revert changes (from SVN 20282) throughout the code related to these file functions which were introduced with the first tries of MSVC 2005 ... Hopefully I've done everything right with the new file_util.c ... git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20402 f5534014-38df-0310-8fa8-9805f1628bb7
2007-01-03from Laurent Rabret:ulfl1-1/+1
I posted a patch about 1.5 years ago for the formerly Ethereal to successfully compiled with Visual > 6. I have always successfully used this patched Ethereal/Wireshark compiled with VS 2003 and have just checked when compiled with Visual C++ 2005 Express git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20282 f5534014-38df-0310-8fa8-9805f1628bb7
2006-05-21name changesahlberg1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18197 f5534014-38df-0310-8fa8-9805f1628bb7
2006-02-17remove dependencies to pcap.h, so getting an idea what needs to be done by ↵ulfl1-6/+0
dumpcap in addition to the things already done now various dumpcap related code cleanup: mainly #include's and capture engine related stuff git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17327 f5534014-38df-0310-8fa8-9805f1628bb7
2006-02-12Move create_tempfile() to tempfile.c out of util.c. This means dumpcapguy1-0/+161
no longer needs util.c, so it no longer includes routines that use host_ip_af(), so it no longer needs to define its own host_ip_af(). That also means dumpcap.c no longer needs to include <sys/socket.h>. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17278 f5534014-38df-0310-8fa8-9805f1628bb7