[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:51 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
----------------
vonosmas wrote:

Nit: Any reason you need more leading zeroes are not `01000`, `02000`, `04000` ?

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


More information about the libc-commits mailing list