diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-07-08 22:11:11 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-08 22:11:11 +0000 |
commit | d9d447db42a16d7f946177e093b5990fba52561e (patch) | |
tree | 2a8b1952cf03ca0dec9235d6640dfb29875ad3e4 /test/sys/test_socket.rs | |
parent | 865c7488b8d9d0909b03d8312073976ee6514757 (diff) | |
parent | 1a23312c77b74e0e896700733a189f8ecfdcbc1f (diff) | |
download | nix-d9d447db42a16d7f946177e093b5990fba52561e.zip |
Merge #1458
1458: Added support for renameat2 on linux r=asomers a=tomboland
Hi, please find my PR for adding the linux-specific `renameat2` syscall. It's largely similar to `renameat`, with an additional flags parameter:
The flags are:
* RENAME_REPLACE - performs an atomic swap.
* RENAME_NOREPLACE - returns EEXIST if the target already exists.
* RENAME_WHITEOUT - specific to overly/union filesystems, and I haven't added a test-case for this one.
PLEASE NOTE: It looks like my formatter has made numerous changes. If you have a preferred formatting config then please let me know, and I can push up changes consistent with the accepted style.
I'm not all that experienced with rust, and this is my first time looking at the nix project, so I'm more than happy to receive guidance on improving my submission.
Cheers!
Co-authored-by: Tom Boland <tom@t0mb.net>
Diffstat (limited to 'test/sys/test_socket.rs')
0 files changed, 0 insertions, 0 deletions