[libc-commits] [libc] [libc] provide binary compatibility with syscall symbol (PR #117229)

Michael Jones via libc-commits libc-commits at lists.llvm.org
Thu Nov 21 13:04:37 PST 2024


michaelrj-google wrote:

I'm not sure why this is necessary. We already have an implementation of `syscall`: https://github.com/llvm/llvm-project/blob/main/libc/src/unistd/linux/syscall.cpp

It's got a different name that's translated through a macro in the `unistd` header: https://github.com/llvm/llvm-project/blob/main/libc/include/llvm-libc-macros/linux/unistd-macros.h#L52
This means we don't need to worry about it being variadic, it always takes 6 arguments, with the rest filled in by the macro.

https://github.com/llvm/llvm-project/pull/117229


More information about the libc-commits mailing list