aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil
AgeCommit message (Collapse)AuthorFilesLines
2013-02-20When any of our executables start on Windows create or open a "WiresharkGerald Combs3-0/+15
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
2013-01-29Use readlink instead of ls.Gerald Combs1-1/+1
svn path=/trunk/; revision=47338
2013-01-28make dumpabi target build with multiple digits in library version numbersBalint Reczey1-1/+1
svn path=/trunk/; revision=47329
2013-01-16Get rid of C++ comments from the CUPS code.Guy Harris1-7/+7
svn path=/trunk/; revision=47111
2013-01-15Add crash_info.cGuy Harris1-0/+1
svn path=/trunk/; revision=47107
2013-01-15Use GLib "return an allocated string generated by printf-styleGuy Harris1-4/+4
formatting" routines and the corresponding deallocate routines. svn path=/trunk/; revision=47106
2013-01-15I must haz config.h (to define _U_, if nothing else).Guy Harris1-0/+2
svn path=/trunk/; revision=47105
2013-01-15Add some routines to wsutil to, at least on some platforms, addGuy Harris4-0/+210
information to crash dumps and the like. (Currently, we only handle OS X's CrashReporter, but we should do this on other platforms where this information can be added and would be helpful.) White space tweaks. svn path=/trunk/; revision=47104
2013-01-04replace "unsigned" datatype with "guint". Some mpeg files needed "unsigned ↵Michael Mann2-21/+21
int" instead. bugs 7825-7827 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7825) svn path=/trunk/; revision=46928
2012-12-26Squash some sign-conversion warnings that g++ picks up but gcc doesEvan Huus2-2/+2
not. QtShark now builds warning-free (for me at least). svn path=/trunk/; revision=46786
2012-12-26Fix a bunch of warnings.Guy Harris2-2/+2
Cast away some implicit 64-bit-to-32-bit conversion errors due to use of sizeof. Cast away some implicit 64-bit-to-32-bit conversion errors due to use of strtol() and strtoul(). Change some data types to avoid those implicit conversion warnings. When assigning a constant to a float, make sure the constant isn't a double, by appending "f" to the constant. Constify a bunch of variables, parameters, and return values to eliminate warnings due to strings being given const qualifiers. Cast away those warnings in some cases where an API we don't control forces us to do so. Enable a bunch of additional warnings by default. Note why at least some of the other warnings aren't enabled. randpkt.c and text2pcap.c are used to build programs, so they don't need to be in EXTRA_DIST. If the user specifies --enable-warnings-as-errors, add -Werror *even if the user specified --enable-extra-gcc-flags; assume they know what they're doing and are willing to have the compile fail due to the extra GCC warnings being treated as errors. svn path=/trunk/; revision=46748
2012-12-21Include <wsutil/crc11.h> so that we check whether the prototypes thereinGuy Harris1-0/+2
match the actual function types here. svn path=/trunk/; revision=46648
2012-12-21Squelch some cast-discard warnings.Guy Harris1-1/+1
svn path=/trunk/; revision=46647
2012-12-20fclose() and fflush() are standard C routines, so there's no need forGuy Harris1-4/+0
our own wrappers. (pcapio.c isn't using wrappers around, for example, fwrite().) svn path=/trunk/; revision=46640
2012-12-20Add ws_fclose(), ws_fflush(), and ws_fdopen() to the fileutils.Michael Tüxen1-0/+6
Retire libpcap_fdopen(), libpcap_dump_flush(), and libpcap_dump_close(). svn path=/trunk/; revision=46636
2012-11-05try to fix Id.Anders Broman1-1/+1
svn path=/trunk/; revision=45922
2012-10-19The file set and export object trees are lists. Make them act likeGerald Combs1-3/+1
it. Show human-readable sizes in the file set dialog. Move the format_size_flags_e operator to qt_ui_utils.cpp for lack of a better place. svn path=/trunk/; revision=45661
2012-10-18Move ui-independent object export routines to the common ui directory.Gerald Combs1-0/+16
Implement DICOM, HTTP, and SMB object exports. Rename the GTK+ export files. C++-ize epan/tap.h. Fix an apparent memory leak in eo_save_all_clicked_cb. The Qt dialog has an indeterminate progress bar. I tried adding something similar to the GTK+ dialog but event processing led down a rabbit hole. svn path=/trunk/; revision=45647
2012-10-18str_util.c:format_size() uses 0xff00 for the mask, so left-shift ↵Chris Maynard1-2/+2
format_size_prefix_[si|iec] by 8, not 16. Fixes Coverity CID 733852: Operands don't affect result. svn path=/trunk/; revision=45637
2012-10-10Fix a copy+paste error and a missing include. Adjust the format_sizeGerald Combs1-4/+4
digit threshold. svn path=/trunk/; revision=45456
2012-10-10Add a format_size function similar to g_format_size that renders a sizeGerald Combs3-4/+78
value in a human-readable format. Use it in the welcome screen, status bar, and Win32 interface details. Note that in the welcome screen and status bar we've switched from customary binary prefixes to strict SI. svn path=/trunk/; revision=45453
2012-10-03*nix: Test return status of set*uid and related set*gid fcns for failure;Bill Meier1-8/+20
This fixes gcc compiler errors [-Werror=unused-result] caused by the recent addition of the "__wur" (warn_unused_result) attribute to the declarations of these functions in unistd.h. svn path=/trunk/; revision=45286
2012-09-20We always HAVE_CONFIG_H so don't bother checking whether we have it or not.Jeff Morriss1-3/+1
svn path=/trunk/; revision=45016
2012-09-20We always HAVE_CONFIG_H so don't bother checking whether we have it or not.Jeff Morriss16-41/+9
svn path=/trunk/; revision=45015
2012-09-18Trivial typo/copy-and-paste comment fix.Chris Maynard1-1/+1
svn path=/trunk/; revision=44983
2012-08-08From Jacob Nordgren and Rishie Sharma:Anders Broman5-0/+115
Add CRC11 algorithms svn path=/trunk/; revision=44346
2012-08-02Back out an inadvertent change in r44194.Gerald Combs1-2/+1
svn path=/trunk/; revision=44210
2012-08-01Move utf8_entities.h to the "ui" directory. Separate packet informationGerald Combs1-1/+2
items with MIDDLE DOTs. svn path=/trunk/; revision=44194
2012-07-25From Rishie Sharma:Anders Broman3-2/+90
Add a new CRC16 routine. svn path=/trunk/; revision=43982
2012-07-22Get rid of not needed includesAnders Broman1-3/+0
svn path=/trunk/; revision=43917
2012-07-19Remove not needed includes.Anders Broman1-3/+0
svn path=/trunk/; revision=43830
2012-07-18Fix some system header files that were #included with "" instead of <>.Evan Huus2-2/+2
They made cppcheck unhappy. svn path=/trunk/; revision=43779
2012-07-12Add crc7 calculation abillity.Anders Broman5-3/+195
svn path=/trunk/; revision=43680
2012-06-28Update FSF address - part II.Jakub Zawadzki7-7/+7
svn path=/trunk/; revision=43538
2012-06-28Update Free Software Foundation address.Jakub Zawadzki20-20/+20
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2012-06-25Revert 43481: linking dftest against libui was not the problem.Jeff Morriss2-43/+0
svn path=/trunk/; revision=43488
2012-06-25Move get_args_as_string from ui/util.c into wsutil (maybe not to the bestJeff Morriss2-0/+43
module, but...). This makes dftest no longer dependent on libui, so stop linking against it. svn path=/trunk/; revision=43481
2012-06-08Forward-port r43165 and r43168 from trunk-1.6.Gerald Combs1-5/+7
------------------------------------------------------------------------ r43165 | gerald | 2012-06-08 14:23:25 -0700 (Fri, 08 Jun 2012) | 4 lines Changed paths: M /trunk-1.6/epan/Makefile.am M /trunk-1.6/wiretap/Makefile.am M /trunk-1.6/wsutil/Makefile.am Use separate commands in the dumpabi recipes instead a big huge long chain. If abi-compliance-checker fails print the contents of its log file. ------------------------------------------------------------------------ r43168 | gerald | 2012-06-08 15:43:50 -0700 (Fri, 08 Jun 2012) | 2 lines Changed paths: M /trunk-1.6/epan/Makefile.am M /trunk-1.6/wiretap/Makefile.am M /trunk-1.6/wsutil/Makefile.am Make sure ln happens in the right directory. ------------------------------------------------------------------------ We don't currently have a usable tag for "git describe --tags --abbrev=0" to latch onto so just use the first 1.9 commit. svn path=/trunk/; revision=43170
2012-05-22Update comments to reflect that the GLib version is no longer relevantGuy Harris1-6/+16
(we require GLib 2.14 or later, and always use UTF-8 for pathnames on Windows), to note that ws_stdio_rename() should have UN*X-style rename semantics in that it removes the target if necessary, and to give more details in other ways. Clean up indetation a bit. svn path=/trunk/; revision=42775
2012-04-13Remove doubled semicolons and semicolons outside function.Jakub Zawadzki1-1/+1
svn path=/trunk/; revision=42053
2012-04-04Add a "-build" argument to checkAPIs.pl. Use that argument when buildingJeff Morriss2-2/+2
from makefiles (and thus from the buildbot). The intention is to be able to tell when a human is running the tool so we can provide more code-review guidance. As a starter, enable the "too many proto_tree_add_text() calls" check when a human is running the tool. svn path=/trunk/; revision=41943
2012-04-04Always declare getopt() with a prototype.Guy Harris1-1/+2
svn path=/trunk/; revision=41939
2012-04-04Fix compilation on Win64.Gerald Combs1-1/+1
svn path=/trunk/; revision=41930
2012-04-04Update to a version which have getopt_long(). + one fileAnders Broman1-0/+134
svn path=/trunk/; revision=41927
2012-04-04Update to a version which have getopt_long().Anders Broman3-366/+962
svn path=/trunk/; revision=41926
2012-03-13From Weston Schmidt:Anders Broman3-1/+78
Update packet-mpeg-sect to support CRCs & simpler header processing for subdissectors. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6941 svn path=/trunk/; revision=41523
2012-02-24CVARSDLL hasn't been used (is undefined) for a while....Bill Meier1-1/+1
svn path=/trunk/; revision=41180
2012-02-17Move exec_isdigit_string() and exec_isprint_string() functions out ofStephen Fisher3-0/+54
the exec dissector and into wsutil/str_util.c. Rename them to isdigit_string() and isprint_string(). Also rename the variables they use for consistency: string -> str and position -> pos. svn path=/trunk/; revision=41053
2012-01-29Add *.sbr files to the clean target.Anders Broman1-1/+1
svn path=/trunk/; revision=40763
2012-01-21Sync checkapi target with Makefile.nmake.Michael Tüxen1-1/+2
svn path=/trunk/; revision=40626