repo.or.cz
/
AROS.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
revert between 56095 -> 55830 in arch
[AROS.git]
/
workbench
/
network
/
stacks
/
AROSTCP
/
netlib
/
getppid.c
blob
c1f025fd11111120aaae675cc20cd806658027ef
1
#define AROS_MORPHOS_COMPATIBLE
2
3
#include <exec/tasks.h>
4
#include <sys/types.h>
5
#include <proto/exec.h>
6
7
pid_t
8
getppid
(
void
)
9
{
10
struct
Task
*
ThisTask
;
11
12
ThisTask
=
FindTask
(
NULL
);
13
return
(
pid_t
)
ThisTask
->
tc_ETask
->
Parent
;
14
}
15