[libc-commits] [libc] [libc][i386] syscall support (PR #114264)

Nick Desaulniers via libc-commits libc-commits at lists.llvm.org
Thu Oct 31 10:49:20 PDT 2024


================
@@ -0,0 +1,87 @@
+//===---------- inline implementation of i386 syscalls ------------* C++ *-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_LIBC_SRC___SUPPORT_OSUTIL_LINUX_I386_SYSCALL_H
+#define LLVM_LIBC_SRC___SUPPORT_OSUTIL_LINUX_I386_SYSCALL_H
+
+#include "src/__support/common.h"
+
+namespace LIBC_NAMESPACE_DECL {
----------------
nickdesaulniers wrote:

done in 79305a00dd919acf89c5f48b23b95a34bee28735

That reminds me, we could use IWYU to help straighten out our internal includes.  IWYU can be taught codespace specific includes for specific symbols, which is what we had to do to use it for the Linux kernel.  That's neither here nor there for this PR, but perhaps something worth investigating in the future.

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


More information about the libc-commits mailing list