PatchworkOS
19e446b
A non-POSIX operating system.
Theme:
Default
Round
Robot
Loading...
Searching...
No Matches
getpid.c
Go to the documentation of this file.
1
#include <
stdio.h
>
2
#include <
sys/fs.h
>
3
4
#include "
user/common/syscalls.h
"
5
6
pid_t
getpid
(
void
)
7
{
8
return
_syscall_getpid
();
9
}
getpid
pid_t getpid(void)
System call to retrieve the current pid.
Definition
getpid.c:6
pid_t
__UINT64_TYPE__ pid_t
Process Identifier.
Definition
pid_t.h:11
fs.h
stdio.h
syscalls.h
_syscall_getpid
static pid_t _syscall_getpid(void)
Definition
syscalls.h:112
src
libstd
user
functions
proc
getpid.c
Generated on Sat Jan 24 2026 10:59:25 for PatchworkOS by
1.9.8