mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-04 09:14:21 +03:00
9396108034
It's a lot crappier than I remembered it. It's gonna need a lot of work.
28 lines
849 B
C++
28 lines
849 B
C++
#pragma once
|
|
|
|
#define DO_SYSCALL_A0(function) Syscall::invoke((DWORD)(function))
|
|
#define DO_SYSCALL_A1(function, arg1) Syscall::invoke((DWORD)(function), (DWORD)(arg1))
|
|
#define DO_SYSCALL_A2(function, arg1, arg2) Syscall::invoke((DWORD)(function), (DWORD)(arg1), (DWORD)(arg2))
|
|
#define DO_SYSCALL_A3(function, arg1, arg2, arg3) Syscall::invoke((DWORD)(function), (DWORD)(arg1), (DWORD)(arg2), (DWORD)arg3)
|
|
|
|
namespace Syscall {
|
|
|
|
enum Function {
|
|
Sleep = 0x1982,
|
|
Yield = 0x1983,
|
|
PosixOpen = 0x1985,
|
|
PosixClose = 0x1986,
|
|
PosixRead = 0x1987,
|
|
PosixSeek = 0x1988,
|
|
PosixKill = 0x1989,
|
|
PosixGetuid = 0x1990,
|
|
};
|
|
|
|
void initialize();
|
|
DWORD invoke(DWORD function);
|
|
DWORD invoke(DWORD function, DWORD arg1);
|
|
DWORD invoke(DWORD function, DWORD arg1, DWORD arg2);
|
|
DWORD invoke(DWORD function, DWORD arg1, DWORD arg2, DWORD arg3);
|
|
|
|
}
|