mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-08-06 15:15:15 +08:00
fix(newlib): Fixed invalid function descriptions
Merges https://github.com/espressif/ESP8266_RTOS_SDK/pull/196
This commit is contained in:
@ -40,12 +40,12 @@ int _open_r(struct _reent *r, const char *filename, int flags, int mode)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int _read_r(struct _reent *r, int fd, void *buf, int len)
|
_ssize_t _read_r(struct _reent *r, int fd, void *buf, size_t len)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int _write_r(struct _reent *r, int fd, void *buf, int len)
|
_ssize_t _write_r(struct _reent *r, int fd, void *buf, size_t len)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
const char *cbuf = buf;
|
const char *cbuf = buf;
|
||||||
@ -83,9 +83,9 @@ int _fstat_r(struct _reent *r, int fd, struct stat *s)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void _sbrk_r(void *ptr, int incr)
|
void *_sbrk_r(struct _reent *r, ptrdiff_t incr)
|
||||||
{
|
{
|
||||||
return ;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void *_malloc_r(struct _reent *r, size_t n)
|
void *_malloc_r(struct _reent *r, size_t n)
|
||||||
|
Reference in New Issue
Block a user