diff options
| author | [email protected] <[email protected]> | 2012-12-29 06:28:28 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2012-12-29 06:28:28 +0000 |
| commit | 58fc3334b0b1364e5b36ddd52d00c82e612b91bf (patch) | |
| tree | d7ea383d6b7e07621fd5c1d55f663c15bb00dfd2 /components/dfs/include | |
| parent | c0fadff0616172db954a5ed0639a94630d6b7a61 (diff) | |
add dfs_fd check code in dfs and fix a warning.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2547 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/dfs/include')
| -rw-r--r-- | components/dfs/include/dfs_def.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/components/dfs/include/dfs_def.h b/components/dfs/include/dfs_def.h index c90a9709aa..52560eae84 100644 --- a/components/dfs/include/dfs_def.h +++ b/components/dfs/include/dfs_def.h @@ -282,10 +282,12 @@ struct dirent #endif /* file descriptor */ +#define DFS_FD_MAGIC 0xfdfd struct dfs_fd { + rt_uint16_t magic; /* file descriptor magic number */ + rt_uint16_t type; /* Type (regular or socket) */ char *path; /* Name (below mount point) */ - int type; /* Type (regular or socket) */ int ref_count; /* Descriptor reference count */ struct dfs_filesystem *fs; /* Resident file system */ |
