4 ms·
> use syscalls directly(well, except on Windows, for obvious reasons) Not obvious to me. Please elucidate.
by derleth 15y ago
> use syscalls directly(well, except on Windows, for obvious reasons)
Not obvious to me. Please elucidate.
- koenigdavidmj 15y agoEven the Windows API `system calls', like CreateProcess, are just wrappers around NT system calls. There are other wrappers too, like the Subsystem for UNIX Applications (which implements a POSIX API on top of the same NT calls).
- wtracy 15y agoMicrosoft doesn't make the specs for the interface between the Windows kernel and the win32 libraries public.
- yuhong 15y agoNor it is been stable. Win8 for example changes this interface.
- xpaulbettsx 15y agoYou cannot call syscalls directly, as the syscall table is generated dynamically from the kernel source code on NT. The closest thing you can do is call the Nt* class of functions, which are often direct thunks to syscalls.