mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
Make syscall invocations look pleasant.
Old: Syscall::invoke(Syscall::SC_foo, (dword)arg1, (dword)arg2) New: syscall(SC_foo, arg1, arg2)
This commit is contained in:
parent
36bd53b36a
commit
3a0a8848fb
Notes:
sideshowbarker
2024-07-19 16:07:42 +09:00
Author: https://github.com/awesomekling
Commit: 3a0a8848fb
13 changed files with 75 additions and 72 deletions
|
@ -6,12 +6,12 @@ extern "C" {
|
|||
|
||||
mode_t umask(mode_t mask)
|
||||
{
|
||||
return Syscall::invoke(Syscall::SC_umask, (dword)mask);
|
||||
return syscall(SC_umask, mask);
|
||||
}
|
||||
|
||||
int mkdir(const char* pathname, mode_t mode)
|
||||
{
|
||||
int rc = Syscall::invoke(Syscall::SC_mkdir, (dword)pathname, (dword)mode);
|
||||
int rc = syscall(SC_mkdir, pathname, mode);
|
||||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue