4 ms·
I think the title would benefit from mentioning that this is for cosmopolitan libc. I was expecting this to be about syscall portability in general.
by ericpruitt 4y ago
I think the title would benefit from mentioning that this is for cosmopolitan libc. I was expecting this to be about syscall portability in general.
- dvratil 4y agoSyscalls are provided by the operating system, it doesn't matter which C library you use. The C library usually just provides a nice API to call the syscall. And it it doesn't, you can still call it directly via syscall(1).
- baq 4y ago...unless the system libc is the syscall interface...
- kentonv 4y agoYes but that's not what this table is describing. The table appears to be describing cosmopolitan libc's wrappers. Certainly most of these syscalls do not exist on Windows, so the "Windows" column couldn't possibly be describing raw syscalls.
- deleted 4y ago[deleted]