Files
rtems/cpukit/libcsupport/src/__getpid.c
2013-09-22 10:07:20 -05:00

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();
}