From c99ca774a1fc441cf4f24a48a565ccd564d55cf0 Mon Sep 17 00:00:00 2001 From: "qiuyiuestc@gmail.com" Date: Mon, 16 May 2011 00:29:28 +0000 Subject: Modify the link mode, compile each component to static library first and then link them git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1405 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- components/dfs/include/dfs_posix.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'components/dfs') diff --git a/components/dfs/include/dfs_posix.h b/components/dfs/include/dfs_posix.h index 1a8e179cbe..ad4d3fc167 100644 --- a/components/dfs/include/dfs_posix.h +++ b/components/dfs/include/dfs_posix.h @@ -10,7 +10,8 @@ * Change Logs: * Date Author Notes * 2009-05-27 Yi.qiu The first version. - * 2010-07-18 Bernard add stat and statfs structure definitions. + * 2010-07-18 Bernard add stat and statfs structure definitions. + * 2011-05-16 Yi.qiu Change parameter name of rename, "new" is C++ key word. */ #ifndef __DFS_POSIX_H__ #define __DFS_POSIX_H__ @@ -100,7 +101,7 @@ int close(int d); int read(int fd, void *buf, size_t len); int write(int fd, const void *buf, size_t len); off_t lseek(int fd, off_t offset, int whence); -int rename(const char* old, const char* new ); +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); -- cgit v1.3.1