mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-12 19:06:28 +08:00
Include missing <string.h>
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <rtems.h>
|
||||
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <inttypes.h>
|
||||
|
||||
|
||||
@@ -58,6 +58,7 @@
|
||||
#include <sys/fcntl.h>
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <inttypes.h>
|
||||
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/bdbuf.h>
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include <rtems.h>
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
#include "malloc_p.h"
|
||||
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
|
||||
void rtems_malloc_dirty_memory(
|
||||
void *start,
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
#include <sys/reent.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <string.h>
|
||||
|
||||
static void rtems_malloc_statistics_initialize( void )
|
||||
{
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
|
||||
#include <sys/reent.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <rtems/libcsupport.h>
|
||||
#include <rtems/score/wkspace.h>
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#include "malloc_p.h"
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
|
||||
void *realloc(
|
||||
void *ptr,
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
#include "imfs.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
/*
|
||||
* IMFS_determine_bytes_per_block
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
#include "imfs.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
int IMFS_symlink(
|
||||
const rtems_filesystem_location_info_t *parentloc,
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
|
||||
#include <errno.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/libio_.h>
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <fcntl.h>
|
||||
#include <rtems/libio_.h>
|
||||
#include <rtems/seterr.h>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
#endif
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <string.h>
|
||||
|
||||
#if SIZEOF_OFF_T == 8
|
||||
#define PRIooff_t PRIo64
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <inttypes.h>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
#endif
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <string.h>
|
||||
|
||||
#if SIZEOF_OFF_T == 8
|
||||
#define PRIdoff_t PRId64
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
#endif
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#if SIZEOF_MODE_T == 8
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#endif
|
||||
|
||||
#include <rtems.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <ctype.h>
|
||||
#include <errno.h>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/cpuuse.h>
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
|
||||
#define __need_getopt_newlib
|
||||
#include <getopt.h>
|
||||
#include <string.h>
|
||||
|
||||
static const char suffixes[] =
|
||||
{ 'B', 'K', 'M', 'G', 'T' };
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
#endif
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/malloc.h>
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#define __need_getopt_newlib
|
||||
#include <getopt.h>
|
||||
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <rtems.h>
|
||||
#include <rtems/shell.h>
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include <rtems.h>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
#include <netinet/tcp.h>
|
||||
#include <netdb.h>
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "test-http-client.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user