summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/__getpid.c
blob: 96e1a3f813b1e6a28319bb91afd677c9b7582793 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/**
 *  @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();
}