Meco Man 4 年之前
父節點
當前提交
19c8cab8bd
共有 2 個文件被更改,包括 2 次插入9 次删除
  1. 1 7
      components/libc/compilers/common/unistd.c
  2. 1 2
      components/libc/compilers/newlib/syscalls.c

+ 1 - 7
components/libc/compilers/common/unistd.c

@@ -50,13 +50,7 @@ int usleep(useconds_t usec)
 }
 RTM_EXPORT(usleep);
 
-pid_t
-#if defined (RT_USING_NEWLIB)
-__rt_libc_getpid
-#else
-getpid
-#endif
-(void)
+pid_t getpid(void)
 {
     /*TODO*/
     return 0;

+ 1 - 2
components/libc/compilers/newlib/syscalls.c

@@ -38,8 +38,7 @@ __errno ()
 int
 _getpid_r(struct _reent *ptr)
 {
-    extern pid_t __rt_libc_getpid(void);
-    return __rt_libc_getpid();
+    return 0;
 }
 
 int