Skip to content

Commit 46b5eb3

Browse files
committed
remove _getpid_r()
1 parent 19ef112 commit 46b5eb3

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

components/libc/compilers/newlib/syscalls.c

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,6 @@ _fstat_r(struct _reent *ptr, int fd, struct stat *pstat)
7979
return -1;
8080
}
8181

82-
int
83-
_getpid_r(struct _reent *ptr)
84-
{
85-
return 0;
86-
}
87-
8882
int
8983
_isatty_r(struct _reent *ptr, int fd)
9084
{
@@ -335,7 +329,10 @@ int flock(int fd, int operation)
335329
}
336330

337331
/*
338-
These functions will be implemented and replaced by the 'common/time.c' file
332+
These functions are implemented and replaced by the 'common/time.c' file
339333
int _gettimeofday_r(struct _reent *ptr, struct timeval *__tp, void *__tzp);
340334
_CLOCK_T_ _times_r(struct _reent *ptr, struct tms *ptms);
335+
336+
These functions are implemented and replaced by the "common/unistd.c" file
337+
int _getpid_r(struct _reent *ptr);
341338
*/

0 commit comments

Comments
 (0)