[rtems commit] Include missing <string.h>
Sebastian Huber
sebh at rtems.org
Fri Aug 25 10:53:48 UTC 2017
Module: rtems
Branch: master
Commit: b2ed712d26ecdf9930e9725ebc6020eb995f2a20
Changeset: http://git.rtems.org/rtems/commit/?id=b2ed712d26ecdf9930e9725ebc6020eb995f2a20
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Fri Aug 25 10:58:58 2017 +0200
Include missing <string.h>
Update #2133.
---
c/src/lib/libbsp/arm/altera-cyclone-v/rtc/rtc.c | 1 +
c/src/lib/libbsp/arm/atsam/spi/atsam_spi_bus.c | 2 ++
c/src/lib/libbsp/arm/lpc176x/can/can.c | 1 +
c/src/lib/libbsp/arm/lpc32xx/misc/nand-mlc-read-blocks.c | 2 ++
c/src/lib/libbsp/arm/lpc32xx/misc/nand-mlc-write-blocks.c | 2 ++
c/src/lib/libbsp/arm/raspberrypi/console/console_select.c | 1 +
c/src/lib/libbsp/arm/raspberrypi/misc/vc_defines.h | 2 ++
c/src/lib/libbsp/arm/raspberrypi/startup/cmdline.c | 2 ++
c/src/lib/libbsp/arm/shared/arm-pl111-fb.c | 1 +
c/src/lib/libbsp/arm/shared/armv7m/irq/armv7m-irq.c | 2 ++
c/src/lib/libbsp/arm/tms570/console/printk-support.c | 1 +
c/src/lib/libbsp/arm/tms570/pom/tms570-pom.c | 1 +
c/src/lib/libbsp/lm32/shared/milkymist_framebuffer/framebuffer.c | 1 +
c/src/lib/libbsp/lm32/shared/milkymist_versions/versions.c | 1 +
c/src/lib/libbsp/lm32/shared/tsmac/tsmac.c | 1 +
c/src/lib/libbsp/shared/console.c | 1 +
c/src/lib/libbsp/sparc/leon3/console/console.c | 1 +
c/src/lib/libbsp/sparc/shared/amba/ahbstat.c | 1 +
c/src/lib/libbsp/sparc/shared/analog/gradcdac.c | 1 +
c/src/lib/libbsp/sparc/shared/drvmgr/ambapp_bus_leon2.c | 1 +
c/src/lib/libbsp/sparc/shared/i2c/i2cmst.c | 1 +
c/src/lib/libbsp/sparc/shared/iommu/griommu.c | 1 +
c/src/lib/libbsp/sparc/shared/l2c/l2c.c | 1 +
c/src/lib/libbsp/sparc/shared/pci/grpci2dma.c | 1 +
c/src/lib/libbsp/sparc/shared/scrub/memscrub.c | 1 +
c/src/lib/libbsp/sparc/shared/time/grctm.c | 1 +
c/src/lib/libbsp/sparc/shared/time/spwcuc.c | 1 +
c/src/lib/libbsp/sparc/shared/timer/gptimer.c | 1 +
c/src/lib/libbsp/sparc64/shared/helenos/boot/sparc64/loader/main.c | 1 +
c/src/lib/libcpu/bfin/bf52x/interrupt/interrupt.c | 1 +
c/src/lib/libcpu/bfin/interrupt/interrupt.c | 1 +
cpukit/dev/i2c/ti-lm25066a.c | 1 +
cpukit/include/rtems/printer.h | 1 +
cpukit/libcsupport/src/cfmakesane.c | 1 +
cpukit/libcsupport/src/chroot.c | 1 +
cpukit/libcsupport/src/fchmod.c | 1 +
cpukit/libcsupport/src/fchown.c | 1 +
cpukit/libcsupport/src/termios.c | 1 +
cpukit/libdl/rtl-allocator.c | 1 +
cpukit/libdl/rtl-error.c | 1 +
cpukit/libdl/rtl-find-file.c | 1 +
cpukit/libdl/rtl-mdreloc-arm.c | 1 +
cpukit/libdl/rtl-obj.c | 1 +
cpukit/libdl/rtl-sym.c | 1 +
cpukit/libdl/rtl-unresolved.c | 1 +
cpukit/libfs/src/imfs/imfs_linfile.c | 2 ++
cpukit/libmisc/dummy/default-configuration.c | 1 +
cpukit/libmisc/redirector/stdio-redirect.c | 1 +
cpukit/libmisc/rtems-fdt/rtems-fdt-shell.c | 1 +
cpukit/libmisc/shell/main_md5.c | 1 +
cpukit/libmisc/shell/main_rtrace.c | 1 +
cpukit/libmisc/untar/untar_tgz.c | 2 ++
cpukit/libpci/pci_cfg_print_code.c | 1 +
cpukit/librpc/src/rpc/get_myaddress.c | 1 +
cpukit/posix/src/mmap.c | 1 +
cpukit/posix/src/shmheap.c | 1 +
cpukit/posix/src/shmwkspace.c | 1 +
cpukit/score/src/threadq.c | 2 ++
58 files changed, 67 insertions(+)
diff --git a/c/src/lib/libbsp/arm/altera-cyclone-v/rtc/rtc.c b/c/src/lib/libbsp/arm/altera-cyclone-v/rtc/rtc.c
index baf93ff..e0e4688 100644
--- a/c/src/lib/libbsp/arm/altera-cyclone-v/rtc/rtc.c
+++ b/c/src/lib/libbsp/arm/altera-cyclone-v/rtc/rtc.c
@@ -29,6 +29,7 @@
#include <rtems/score/todimpl.h>
#include <sys/filio.h>
#include <fcntl.h>
+#include <string.h>
#include <unistd.h>
#include <bsp/i2cdrv.h>
diff --git a/c/src/lib/libbsp/arm/atsam/spi/atsam_spi_bus.c b/c/src/lib/libbsp/arm/atsam/spi/atsam_spi_bus.c
index 5dfa62e..8fa21fa 100644
--- a/c/src/lib/libbsp/arm/atsam/spi/atsam_spi_bus.c
+++ b/c/src/lib/libbsp/arm/atsam/spi/atsam_spi_bus.c
@@ -32,6 +32,8 @@
#include <dev/spi/spi.h>
+#include <string.h>
+
#define MAX_SPI_FREQUENCY 50000000
typedef struct {
diff --git a/c/src/lib/libbsp/arm/lpc176x/can/can.c b/c/src/lib/libbsp/arm/lpc176x/can/can.c
index 781300c..e5ffc29 100755
--- a/c/src/lib/libbsp/arm/lpc176x/can/can.c
+++ b/c/src/lib/libbsp/arm/lpc176x/can/can.c
@@ -22,6 +22,7 @@
#include <bsp/can.h>
#include <bsp/can-defs.h>
#include <bsp/mbed-pinmap.h>
+#include <string.h>
/**
* @brief The standard isr to be installed for all the can devices.
diff --git a/c/src/lib/libbsp/arm/lpc32xx/misc/nand-mlc-read-blocks.c b/c/src/lib/libbsp/arm/lpc32xx/misc/nand-mlc-read-blocks.c
index 05e00c2..bc01a98 100644
--- a/c/src/lib/libbsp/arm/lpc32xx/misc/nand-mlc-read-blocks.c
+++ b/c/src/lib/libbsp/arm/lpc32xx/misc/nand-mlc-read-blocks.c
@@ -21,6 +21,8 @@
#include <bsp/nand-mlc.h>
+#include <string.h>
+
static rtems_status_code read_page(
uint32_t first_page_of_block,
uint32_t page,
diff --git a/c/src/lib/libbsp/arm/lpc32xx/misc/nand-mlc-write-blocks.c b/c/src/lib/libbsp/arm/lpc32xx/misc/nand-mlc-write-blocks.c
index 3129ced..cfcb9cd 100644
--- a/c/src/lib/libbsp/arm/lpc32xx/misc/nand-mlc-write-blocks.c
+++ b/c/src/lib/libbsp/arm/lpc32xx/misc/nand-mlc-write-blocks.c
@@ -22,6 +22,8 @@
#include <bsp/nand-mlc.h>
+#include <string.h>
+
static const uint32_t ones_spare [MLC_LARGE_SPARE_WORD_COUNT] = {
0xffffffff,
0xffffffff,
diff --git a/c/src/lib/libbsp/arm/raspberrypi/console/console_select.c b/c/src/lib/libbsp/arm/raspberrypi/console/console_select.c
index 8000a7a..30aaff4 100644
--- a/c/src/lib/libbsp/arm/raspberrypi/console/console_select.c
+++ b/c/src/lib/libbsp/arm/raspberrypi/console/console_select.c
@@ -20,6 +20,7 @@
#include <bsp/fatal.h>
#include <rtems/libio.h>
#include <stdlib.h>
+#include <string.h>
#include <assert.h>
#include <termios.h>
diff --git a/c/src/lib/libbsp/arm/raspberrypi/misc/vc_defines.h b/c/src/lib/libbsp/arm/raspberrypi/misc/vc_defines.h
index 9725445..857305b 100644
--- a/c/src/lib/libbsp/arm/raspberrypi/misc/vc_defines.h
+++ b/c/src/lib/libbsp/arm/raspberrypi/misc/vc_defines.h
@@ -20,6 +20,8 @@
#ifndef LIBBSP_ARM_RASPBERRYPI_VC_DEFINES_H
#define LIBBSP_ARM_RASPBERRYPI_VC_DEFINES_H
+#include <string.h>
+
/**
* @defgroup raspberrypi_vc Register Definitions
*
diff --git a/c/src/lib/libbsp/arm/raspberrypi/startup/cmdline.c b/c/src/lib/libbsp/arm/raspberrypi/startup/cmdline.c
index 9e41813..222b21e 100644
--- a/c/src/lib/libbsp/arm/raspberrypi/startup/cmdline.c
+++ b/c/src/lib/libbsp/arm/raspberrypi/startup/cmdline.c
@@ -18,6 +18,8 @@
#include <bsp.h>
#include <bsp/vc.h>
+#include <string.h>
+
#define MAX_CMDLINE_LENGTH 1024
static int rpi_cmdline_ready = -1;
static char rpi_cmdline_cached[MAX_CMDLINE_LENGTH] = "force .data placement";
diff --git a/c/src/lib/libbsp/arm/shared/arm-pl111-fb.c b/c/src/lib/libbsp/arm/shared/arm-pl111-fb.c
index 7ca8315..dc67a08 100644
--- a/c/src/lib/libbsp/arm/shared/arm-pl111-fb.c
+++ b/c/src/lib/libbsp/arm/shared/arm-pl111-fb.c
@@ -15,6 +15,7 @@
#include <errno.h>
#include <assert.h>
#include <stdlib.h>
+#include <string.h>
#include <rtems/framebuffer.h>
#include <rtems/fb.h>
diff --git a/c/src/lib/libbsp/arm/shared/armv7m/irq/armv7m-irq.c b/c/src/lib/libbsp/arm/shared/armv7m/irq/armv7m-irq.c
index 1d930a4..99c0e37 100644
--- a/c/src/lib/libbsp/arm/shared/armv7m/irq/armv7m-irq.c
+++ b/c/src/lib/libbsp/arm/shared/armv7m/irq/armv7m-irq.c
@@ -12,6 +12,8 @@
* http://www.rtems.org/license/LICENSE.
*/
+#include <string.h>
+
#include <rtems/score/armv7m.h>
#include <bsp.h>
diff --git a/c/src/lib/libbsp/arm/tms570/console/printk-support.c b/c/src/lib/libbsp/arm/tms570/console/printk-support.c
index 668f2d9..31e2c19 100644
--- a/c/src/lib/libbsp/arm/tms570/console/printk-support.c
+++ b/c/src/lib/libbsp/arm/tms570/console/printk-support.c
@@ -26,6 +26,7 @@
#include <rtems/bspIo.h>
#include <rtems/sysinit.h>
#include <stdint.h>
+#include <string.h>
#include <bsp/tms570-sci.h>
#include <bsp/tms570-sci-driver.h>
diff --git a/c/src/lib/libbsp/arm/tms570/pom/tms570-pom.c b/c/src/lib/libbsp/arm/tms570/pom/tms570-pom.c
index 6de64fe..4fdc3e8 100644
--- a/c/src/lib/libbsp/arm/tms570/pom/tms570-pom.c
+++ b/c/src/lib/libbsp/arm/tms570/pom/tms570-pom.c
@@ -20,6 +20,7 @@
*/
#include <stdint.h>
+#include <string.h>
#include <bsp/tms570-pom.h>
#include <bsp/linker-symbols.h>
#include <rtems/score/armv4.h>
diff --git a/c/src/lib/libbsp/lm32/shared/milkymist_framebuffer/framebuffer.c b/c/src/lib/libbsp/lm32/shared/milkymist_framebuffer/framebuffer.c
index 6bd6e1b..8bbd44a 100644
--- a/c/src/lib/libbsp/lm32/shared/milkymist_framebuffer/framebuffer.c
+++ b/c/src/lib/libbsp/lm32/shared/milkymist_framebuffer/framebuffer.c
@@ -14,6 +14,7 @@
#include <stdlib.h>
#include <stdio.h>
+#include <string.h>
#include <errno.h>
#include <sys/types.h>
#include <rtems.h>
diff --git a/c/src/lib/libbsp/lm32/shared/milkymist_versions/versions.c b/c/src/lib/libbsp/lm32/shared/milkymist_versions/versions.c
index bec639e..fac138b 100644
--- a/c/src/lib/libbsp/lm32/shared/milkymist_versions/versions.c
+++ b/c/src/lib/libbsp/lm32/shared/milkymist_versions/versions.c
@@ -13,6 +13,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <sys/types.h>
#include <rtems.h>
#include <rtems/status-checks.h>
diff --git a/c/src/lib/libbsp/lm32/shared/tsmac/tsmac.c b/c/src/lib/libbsp/lm32/shared/tsmac/tsmac.c
index 6f9fd44..2045312 100644
--- a/c/src/lib/libbsp/lm32/shared/tsmac/tsmac.c
+++ b/c/src/lib/libbsp/lm32/shared/tsmac/tsmac.c
@@ -17,6 +17,7 @@
#include <rtems.h>
#include <bsp.h>
#include <stdio.h>
+#include <string.h>
#include <errno.h>
#include <rtems/error.h>
#include <rtems/rtems_bsdnet.h>
diff --git a/c/src/lib/libbsp/shared/console.c b/c/src/lib/libbsp/shared/console.c
index b8a078f..fbeec25 100644
--- a/c/src/lib/libbsp/shared/console.c
+++ b/c/src/lib/libbsp/shared/console.c
@@ -20,6 +20,7 @@
#include <rtems/libio.h>
#include <rtems/console.h>
#include <stdlib.h>
+#include <string.h>
#include <assert.h>
#include <termios.h>
diff --git a/c/src/lib/libbsp/sparc/leon3/console/console.c b/c/src/lib/libbsp/sparc/leon3/console/console.c
index 666069e..acab893 100644
--- a/c/src/lib/libbsp/sparc/leon3/console/console.c
+++ b/c/src/lib/libbsp/sparc/leon3/console/console.c
@@ -30,6 +30,7 @@
#include <bsp/fatal.h>
#include <bsp/apbuart_termios.h>
#include <rtems/console.h>
+#include <string.h>
/* The LEON3 BSP UART driver can rely on the Driver Manager if the
* DrvMgr is initialized during startup. Otherwise the classic driver
diff --git a/c/src/lib/libbsp/sparc/shared/amba/ahbstat.c b/c/src/lib/libbsp/sparc/shared/amba/ahbstat.c
index 11bccb9..e624301 100644
--- a/c/src/lib/libbsp/sparc/shared/amba/ahbstat.c
+++ b/c/src/lib/libbsp/sparc/shared/amba/ahbstat.c
@@ -9,6 +9,7 @@
*/
#include <stdint.h>
+#include <string.h>
#include <rtems.h>
#include <rtems/bspIo.h>
#include <drvmgr/drvmgr.h>
diff --git a/c/src/lib/libbsp/sparc/shared/analog/gradcdac.c b/c/src/lib/libbsp/sparc/shared/analog/gradcdac.c
index 125fd38..07fb2ee 100644
--- a/c/src/lib/libbsp/sparc/shared/analog/gradcdac.c
+++ b/c/src/lib/libbsp/sparc/shared/analog/gradcdac.c
@@ -11,6 +11,7 @@
#include <rtems.h>
#include <stdlib.h>
#include <stdio.h>
+#include <string.h>
#include <drvmgr/drvmgr.h>
#include <drvmgr/ambapp_bus.h>
#include <bsp/gradcdac.h>
diff --git a/c/src/lib/libbsp/sparc/shared/drvmgr/ambapp_bus_leon2.c b/c/src/lib/libbsp/sparc/shared/drvmgr/ambapp_bus_leon2.c
index f5fb35d..a235137 100644
--- a/c/src/lib/libbsp/sparc/shared/drvmgr/ambapp_bus_leon2.c
+++ b/c/src/lib/libbsp/sparc/shared/drvmgr/ambapp_bus_leon2.c
@@ -20,6 +20,7 @@
#ifdef LEON2
#include <stdlib.h>
#include <stdio.h>
+#include <string.h>
#include <libcpu/access.h>
#include <drvmgr/drvmgr.h>
#include <drvmgr/ambapp_bus.h>
diff --git a/c/src/lib/libbsp/sparc/shared/i2c/i2cmst.c b/c/src/lib/libbsp/sparc/shared/i2c/i2cmst.c
index 347b3fa..9e386f7 100644
--- a/c/src/lib/libbsp/sparc/shared/i2c/i2cmst.c
+++ b/c/src/lib/libbsp/sparc/shared/i2c/i2cmst.c
@@ -14,6 +14,7 @@
#include <bsp.h>
#include <stdlib.h>
#include <stdio.h>
+#include <string.h>
#include <ambapp.h>
#include <rtems/libi2c.h>
#include <drvmgr/drvmgr.h>
diff --git a/c/src/lib/libbsp/sparc/shared/iommu/griommu.c b/c/src/lib/libbsp/sparc/shared/iommu/griommu.c
index 30e6914..c70219a 100644
--- a/c/src/lib/libbsp/sparc/shared/iommu/griommu.c
+++ b/c/src/lib/libbsp/sparc/shared/iommu/griommu.c
@@ -10,6 +10,7 @@
*/
#include <stdlib.h>
+#include <string.h>
#include <drvmgr/drvmgr.h>
#include <drvmgr/ambapp_bus.h>
#include <ambapp.h>
diff --git a/c/src/lib/libbsp/sparc/shared/l2c/l2c.c b/c/src/lib/libbsp/sparc/shared/l2c/l2c.c
index 0388a13..0c577f3 100644
--- a/c/src/lib/libbsp/sparc/shared/l2c/l2c.c
+++ b/c/src/lib/libbsp/sparc/shared/l2c/l2c.c
@@ -10,6 +10,7 @@
*/
#include <stdlib.h>
+#include <string.h>
#include <drvmgr/drvmgr.h>
#include <drvmgr/ambapp_bus.h>
#include <ambapp.h>
diff --git a/c/src/lib/libbsp/sparc/shared/pci/grpci2dma.c b/c/src/lib/libbsp/sparc/shared/pci/grpci2dma.c
index b187da7..d5f1f99 100644
--- a/c/src/lib/libbsp/sparc/shared/pci/grpci2dma.c
+++ b/c/src/lib/libbsp/sparc/shared/pci/grpci2dma.c
@@ -10,6 +10,7 @@
*/
#include <stdlib.h>
+#include <string.h>
#include <stddef.h>
#include <drvmgr/drvmgr.h>
#include <rtems.h>
diff --git a/c/src/lib/libbsp/sparc/shared/scrub/memscrub.c b/c/src/lib/libbsp/sparc/shared/scrub/memscrub.c
index cf02689..2e4dfee 100644
--- a/c/src/lib/libbsp/sparc/shared/scrub/memscrub.c
+++ b/c/src/lib/libbsp/sparc/shared/scrub/memscrub.c
@@ -11,6 +11,7 @@
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
+#include <string.h>
#include <rtems/bspIo.h>
#include <drvmgr/drvmgr.h>
#include <drvmgr/ambapp_bus.h>
diff --git a/c/src/lib/libbsp/sparc/shared/time/grctm.c b/c/src/lib/libbsp/sparc/shared/time/grctm.c
index e24902a..39fc972 100644
--- a/c/src/lib/libbsp/sparc/shared/time/grctm.c
+++ b/c/src/lib/libbsp/sparc/shared/time/grctm.c
@@ -11,6 +11,7 @@
#include <drvmgr/drvmgr.h>
#include <drvmgr/ambapp_bus.h>
#include <stdlib.h>
+#include <string.h>
#include <bsp/grctm.h>
diff --git a/c/src/lib/libbsp/sparc/shared/time/spwcuc.c b/c/src/lib/libbsp/sparc/shared/time/spwcuc.c
index 6933302..082ced0 100644
--- a/c/src/lib/libbsp/sparc/shared/time/spwcuc.c
+++ b/c/src/lib/libbsp/sparc/shared/time/spwcuc.c
@@ -12,6 +12,7 @@
#include <drvmgr/drvmgr.h>
#include <drvmgr/ambapp_bus.h>
#include <stdlib.h>
+#include <string.h>
#include <bsp/spwcuc.h>
diff --git a/c/src/lib/libbsp/sparc/shared/timer/gptimer.c b/c/src/lib/libbsp/sparc/shared/timer/gptimer.c
index b982822..08e4981 100644
--- a/c/src/lib/libbsp/sparc/shared/timer/gptimer.c
+++ b/c/src/lib/libbsp/sparc/shared/timer/gptimer.c
@@ -34,6 +34,7 @@
#include <rtems.h>
#include <bsp.h>
#include <stdlib.h>
+#include <string.h>
#include <drvmgr/drvmgr.h>
#include <drvmgr/ambapp_bus.h>
#include <grlib.h>
diff --git a/c/src/lib/libbsp/sparc64/shared/helenos/boot/sparc64/loader/main.c b/c/src/lib/libbsp/sparc64/shared/helenos/boot/sparc64/loader/main.c
index 25b83db..75579ed 100644
--- a/c/src/lib/libbsp/sparc64/shared/helenos/boot/sparc64/loader/main.c
+++ b/c/src/lib/libbsp/sparc64/shared/helenos/boot/sparc64/loader/main.c
@@ -41,6 +41,7 @@
#include <bsp.h>
#include <rtems/bspIo.h>
#include <inttypes.h>
+#include <string.h>
#include <boot/main.h>
#include <boot/balloc.h>
diff --git a/c/src/lib/libcpu/bfin/bf52x/interrupt/interrupt.c b/c/src/lib/libcpu/bfin/bf52x/interrupt/interrupt.c
index ff14577..db7dede 100644
--- a/c/src/lib/libcpu/bfin/bf52x/interrupt/interrupt.c
+++ b/c/src/lib/libcpu/bfin/bf52x/interrupt/interrupt.c
@@ -27,6 +27,7 @@
#include <bsp.h>
#include <libcpu/cecRegs.h>
#include <libcpu/sicRegs.h>
+#include <string.h>
#include "interrupt.h"
#define SIC_IAR_COUNT_SET0 4
diff --git a/c/src/lib/libcpu/bfin/interrupt/interrupt.c b/c/src/lib/libcpu/bfin/interrupt/interrupt.c
index 6887cca..5fd3b3d 100644
--- a/c/src/lib/libcpu/bfin/interrupt/interrupt.c
+++ b/c/src/lib/libcpu/bfin/interrupt/interrupt.c
@@ -15,6 +15,7 @@
#include <bsp.h>
#include <libcpu/cecRegs.h>
#include <libcpu/sicRegs.h>
+#include <string.h>
#include "interrupt.h"
diff --git a/cpukit/dev/i2c/ti-lm25066a.c b/cpukit/dev/i2c/ti-lm25066a.c
index 3f8c32f..5864470 100644
--- a/cpukit/dev/i2c/ti-lm25066a.c
+++ b/cpukit/dev/i2c/ti-lm25066a.c
@@ -12,6 +12,7 @@
#endif
#include <stdio.h>
+#include <string.h>
#include <dev/i2c/i2c.h>
#include <dev/i2c/ti-lm25066a.h>
diff --git a/cpukit/include/rtems/printer.h b/cpukit/include/rtems/printer.h
index 28b0b25..c18600b 100644
--- a/cpukit/include/rtems/printer.h
+++ b/cpukit/include/rtems/printer.h
@@ -24,6 +24,7 @@
#include <rtems/rtems/tasks.h>
#include <stdio.h>
+#include <string.h>
#ifdef __cplusplus
extern "C" {
diff --git a/cpukit/libcsupport/src/cfmakesane.c b/cpukit/libcsupport/src/cfmakesane.c
index e44fd6a..486e2f9 100644
--- a/cpukit/libcsupport/src/cfmakesane.c
+++ b/cpukit/libcsupport/src/cfmakesane.c
@@ -43,6 +43,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
+#include <string.h>
#define TTYDEFCHARS
#include <termios.h>
diff --git a/cpukit/libcsupport/src/chroot.c b/cpukit/libcsupport/src/chroot.c
index 0c498e6..8dbf403 100644
--- a/cpukit/libcsupport/src/chroot.c
+++ b/cpukit/libcsupport/src/chroot.c
@@ -23,6 +23,7 @@
#include "config.h"
#endif
+#include <string.h>
#include <unistd.h>
#include <rtems/libio_.h>
diff --git a/cpukit/libcsupport/src/fchmod.c b/cpukit/libcsupport/src/fchmod.c
index c745575..1a9122c 100644
--- a/cpukit/libcsupport/src/fchmod.c
+++ b/cpukit/libcsupport/src/fchmod.c
@@ -19,6 +19,7 @@
#endif
#include <sys/stat.h>
+#include <string.h>
#include <rtems/libio_.h>
diff --git a/cpukit/libcsupport/src/fchown.c b/cpukit/libcsupport/src/fchown.c
index 39463a8..10cd4bc 100644
--- a/cpukit/libcsupport/src/fchown.c
+++ b/cpukit/libcsupport/src/fchown.c
@@ -18,6 +18,7 @@
#include "config.h"
#endif
+#include <string.h>
#include <unistd.h>
#include <rtems/libio_.h>
diff --git a/cpukit/libcsupport/src/termios.c b/cpukit/libcsupport/src/termios.c
index 6db458f..c454e18 100644
--- a/cpukit/libcsupport/src/termios.c
+++ b/cpukit/libcsupport/src/termios.c
@@ -28,6 +28,7 @@
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <termios.h>
#include <unistd.h>
#include <sys/fcntl.h>
diff --git a/cpukit/libdl/rtl-allocator.c b/cpukit/libdl/rtl-allocator.c
index 39b4bcd..9c5a204 100644
--- a/cpukit/libdl/rtl-allocator.c
+++ b/cpukit/libdl/rtl-allocator.c
@@ -14,6 +14,7 @@
*/
#include <stdio.h>
+#include <string.h>
#include <rtems/rtl/rtl.h>
#include "rtl-alloc-heap.h"
diff --git a/cpukit/libdl/rtl-error.c b/cpukit/libdl/rtl-error.c
index 5ec4b26..449beb5 100644
--- a/cpukit/libdl/rtl-error.c
+++ b/cpukit/libdl/rtl-error.c
@@ -19,6 +19,7 @@
#include <errno.h>
#include <stdio.h>
+#include <string.h>
#include <stdarg.h>
#include <rtems/rtl/rtl.h>
diff --git a/cpukit/libdl/rtl-find-file.c b/cpukit/libdl/rtl-find-file.c
index 83ee647..e4eefd6 100644
--- a/cpukit/libdl/rtl-find-file.c
+++ b/cpukit/libdl/rtl-find-file.c
@@ -22,6 +22,7 @@
#include <inttypes.h>
#include <stdlib.h>
#include <stdio.h>
+#include <string.h>
#include <unistd.h>
#include <rtems/libio_.h>
diff --git a/cpukit/libdl/rtl-mdreloc-arm.c b/cpukit/libdl/rtl-mdreloc-arm.c
index f2f91f1..d86cde1 100644
--- a/cpukit/libdl/rtl-mdreloc-arm.c
+++ b/cpukit/libdl/rtl-mdreloc-arm.c
@@ -8,6 +8,7 @@
#include <errno.h>
#include <stdio.h>
+#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unwind.h>
diff --git a/cpukit/libdl/rtl-obj.c b/cpukit/libdl/rtl-obj.c
index bb0bc8d..8b2d2b8 100644
--- a/cpukit/libdl/rtl-obj.c
+++ b/cpukit/libdl/rtl-obj.c
@@ -21,6 +21,7 @@
#include <inttypes.h>
#include <stdlib.h>
#include <stdio.h>
+#include <string.h>
#include <rtems/libio_.h>
diff --git a/cpukit/libdl/rtl-sym.c b/cpukit/libdl/rtl-sym.c
index 1436cc0..2bda78d 100644
--- a/cpukit/libdl/rtl-sym.c
+++ b/cpukit/libdl/rtl-sym.c
@@ -21,6 +21,7 @@
#include <inttypes.h>
#include <stdlib.h>
#include <stdio.h>
+#include <string.h>
#include <rtems/rtl/rtl.h>
#include "rtl-error.h"
diff --git a/cpukit/libdl/rtl-unresolved.c b/cpukit/libdl/rtl-unresolved.c
index 4deb1a3..0bcc5f9 100644
--- a/cpukit/libdl/rtl-unresolved.c
+++ b/cpukit/libdl/rtl-unresolved.c
@@ -21,6 +21,7 @@
#include <inttypes.h>
#include <stdlib.h>
#include <stdio.h>
+#include <string.h>
#include <rtems/rtl/rtl.h>
#include "rtl-error.h"
diff --git a/cpukit/libfs/src/imfs/imfs_linfile.c b/cpukit/libfs/src/imfs/imfs_linfile.c
index 57e106d..80a77c3 100644
--- a/cpukit/libfs/src/imfs/imfs_linfile.c
+++ b/cpukit/libfs/src/imfs/imfs_linfile.c
@@ -17,6 +17,8 @@
#include "config.h"
#endif
+#include <string.h>
+
#include "imfs.h"
static ssize_t IMFS_linfile_read(
diff --git a/cpukit/libmisc/dummy/default-configuration.c b/cpukit/libmisc/dummy/default-configuration.c
index 5b6da04..414e92b 100644
--- a/cpukit/libmisc/dummy/default-configuration.c
+++ b/cpukit/libmisc/dummy/default-configuration.c
@@ -14,6 +14,7 @@
#endif
#include <stdlib.h>
+#include <string.h>
#include <rtems.h>
diff --git a/cpukit/libmisc/redirector/stdio-redirect.c b/cpukit/libmisc/redirector/stdio-redirect.c
index 6895055..5911a0b 100644
--- a/cpukit/libmisc/redirector/stdio-redirect.c
+++ b/cpukit/libmisc/redirector/stdio-redirect.c
@@ -14,6 +14,7 @@
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <strings.h>
#include <sys/types.h>
#include <unistd.h>
diff --git a/cpukit/libmisc/rtems-fdt/rtems-fdt-shell.c b/cpukit/libmisc/rtems-fdt/rtems-fdt-shell.c
index 9412b37..f2c4c10 100644
--- a/cpukit/libmisc/rtems-fdt/rtems-fdt-shell.c
+++ b/cpukit/libmisc/rtems-fdt/rtems-fdt-shell.c
@@ -19,6 +19,7 @@
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <time.h>
#include <unistd.h>
diff --git a/cpukit/libmisc/shell/main_md5.c b/cpukit/libmisc/shell/main_md5.c
index ab1b11e..772e0b9 100644
--- a/cpukit/libmisc/shell/main_md5.c
+++ b/cpukit/libmisc/shell/main_md5.c
@@ -14,6 +14,7 @@
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <sys/types.h>
#include <unistd.h>
diff --git a/cpukit/libmisc/shell/main_rtrace.c b/cpukit/libmisc/shell/main_rtrace.c
index f1b8a59..753ab9d 100644
--- a/cpukit/libmisc/shell/main_rtrace.c
+++ b/cpukit/libmisc/shell/main_rtrace.c
@@ -12,6 +12,7 @@
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <sys/types.h>
#include <time.h>
#include <unistd.h>
diff --git a/cpukit/libmisc/untar/untar_tgz.c b/cpukit/libmisc/untar/untar_tgz.c
index 63ab5d3..2afcc7f 100644
--- a/cpukit/libmisc/untar/untar_tgz.c
+++ b/cpukit/libmisc/untar/untar_tgz.c
@@ -16,6 +16,8 @@
#include "config.h"
#endif
+#include <string.h>
+
#include <rtems/untar.h>
int Untar_GzChunkContext_Init(
diff --git a/cpukit/libpci/pci_cfg_print_code.c b/cpukit/libpci/pci_cfg_print_code.c
index 1d1d9c4..a921f00 100644
--- a/cpukit/libpci/pci_cfg_print_code.c
+++ b/cpukit/libpci/pci_cfg_print_code.c
@@ -10,6 +10,7 @@
#include <rtems.h>
#include <stdio.h>
+#include <string.h>
#include <pci/cfg.h>
int pci_cfg_print_bus(struct pci_bus *bus);
diff --git a/cpukit/librpc/src/rpc/get_myaddress.c b/cpukit/librpc/src/rpc/get_myaddress.c
index a70c383..2dae64c 100644
--- a/cpukit/librpc/src/rpc/get_myaddress.c
+++ b/cpukit/librpc/src/rpc/get_myaddress.c
@@ -50,6 +50,7 @@ static char *rcsid = "$FreeBSD: src/lib/libc/rpc/get_myaddress.c,v 1.17 2000/01/
#include <sys/socket.h>
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <unistd.h>
#include <net/if.h>
#include <sys/ioctl.h>
diff --git a/cpukit/posix/src/mmap.c b/cpukit/posix/src/mmap.c
index 8f47d3b..b5af180 100644
--- a/cpukit/posix/src/mmap.c
+++ b/cpukit/posix/src/mmap.c
@@ -19,6 +19,7 @@
#include <rtems.h>
#include <errno.h>
#include <stdlib.h>
+#include <string.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <unistd.h>
diff --git a/cpukit/posix/src/shmheap.c b/cpukit/posix/src/shmheap.c
index b36fc28..6e8e53d 100644
--- a/cpukit/posix/src/shmheap.c
+++ b/cpukit/posix/src/shmheap.c
@@ -16,6 +16,7 @@
#include <errno.h>
#include <stdlib.h>
+#include <string.h>
#include <rtems/posix/shmimpl.h>
int _POSIX_Shm_Object_create_from_heap(
diff --git a/cpukit/posix/src/shmwkspace.c b/cpukit/posix/src/shmwkspace.c
index cfe4d01..94456e2 100644
--- a/cpukit/posix/src/shmwkspace.c
+++ b/cpukit/posix/src/shmwkspace.c
@@ -15,6 +15,7 @@
#endif
#include <errno.h>
+#include <string.h>
#include <rtems/score/wkspace.h>
#include <rtems/posix/shmimpl.h>
diff --git a/cpukit/score/src/threadq.c b/cpukit/score/src/threadq.c
index 850ec6f..8991a3a 100644
--- a/cpukit/score/src/threadq.c
+++ b/cpukit/score/src/threadq.c
@@ -18,6 +18,8 @@
#include "config.h"
#endif
+#include <string.h>
+
#include <rtems/score/threadqimpl.h>
#include <rtems/score/rbtreeimpl.h>
#include <rtems/score/threadimpl.h>
More information about the vc
mailing list