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

#include <reent.h>

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