提交 29411bca 编写于 作者: R Roamboy

IAR编译器dlib __close,__lseek hanle传入正确值

上级 f6586111
......@@ -36,7 +36,7 @@ int __close(int handle)
return _LLIO_ERROR;
#ifdef RT_USING_DFS
return close(handle);
return close(handle - _LLIO_STDERR - 1);
#else
return 0;
#endif
......
......@@ -36,7 +36,7 @@ long __lseek(int handle, long offset, int whence)
return _LLIO_ERROR;
#ifdef RT_USING_DFS
return lseek(handle, offset, whence);
return lseek(handle - _LLIO_STDERR - 1, offset, whence);
#else
return _LLIO_ERROR;
#endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册