mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-19 23:53:20 +00:00
20 lines
396 B
C++
20 lines
396 B
C++
![]() |
#include <Kernel/Syscall.h>
|
||
|
#include <errno.h>
|
||
|
#include <serenity.h>
|
||
|
|
||
|
extern "C" {
|
||
|
|
||
|
int module_load(const char* path, size_t path_length)
|
||
|
{
|
||
|
int rc = syscall(SC_module_load, path, path_length);
|
||
|
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||
|
}
|
||
|
|
||
|
int module_unload(const char* name, size_t name_length)
|
||
|
{
|
||
|
int rc = syscall(SC_module_unload, name, name_length);
|
||
|
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||
|
}
|
||
|
|
||
|
}
|