Skip to content

std::fs::copy() documentation doesn't mention sendfile(2) or splice(2) #155968

@tomilepp

Description

@tomilepp

Location (URL)

https://doc.rust-lang.org/std/fs/fn.copy.html

Summary

In std::fs::copy() documentation is no mention of sendfile(2) or splice(2) . In std::io:copy has mention of those, and fs::copy() uses io::copy().

Entry from io::copy():

Platform-specific behavior

On Linux (including Android), this function uses copy_file_range(2), sendfile(2) or splice(2) syscalls to move data directly between file descriptors if possible.

Entry in fs::copy():

On Linux (including Android), this function attempts to use copy_file_range(2), and falls back to reading and writing if that is not possible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsneeds-triageThis issue may need triage. Remove it if it has been sufficiently triaged.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions