[libc-commits] [libc] [libc] Implement fcntl when only SYS_fcntl64 is available (PR #97740)

via libc-commits libc-commits at lists.llvm.org
Thu Jul 4 09:17:53 PDT 2024


================
@@ -19,6 +19,14 @@
 #include <stdarg.h>
 #include <sys/syscall.h> // For syscall numbers.
 
+#if SYS_fcntl
+constexpr auto FCNTL_SYSCALL_ID = SYS_fcntl;
----------------
lntue wrote:

Can you put `FCNTL_SYSCALL_ID` into an anonymous namespace to keep it local.

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


More information about the libc-commits mailing list