[libc-commits] [libc] [libc][sys] add header and functions for sys ipc (PR #182700)

Alexey Samsonov via libc-commits libc-commits at lists.llvm.org
Sun Feb 22 10:43:54 PST 2026


================
@@ -0,0 +1,22 @@
+//===-- Implementation header for ftok ---------------------------*- 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_SYS_IPC_FTOK_H
+#define LLVM_LIBC_SRC_SYS_IPC_FTOK_H
+
+#include "src/__support/macros/config.h"
+#include <sys/ipc.h>
----------------
vonosmas wrote:

We shouldn't be including system headers. In this case, you'd probably need to declare a proxy header in `hdr/` to get the `key_t` type definition.

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


More information about the libc-commits mailing list