Skip to content

freebsd: add renameat2 - #5563

Merged
tgross35 merged 1 commit into
rust-lang:mainfrom
xjtu-ctgg:freebsd-renameat2-fn
Sep 28, 2026
Merged

tgross35 merged 1 commit into
rust-lang:mainfrom
xjtu-ctgg:freebsd-renameat2-fn

Conversation

@xjtu-ctgg

@xjtu-ctgg xjtu-ctgg commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Description

Add renameat2 for FreeBSD. #5560 adds its flags for #5553, and with the function they can be used without the raw syscall number, which libc doesn't provide for FreeBSD.

It first appeared in FreeBSD 15.1, so it is skipped in libc-test while CI runs 14.4 and 15.0, the same way as the flags in #5560. The two PRs don't overlap.

Checklist

  • Relevant tests in libc-test/semver have been updated
  • Commit messages permalink to headers for added or changed API
  • Placeholder or unstable values like *LAST or *MAX have the standard doc comment (none added)
  • Tested locally (cargo check for x86_64-unknown-freebsd and i686-unknown-freebsd with libc_unstable_freebsd_version set to 14 and 15; ctest can't cover it until CI has 15.1)

@rustbot label +stable-nominated

Copilot AI lite review requested due to automatic review settings September 26, 2026 10:00
@rustbot rustbot added O-bsd O-freebsd O-unix S-waiting-on-review stable-nominated This PR should be considered for cherry-pick to libc's stable release branch labels Sep 26, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@tgross35 tgross35 left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tgross35

Copy link
Copy Markdown
Member

Please disable automatic copilot reviews for rust-lang repos in the future

@tgross35
tgross35 added this pull request to the merge queue Sep 28, 2026
Merged via the queue into rust-lang:main with commit f9bac8d Sep 28, 2026
61 checks passed
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Oct 1, 2026
`renameat2` first appeared in FreeBSD 15.1 (freebsd/freebsd-src@28599a1e5f1b),
so it is skipped in libc-test while CI runs 14.4 and 15.0.

Source:
https://github.com/freebsd/freebsd-src/blob/b5f0e7f36afc20bf17e9e955454b445d686cda06/include/stdio.h#L409

(backport <rust-lang#5563>)
(cherry picked from commit f9bac8d)
@tgross35 tgross35 mentioned this pull request Oct 1, 2026
renovate-bot pushed a commit to renovate-bot/rust-lang-_-libc that referenced this pull request Oct 1, 2026
`renameat2` first appeared in FreeBSD 15.1 (freebsd/freebsd-src@28599a1e5f1b),
so it is skipped in libc-test while CI runs 14.4 and 15.0.

Source:
https://github.com/freebsd/freebsd-src/blob/b5f0e7f36afc20bf17e9e955454b445d686cda06/include/stdio.h#L409

(backport <rust-lang#5563>)
(cherry picked from commit f9bac8d)
@tgross35 tgross35 added stable-applied This PR has been cherry-picked to libc's stable release branch and removed stable-nominated This PR should be considered for cherry-pick to libc's stable release branch labels Oct 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

O-bsd O-freebsd O-unix stable-applied This PR has been cherry-picked to libc's stable release branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants