mirror of https://github.com/RT-Thread/rt-thread
优化dfs.h和dirent.h的包含关系
This commit is contained in:
parent
aab382c32e
commit
dd9db58a86
|
@ -15,7 +15,7 @@
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <dirent.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <rtdevice.h>
|
#include <rtdevice.h>
|
||||||
|
|
||||||
|
@ -24,11 +24,11 @@ extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef DFS_FILESYSTEMS_MAX
|
#ifndef DFS_FILESYSTEMS_MAX
|
||||||
#define DFS_FILESYSTEMS_MAX 2
|
#define DFS_FILESYSTEMS_MAX 4
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef DFS_FD_MAX
|
#ifndef DFS_FD_MAX
|
||||||
#define DFS_FD_MAX 4
|
#define DFS_FD_MAX 16
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -39,7 +39,7 @@ extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef DFS_PATH_MAX
|
#ifndef DFS_PATH_MAX
|
||||||
#define DFS_PATH_MAX 256
|
#define DFS_PATH_MAX DIRENT_NAME_MAX
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef SECTOR_SIZE
|
#ifndef SECTOR_SIZE
|
||||||
|
@ -66,8 +66,6 @@ extern "C" {
|
||||||
#define DFS_F_EOF 0x04000000
|
#define DFS_F_EOF 0x04000000
|
||||||
#define DFS_F_ERR 0x08000000
|
#define DFS_F_ERR 0x08000000
|
||||||
|
|
||||||
#include <dirent.h>
|
|
||||||
|
|
||||||
struct statfs
|
struct statfs
|
||||||
{
|
{
|
||||||
size_t f_bsize; /* block size */
|
size_t f_bsize; /* block size */
|
||||||
|
|
|
@ -44,11 +44,7 @@ typedef struct
|
||||||
#ifndef HAVE_DIRENT_STRUCTURE
|
#ifndef HAVE_DIRENT_STRUCTURE
|
||||||
#define HAVE_DIRENT_STRUCTURE
|
#define HAVE_DIRENT_STRUCTURE
|
||||||
|
|
||||||
#ifdef DFS_PATH_MAX
|
|
||||||
#define DIRENT_NAME_MAX DFS_PATH_MAX
|
|
||||||
#else
|
|
||||||
#define DIRENT_NAME_MAX 256
|
#define DIRENT_NAME_MAX 256
|
||||||
#endif
|
|
||||||
|
|
||||||
struct dirent
|
struct dirent
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue