aboutsummaryrefslogtreecommitdiffstats
path: root/tempfile.c
AgeCommit message (Collapse)AuthorFilesLines
2011-11-09Removed 'old-style parameter declaration'.Stig Bjørlykke1-4/+2
svn path=/trunk/; revision=39773
2011-04-21Include time.h as compilation might fail with old gilb (2.4)Anders Broman1-0/+1
Thanks Jeff. svn path=/trunk/; revision=36767
2010-11-16Add a cast to fix:Anders Broman1-1/+1
tempfile.c(202) : warning C4267: '=' : conversion from 'size_t' to 'unsigned long' svn path=/trunk/; revision=34911
2010-11-16Fix warning.Chris Maynard1-1/+1
svn path=/trunk/; revision=34904
2010-11-16Use more meaningful temp file name. Fixes bug 1882.Chris Maynard1-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". svn path=/trunk/; revision=34902
2010-08-26Doxygen fixes.Anders Broman1-0/+1
svn path=/trunk/; revision=33942
2010-03-11Squelch some compiler warnings.Guy Harris1-4/+4
svn path=/trunk/; revision=32165
2009-07-02Pull mkstemp() into tempfile.c. That's the only place we use it now, andGerald Combs1-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). svn path=/trunk/; revision=28920
2009-07-01Updates to create_tempfile:Gerald Combs1-83/+39
- Use g_get_tmp_dir, just like get_tempfile_path. - Don't make the caller worry about the path buffer length. svn path=/trunk/; revision=28915
2009-04-16Fix the last(?) of the Win64 compilation problems.Gerald Combs1-1/+1
svn path=/trunk/; revision=28065
2009-04-08Use wireshark (instead of ether) for temp file name prefix.Bill Meier1-1/+1
svn path=/trunk/; revision=27992
2009-03-10Copy comment from tempfile.h to tempfile.cBill Meier1-0/+5
svn path=/trunk/; revision=27687
2008-05-22Move the file utility functions from wiretap to libwsutil so thatJeff Morriss1-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_*. svn path=/trunk/; revision=25354
2008-02-03More rewrite of prohibited APIs (sprintf, strcpy, strcat).Stig Bjørlykke1-8/+3
svn path=/trunk/; revision=24258
2007-01-12Win32: MSVC > 6 doesn't work well with Unicode filenames!Ulf Lamping1-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 ... svn path=/trunk/; revision=20402
2007-01-03from Laurent Rabret:Ulf Lamping1-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 svn path=/trunk/; revision=20282
2006-05-21name changeRonnie Sahlberg1-2/+2
svn path=/trunk/; revision=18197
2006-02-17remove dependencies to pcap.h, so getting an idea what needs to be done by ↵Ulf Lamping1-6/+0
dumpcap in addition to the things already done now various dumpcap related code cleanup: mainly #include's and capture engine related stuff svn path=/trunk/; revision=17327
2006-02-12Move create_tempfile() to tempfile.c out of util.c. This means dumpcapGuy Harris1-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>. svn path=/trunk/; revision=17278