mirror of
https://github.com/reactos/reactos.git
synced 2024-09-20 01:31:34 +00:00
24 lines
460 B
C
24 lines
460 B
C
|
/* $Id:
|
||
|
*/
|
||
|
/*
|
||
|
* COPYRIGHT: See COPYING in the top level directory
|
||
|
* PROJECT: ReactOS system libraries
|
||
|
* FILE: subsys/psx/lib/psxdll/unistd/getpid.c
|
||
|
* PURPOSE: Get the process ID
|
||
|
* PROGRAMMER: KJK::Hyperion <noog@libero.it>
|
||
|
* UPDATE HISTORY:
|
||
|
* 15/02/2002: Created
|
||
|
*/
|
||
|
|
||
|
#include <ddk/ntddk.h>
|
||
|
#include <sys/types.h>
|
||
|
#include <unistd.h>
|
||
|
|
||
|
pid_t getpid(void)
|
||
|
{
|
||
|
return ((pid_t)NtCurrentTeb()->Cid.UniqueThread);
|
||
|
}
|
||
|
|
||
|
/* EOF */
|
||
|
|