rt-thread/examples/file/readwrite.c

35 lines
776 B
C
Raw Normal View History

/*
* 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>
/* <20>ļ<EFBFBD><C4BC><EFBFBD>д<EFBFBD><D0B4><EFBFBD><EFBFBD> */
void readwrite(const char* filename)
{
int fd;
/* ֻд<D6BB><D0B4><EFBFBD><EFBFBD> */
/* ֻд<D6BB><D0B4><EFBFBD><EFBFBD>ĩβ<C4A9><CEB2><EFBFBD>Ӵ<EFBFBD><D3B4><EFBFBD> */
/* ֻ<><D6BB><EFBFBD>򿪽<EFBFBD><F2BFAABD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>У<EFBFBD><D0A3> */
/* lseek<65><6B><EFBFBD>ԣ<EFBFBD><D4A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>У<EFBFBD><D0A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
}
#ifdef RT_USING_FINSH
#include <finsh.h>
FINSH_FUNCTION_EXPORT(readwrite, perform file read and write test);
#endif