提交 69dc37e1 编写于 作者: mysterywolf's avatar mysterywolf

update

上级 46b5eb37
...@@ -50,7 +50,13 @@ int usleep(useconds_t usec) ...@@ -50,7 +50,13 @@ int usleep(useconds_t usec)
} }
RTM_EXPORT(usleep); RTM_EXPORT(usleep);
pid_t getpid(void) pid_t
#if defined (RT_USING_NEWLIB)
__rt_libc_getpid
#else
getpid
#endif
(void)
{ {
/*TODO*/ /*TODO*/
return 0; return 0;
......
...@@ -35,6 +35,13 @@ __errno () ...@@ -35,6 +35,13 @@ __errno ()
} }
#endif #endif
int
_getpid_r(struct _reent *ptr)
{
extern pid_t __rt_libc_getpid(void);
return __rt_libc_getpid();
}
int int
_close_r(struct _reent *ptr, int fd) _close_r(struct _reent *ptr, int fd)
{ {
...@@ -332,7 +339,4 @@ int flock(int fd, int operation) ...@@ -332,7 +339,4 @@ int flock(int fd, int operation)
These functions are implemented and replaced by the 'common/time.c' file These functions are implemented and replaced by the 'common/time.c' file
int _gettimeofday_r(struct _reent *ptr, struct timeval *__tp, void *__tzp); int _gettimeofday_r(struct _reent *ptr, struct timeval *__tp, void *__tzp);
_CLOCK_T_ _times_r(struct _reent *ptr, struct tms *ptms); _CLOCK_T_ _times_r(struct _reent *ptr, struct tms *ptms);
These functions are implemented and replaced by the "common/unistd.c" file
int _getpid_r(struct _reent *ptr);
*/ */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册