Restored work-around for hangs when trying to use disk-based handlers
[tangerine.git] / compiler / clib / getpid.c
blob7eae16f61050fd1aec7e177430dc0d17f63247e2
1 /*
2 Copyright © 1995-2002, The AROS Development Team. All rights reserved.
3 $Id$
5 POSIX function getpid().
6 */
8 #include <proto/exec.h>
10 /*****************************************************************************
12 NAME */
13 #include <sys/types.h>
14 #include <unistd.h>
16 pid_t getpid (
18 /* SYNOPSIS */
21 /* FUNCTION
22 Returns the process ID of the calling process
24 RESULT
25 The process ID of the calling process.
27 NOTES
29 EXAMPLE
31 BUGS
33 SEE ALSO
35 INTERNALS
37 ******************************************************************************/
39 return (pid_t)FindTask(NULL);
40 } /* getpid */