Skip to content

Commit 183a57f

Browse files
feat(syscalls): stub fchdir
1 parent fb03875 commit 183a57f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/syscalls/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,12 @@ pub unsafe extern "C" fn sys_getcwd(buf: *mut c_char, size: usize) -> *const c_c
386386
buf
387387
}
388388

389+
#[hermit_macro::system(errno)]
390+
#[unsafe(no_mangle)]
391+
pub extern "C" fn sys_fchdir(_fd: FileDescriptor) -> i32 {
392+
-i32::from(Errno::Nosys)
393+
}
394+
389395
#[hermit_macro::system(errno)]
390396
#[unsafe(no_mangle)]
391397
pub unsafe extern "C" fn sys_chdir(path: *mut c_char) -> i32 {

0 commit comments

Comments
 (0)