Page MenuHomeFreeBSD

Add renameat(2) and AT_RENAME_NOREPLACE flag for it
Needs ReviewPublic

Authored by kib on Thu, Feb 26, 7:17 PM.

Details

Reviewers
brooks
olce

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

kib requested review of this revision.Thu, Feb 26, 7:17 PM

Improve cleanup for failed AT_RENAME_NOREPLACE.
List EOPNOTSUPP in the man page.

Syscall bits look good. A few comments.

lib/libsys/rename.2
135

Or perhaps "call operates identically to"

334–338

Or alternatively something like "...returned by the renameat system call, the renameat2 system call..."

sys/fs/tmpfs/tmpfs_vnops.c
1024

I'm surprised by ~(AT_RENAME_NOREPLACE) here