Skip to content

Commit 5a68089

Browse files
Andy-Python-ProgrammerJohnTitor
authored andcommitted
feat(redox): add renameat2
Signed-off-by: Anhad Singh <[email protected]>
1 parent d29bc7f commit 5a68089

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

libc-test/semver/redox.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,7 @@ pipe2
327327
pthread_condattr_setclock
328328
qsort
329329
reallocarray
330+
renameat2
330331
rlim_t
331332
setgrent
332333
setpwent

src/unix/redox/mod.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1330,6 +1330,15 @@ extern "C" {
13301330
pub fn mkostemps(template: *mut c_char, suffixlen: c_int, flags: c_int) -> c_int;
13311331
pub fn reallocarray(ptr: *mut c_void, nmemb: size_t, size: size_t) -> *mut c_void;
13321332

1333+
// stdio.h
1334+
pub fn renameat2(
1335+
olddirfd: c_int,
1336+
oldpath: *const c_char,
1337+
newdirfd: c_int,
1338+
newpath: *const c_char,
1339+
flags: c_uint,
1340+
) -> c_int;
1341+
13331342
// string.h
13341343
pub fn explicit_bzero(p: *mut c_void, len: size_t);
13351344
pub fn strlcat(dst: *mut c_char, src: *const c_char, siz: size_t) -> size_t;

0 commit comments

Comments
 (0)