]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
lib: Provide MAX and MIN in system.h
authorAkihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp>
Tue, 11 Oct 2016 14:06:48 +0000 (23:06 +0900)
committerMark Wielaard <mjw@redhat.com>
Wed, 12 Oct 2016 13:43:14 +0000 (15:43 +0200)
This change also creates a new header file libeu.h to provide the
prototypes for the function of libeu. That hides the definition of function
crc32, which can conflict with zlib, from libelf. It also prevents mistakes
to refer those functions from a component which doesn't link with libeu,
such as libelf.

Signed-off-by: Akihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp>
46 files changed:
lib/ChangeLog
lib/Makefile.am
lib/color.c
lib/crc32_file.c
lib/fixedsizehash.h
lib/libeu.h [new file with mode: 0644]
lib/system.h
lib/xstrdup.c
lib/xstrndup.c
libasm/ChangeLog
libasm/asm_align.c
libcpu/ChangeLog
libcpu/i386_disasm.c
libcpu/i386_lex.l
libcpu/i386_parse.y
libdw/ChangeLog
libdw/dwarf_getpubnames.c
libdw/libdw_alloc.c
libdwelf/ChangeLog
libdwelf/dwelf_strtab.c
libdwfl/ChangeLog
libdwfl/core-file.c
libdwfl/dwfl_segment_report_module.c
libdwfl/frame_unwind.c
libdwfl/linux-core-attach.c
libdwfl/linux-pid-attach.c
libelf/ChangeLog
libelf/elf32_updatefile.c
libelf/elf32_updatenull.c
libelf/elf_begin.c
libelf/elf_compress.c
src/ChangeLog
src/arlib.c
src/arlib2.c
src/elfcompress.c
src/elflint.c
src/nm.c
src/objdump.c
src/ranlib.c
src/readelf.c
src/size.c
src/strings.c
src/strip.c
src/unstrip.c
tests/ChangeLog
tests/arextract.c

index 76b5753d71ccd8fa3b918737e2c03e5b8b0f5f7c..88c71c9aa9b6cb4b64da17716b65502d8a1fb7a4 100644 (file)
@@ -1,3 +1,17 @@
+2015-10-11  Akihiko Odaki  <akihiko.odaki.4i@stu.hosei.ac.jp>
+
+       * Makefile.am (noinst_HEADERS): Add libeu.h.
+       * color.c: Remove system.h include, add libeu.h include.
+       * crc32_file.c: Likewise.
+       * fixedsizehash.h: Remove sys/param.h include.
+       * libeu.h: New file.
+       * system.h: Include sys/param.h.
+       (xmalloc, xcalloc, xrealloc, xstrdup, xstrndup, crc32, crc32_file,
+       color_argp, color_enum, color_*): Move definitions to libeu.h.
+       * xstrdup.c: Remove system.h include, add libeu.h include.
+       * xstrndup.c: Remove system.h include, add libeu.h and stdint.h
+       includes.
+
 2015-09-24  Jose E. Marchesi  <jose.marchesi@oracle.com>
 
        * Makefile.am (AM_CFLAGS): Use -fPIC instead of -fpic to avoid relocation
index 2219eaa4eb7b66fabdd065266c60a6b5530b9f74..7ca2bd417fb5b690bd49a9299d0c3449ea9ca381 100644 (file)
@@ -37,8 +37,8 @@ libeu_a_SOURCES = xstrdup.c xstrndup.c xmalloc.c next_prime.c \
                  crc32.c crc32_file.c md5.c sha1.c \
                  color.c
 
-noinst_HEADERS = fixedsizehash.h system.h dynamicsizehash.h list.h md5.h \
-                sha1.h eu-config.h
+noinst_HEADERS = fixedsizehash.h libeu.h system.h dynamicsizehash.h list.h \
+                md5.h sha1.h eu-config.h
 EXTRA_DIST = dynamicsizehash.c
 
 if !GPROF
index d1309ed7384263eb0158844886a55b2bb06a6279..fde2d9de2ba3c6aea9ae41529a1cd200fd937509 100644 (file)
@@ -37,7 +37,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
-#include "system.h"
+#include "libeu.h"
 
 
 /* Prototype for option handler.  */
index c0b18e91d9c49f6440152f72cda6711d335b2b9c..a8434d428e323ced2716898701b7e7b746221f68 100644 (file)
@@ -30,7 +30,7 @@
 # include <config.h>
 #endif
 
-#include "system.h"
+#include "libeu.h"
 #include <errno.h>
 #include <unistd.h>
 #include <sys/stat.h>
index 06ce6a25af5ed150a2495d887b3b3080a2a6e4ad..18921a44bb755f0914f33e3bc9ea5c76116c9e6a 100644 (file)
@@ -31,7 +31,6 @@
 #include <stdlib.h>
 #include <string.h>
 #include <sys/cdefs.h>
-#include <sys/param.h>
 
 #include <system.h>
 
diff --git a/lib/libeu.h b/lib/libeu.h
new file mode 100644 (file)
index 0000000..69fe3d7
--- /dev/null
@@ -0,0 +1,78 @@
+/* Declarations for the common library.
+   Copyright (C) 2006-2011 Red Hat, Inc.
+   This file is part of elfutils.
+
+   This file is free software; you can redistribute it and/or modify
+   it under the terms of either
+
+     * the GNU Lesser General Public License as published by the Free
+       Software Foundation; either version 3 of the License, or (at
+       your option) any later version
+
+   or
+
+     * the GNU General Public License as published by the Free
+       Software Foundation; either version 2 of the License, or (at
+       your option) any later version
+
+   or both in parallel, as here.
+
+   elfutils is distributed in the hope that it will be useful, but
+   WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   General Public License for more details.
+
+   You should have received copies of the GNU General Public License and
+   the GNU Lesser General Public License along with this program.  If
+   not, see <http://www.gnu.org/licenses/>.  */
+
+#ifndef LIBEU_H
+#define LIBEU_H
+
+#include <stddef.h>
+#include <stdint.h>
+
+extern void *xmalloc (size_t) __attribute__ ((__malloc__));
+extern void *xcalloc (size_t, size_t) __attribute__ ((__malloc__));
+extern void *xrealloc (void *, size_t) __attribute__ ((__malloc__));
+
+extern char *xstrdup (const char *) __attribute__ ((__malloc__));
+extern char *xstrndup (const char *, size_t) __attribute__ ((__malloc__));
+
+
+extern uint32_t crc32 (uint32_t crc, unsigned char *buf, size_t len);
+extern int crc32_file (int fd, uint32_t *resp);
+
+
+/* Color handling.  */
+
+/* Command line parser.  */
+extern const struct argp color_argp;
+
+/* Coloring mode.  */
+enum color_enum
+  {
+    color_never = 0,
+    color_always,
+    color_auto
+  } __attribute__ ((packed));
+extern enum color_enum color_mode;
+
+/* Colors to use for the various components.  */
+extern char *color_address;
+extern char *color_bytes;
+extern char *color_mnemonic;
+extern char *color_operand1;
+extern char *color_operand2;
+extern char *color_operand3;
+extern char *color_label;
+extern char *color_undef;
+extern char *color_undef_tls;
+extern char *color_undef_weak;
+extern char *color_symbol;
+extern char *color_tls;
+extern char *color_weak;
+
+extern const char color_off[];
+
+#endif
index f31cfd03e26f4d7ad99d4ef59bd99952ae857f60..ec387c31b5e0add5c3e536c7899c0cee2fb44f24 100644 (file)
@@ -32,6 +32,7 @@
 #include <argp.h>
 #include <stddef.h>
 #include <stdint.h>
+#include <sys/param.h>
 #include <endian.h>
 #include <byteswap.h>
 #include <unistd.h>
 # error "Unknown byte order"
 #endif
 
-extern void *xmalloc (size_t) __attribute__ ((__malloc__));
-extern void *xcalloc (size_t, size_t) __attribute__ ((__malloc__));
-extern void *xrealloc (void *, size_t) __attribute__ ((__malloc__));
-
-extern char *xstrdup (const char *) __attribute__ ((__malloc__));
-extern char *xstrndup (const char *, size_t) __attribute__ ((__malloc__));
+#ifndef MAX
+#define MAX(m, n) ((m) < (n) ? (n) : (m))
+#endif
 
+#ifndef MIN
+#define MIN(m, n) ((m) < (n) ? (m) : (n))
+#endif
 
-extern uint32_t crc32 (uint32_t crc, unsigned char *buf, size_t len);
-extern int crc32_file (int fd, uint32_t *resp);
 
 /* A special gettext function we use if the strings are too short.  */
 #define sgettext(Str) \
@@ -142,39 +141,6 @@ pread_retry (int fd, void *buf, size_t len, off_t off)
 extern char *__cxa_demangle (const char *mangled_name, char *output_buffer,
                             size_t *length, int *status);
 
-
-
-/* Color handling.  */
-
-/* Command line parser.  */
-extern const struct argp color_argp;
-
-/* Coloring mode.  */
-enum color_enum
-  {
-    color_never = 0,
-    color_always,
-    color_auto
-  } __attribute__ ((packed));
-extern enum color_enum color_mode;
-
-/* Colors to use for the various components.  */
-extern char *color_address;
-extern char *color_bytes;
-extern char *color_mnemonic;
-extern char *color_operand1;
-extern char *color_operand2;
-extern char *color_operand3;
-extern char *color_label;
-extern char *color_undef;
-extern char *color_undef_tls;
-extern char *color_undef_weak;
-extern char *color_symbol;
-extern char *color_tls;
-extern char *color_weak;
-
-extern const char color_off[];
-
 /* A static assertion.  This will cause a compile-time error if EXPR,
    which must be a compile-time constant, is false.  */
 
index aa10352ac7b2b977877b9e9182a0d7cfcc760461..ff1e3d4f80bf50fd74cb6cae88f5f4355c77a912 100644 (file)
@@ -31,7 +31,7 @@
 #endif
 
 #include <string.h>
-#include "system.h"
+#include "libeu.h"
 
 
 /* Return a newly allocated copy of STRING.  */
index 92b79c17ec29f097360d781e877dbae3d862a36d..d43e3b9e1a66e1e4a28023fa8bca8d56294e6888 100644 (file)
@@ -30,8 +30,9 @@
 # include <config.h>
 #endif
 
+#include <stdint.h>
 #include <string.h>
-#include "system.h"
+#include "libeu.h"
 
 
 /* Return a newly allocated copy of STRING.  */
index 4c6cb28694c75f184d2a08216ba815042b4fe2e6..fe06007e98d4ca75c6f0ac789dfc096b20f578aa 100644 (file)
@@ -1,3 +1,7 @@
+2015-10-11  Akihiko Odaki  <akihiko.odaki.4i@stu.hosei.ac.jp>
+
+       * asm_align.c: Remove sys/param.h include.
+
 2016-07-08  Mark Wielaard  <mjw@redhat.com>
 
        * Makefile.am (AM_CPPFLAGS): Add libdwelf.
index 6631c4d739465d0a9fb4753e1576a44e1d276d1d..e59a070ea556388140c1ba10b868c1f74d5aaba8 100644 (file)
@@ -33,7 +33,6 @@
 
 #include <inttypes.h>
 #include <stdlib.h>
-#include <sys/param.h>
 
 #include <libasmP.h>
 #include <system.h>
index 9cce4e7261dabf9126b1e08ba31af77235ba4fae..fff1d96a8ecb8d0d237d413c649536991e176bcc 100644 (file)
@@ -1,3 +1,9 @@
+2015-10-11  Akihiko Odaki  <akihiko.odaki.4i@stu.hosei.ac.jp>
+
+       * i386_lex.l: Remove system.h include, add libeu.h include.
+       * i386_parse.y: Remove sys/param.h include, add libeu.h include.
+       * i386_disasm.c: Remove sys/param.h.
+
 2016-09-05  Mark Wielaard  <mjw@redhat.com>
 
        * bpf_disasm.c: Define BPF_PSEUDO_MAP_FD if undefined.
index ceb5164f0d41787e570d160055926db0599ea666..699dd6199f5c591540d92bd1dd088c2c44ac83aa 100644 (file)
@@ -41,7 +41,6 @@
 #include <stdint.h>
 #include <stdlib.h>
 #include <string.h>
-#include <sys/param.h>
 
 #include "../libebl/libeblP.h"
 
index 1e10dd767ed9a26e9a8837658b46f7dbe211f7fc..ef1b53b686e28dbc03ba06eaa53c2760aadb31ff 100644 (file)
@@ -34,7 +34,7 @@
 #include <error.h>
 #include <libintl.h>
 
-#include <system.h>
+#include <libeu.h>
 #include "i386_parse.h"
 
 
index 689ba222b131f51b2f48ba2872b722a3c9ceebd0..15a72b1f0da668369d54f70c581244d0c5cf47b5 100644 (file)
@@ -44,8 +44,8 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <sys/param.h>
 
+#include <libeu.h>
 #include <system.h>
 
 #define obstack_chunk_alloc xmalloc
index 8071fc14ad0599e695b70d4b1c8f85d697b889ef..c2f25ea625ad2a5f594ea4f5183ce7f5d23151d8 100644 (file)
@@ -1,3 +1,8 @@
+2015-10-11  Akihiko Odaki  <akihiko.odaki.4i@stu.hosei.ac.jp>
+
+       * dwarf_getpubnames.c: Remove sys/param.h include, add system.h.
+       * libdw_alloc.c: Likewise.
+
 2016-07-08  Mark Wielaard  <mjw@redhat.com>
 
        * libdw.map (ELFUTILS_0.167): New. Add dwelf_strtab_init,
index 462b6ff03013f75ff4c610731e1c3eed2edb66ec..25600f33ce021b43ace06569a78e21df35dfb64f 100644 (file)
 #include <assert.h>
 #include <stdlib.h>
 #include <string.h>
-#include <sys/param.h>
 
 #include <libdwP.h>
 #include <dwarf.h>
+#include <system.h>
 
 
 static int
index a3b7958fb4a9dbf2d9f8866b8513a8731d7d1f7e..28a8cf6e44f2e200592aaa8f365e5dadcf47e9cc 100644 (file)
@@ -34,8 +34,8 @@
 #include <error.h>
 #include <errno.h>
 #include <stdlib.h>
-#include <sys/param.h>
 #include "libdwP.h"
+#include "system.h"
 
 
 void *
index 4211023c9cc07d3639095c50feaf633dd33dac18..a3326556d658a03f3f56346c4cbd41674ab660bf 100644 (file)
@@ -1,3 +1,8 @@
+2015-10-11  Akihiko Odaki  <akihiko.odaki.4i@stu.hosei.ac.jp>
+
+       * dwelf_strtab.c: Remove sys/param.h include.
+       (MIN): Remove definition.
+
 2016-07-08  Mark Wielaard  <mjw@redhat.com>
 
        * Makefile.am (libdwelf_a_SOURCES): Add dwelf_strtab.c.
index c1b93d4ab315184dc4f698b9a4640e0fc119b059..01e091c875c895358e6f11b2219cce7add262e64 100644 (file)
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
-#include <sys/param.h>
 
 #include "libdwelfP.h"
 #include <system.h>
 
-#ifndef MIN
-# define MIN(a, b) ((a) < (b) ? (a) : (b))
-#endif
-
 
 struct Dwelf_Strent
 {
index 3332db7ae63605fedcc6c0a0160c3865830a7ad3..27c5d6ef327d233478b81fa71bbce4197c82cc8f 100644 (file)
@@ -1,3 +1,13 @@
+2015-10-11  Akihiko Odaki  <akihiko.odaki.4i@stu.hosei.ac.jp>
+
+       * core-file.c: Remove sys/param.h.
+       * dwfl_segment_report_module.c: Likewise. Add system.h include.
+       (MAX): Remove definition.
+       * frame_unwind.c: Add system.h include.
+       (MAX): Remove definition.
+       * linux-core-attach.c (MIN): Remove definition.
+       * linux-pid-attach.c (MAX): Likewise.
+
 2016-08-12  Mark Wielaard  <mjw@redhat.com>
 
        * link_map.c (dwfl_link_map_report): Fix assert, set in.d_size.
index 67684c9a8e79fc29ab195e84d2df4db7d6bc8754..84cb89accb96a338bd23e405ad1442bc94d6366d 100644 (file)
@@ -32,7 +32,6 @@
 #include "libdwflP.h"
 #include <gelf.h>
 
-#include <sys/param.h>
 #include <unistd.h>
 #include <endian.h>
 #include <byteswap.h>
index 40553c948bfef2458339c943eb75145f8c502320..207a2573a7a466fd5cf5b99542ab8ce6912c3d44 100644 (file)
 #include <elf.h>
 #include <gelf.h>
 #include <inttypes.h>
-#include <sys/param.h>
 #include <endian.h>
 #include <unistd.h>
 #include <fcntl.h>
 
+#include <system.h>
+
 
 /* A good size for the initial read from memory, if it's not too costly.
    This more than covers the phdrs and note segment in the average 64-bit
 # define MY_ELFDATA    ELFDATA2MSB
 #endif
 
-#ifndef MAX
-# define MAX(a, b) ((a) > (b) ? (a) : (b))
-#endif
-
 
 /* Return user segment index closest to ADDR but not above it.
    If NEXT, return the closest to ADDR but not below it.  */
index a885446fc30a7d76495551c7e67b1f1630642906..fb42c1a789da8a44adc3f92c51716b48252702d9 100644 (file)
@@ -35,6 +35,7 @@
 #include "libdwflP.h"
 #include "../libdw/dwarf.h"
 #include <sys/ptrace.h>
+#include <system.h>
 
 /* Maximum number of DWARF expression stack slots before returning an error.  */
 #define DWARF_EXPR_STACK_MAX 0x100
    error.  */
 #define DWARF_EXPR_STEPS_MAX 0x1000
 
-#ifndef MAX
-# define MAX(a, b) ((a) > (b) ? (a) : (b))
-#endif
-
 bool
 internal_function
 __libdwfl_frame_reg_get (Dwfl_Frame *state, unsigned regno, Dwarf_Addr *val)
index 5a7b3b3daad76d149c7241c817750280106a6353..93d0e46eb49d1db38eed0b2ab1021d818003f34b 100644 (file)
 
 #include "../libdw/memory-access.h"
 
-#ifndef MIN
-# define MIN(a, b) ((a) < (b) ? (a) : (b))
-#endif
-
 struct core_arg
 {
   Elf *core;
index c13f2b62a761f44e6163974c83a37a213614d634..adfc7f818027b7e71aa1ea860675a4035a7d1489 100644 (file)
 #include <sys/syscall.h>
 #include <unistd.h>
 
-#ifndef MAX
-# define MAX(a, b) ((a) > (b) ? (a) : (b))
-#endif
-
 #ifdef __linux__
 
 static bool
index 77991446035f5c1fae797cc5be7d9f467048c3d3..cf672bf2a82c4d9177b00be8cdeac4674e962a8e 100644 (file)
@@ -1,3 +1,11 @@
+2015-10-11  Akihiko Odaki  <akihiko.odaki.4i@stu.hosei.ac.jp>
+
+       * elf32_updatefile.c: Remove sys/param.h include.
+       * elf32_updatenull.c: Likewise. Add system.h include.
+       * elf_begin.c: Remove sys/param.h.
+       * elf_compress: Likewise. Add system.h include.
+       (MAX): Remove definition.
+
 2016-08-07  Mark Wielaard  <mjw@redhat.com>
 
        * elf_compress.c (__libelf_reset_rawdata): Check scn->flags and
index d0fabb16c744c2cc916b510f69f9bfb0cb7745f7..8dd85d1a8fc66ffd47f8e0e5980afee48b8cd614 100644 (file)
@@ -39,7 +39,6 @@
 #include <string.h>
 #include <unistd.h>
 #include <sys/mman.h>
-#include <sys/param.h>
 
 #include <system.h>
 #include "libelfP.h"
index 939aa13eb3db72585723bee6b7c55f344583c177..d83c0b3f0c49edfa5a985e017901f6da715e7e5e 100644 (file)
@@ -36,8 +36,8 @@
 #include <libelf.h>
 #include <stdbool.h>
 #include <string.h>
-#include <sys/param.h>
 
+#include <system.h>
 #include "libelfP.h"
 #include "elf-knowledge.h"
 
index 147f5f4b1872fbdb484500ef57c1c1bd4d81c0fb..8fdb37645ec67589e79a34cb4743000ba389b024 100644 (file)
@@ -40,7 +40,6 @@
 #include <string.h>
 #include <unistd.h>
 #include <sys/mman.h>
-#include <sys/param.h>
 #include <sys/stat.h>
 
 #include <system.h>
index 3aebe82027acf81067ad6ee91ebf482b587881c6..dac0ac6d07db53cc36234fe3bab94f4165fe2615 100644 (file)
 #endif
 
 #include <libelf.h>
+#include <system.h>
 #include "libelfP.h"
 #include "common.h"
 
 #include <stddef.h>
 #include <stdlib.h>
 #include <string.h>
-#include <sys/param.h>
 #include <unistd.h>
 #include <zlib.h>
 
-#ifndef MAX
-# define MAX(a, b) ((a) > (b) ? (a) : (b))
-#endif
-
 /* Cleanup and return result.  Don't leak memory.  */
 static void *
 do_deflate_cleanup (void *result, z_stream *z, void *out_buf,
index 70d11f2ec7eaed027f874ebfa56e216a40fcde86..68baa2e7f6bf94dcad309f085b6da437f6a6fb1b 100644 (file)
@@ -1,3 +1,18 @@
+2015-10-11  Akihiko Odaki  <akihiko.odaki.4i@stu.hosei.ac.jp>
+
+       * arlib.c: Remove system.h include, add libeu.h include.
+       * arlib2.c: Remove sys/param.h include.
+       * elfcompress.c: Add libeu.h include.
+       * elflint.c: Remove sys/param.h include, add libeu.h include.
+       * nm.c: Likewise.
+       * objdump.c: Likewise.
+       * ranlib.c: Likewise.
+       * readelf.c: Likewise.
+       * size.c: Remove sys/param.h include.
+       * strings.c: Likewise, add libeu.h include.
+       * strip.c: Likewise.
+       * unstrip.c: Likewise.
+
 2016-10-06  Mark Wielaard  <mjw@redhat.com>
 
        * strip.c (handle_elf): Don't remove real symbols from allocated
index 43a9145b71a6a0a9c7ff691313e81bcc496d72f8..c3cf47f8469f49170c899c22ed7ec8882ae23738 100644 (file)
@@ -28,7 +28,7 @@
 #include <stdlib.h>
 #include <time.h>
 
-#include <system.h>
+#include <libeu.h>
 
 #include "arlib.h"
 
index 7998fc6c8b665c0f036b39dfd03c16d649cd5f38..553fc57b9984e2134fad4e1386b06791f7ee1ba2 100644 (file)
@@ -24,7 +24,6 @@
 #include <libintl.h>
 #include <limits.h>
 #include <string.h>
-#include <sys/param.h>
 
 #include "arlib.h"
 
index 86cc716544de41807ae205bd8cb38305747470b6..7392cb763d77d04d93d188787568b7b4c22f48d2 100644 (file)
@@ -34,6 +34,7 @@
 #include ELFUTILS_HEADER(ebl)
 #include ELFUTILS_HEADER(dwelf)
 #include <gelf.h>
+#include "libeu.h"
 #include "system.h"
 
 /* Name and version of program.  */
index 8c298c935f2be1feaf60f2dde5353dc5954cbdc4..8b52ee2b1912a52875884ced6cc0c094fbc2c507 100644 (file)
@@ -35,9 +35,9 @@
 #include <string.h>
 #include <unistd.h>
 #include <sys/stat.h>
-#include <sys/param.h>
 
 #include <elf-knowledge.h>
+#include <libeu.h>
 #include <system.h>
 #include "../libelf/libelfP.h"
 #include "../libelf/common.h"
index 010469daf96361796ca78a770b5e1b18a8fff3f3..37e54bff4a793fd6d6b09796abcbd58004632e80 100644 (file)
--- a/src/nm.c
+++ b/src/nm.c
@@ -41,8 +41,8 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
-#include <sys/param.h>
 
+#include <libeu.h>
 #include <system.h>
 #include "../libebl/libeblP.h"
 #include "../libdwfl/libdwflP.h"
index 0aa41e89cd4bc1012e150c2c1db557275b3a8be9..1afcd573b9e56ce681d3fa948572fcaf53dccfc5 100644 (file)
@@ -32,8 +32,8 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
-#include <sys/param.h>
 
+#include <libeu.h>
 #include <system.h>
 #include "../libebl/libeblP.h"
 
index c93c5ac8ec2601b09bfbb3bf798c90d2fc6ca321..455de0d6078c2918e0a5ed95266207304bac3778 100644 (file)
@@ -35,7 +35,6 @@
 #include <stdio_ext.h>
 #include <unistd.h>
 #include <sys/mman.h>
-#include <sys/param.h>
 #include <sys/stat.h>
 
 #include <system.h>
index f1572906b83dc8f590b8fc3e6574305d0e22ee96..204aeecb26c916679975b46777e53486beca0adb 100644 (file)
 #include <string.h>
 #include <time.h>
 #include <unistd.h>
-#include <sys/param.h>
 #include <sys/stat.h>
 #include <signal.h>
 
+#include <libeu.h>
 #include <system.h>
 #include "../libelf/libelfP.h"
 #include "../libelf/common.h"
index 7c03ccef7c17ebb0a8c23092725254a29e7a40ac..b98674ca516995e9325de5096563b67861d9fa53 100644 (file)
@@ -34,7 +34,6 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
-#include <sys/param.h>
 
 #include <system.h>
 
index c1d63cd6fa9bb4e669ac0cdf5fd9451712f84ec9..a4ffcbee986151c5db997c355e938d7fea1ed6d5 100644 (file)
@@ -38,9 +38,9 @@
 #include <string.h>
 #include <unistd.h>
 #include <sys/mman.h>
-#include <sys/param.h>
 #include <sys/stat.h>
 
+#include <libeu.h>
 #include <system.h>
 
 #ifndef MAP_POPULATE
index 819b67e893b17fa2f34af15900eb99995e9482d3..64ef84d37544418fab2ae4eaf3fa47d040f4ebdb 100644 (file)
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
-#include <sys/param.h>
 #include <sys/stat.h>
 #include <sys/time.h>
 
 #include <elf-knowledge.h>
 #include <libebl.h>
 #include "libdwelf.h"
+#include <libeu.h>
 #include <system.h>
 
 typedef uint8_t GElf_Byte;
index 467373813e8c021465ebbc6eca1dcd49c5ae415b..3bf4b192b5db847e0563dae57f4b6a0e024d23f4 100644 (file)
@@ -49,6 +49,7 @@
 #include <libebl.h>
 #include <libdwfl.h>
 #include "libdwelf.h"
+#include "libeu.h"
 #include "system.h"
 
 #ifndef _
index a0eb4c6bafbefcf05698ccdf481d998a7cb19780..31904e768d9e2f16afc9b4c24079708d77e80a69 100644 (file)
@@ -1,3 +1,7 @@
+2015-10-11  Akihiko Odaki  <akihiko.odaki.4i@stu.hosei.ac.jp>
+
+       * arextract.c: Remove sys/param.h include, add system.h include.
+
 2016-08-30  Mark Wielaard  <mjw@redhat.com>
 
        * Makefile.am (asm_tst?_LDADD): Add libdw.
index 21850b6c273b0bccfb12d6a98f882c5e1bab59c4..2c4dc758359ae0163088bf3caadcadbe11e11e78 100644 (file)
@@ -25,7 +25,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
-#include <sys/param.h>
+#include <system.h>
 
 
 int