aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil/file_util.c
AgeCommit message (Collapse)AuthorFilesLines
2014-03-04Remove all $Id$ from top of fileAlexis La Goutte1-2/+0
(Using sed : sed -i '/^ \* \$Id\$/,+1 d') Fix manually some typo (in export_object_dicom.c and crc16-plain.c) Change-Id: I4c1ae68d1c4afeace8cb195b53c715cf9e1227a8 Reviewed-on: https://code.wireshark.org/review/497 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2013-09-16Trivial: Fix typo.Chris Maynard1-4/+4
svn path=/trunk/; revision=52101
2013-02-20As http://www.jrsoftware.org/iskb.php?mutexsessions points out, a sessionGerald Combs1-1/+23
mutex may not be visible to other sessions and we may not be able to create a global mutex. Try to create both, and make each one accessible to all users. Update the NSIS installer to check for both global and session mutexes. svn path=/trunk/; revision=47773
2013-02-20When any of our executables start on Windows create or open a "WiresharkGerald Combs1-0/+7
is running" mutex. Have the NSIS installer check for this mutex and ask the user to close Wireshark if it's found. While not perfect this makes the WinSparkle update process much less annoying. svn path=/trunk/; revision=47758
2012-09-20We always HAVE_CONFIG_H so don't bother checking whether we have it or not.Jeff Morriss1-2/+0
svn path=/trunk/; revision=45015
2012-06-28Update Free Software Foundation address.Jakub Zawadzki1-1/+1
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2011-08-17From Gisle Vanem:Stig Bjørlykke1-2/+3
Patch for a missing WINAPI. svn path=/trunk/; revision=38592
2011-07-11More GLIB_CHECK_VERSION cleanups. Update the minimum GLib/GTK+ versionsGerald Combs1-3/+0
in README.devloper. Remove g_gnuc.h since it's no longer needed. Remove tvbuff_init(), tvbuff_cleanup(), reassemble_init(), and reassemble_cleanup() since they were only used for older GLib versions which didn't support GSlices. Assume we always support the "matches" operator. svn path=/trunk/; revision=37978
2011-04-10Rename ws_stat to ws_stat64, and make it take a pointer to a ws_statb64Guy Harris1-3/+3
as an argument, along the lines of ws_fstat64, and, on Windows, make it use _wstati64, to handle 64-bit file sizes. svn path=/trunk/; revision=36547
2010-12-07Include stdlib.h for getenv().Jeff Morriss1-0/+1
svn path=/trunk/; revision=35149
2010-12-07Move getenv_utf8() to wsutil.Jeff Morriss1-4/+44
svn path=/trunk/; revision=35148
2010-11-22Make sure we pass a directory path and not a file path toGerald Combs1-5/+9
SetCurrentDirectory. Should fix bug 5420. svn path=/trunk/; revision=35010
2010-08-27Forward-port r33953.Gerald Combs1-0/+22
Move the SetDllDirectory calls to ws_init_dll_search_path. If SetDllDirectory fails, pass the Wireshark program path to SetCurrentDirectory. svn path=/trunk/; revision=33958
2010-08-26Add a newline. Fixup whitespace.Gerald Combs1-7/+7
svn path=/trunk/; revision=33933
2010-08-25Add ws_load_library and ws_module_open, which respectively callGerald Combs1-2/+112
LoadLibrary and g_module_open only for the program directory and system directory on Windows. Use them to replace a bunch of LoadLibrary and g_module_open calls. Use the extension ".dll" for all the DLLs that we load. Add comments about DLL loading in Python. svn path=/trunk/; revision=33924
2009-03-08Fix ws_stdio_unlink so it works properly on WIndows for all Unicode filenames.Bill Meier1-5/+5
- Essentially: ws_stdio_unlink would fail trying to delete any path\filename containing a Unicode character which could not be mapped to the "system codepage" (ie: to a character encoded with a value of 1-255). For example: ws_stdio_unlink was not able to delete a path\filename containing the character U+210B. - The problem: A copy/paste of the wrong (non-Windows) portion of the GLib g_unlink code was done when file_util.c was created. - The solution: replace the ws_stdio_unlink code with the correct code copied from the Glib g_unlink function. svn path=/trunk/; revision=27661
2008-08-13Another try to fix the cast problem.Stig Bjørlykke1-1/+1
svn path=/trunk/; revision=26001
2008-08-13Add a cast to avoid a warning.Stig Bjørlykke1-1/+1
svn path=/trunk/; revision=26000
2008-08-12Take courage!Guy Harris1-2/+2
http://www.flickr.com/photos/clammm/503029097/ svn path=/trunk/; revision=25993
2008-08-12Fix a bunch of Win64 compilation errors by cowardly casting size_ts to ints.Gerald Combs1-1/+1
svn path=/trunk/; revision=25992
2008-05-23file_util.c is only for Windows; don't build it on UN*X. Put in a checkGuy Harris1-37/+4
to cause it to fail when built on UN*X, and get rid of code that's not needed on Windows. svn path=/trunk/; revision=25362
2008-05-22Move the file utility functions from wiretap to libwsutil so thatJeff Morriss1-0/+476
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