revert between 56095 -> 55830 in arch
[AROS.git] / workbench / network / stacks / AROSTCP / netlib / getppid.c
blobc1f025fd11111120aaae675cc20cd806658027ef
1 #define AROS_MORPHOS_COMPATIBLE
3 #include <exec/tasks.h>
4 #include <sys/types.h>
5 #include <proto/exec.h>
7 pid_t
8 getppid(void)
10 struct Task *ThisTask;
12 ThisTask = FindTask(NULL);
13 return (pid_t)ThisTask->tc_ETask->Parent;