/* $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 * UPDATE HISTORY: * 15/02/2002: Created */ #include #include #include pid_t getpid(void) { return ((pid_t)NtCurrentTeb()->Cid.UniqueThread); } /* EOF */