[libcxx-commits] [libcxx] [libc++] use copy_file_range for fs::copy (PR #109211)
Yi Kong via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Jan 6 22:47:45 PST 2025
Jannik =?utf-8?q?Glückert?= <jannik.glueckert at gmail.com>,Louis Dionne
<ldionne.2 at gmail.com>,Louis Dionne <ldionne.2 at gmail.com>,Louis Dionne
<ldionne.2 at gmail.com>,
Jannik =?utf-8?q?Glückert?= <jannik.glueckert at gmail.com>,
Jannik =?utf-8?q?Glückert?= <jannik.glueckert at gmail.com>,
Jannik =?utf-8?q?Glückert?= <jannik.glueckert at gmail.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/109211 at github.com>
kongy wrote:
`copy_file_range` was introduced in glibc 2.27. This change breaks environments with older glibc than that.
```
libcxx/src/filesystem/operations.cpp:246:18: error: no member named 'copy_file_range' in the global namespace
246 | if ((res = ::copy_file_range(read_fd.fd, &off_in, write_fd.fd, &off_out, count, 0)) == -1) {
| ~~^
1 error generated.
```
https://github.com/llvm/llvm-project/pull/109211
More information about the libcxx-commits
mailing list