Include missing <string.h>

This commit is contained in:
Sebastian Huber
2013-07-23 13:32:58 +02:00
parent 562815cf0b
commit 7660e8b347
44 changed files with 50 additions and 2 deletions

View File

@@ -11,6 +11,7 @@
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <rtems.h>

View File

@@ -18,6 +18,7 @@
*/
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <inttypes.h>

View File

@@ -58,6 +58,7 @@
#include <sys/fcntl.h>
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <inttypes.h>

View File

@@ -24,6 +24,7 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
#include <rtems.h>
#include <rtems/bdbuf.h>

View File

@@ -29,6 +29,7 @@
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
void rtems_blkstats(FILE *output, const char *device, bool reset)
{

View File

@@ -26,6 +26,8 @@
#include <rtems/blkdev.h>
#include <rtems/bdbuf.h>
#include <string.h>
rtems_status_code rtems_disk_init_phys(
rtems_disk_device *dd,
uint32_t block_size,

View File

@@ -16,6 +16,7 @@
#endif
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <rtems.h>

View File

@@ -21,6 +21,7 @@
#if defined(RTEMS_NEWLIB) && !defined(HAVE_CALLOC)
#include "malloc_p.h"
#include <stdlib.h>
#include <string.h>
void *calloc(
size_t nelem,

View File

@@ -23,6 +23,7 @@
#include "malloc_p.h"
#include <errno.h>
#include <string.h>
void rtems_malloc_dirty_memory(
void *start,

View File

@@ -23,7 +23,7 @@
#include <sys/reent.h>
#include <stdlib.h>
#include <string.h>
static void rtems_malloc_statistics_initialize( void )
{

View File

@@ -25,6 +25,7 @@
#include <sys/reent.h>
#include <stdlib.h>
#include <string.h>
#include <rtems/libcsupport.h>
#include <rtems/score/wkspace.h>

View File

@@ -22,6 +22,7 @@
#include "malloc_p.h"
#include <stdlib.h>
#include <errno.h>
#include <string.h>
void *realloc(
void *ptr,

View File

@@ -25,6 +25,8 @@
#include <rtems/libio_.h>
#include <string.h>
static size_t get_parentpathlen(const char *path, size_t pathlen)
{
while (pathlen > 0) {

View File

@@ -23,6 +23,8 @@
#include "imfs.h"
#include <string.h>
static bool IMFS_eval_is_directory(
rtems_filesystem_eval_path_context_t *ctx,
void *arg

View File

@@ -21,6 +21,7 @@
#include "imfs.h"
#include <stdlib.h>
#include <string.h>
/*
* IMFS_determine_bytes_per_block

View File

@@ -25,6 +25,8 @@
#include "imfs.h"
#include <string.h>
IMFS_jnode_t *IMFS_node_initialize_generic(
IMFS_jnode_t *node,
const IMFS_types_union *info

View File

@@ -20,6 +20,8 @@
#include "imfs.h"
#include <string.h>
int IMFS_rename(
const rtems_filesystem_location_info_t *oldparentloc,
const rtems_filesystem_location_info_t *oldloc,

View File

@@ -21,6 +21,7 @@
#include "imfs.h"
#include <stdlib.h>
#include <string.h>
int IMFS_symlink(
const rtems_filesystem_location_info_t *parentloc,

View File

@@ -24,6 +24,7 @@
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <rtems.h>
#include <rtems/libio_.h>

View File

@@ -18,6 +18,7 @@
#endif
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
#include <rtems/libio_.h>
#include <rtems/seterr.h>

View File

@@ -37,6 +37,7 @@
#endif
#include <inttypes.h>
#include <string.h>
#include <rtems/rfs/rtems-rfs-block.h>
#include <rtems/rfs/rtems-rfs-data.h>

View File

@@ -21,6 +21,7 @@
#include <inttypes.h>
#include <errno.h>
#include <fcntl.h>
#include <string.h>
#include <rtems/rfs/rtems-rfs-buffer.h>
#include <rtems/rfs/rtems-rfs-file-system.h>

View File

@@ -28,6 +28,7 @@
#endif
#include <inttypes.h>
#include <string.h>
#if SIZEOF_OFF_T == 8
#define PRIooff_t PRIo64

View File

@@ -19,6 +19,7 @@
#endif
#include <inttypes.h>
#include <string.h>
#include <rtems/rfs/rtems-rfs-data.h>
#include <rtems/rfs/rtems-rfs-file-system.h>

View File

@@ -20,6 +20,7 @@
#endif
#include <inttypes.h>
#include <string.h>
#include <rtems/rfs/rtems-rfs-block-pos.h>
#include <rtems/rfs/rtems-rfs-file.h>

View File

@@ -19,6 +19,7 @@
#include "config.h"
#endif
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <inttypes.h>

View File

@@ -22,6 +22,7 @@
#endif
#include <inttypes.h>
#include <string.h>
#include <rtems/rfs/rtems-rfs-file-system.h>
#include <rtems/rfs/rtems-rfs-group.h>

View File

@@ -20,6 +20,7 @@
#endif
#include <inttypes.h>
#include <string.h>
#include <rtems/rfs/rtems-rfs-block.h>
#include <rtems/rfs/rtems-rfs-file-system.h>

View File

@@ -21,6 +21,7 @@
#endif
#include <inttypes.h>
#include <string.h>
#include <rtems/rfs/rtems-rfs-block.h>
#include <rtems/rfs/rtems-rfs-buffer.h>

View File

@@ -21,6 +21,7 @@
#endif
#include <inttypes.h>
#include <string.h>
#if SIZEOF_OFF_T == 8
#define PRIdoff_t PRId64

View File

@@ -21,6 +21,7 @@
#endif
#include <inttypes.h>
#include <string.h>
#include <stdlib.h>
#if SIZEOF_MODE_T == 8

View File

@@ -12,6 +12,7 @@
#endif
#include <rtems.h>
#include <string.h>
#include <stdio.h>
#include <ctype.h>
#include <errno.h>

View File

@@ -29,6 +29,7 @@
#include <sys/types.h>
#include <unistd.h>
#include <pwd.h>
#include <string.h>
#include <rtems/shell.h>
#include <rtems/userenv.h>

View File

@@ -19,6 +19,8 @@
#include <rtems/blkdev.h>
#include <rtems/shellconfig.h>
#include <string.h>
static bool is_reset_option(const char *opt)
{
return strcmp(opt, "-r") == 0 || strcmp(opt, "--reset") == 0;

View File

@@ -14,6 +14,7 @@
#endif
#include <stdio.h>
#include <string.h>
#include <rtems.h>
#include <rtems/cpuuse.h>

View File

@@ -21,6 +21,7 @@
#define __need_getopt_newlib
#include <getopt.h>
#include <string.h>
static const char suffixes[] =
{ 'B', 'K', 'M', 'G', 'T' };

View File

@@ -14,6 +14,7 @@
#endif
#include <inttypes.h>
#include <string.h>
#include <rtems.h>
#include <rtems/malloc.h>

View File

@@ -14,6 +14,7 @@
#endif
#include <stdio.h>
#include <string.h>
#define __need_getopt_newlib
#include <getopt.h>

View File

@@ -14,6 +14,7 @@
#endif
#include <stdio.h>
#include <string.h>
#include <rtems.h>
#include <rtems/shell.h>

View File

@@ -69,9 +69,9 @@
#include <netinet/in.h>
#ifndef __rtems__
#include <pwd.h>
#include <string.h>
#include <crypt.h>
#endif
#include <string.h>
#include <stdlib.h>
#define REENTRANT

View File

@@ -20,6 +20,7 @@
#include <setjmp.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <inttypes.h>

View File

@@ -14,6 +14,7 @@
#endif
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <rtems.h>

View File

@@ -13,6 +13,7 @@
#define BDBUF_TESTS_H
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <rtems/diskdevs.h>
#include <rtems/bdbuf.h>

View File

@@ -19,6 +19,7 @@
#include <netinet/tcp.h>
#include <netdb.h>
#include <unistd.h>
#include <string.h>
#include "test-http-client.h"