Add 'getppid()' to glibc to grub the ppid out of __procinfo (XCC)
authorDan Cross <crossd@gmail.com>
Wed, 5 Oct 2016 16:44:23 +0000 (12:44 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Wed, 5 Oct 2016 18:28:29 +0000 (14:28 -0400)
commit6c83d1ab49073e08d240d91140e114af96260d53
treeb64328ec0982f5ebe714c264db8e2cad2bc87c8b
parentab829d5d79144ac50b6f0274a8a3348ce5c2425f
Add 'getppid()' to glibc to grub the ppid out of __procinfo (XCC)

Add the `getppid()` function to glibc to retrieve a process's
parent process ID.  See POSIX:
http://pubs.opengroup.org/onlinepubs/009695399/functions/getppid.html

Rebuild and reinstall glibc.

Change-Id: I116129292da56bfd53cc2e6a23d9c9bb7c6246d1
Signed-off-by: Dan Cross <crossd@gmail.com>
[checkpatch/format]
Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
tools/compilers/gcc-glibc/glibc-2.19-akaros/sysdeps/akaros/getppid.c [new file with mode: 0644]