1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 11:47:46 +00:00

LibC: Implement serenity_open

This syscall is very much similar to open(2), with the difference of
accepting a string and a length, instead of requiring a null-terminated
string. This way, if the string passed is not null-terminated, we can
still perform the syscall.
This commit is contained in:
sin-ack 2021-09-10 22:45:28 +00:00 committed by Ali Mohammad Pur
parent c710d52afa
commit 59eb2d5de4
2 changed files with 27 additions and 0 deletions

View file

@ -60,4 +60,6 @@ uint16_t internet_checksum(const void* ptr, size_t count);
int emuctl(uintptr_t command, uintptr_t arg0, uintptr_t arg1);
int serenity_open(char const* path, size_t path_length, int options, ...);
__END_DECLS