• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /**
2  * This file has no copyright assigned and is placed in the Public Domain.
3  * This file is part of the mingw-w64 runtime package.
4  * No warranty is given; refer to the file DISCLAIMER.PD within this package.
5  */
6 
7 #include <process.h>
8 #include <windows.h>
9 
_getpid(void)10 int __cdecl _getpid(void) {
11   return GetCurrentProcessId();
12 }
13 
getpid(void)14 int __cdecl getpid(void) {
15   return _getpid();
16 }
17 
18 int (__cdecl *__MINGW_IMP_SYMBOL(_getpid))(void) = _getpid;
19