[libc-commits] [libc] [libc] Add `shm_open/shm_unlink` (PR #84974)
Nick Desaulniers via libc-commits
libc-commits at lists.llvm.org
Tue Mar 12 13:35:29 PDT 2024
================
@@ -0,0 +1,20 @@
+//===-- Implementation header for shm_open function -------------*- 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_MMAN_SHM_OPEN_H
+#define LLVM_LIBC_SRC_SYS_MMAN_SHM_OPEN_H
+
+#include <fcntl.h> // For mode_t.
----------------
nickdesaulniers wrote:
please add mode_t to include/llvm-libc-macros/linux/fcntl-macros.h then use that.
https://github.com/llvm/llvm-project/pull/84974
More information about the libc-commits
mailing list