4a701b3f826e56036698bc4b38c06eca0ce119ba
[reactos.git] / posix / lib / psxdll / unistd / getpid.c
1 /* $Id: getpid.c,v 1.2 2002/02/20 09:17:58 hyperion Exp $
2 */
3 /*
4 * COPYRIGHT: See COPYING in the top level directory
5 * PROJECT: ReactOS POSIX+ Subsystem
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