[rtlibc] remove libc_dirent.h

This commit is contained in:
Meco Man
2021-08-30 22:27:09 -04:00
parent 14d0001c2b
commit aab382c32e
5 changed files with 24 additions and 48 deletions

View File

@@ -16,10 +16,13 @@
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <rtthread.h>
#include <sys/time.h>
#include <rtdevice.h>
#ifdef __cplusplus
extern "C" {
#endif
#ifndef DFS_FILESYSTEMS_MAX
#define DFS_FILESYSTEMS_MAX 2
#endif
@@ -63,9 +66,7 @@
#define DFS_F_EOF 0x04000000
#define DFS_F_ERR 0x08000000
#ifdef __cplusplus
extern "C" {
#endif
#include <dirent.h>
struct statfs
{
@@ -74,14 +75,6 @@ struct statfs
size_t f_bfree; /* free blocks in file system */
};
struct dirent
{
uint8_t d_type; /* The type of the file */
uint8_t d_namlen; /* The length of the not including the terminating null file name */
uint16_t d_reclen; /* length of this record */
char d_name[DFS_PATH_MAX]; /* The null-terminated file name */
};
struct dfs_fdtable
{
uint32_t maxfd;

View File

@@ -21,14 +21,6 @@
extern "C" {
#endif
typedef struct
{
int fd; /* directory file */
char buf[512];
int num;
int cur;
} DIR;
/* directory api*/
int mkdir(const char *path, mode_t mode);
DIR *opendir(const char *name);