1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:18:12 +00:00

LibC+Userland: Add a proper syscall wrapper for purge()

This commit is contained in:
Andreas Kling 2020-01-02 13:37:02 +01:00
parent c01f766fb2
commit 907b090ddf
3 changed files with 17 additions and 4 deletions

View file

@ -47,4 +47,10 @@ int futex(int32_t* userspace_address, int futex_op, int32_t value, const struct
__RETURN_WITH_ERRNO(rc, rc, -1);
}
int purge(int mode)
{
int rc = syscall(SC_purge, mode);
__RETURN_WITH_ERRNO(rc, rc, -1);
}
}