+2022-09-21 Yonggang Luo <luoyonggang@gmail.com>
+
+ * color.c: Don't include unistd.h.
+
2022-09-20 Yonggang Luo <luoyonggang@gmail.com>
* system.h: Use BYTE_ORDER, LITTLE_ENDIAN and BIG_ENDIAN.
#include <argp.h>
#include <stdlib.h>
#include <string.h>
-#include <unistd.h>
#include "system.h"
#include "libeu.h"
#include "color.h"
+2022-10-21 Yonggang Luo <luoyonggang@gmail.com>
+
+ * asm_abort.c: Don't include unistd.h.
+ * asm_addint8.c: Don't include byteswap.h and endian.h.
+ * asm_begin.c: Don't include unistd.h and system.h.
+ * asm_end.c: Likewise.
+ * libasmP.h: Include system.h.
+
2021-09-06 Dmitry V. Levin <ldv@altlinux.org>
* asm_align.c (__libasm_ensure_section_space): Remove casts of calloc
#endif
#include <stdlib.h>
-#include <unistd.h>
#include <libasmP.h>
#include <libelf.h>
# include <config.h>
#endif
-#include <byteswap.h>
-#include <endian.h>
#include <inttypes.h>
#include <string.h>
#include <stdio_ext.h>
#include <stdlib.h>
#include <string.h>
-#include <unistd.h>
#include <gelf.h>
#include "libasmP.h"
-#include <system.h>
static AsmCtx_t *
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <unistd.h>
#include <sys/stat.h>
#include <libasmP.h>
#include <libelf.h>
-#include <system.h>
static int
#include <stdio.h>
#include <libasm.h>
+
+#include <system.h>
+
#include "libebl.h"
#include "libdwelf.h"
+2022-10-21 Yonggang Luo <luoyonggang@gmail.com>
+
+ * i386_disasm.c: Don't include endian.h.
+ * memory-access.h: Don't include byteswap.h and endian.h.
+ Do include system.h.
+
2022-09-20 Yonggang Luo <luoyonggang@gmail.com>
* memory-access.h: Use BYTE_ORDER, LITTLE_ENDIAN and BIG_ENDIAN.
#include <assert.h>
#include <config.h>
#include <ctype.h>
-#include <endian.h>
#include <errno.h>
#include <gelf.h>
#include <stddef.h>
#ifndef _MEMORY_ACCESS_H
#define _MEMORY_ACCESS_H 1
-#include <byteswap.h>
-#include <endian.h>
#include <limits.h>
#include <stdint.h>
+#include <system.h>
/* When loading this file we require the macro MACHINE_ENCODING to be
defined to signal the endianness of the architecture which is
+2022-10-21 Yonggang Luo <luoyonggang@gmail.com>
+
+ * dwarf_begin_elf.h: Don't include unistd.h and endian.h.
+ * dwarf_end.c: Don't include unistd.h.
+ * dwarf_setalt.c: Likewise.
+ * libdw_find_split_unit.c: Likewise.
+
2022-10-19 Mark Wielaard <mark@klomp.org>
* dwarf.h (DW_LLE_GNU_view_pair): New constant.
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
-#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <endian.h>
#include "libelfP.h"
#include "libdwP.h"
#include <stdlib.h>
#include <assert.h>
#include <string.h>
-#include <unistd.h>
#include "libdwP.h"
#include "cfi.h"
#include "libdwP.h"
-#include <unistd.h>
-
void
dwarf_setalt (Dwarf *main, Dwarf *alt)
{
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <unistd.h>
void
try_split_file (Dwarf_CU *cu, const char *dwo_path)
+2022-10-21 Yonggang Luo <luoyonggang@gmail.com>
+
+ * dwelf_elf_begin.c: Don't include unistd.h.
+ * dwelf_strtab.c: Likewise.
+
2022-08-08 Andreas Schwab <schwab@suse.de>
* dwelf_elf_e_machine_string.c (dwelf_elf_e_machine_string): Add
#include "libdwflP.h"
#include "libelfP.h"
-#include <unistd.h>
-
NEW_VERSION (dwelf_elf_begin, ELFUTILS_0.177)
Elf *
dwelf_elf_begin (int fd)
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
-#include <unistd.h>
#include "libdwelfP.h"
#include <system.h>
2022-10-21 Yonggang Luo <luoyonggang@gmail.com>
+ * argp-std.c: Don't include unistd.h.
+ * core-file.c: Don't include unistd.h, endian.h, byteswap.h and
+ system.h.
+ * dwfl_build_id_find_debuginfo.c: Don't include unistd.h.
+ * dwfl_build_id_find_elf.c: Likewise.
+ * dwfl_end.c: Likewise.
+ * dwfl_frame.c: Likewise.
+ * dwfl_module.c: Likewise.
+ * dwfl_module_getdwarf.c: Likewise.
+ * dwfl_report_elf.c: Likewise.
+ * dwfl_segment_report_module.c: Don't include endian.h and unistd.h.
+ * find-debuginfo.c: Don't include unistd.h.
+ * gzip.c: Likewise.
+ * image-header.c: Don't include system.h, unistd.h and endian.h.
+ * link_map.c: Don't include byteswap.h and endian.h.
+ * linux-pid-attach.c: Don't include unistd.h.
+ * offline.c: Likewise.
+ * open.c: Likewise.
+
+2022-10-21 Yonggang Luo <luoyonggang@gmail.com>
+
* libdwfl_crc32.c: Remove LIB_SYSTEM_H define.
2022-09-20 Yonggang Luo <luoyonggang@gmail.com>
#include <stdlib.h>
#include <assert.h>
#include <fcntl.h>
-#include <unistd.h>
#define OPT_DEBUGINFO 0x100
#include "libdwflP.h"
#include <gelf.h>
-#include <unistd.h>
-#include <endian.h>
-#include <byteswap.h>
-#include "system.h"
-
-
/* On failure return, we update *NEXT to point back at OFFSET. */
static inline Elf *
do_fail (int error, off_t *next, off_t offset)
#endif
#include "libdwflP.h"
-#include <unistd.h>
-
int
dwfl_build_id_find_debuginfo (Dwfl_Module *mod,
#include "libdwflP.h"
#include <inttypes.h>
#include <fcntl.h>
-#include <unistd.h>
#include "system.h"
#endif
#include "libdwflP.h"
-#include <unistd.h>
void
dwfl_end (Dwfl *dwfl)
#include <system.h>
#include "libdwflP.h"
-#include <unistd.h>
/* Set STATE->pc_set from STATE->regs according to the backend. Return true on
success, false on error. */
#include "libdwflP.h"
#include "../libdw/cfi.h"
#include <search.h>
-#include <unistd.h>
static void
free_cu (struct dwfl_cu *cu)
#include <inttypes.h>
#include <fcntl.h>
#include <string.h>
-#include <unistd.h>
#include "../libdw/libdwP.h" /* DWARF_E_* values are here. */
#include "../libelf/libelfP.h"
#include "system.h"
#include "libdwflP.h"
#include <fcntl.h>
-#include <unistd.h>
-
/* We start every ET_REL module at a moderately aligned boundary.
This keeps the low addresses easy to read compared to a layout
#include <elf.h>
#include <gelf.h>
#include <inttypes.h>
-#include <endian.h>
-#include <unistd.h>
#include <fcntl.h>
#include <system.h>
#include "libdwflP.h"
#include <stdio.h>
#include <fcntl.h>
-#include <unistd.h>
#include <sys/stat.h>
#include "system.h"
#include "libdwflP.h"
#include "system.h"
-#include <unistd.h>
-
#ifdef LZMA
# define USE_INFLATE 1
# include <lzma.h>
#endif
#include "libdwflP.h"
-#include "system.h"
-
-#include <unistd.h>
-#include <endian.h>
#if BYTE_ORDER == LITTLE_ENDIAN
# define LE16(x) (x)
#include "../libdw/memory-access.h"
#include "system.h"
-#include <byteswap.h>
-#include <endian.h>
#include <fcntl.h>
/* This element is always provided and always has a constant value.
#include <sys/stat.h>
#include <fcntl.h>
#include <dirent.h>
-#include <unistd.h>
#ifdef __linux__
#include "libdwflP.h"
#include <fcntl.h>
-#include <unistd.h>
/* Since dwfl_report_elf lays out the sections already, this will only be
called when the section headers of the debuginfo file are being
#undef _
#include "libdwflP.h"
-#include <unistd.h>
-
#if !USE_BZLIB
# define __libdw_bunzip2(...) DWFL_E_BADELF
#endif