summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/__getpid.c
blob: e4e61a562450be5958170f193071bc6030c742e2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/**
 *  @file
 *
 *  @brief Get Process Id
 *  @ingroup libcsupport
 */

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