diff options
| author | bernard.xiong <[email protected]> | 2010-02-10 05:03:36 +0000 |
|---|---|---|
| committer | bernard.xiong <[email protected]> | 2010-02-10 05:03:36 +0000 |
| commit | e29be4a90bd05e250362b81ea2695d29043e65e0 (patch) | |
| tree | 7baa1faf8355ce07523350f1db89c4443b025d48 /examples/file/readwrite.c | |
| parent | 49e317efc1ca5d1488486c394c518aaba30f3995 (diff) | |
add some file test template.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@398 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'examples/file/readwrite.c')
| -rw-r--r-- | examples/file/readwrite.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/examples/file/readwrite.c b/examples/file/readwrite.c new file mode 100644 index 0000000000..b4086cf056 --- /dev/null +++ b/examples/file/readwrite.c @@ -0,0 +1,34 @@ +/*
+ * File : readwrite.c
+ * This file is part of RT-TestCase in RT-Thread RTOS
+ * COPYRIGHT (C) 2010, 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
+ * 2010-02-10 Bernard first version
+ */
+#include <rtthread.h>
+#include <dfs_posix.h>
+
+/* �ļ���д���� */
+void readwrite(const char* filename)
+{
+ int fd;
+
+ /* ֻд�� */
+
+ /* ֻд����ĩβ���Ӵ� */
+
+ /* ֻ����������У�� */
+
+ /* lseek���ԣ�������У������ */
+}
+
+#ifdef RT_USING_FINSH
+#include <finsh.h>
+FINSH_FUNCTION_EXPORT(readwrite, perform file read and write test);
+#endif
|
