mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #5214 from gebart/pr/newlib-prototype-fixes
sys/newlib: Fix function definitions to match newlib prototypes
This commit is contained in:
commit
d699ff1e5e
@ -22,6 +22,8 @@
|
||||
* @}
|
||||
*/
|
||||
|
||||
#include <unistd.h>
|
||||
#include <reent.h>
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
@ -158,9 +160,10 @@ int _kill_r(struct _reent *r, pid_t pid, int sig)
|
||||
*
|
||||
* @return TODO
|
||||
*/
|
||||
int _open_r(struct _reent *r, const char *name, int mode)
|
||||
int _open_r(struct _reent *r, const char *name, int flags, int mode)
|
||||
{
|
||||
(void) name;
|
||||
(void) flags;
|
||||
(void) mode;
|
||||
r->_errno = ENODEV; /* not implemented yet */
|
||||
return -1;
|
||||
@ -272,7 +275,7 @@ int _fstat_r(struct _reent *r, int fd, struct stat *st)
|
||||
*
|
||||
* @return TODO
|
||||
*/
|
||||
int _stat_r(struct _reent *r, char *name, struct stat *st)
|
||||
int _stat_r(struct _reent *r, const char *name, struct stat *st)
|
||||
{
|
||||
(void) name;
|
||||
(void) st;
|
||||
@ -307,7 +310,7 @@ int _isatty_r(struct _reent *r, int fd)
|
||||
*
|
||||
* @return TODO
|
||||
*/
|
||||
int _unlink_r(struct _reent *r, char *path)
|
||||
int _unlink_r(struct _reent *r, const char *path)
|
||||
{
|
||||
(void) path;
|
||||
r->_errno = ENODEV; /* not implemented yet */
|
||||
|
Loading…
Reference in New Issue
Block a user