diff options
| author | Meco Man <[email protected]> | 2021-02-22 16:30:10 +0800 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2021-02-22 16:30:10 +0800 |
| commit | 46b5eb378f6ea55963f5795762f2b7e5c97626f1 (patch) | |
| tree | 46bd5e8916afcf6d0a1ec86d6a436179b464ad67 /components/libc | |
| parent | 19ef11201620038724b9ce0c464f63713134fc2b (diff) | |
remove _getpid_r()
Diffstat (limited to 'components/libc')
| -rw-r--r-- | components/libc/compilers/newlib/syscalls.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/components/libc/compilers/newlib/syscalls.c b/components/libc/compilers/newlib/syscalls.c index d751ab17b8..3eabad9b55 100644 --- a/components/libc/compilers/newlib/syscalls.c +++ b/components/libc/compilers/newlib/syscalls.c @@ -80,12 +80,6 @@ _fstat_r(struct _reent *ptr, int fd, struct stat *pstat) } int -_getpid_r(struct _reent *ptr) -{ - return 0; -} - -int _isatty_r(struct _reent *ptr, int fd) { if (fd >=0 && fd < 3) @@ -335,7 +329,10 @@ int flock(int fd, int operation) } /* -These functions will be 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); _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); */ |
