mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 03:55:24 +00:00
LibCore: Add System::getpid
This commit is contained in:
parent
94374f0d19
commit
212cea4535
Notes:
github-actions[bot]
2024-12-17 10:08:57 +00:00
Author: https://github.com/stasoid Commit: https://github.com/LadybirdBrowser/ladybird/commit/212cea4535d Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2921
3 changed files with 12 additions and 0 deletions
|
@ -999,4 +999,9 @@ ErrorOr<void> set_resource_limits(int resource, rlim_t limit)
|
|||
return {};
|
||||
}
|
||||
|
||||
int getpid()
|
||||
{
|
||||
return ::getpid();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -179,4 +179,6 @@ ErrorOr<rlimit> get_resource_limits(int resource);
|
|||
ErrorOr<void> set_resource_limits(int resource, rlim_t limit);
|
||||
#endif
|
||||
|
||||
int getpid();
|
||||
|
||||
}
|
||||
|
|
|
@ -184,4 +184,9 @@ ErrorOr<void> munmap(void* address, size_t size)
|
|||
return {};
|
||||
}
|
||||
|
||||
int getpid()
|
||||
{
|
||||
return GetCurrentProcessId();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue