[libcxx-commits] [libcxx] [libc++] use copy_file_range for fs::copy (PR #109211)

Jannik Glückert via libcxx-commits libcxx-commits at lists.llvm.org
Thu Dec 5 10:59:50 PST 2024


================
@@ -0,0 +1,52 @@
+//===----------------------------------------------------------------------===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+
+// UNSUPPORTED: c++03, c++11, c++14
+// REQUIRES: linux
----------------
Jannik2099 wrote:

This test is for zero-length files in `/proc` specifically.

FreeBSD deprecated procfs a long while ago, and I don't know if it has any "virtual zero-length but not actually empty" files like linux does.

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


More information about the libcxx-commits mailing list