summaryrefslogtreecommitdiff
path: root/newlib/libc/syscalls/sysgetpid.c
blob: d7f75064da1a8723a640b399aa72ce230f27a2cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* connector for getpid */

#include <reent.h>

int
getpid ()
{
#ifdef REENTRANT_SYSCALLS_PROVIDED
  return _getpid_r (_REENT);
#else
  return _getpid ();
#endif
}