[libc-commits] [libc] [libc] remove #include <fcntl.h> and add proxy or type (PR #113836)

via libc-commits libc-commits at lists.llvm.org
Sun Oct 27 21:29:15 PDT 2024


================
@@ -0,0 +1,39 @@
+//===-- Including fcntl.h in overlay mode ---------------------------------===//
+//
+// 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_HDR_FCNTL_OVERLAY_H
+#define LLVM_LIBC_HDR_FCNTL_OVERLAY_H
+
+#ifdef LIBC_FULL_BUILD
+#error "This header should only be included in overlay mode"
+#endif
+
+// Overlay mode
+
+// glibc <stdio.h> header might provide extern inline definitions for few
----------------
lntue wrote:

Nit: update comments: `<fcntl.h>` instead of `<stdio.h>`, and no `__USE_EXTERN_INLINES` part.

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


More information about the libc-commits mailing list