mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-15 20:35:26 +08:00
Include missing <string.h>
This commit is contained in:
@@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#include <rtems.h>
|
#include <rtems.h>
|
||||||
|
|
||||||
|
|||||||
@@ -18,6 +18,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
|
||||||
|
|||||||
@@ -58,6 +58,7 @@
|
|||||||
#include <sys/fcntl.h>
|
#include <sys/fcntl.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -24,6 +24,7 @@
|
|||||||
|
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#include <rtems.h>
|
#include <rtems.h>
|
||||||
#include <rtems/bdbuf.h>
|
#include <rtems/bdbuf.h>
|
||||||
|
|||||||
@@ -29,6 +29,7 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
void rtems_blkstats(FILE *output, const char *device, bool reset)
|
void rtems_blkstats(FILE *output, const char *device, bool reset)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -26,6 +26,8 @@
|
|||||||
#include <rtems/blkdev.h>
|
#include <rtems/blkdev.h>
|
||||||
#include <rtems/bdbuf.h>
|
#include <rtems/bdbuf.h>
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
rtems_status_code rtems_disk_init_phys(
|
rtems_status_code rtems_disk_init_phys(
|
||||||
rtems_disk_device *dd,
|
rtems_disk_device *dd,
|
||||||
uint32_t block_size,
|
uint32_t block_size,
|
||||||
|
|||||||
@@ -16,6 +16,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#include <rtems.h>
|
#include <rtems.h>
|
||||||
|
|||||||
@@ -21,6 +21,7 @@
|
|||||||
#if defined(RTEMS_NEWLIB) && !defined(HAVE_CALLOC)
|
#if defined(RTEMS_NEWLIB) && !defined(HAVE_CALLOC)
|
||||||
#include "malloc_p.h"
|
#include "malloc_p.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
void *calloc(
|
void *calloc(
|
||||||
size_t nelem,
|
size_t nelem,
|
||||||
|
|||||||
@@ -23,6 +23,7 @@
|
|||||||
#include "malloc_p.h"
|
#include "malloc_p.h"
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
void rtems_malloc_dirty_memory(
|
void rtems_malloc_dirty_memory(
|
||||||
void *start,
|
void *start,
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
#include <sys/reent.h>
|
#include <sys/reent.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
static void rtems_malloc_statistics_initialize( void )
|
static void rtems_malloc_statistics_initialize( void )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -25,6 +25,7 @@
|
|||||||
|
|
||||||
#include <sys/reent.h>
|
#include <sys/reent.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#include <rtems/libcsupport.h>
|
#include <rtems/libcsupport.h>
|
||||||
#include <rtems/score/wkspace.h>
|
#include <rtems/score/wkspace.h>
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
#include "malloc_p.h"
|
#include "malloc_p.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
void *realloc(
|
void *realloc(
|
||||||
void *ptr,
|
void *ptr,
|
||||||
|
|||||||
@@ -25,6 +25,8 @@
|
|||||||
|
|
||||||
#include <rtems/libio_.h>
|
#include <rtems/libio_.h>
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
static size_t get_parentpathlen(const char *path, size_t pathlen)
|
static size_t get_parentpathlen(const char *path, size_t pathlen)
|
||||||
{
|
{
|
||||||
while (pathlen > 0) {
|
while (pathlen > 0) {
|
||||||
|
|||||||
@@ -23,6 +23,8 @@
|
|||||||
|
|
||||||
#include "imfs.h"
|
#include "imfs.h"
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
static bool IMFS_eval_is_directory(
|
static bool IMFS_eval_is_directory(
|
||||||
rtems_filesystem_eval_path_context_t *ctx,
|
rtems_filesystem_eval_path_context_t *ctx,
|
||||||
void *arg
|
void *arg
|
||||||
|
|||||||
@@ -21,6 +21,7 @@
|
|||||||
#include "imfs.h"
|
#include "imfs.h"
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* IMFS_determine_bytes_per_block
|
* IMFS_determine_bytes_per_block
|
||||||
|
|||||||
@@ -25,6 +25,8 @@
|
|||||||
|
|
||||||
#include "imfs.h"
|
#include "imfs.h"
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
IMFS_jnode_t *IMFS_node_initialize_generic(
|
IMFS_jnode_t *IMFS_node_initialize_generic(
|
||||||
IMFS_jnode_t *node,
|
IMFS_jnode_t *node,
|
||||||
const IMFS_types_union *info
|
const IMFS_types_union *info
|
||||||
|
|||||||
@@ -20,6 +20,8 @@
|
|||||||
|
|
||||||
#include "imfs.h"
|
#include "imfs.h"
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
int IMFS_rename(
|
int IMFS_rename(
|
||||||
const rtems_filesystem_location_info_t *oldparentloc,
|
const rtems_filesystem_location_info_t *oldparentloc,
|
||||||
const rtems_filesystem_location_info_t *oldloc,
|
const rtems_filesystem_location_info_t *oldloc,
|
||||||
|
|||||||
@@ -21,6 +21,7 @@
|
|||||||
#include "imfs.h"
|
#include "imfs.h"
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
int IMFS_symlink(
|
int IMFS_symlink(
|
||||||
const rtems_filesystem_location_info_t *parentloc,
|
const rtems_filesystem_location_info_t *parentloc,
|
||||||
|
|||||||
@@ -24,6 +24,7 @@
|
|||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#include <rtems.h>
|
#include <rtems.h>
|
||||||
#include <rtems/libio_.h>
|
#include <rtems/libio_.h>
|
||||||
|
|||||||
@@ -18,6 +18,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <rtems/libio_.h>
|
#include <rtems/libio_.h>
|
||||||
#include <rtems/seterr.h>
|
#include <rtems/seterr.h>
|
||||||
|
|||||||
@@ -37,6 +37,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#include <rtems/rfs/rtems-rfs-block.h>
|
#include <rtems/rfs/rtems-rfs-block.h>
|
||||||
#include <rtems/rfs/rtems-rfs-data.h>
|
#include <rtems/rfs/rtems-rfs-data.h>
|
||||||
|
|||||||
@@ -21,6 +21,7 @@
|
|||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#include <rtems/rfs/rtems-rfs-buffer.h>
|
#include <rtems/rfs/rtems-rfs-buffer.h>
|
||||||
#include <rtems/rfs/rtems-rfs-file-system.h>
|
#include <rtems/rfs/rtems-rfs-file-system.h>
|
||||||
|
|||||||
@@ -28,6 +28,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#if SIZEOF_OFF_T == 8
|
#if SIZEOF_OFF_T == 8
|
||||||
#define PRIooff_t PRIo64
|
#define PRIooff_t PRIo64
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#include <rtems/rfs/rtems-rfs-data.h>
|
#include <rtems/rfs/rtems-rfs-data.h>
|
||||||
#include <rtems/rfs/rtems-rfs-file-system.h>
|
#include <rtems/rfs/rtems-rfs-file-system.h>
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#include <rtems/rfs/rtems-rfs-block-pos.h>
|
#include <rtems/rfs/rtems-rfs-block-pos.h>
|
||||||
#include <rtems/rfs/rtems-rfs-file.h>
|
#include <rtems/rfs/rtems-rfs-file.h>
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#include <rtems/rfs/rtems-rfs-file-system.h>
|
#include <rtems/rfs/rtems-rfs-file-system.h>
|
||||||
#include <rtems/rfs/rtems-rfs-group.h>
|
#include <rtems/rfs/rtems-rfs-group.h>
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#include <rtems/rfs/rtems-rfs-block.h>
|
#include <rtems/rfs/rtems-rfs-block.h>
|
||||||
#include <rtems/rfs/rtems-rfs-file-system.h>
|
#include <rtems/rfs/rtems-rfs-file-system.h>
|
||||||
|
|||||||
@@ -21,6 +21,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#include <rtems/rfs/rtems-rfs-block.h>
|
#include <rtems/rfs/rtems-rfs-block.h>
|
||||||
#include <rtems/rfs/rtems-rfs-buffer.h>
|
#include <rtems/rfs/rtems-rfs-buffer.h>
|
||||||
|
|||||||
@@ -21,6 +21,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#if SIZEOF_OFF_T == 8
|
#if SIZEOF_OFF_T == 8
|
||||||
#define PRIdoff_t PRId64
|
#define PRIdoff_t PRId64
|
||||||
|
|||||||
@@ -21,6 +21,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#if SIZEOF_MODE_T == 8
|
#if SIZEOF_MODE_T == 8
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <rtems.h>
|
#include <rtems.h>
|
||||||
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|||||||
@@ -29,6 +29,7 @@
|
|||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <pwd.h>
|
#include <pwd.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#include <rtems/shell.h>
|
#include <rtems/shell.h>
|
||||||
#include <rtems/userenv.h>
|
#include <rtems/userenv.h>
|
||||||
|
|||||||
@@ -19,6 +19,8 @@
|
|||||||
#include <rtems/blkdev.h>
|
#include <rtems/blkdev.h>
|
||||||
#include <rtems/shellconfig.h>
|
#include <rtems/shellconfig.h>
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
static bool is_reset_option(const char *opt)
|
static bool is_reset_option(const char *opt)
|
||||||
{
|
{
|
||||||
return strcmp(opt, "-r") == 0 || strcmp(opt, "--reset") == 0;
|
return strcmp(opt, "-r") == 0 || strcmp(opt, "--reset") == 0;
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#include <rtems.h>
|
#include <rtems.h>
|
||||||
#include <rtems/cpuuse.h>
|
#include <rtems/cpuuse.h>
|
||||||
|
|||||||
@@ -21,6 +21,7 @@
|
|||||||
|
|
||||||
#define __need_getopt_newlib
|
#define __need_getopt_newlib
|
||||||
#include <getopt.h>
|
#include <getopt.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
static const char suffixes[] =
|
static const char suffixes[] =
|
||||||
{ 'B', 'K', 'M', 'G', 'T' };
|
{ 'B', 'K', 'M', 'G', 'T' };
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#include <rtems.h>
|
#include <rtems.h>
|
||||||
#include <rtems/malloc.h>
|
#include <rtems/malloc.h>
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
#define __need_getopt_newlib
|
#define __need_getopt_newlib
|
||||||
#include <getopt.h>
|
#include <getopt.h>
|
||||||
|
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#include <rtems.h>
|
#include <rtems.h>
|
||||||
#include <rtems/shell.h>
|
#include <rtems/shell.h>
|
||||||
|
|||||||
@@ -69,9 +69,9 @@
|
|||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#ifndef __rtems__
|
#ifndef __rtems__
|
||||||
#include <pwd.h>
|
#include <pwd.h>
|
||||||
#include <string.h>
|
|
||||||
#include <crypt.h>
|
#include <crypt.h>
|
||||||
#endif
|
#endif
|
||||||
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#define REENTRANT
|
#define REENTRANT
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
#include <setjmp.h>
|
#include <setjmp.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#include <rtems.h>
|
#include <rtems.h>
|
||||||
|
|||||||
@@ -13,6 +13,7 @@
|
|||||||
#define BDBUF_TESTS_H
|
#define BDBUF_TESTS_H
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <rtems/diskdevs.h>
|
#include <rtems/diskdevs.h>
|
||||||
#include <rtems/bdbuf.h>
|
#include <rtems/bdbuf.h>
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
#include <netinet/tcp.h>
|
#include <netinet/tcp.h>
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#include "test-http-client.h"
|
#include "test-http-client.h"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user