diff options
| author | dzzxzz <[email protected]> | 2011-12-23 02:11:55 +0000 |
|---|---|---|
| committer | dzzxzz <[email protected]> | 2011-12-23 02:11:55 +0000 |
| commit | 44a2d720a02775987dca11dc6aab74e55c355a59 (patch) | |
| tree | 821dc316fa822ed9a8c56a1513a4b1fd66c8e65b /components/dfs/include/dfs_file.h | |
| parent | 701df33436f2c88dc2c8b6912f377e978c6ab6d7 (diff) | |
unify the components/dfs coding style according to the /documentation/coding_style_cn.txt
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1866 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/dfs/include/dfs_file.h')
| -rw-r--r-- | components/dfs/include/dfs_file.h | 41 |
1 files changed, 20 insertions, 21 deletions
diff --git a/components/dfs/include/dfs_file.h b/components/dfs/include/dfs_file.h index 3cf6681924..ba5f348605 100644 --- a/components/dfs/include/dfs_file.h +++ b/components/dfs/include/dfs_file.h @@ -1,17 +1,16 @@ /* -+------------------------------------------------------------------------------ -| Project : Device Filesystem -+------------------------------------------------------------------------------ -| Copyright 2004, 2005 www.fayfayspace.org. -| All rights reserved. -|------------------------------------------------------------------------------ -| File : dfs_raw.h, the raw APIs of Device FileSystem -|------------------------------------------------------------------------------ -| Chang Logs: -| Date Author Notes -| 2005-01-26 ffxz The first version -+------------------------------------------------------------------------------ -*/ + * File : dfs_file.c + * This file is part of Device File System in RT-Thread RTOS + * COPYRIGHT (C) 2004-2011, RT-Thread Development Team + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rt-thread.org/license/LICENSE. + * + * Change Logs: + * Date Author Notes + * 2005-01-26 Bernard The first version. + */ #ifndef __DFS_RAW_H__ #define __DFS_RAW_H__ @@ -20,16 +19,16 @@ #include <dfs.h> #include <dfs_fs.h> -int dfs_file_open(struct dfs_fd* fd, const char *path, int flags); -int dfs_file_close(struct dfs_fd* fd); -int dfs_file_ioctl(struct dfs_fd* fd, int cmd, void *args); -int dfs_file_read(struct dfs_fd* fd, void *buf, rt_size_t len); -int dfs_file_getdents(struct dfs_fd* fd, struct dirent* dirp, rt_size_t nbytes); +int dfs_file_open(struct dfs_fd *fd, const char *path, int flags); +int dfs_file_close(struct dfs_fd *fd); +int dfs_file_ioctl(struct dfs_fd *fd, int cmd, void *args); +int dfs_file_read(struct dfs_fd *fd, void *buf, rt_size_t len); +int dfs_file_getdents(struct dfs_fd *fd, struct dirent *dirp, rt_size_t nbytes); int dfs_file_unlink(const char *path); -int dfs_file_write(struct dfs_fd* fd, const void *buf, rt_size_t len); -int dfs_file_lseek(struct dfs_fd* fd, rt_off_t offset); +int dfs_file_write(struct dfs_fd *fd, const void *buf, rt_size_t len); +int dfs_file_lseek(struct dfs_fd *fd, rt_off_t offset); int dfs_file_stat(const char *path, struct stat *buf); -int dfs_file_rename(const char* oldpath, const char* newpath); +int dfs_file_rename(const char *oldpath, const char *newpath); #endif |
