Skip to content

Commit 25f7dde

Browse files
Andy-Python-Programmertgross35
authored andcommitted
feat(redox): add RENAME_NOREPLACE
Signed-off-by: Anhad Singh <[email protected]> (backport <#4968>) (cherry picked from commit c6900b7)
1 parent 4b4ce4f commit 25f7dde

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

libc-test/semver/redox.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ PTHREAD_MUTEX_ERRORCHECK
142142
PTHREAD_MUTEX_ROBUST
143143
PTHREAD_MUTEX_STALLED
144144
PTHREAD_STACK_MIN
145+
RENAME_NOREPLACE
145146
RLIMIT_AS
146147
RLIMIT_CORE
147148
RLIMIT_CPU

src/unix/redox/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,6 +1096,8 @@ pub const PRIO_PROCESS: c_int = 0;
10961096
pub const PRIO_PGRP: c_int = 1;
10971097
pub const PRIO_USER: c_int = 2;
10981098

1099+
pub const RENAME_NOREPLACE: c_uint = 1;
1100+
10991101
f! {
11001102
//sys/socket.h
11011103
pub const fn CMSG_ALIGN(len: size_t) -> size_t {

0 commit comments

Comments
 (0)