mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-08-27 21:54:16 +08:00
22 lines
287 B
C
22 lines
287 B
C
/**
|
|
* @file
|
|
*
|
|
* @brief Get Process Id
|
|
* @ingroup libcsupport
|
|
*/
|
|
|
|
#if HAVE_CONFIG_H
|
|
#include "config.h"
|
|
#endif
|
|
|
|
#include <unistd.h>
|
|
|
|
/**
|
|
* Some C Libraries reference this routine since they think getpid is
|
|
* a real system call.
|
|
*/
|
|
pid_t __getpid(void)
|
|
{
|
|
return getpid();
|
|
}
|