readwrite.c 776 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * File : readwrite.c
  3. * This file is part of RT-TestCase in RT-Thread RTOS
  4. * COPYRIGHT (C) 2010, RT-Thread Development Team
  5. *
  6. * The license and distribution terms for this file may be
  7. * found in the file LICENSE in this distribution or at
  8. * http://www.rt-thread.org/license/LICENSE
  9. *
  10. * Change Logs:
  11. * Date Author Notes
  12. * 2010-02-10 Bernard first version
  13. */
  14. #include <rtthread.h>
  15. #include <dfs_posix.h>
  16. /* 文件读写测试 */
  17. void readwrite(const char* filename)
  18. {
  19. int fd;
  20. /* 只写打开 */
  21. /* 只写并在末尾添加打开 */
  22. /* 只读打开进行数据校验 */
  23. /* lseek测试,读出并校验数据 */
  24. }
  25. #ifdef RT_USING_FINSH
  26. #include <finsh.h>
  27. FINSH_FUNCTION_EXPORT(readwrite, perform file read and write test);
  28. #endif