now introducing the POSIX+ client DLL! (my first check-in, hope I don't f*** up somet...
[reactos.git] / posix / lib / psxdll / unistd / getpid.c
1 /* $Id:
2 */
3 /*
4 * COPYRIGHT: See COPYING in the top level directory
5 * PROJECT: ReactOS system libraries
6 * FILE: subsys/psx/lib/psxdll/unistd/getpid.c
7 * PURPOSE: Get the process ID
8 * PROGRAMMER: KJK::Hyperion <noog@libero.it>
9 * UPDATE HISTORY:
10 * 15/02/2002: Created
11 */
12
13 #include <ddk/ntddk.h>
14 #include <sys/types.h>
15 #include <unistd.h>
16
17 pid_t getpid(void)
18 {
19 return ((pid_t)NtCurrentTeb()->Cid.UniqueThread);
20 }
21
22 /* EOF */
23