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