[libc-commits] [libc] [llvm] [libc][freebsd] initialize freebsd support (PR #124459)

Minsoo Choo via libc-commits libc-commits at lists.llvm.org
Wed May 13 06:01:05 PDT 2026


================
@@ -0,0 +1,31 @@
+//===-- Implementation header for close -------------------------*- 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___SUPPORT_OSUTIL_FREEBSD_SYSCALL_WRAPPERS_CLOSE_H
+#define LLVM_LIBC_SRC___SUPPORT_OSUTIL_FREEBSD_SYSCALL_WRAPPERS_CLOSE_H
+
+#include "src/__support/OSUtil/freebsd/syscall.h" // syscall_impl
+#include "src/__support/common.h"
+#include "src/__support/error_or.h"
+#include "src/__support/macros/config.h"
+#include <sys/syscall.h> // For syscall numbers.
----------------
mchoo7 wrote:

Can we copy `<sys/syscall.h>` and periodically sync if that enables cross platform build? (e.g. buildling FreeBSD llvm-libc on macOS).

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


More information about the libc-commits mailing list