Skip to content

Please add libc::RENAME_NOREPLACE on FreeBSD #5553

Description

@yurivict

FreeBSD 15+ has renameat2.

These values are supported:

     AT_RENAME_NOREPLACE  If the path specified by tofd and to exists, the
                          request fails with the error EEXIST.

     AT_RENAME_EXCHANGE   Atomically exchange the files pointed to by the from
                          and to names.

This one should also be added:
libc::SYS_renameat2

Activity

  1. tgross35 commented on Sep 21, 2026

    @tgross35
    Member

    PRs welcome!

  2. yurivict commented on Sep 21, 2026

    @yurivict
    Author

    I don't know Rust.
    I am only maintaining packages that are Rust dependent.

  3. tgross35 commented on Sep 21, 2026

    @tgross35
    Member

    It should be pretty easy, add it here

    and here https://github.com/rust-lang/libc/blob/2cf22d549c9c2f74da7443c578f3333904f51115/libc-test/semver/freebsd.txt with a link to the source header in the commit message. No worries if not, somebody else may eventually pick it up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions