mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-21 02:06:14 +08:00
[标准化libc] fix CI warning
This commit is contained in:
@@ -110,11 +110,7 @@ RTM_EXPORT(close);
|
||||
* @return the actual read data buffer length. If the returned value is 0, it
|
||||
* 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;
|
||||
struct dfs_fd *d;
|
||||
@@ -154,11 +150,7 @@ RTM_EXPORT(read);
|
||||
*
|
||||
* @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;
|
||||
struct dfs_fd *d;
|
||||
|
||||
Reference in New Issue
Block a user