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

Pengxiang Huang via libc-commits libc-commits at lists.llvm.org
Sun Feb 22 13:36:34 PST 2026


================
@@ -0,0 +1,24 @@
+//===-- Definition of macros from sys/ipc.h -------------------------------===//
+//
+// 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_MACROS_LINUX_SYS_IPC_MACROS_H
+#define LLVM_LIBC_MACROS_LINUX_SYS_IPC_MACROS_H
+
+#define IPC_PRIVATE 0
+
+// Resource get request flags.
+#define IPC_CREAT 00001000
----------------
Pengxiang-Huang wrote:

I copied what linux defined this in their src code, but yes, 01000 should be cleaner.

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


More information about the libc-commits mailing list