mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-25 16:57:20 +00:00
implement getuid and getpid
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user