[libc-commits] [libc] [libc][sys/shm] Implement shmctl and add remaining constants. (PR #239839)
Jeff Bailey via libc-commits
libc-commits at lists.llvm.org
Mon Nov 9 06:51:08 PST 2026
================
@@ -0,0 +1,38 @@
+//===----------------------------------------------------------------------===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+///
+/// \file
+/// Definition of struct shmid_ds.
+///
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_LIBC_TYPES_STRUCT_SHMID_DS_H
+#define LLVM_LIBC_TYPES_STRUCT_SHMID_DS_H
+
+#include "pid_t.h"
+#include "shmatt_t.h"
+#include "size_t.h"
+#include "struct_ipc_perm.h"
+#include "time_t.h"
+
+struct shmid_ds {
----------------
kaladron wrote:
I would feel better if the whole struct were ifdef Linux. https://pubs.opengroup.org/onlinepubs/007904875/basedefs/sys/shm.h.html says that the struct should contain these members, but doesn't mention ordering or anything. That way someone doing a bring up could hit an #error telling them to define this for their platform rather than it possibly being subtly wrong.
https://github.com/llvm/llvm-project/pull/239839
More information about the libc-commits
mailing list