change dfs_stat/dfs_statfs to _stat/_statfs.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@822 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
bernard.xiong
2010-08-03 08:47:09 +00:00
parent 7f5d09c929
commit 8772a35e3b
10 changed files with 48 additions and 62 deletions

View File

@@ -111,7 +111,7 @@
#define DEVICE_FORMAT 2
#define DEVICE_CLEAN_SECTOR 3
struct dfs_stat
struct _stat
{
rt_device_t st_dev;
rt_uint16_t st_mode;
@@ -120,7 +120,7 @@ struct dfs_stat
rt_uint32_t st_blksize;
};
struct dfs_statfs
struct _statfs
{
rt_size_t f_bsize; /* block size */
rt_size_t f_blocks; /* total data blocks in file system */
@@ -153,13 +153,12 @@ struct dfs_fd
#define DFS_DT_REG 0x01
#define DFS_DT_DIR 0x02
struct dfs_dirent
struct _dirent
{
rt_uint8_t d_type; /* The type of the file */
rt_uint8_t d_namlen; /* The length of the not including the terminating null file name */
rt_uint16_t d_reclen; /* length of this record */
char d_name[DFS_PATH_MAX]; /* The null-terminated file name */
};
#define dirent dfs_dirent
#endif