mirror of
https://github.com/drasko/codezero.git
synced 2026-01-12 02:43:15 +01:00
getpid() call
This commit is contained in:
10
tasks/libposix/getpid.c
Normal file
10
tasks/libposix/getpid.c
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
#include <l4lib/arch/syscalls.h>
|
||||
#include <l4lib/arch/syslib.h>
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
|
||||
pid_t getpid(void)
|
||||
{
|
||||
return self_tid();
|
||||
}
|
||||
Reference in New Issue
Block a user