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

implement getuid and getpid

上级 c21f018b
......@@ -73,4 +73,7 @@ char * ttyname (int desc);
unsigned int sleep(unsigned int seconds);
int usleep(useconds_t usec);
uid_t getuid(void);
pid_t getpid(void);
#endif /* _SYS_UNISTD_H */
......@@ -49,3 +49,15 @@ int usleep(useconds_t usec)
return 0;
}
RTM_EXPORT(usleep);
uid_t getuid(void)
{
return -1;
}
RTM_EXPORT(getuid);
pid_t getpid(void)
{
return -1;
}
RTM_EXPORT(getuid);
......@@ -47,4 +47,7 @@ char * ttyname (int desc);
unsigned int sleep(unsigned int seconds);
int usleep(useconds_t usec);
uid_t getuid(void);
pid_t getpid(void);
#endif /* _SYS_UNISTD_H */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册