Clean up includes of unistd.h, fcntl.h, and sys/stat.h.
authorGuy Harris <guy@alum.mit.edu>
Sat, 7 Nov 2015 03:20:37 +0000 (19:20 -0800)
committerGuy Harris <guy@alum.mit.edu>
Sat, 7 Nov 2015 21:52:23 +0000 (21:52 +0000)
commit0162e54075bb7ad967a85736b3c8addd53d86de5
tree8a621af4c54f0d11b610b6842c9f53aae849e68a
parent24bfb7e35d619c004e0458f38a1d5ae538a898fb
Clean up includes of unistd.h, fcntl.h, and sys/stat.h.

Have wsutil/file_util.h include them on UN*X, just as it includes io.h
on Windows, so we can have a rule of "if you do file operations, include
<wsutil/file_util.h> and use the routines in it".

Remove includes of unistd.h, fcntl.h, and sys/stat.h that aren't
necessary (whether because of the addition of them to wsutil/file_util.h
or because they weren't needed in the first place).

Change-Id: Ie241dd74deff284e39a5f690a297dbb6e1dc485f
Reviewed-on: https://code.wireshark.org/review/11619
Petri-Dish: Guy Harris <guy@alum.mit.edu>
Reviewed-by: Guy Harris <guy@alum.mit.edu>
52 files changed:
capchild/capture_sync.c
capinfos.c
capture_opts.c
capture_stop_conditions.c
captype.c
dumpcap.c
epan/addr_resolv.c
epan/disabled_protos.c
epan/dissectors/packet-lmp.c
epan/dissectors/packet-rsvp.c
epan/prefs.c
file.c
fileset.c
mergecap.c
plugins/mate/mate_util.h
randpkt.c
rawshark.c
reordercap.c
ringbuffer.c
text2pcap.c
tfshark.c
tshark.c
ui/capture.c
ui/cli/tap-follow.c
ui/export_object.c
ui/filters.c
ui/gtk/capture_file_dlg.c
ui/gtk/export_sslkeys.c
ui/gtk/fileset_dlg.c
ui/gtk/firewall_dlg.c
ui/gtk/follow_stream.c
ui/gtk/follow_tcp.c
ui/gtk/iax2_analysis.c
ui/gtk/main.c
ui/gtk/packet_panes.c
ui/gtk/rtp_analysis.c
ui/mcast_stream.c
ui/qt/main_window_slots.cpp
ui/rtp_stream.c
ui/text_import.c
ui/traffic_table_ui.c
wiretap/ber.c
wiretap/file_access.c
wiretap/file_wrappers.c
wiretap/stanag4607.c
wiretap/tnef.c
wiretap/wtap.c
wsutil/file_util.h
wsutil/filesystem.c
wsutil/plugins.c
wsutil/tempfile.c
wsutil/u3.c