Skip to content

liblibc should let you set errno #17714

Closed
@ben0x539

Description

@ben0x539

std::os::errno() doesn't come with a ::set_errno() variant, but this seems like fairly important functionality for interacting with C code.

There's https://github.com/bnoordhuis/rust-errno/blob/master/errno.rs, but not shipping with support for this is sort of a curious omission that belies Rust's appropriateness for slotting into C systems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions