Skip to content
Snippets Groups Projects
Unverified Commit ce37449d authored by danpetry's avatar danpetry Committed by GitHub
Browse files

Merge pull request #9090 from jcarrano/newlib-missing-functions

 sys/newlib: Bugfix, add missing syscalls (only stubs)
parents d140aa1c cce83b44
No related branches found
No related tags found
No related merge requests found
...@@ -47,6 +47,8 @@ ...@@ -47,6 +47,8 @@
#include "uart_stdio.h" #include "uart_stdio.h"
#include <sys/times.h>
#ifdef MODULE_XTIMER #ifdef MODULE_XTIMER
#include <sys/time.h> #include <sys/time.h>
#include "div.h" #include "div.h"
...@@ -463,6 +465,23 @@ int _unlink_r(struct _reent *r, const char *path) ...@@ -463,6 +465,23 @@ int _unlink_r(struct _reent *r, const char *path)
} }
#endif /* MODULE_VFS */ #endif /* MODULE_VFS */
/**
* Create a hard link (not implemented).
*
* @todo Not implemented.
*
* @return -1. Sets errno to ENOSYS.
*/
int _link_r(struct _reent *ptr, const char *old_name, const char *new_name)
{
(void)old_name;
(void)new_name;
ptr->_errno = ENOSYS;
return -1;
}
/** /**
* @brief Query whether output stream is a terminal * @brief Query whether output stream is a terminal
* *
...@@ -518,3 +537,18 @@ int _gettimeofday_r(struct _reent *r, struct timeval *restrict tp, void *restric ...@@ -518,3 +537,18 @@ int _gettimeofday_r(struct _reent *r, struct timeval *restrict tp, void *restric
return -1; return -1;
} }
#endif #endif
/**
* Current process times (not implemented).
*
* @param[out] ptms Not modified.
*
* @return -1, this function always fails. errno is set to ENOSYS.
*/
clock_t _times_r(struct _reent *ptr, struct tms *ptms)
{
(void)ptms;
ptr->_errno = ENOSYS;
return (-1);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment