wireshark/extcap
João Valverde 8df2a73594 Use the musl in-tree getopt_long() everywhere
Besides the obvious limitation of being unavailable on Windows,
the standard is vague about getopt() and getopt_long() has many
non-portable pitfalls and buggy implementations, that increase
the maintainance cost a lot. Also the GNU libc code currently
in the tree is not suited for embedding and is unmaintainable.

Own maintainership for getopt_long() and use the musl implementation
everywhere. This way we don't need to worry if optreset is available,
or if the $OPERATING_SYSTEM version behaves in subtly different ways.

The API is under the Wireshark namespace to avoid conflicts with
system headers.

Side-note, the Mingw-w64 9.0 getopt_long() implementation is buggy
with opterr and known to crash. In my experience it's a headache to
use the embedded getopt implementation if the system provides one.
2021-09-17 00:43:54 +01:00
..
.editorconfig HTTPS In More Places, update some URLs. 2019-07-27 07:55:36 +00:00
CMakeLists.txt CMake: Remove unneeded GLIB2_LIBRARIES. 2021-07-21 10:05:21 +00:00
androiddump.c Use the musl in-tree getopt_long() everywhere 2021-09-17 00:43:54 +01:00
ciscodump.c Use the musl in-tree getopt_long() everywhere 2021-09-17 00:43:54 +01:00
dpauxmon.c Use the musl in-tree getopt_long() everywhere 2021-09-17 00:43:54 +01:00
dpauxmon_user.h extcap: Support for DisplayPort AUX channel monitors 2018-05-14 10:44:37 +00:00
etl.c Use the musl in-tree getopt_long() everywhere 2021-09-17 00:43:54 +01:00
etl.h ETWDUMP: Update to support live capture 2021-05-13 21:17:09 +00:00
etw_message.c dissectors: Replace g_log() with ws_log() 2021-06-16 12:50:28 +00:00
etw_message.h MBIM: Update dissector to support DLT_ETW 2020-12-02 09:05:11 +00:00
etwdump.c Use the musl in-tree getopt_long() everywhere 2021-09-17 00:43:54 +01:00
extcap-base.c Use the musl in-tree getopt_long() everywhere 2021-09-17 00:43:54 +01:00
extcap-base.h Use the musl in-tree getopt_long() everywhere 2021-09-17 00:43:54 +01:00
randpktdump.c Use the musl in-tree getopt_long() everywhere 2021-09-17 00:43:54 +01:00
sdjournal.c Use the musl in-tree getopt_long() everywhere 2021-09-17 00:43:54 +01:00
ssh-base.c Replace g_log() calls with ws_log() 2021-06-16 12:50:27 +00:00
ssh-base.h extcap: put the code to add lissh version information into a common routine. 2020-07-16 10:00:01 +00:00
sshdump.c Use the musl in-tree getopt_long() everywhere 2021-09-17 00:43:54 +01:00
udpdump.c Use the musl in-tree getopt_long() everywhere 2021-09-17 00:43:54 +01:00