|
@@ -110,11 +110,7 @@ RTM_EXPORT(close);
|
|
* @return the actual read data buffer length. If the returned value is 0, it
|
|
* @return the actual read data buffer length. If the returned value is 0, it
|
|
* may be reach the end of file, please check errno.
|
|
* may be reach the end of file, please check errno.
|
|
*/
|
|
*/
|
|
-#if defined(RT_USING_NEWLIB) && defined(_EXFUN)
|
|
|
|
-_READ_WRITE_RETURN_TYPE _EXFUN(read, (int fd, void *buf, size_t len))
|
|
|
|
-#else
|
|
|
|
-int read(int fd, void *buf, size_t len)
|
|
|
|
-#endif
|
|
|
|
|
|
+ssize_t read(int fd, void *buf, size_t len)
|
|
{
|
|
{
|
|
int result;
|
|
int result;
|
|
struct dfs_fd *d;
|
|
struct dfs_fd *d;
|
|
@@ -154,11 +150,7 @@ RTM_EXPORT(read);
|
|
*
|
|
*
|
|
* @return the actual written data buffer length.
|
|
* @return the actual written data buffer length.
|
|
*/
|
|
*/
|
|
-#if defined(RT_USING_NEWLIB) && defined(_EXFUN)
|
|
|
|
-_READ_WRITE_RETURN_TYPE _EXFUN(write, (int fd, const void *buf, size_t len))
|
|
|
|
-#else
|
|
|
|
-int write(int fd, const void *buf, size_t len)
|
|
|
|
-#endif
|
|
|
|
|
|
+ssize_t write(int fd, const void *buf, size_t len)
|
|
{
|
|
{
|
|
int result;
|
|
int result;
|
|
struct dfs_fd *d;
|
|
struct dfs_fd *d;
|