[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
Fri Feb 27 13:02:28 PST 2026


================
@@ -0,0 +1,34 @@
+//===-- Definition of struct ipc_perm -------------------------------------===//
+//
+// 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_TYPES_STRUCT_IPC_PERM_H
+#define LLVM_LIBC_TYPES_STRUCT_IPC_PERM_H
+
+#include "gid_t.h"
+#include "key_t.h"
+#include "mode_t.h"
+#include "uid_t.h"
+
+#ifdef __linux__
+struct ipc_perm {
+  key_t __key;
+  uid_t uid;
+  gid_t gid;
+  uid_t cuid;
+  gid_t cgid;
+  mode_t mode;
+  unsigned short seq;
----------------
Pengxiang-Huang wrote:

Yes, thats correct. I added __ prefix to those variable names that are used for linux layout 

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


More information about the libc-commits mailing list