[libc-commits] [libc] [libc] Add `shm_open/shm_unlink` (PR #84974)
Schrodinger ZHU Yifan via libc-commits
libc-commits at lists.llvm.org
Tue Mar 12 17:30:24 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.
----------------
SchrodingerZhu wrote:
Sorry for this error inclusion. Since I have added `mode_t` to `<sys/mman.h>`, I should have used that header.
https://github.com/llvm/llvm-project/pull/84974
More information about the libc-commits
mailing list