summaryrefslogtreecommitdiff
path: root/components/dfs/include
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2021-09-11 11:07:51 +0800
committerBernard Xiong <[email protected]>2021-09-11 11:07:51 +0800
commit8da9f78d7274f462852096ca2cae3d6e284fd51f (patch)
tree8670379786c53eda39610e0e3b03d5972bce0d10 /components/dfs/include
parent45440d2456e62bf223ff6df0bd8d9f92894f45b6 (diff)
[libc] remove rtlibc
Diffstat (limited to 'components/dfs/include')
-rw-r--r--components/dfs/include/dfs.h2
-rw-r--r--components/dfs/include/dfs_posix.h16
2 files changed, 4 insertions, 14 deletions
diff --git a/components/dfs/include/dfs.h b/components/dfs/include/dfs.h
index 0fd8c2dccc..9f112f9656 100644
--- a/components/dfs/include/dfs.h
+++ b/components/dfs/include/dfs.h
@@ -16,6 +16,8 @@
#include <stdlib.h>
#include <string.h>
#include <dirent.h>
+#include <fcntl.h>
+#include <sys/stat.h>
#include <sys/time.h>
#include <rtdevice.h>
diff --git a/components/dfs/include/dfs_posix.h b/components/dfs/include/dfs_posix.h
index ec7cdc9de4..98da0f854f 100644
--- a/components/dfs/include/dfs_posix.h
+++ b/components/dfs/include/dfs_posix.h
@@ -16,22 +16,15 @@
#define __DFS_POSIX_H__
#include <dfs_file.h>
+#include <sys/stat.h>
#ifdef __cplusplus
extern "C" {
#endif
-/* directory api*/
-int mkdir(const char *path, mode_t mode);
-DIR *opendir(const char *name);
-struct dirent *readdir(DIR *d);
-long telldir(DIR *d);
-void seekdir(DIR *d, off_t offset);
-void rewinddir(DIR *d);
-int closedir(DIR *d);
/* file api*/
-int open(const char *file, int flags, ...);
+
int close(int d);
#if defined(RT_USING_NEWLIB) && defined(_EXFUN)
@@ -45,11 +38,7 @@ int write(int fd, const void *buf, size_t len);
off_t lseek(int fd, off_t offset, int whence);
int rename(const char *from, const char *to);
int unlink(const char *pathname);
-int stat(const char *file, struct stat *buf);
-int fstat(int fildes, struct stat *buf);
int fsync(int fildes);
-int fcntl(int fildes, int cmd, ...);
-int ioctl(int fildes, int cmd, ...);
int ftruncate(int fd, off_t length);
/* directory api*/
@@ -62,7 +51,6 @@ int statfs(const char *path, struct statfs *buf);
int access(const char *path, int amode);
int pipe(int fildes[2]);
-int mkfifo(const char *path, mode_t mode);
#ifdef __cplusplus
}