File tree 3 files changed +8
-8
lines changed
3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -1640,9 +1640,9 @@ checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8"
1640
1640
1641
1641
[[package ]]
1642
1642
name = " hermit-abi"
1643
- version = " 0.3.6 "
1643
+ version = " 0.3.9 "
1644
1644
source = " registry+https://github.com/rust-lang/crates.io-index"
1645
- checksum = " bd5256b483761cd23699d0da46cc6fd2ee3be420bbe6d020ae4a091e70b7e9fd "
1645
+ checksum = " d231dfb89cfffdbc30e7fc41579ed6066ad03abda9e567ccafae602b97ec5024 "
1646
1646
dependencies = [
1647
1647
" compiler_builtins" ,
1648
1648
" rustc-std-workspace-alloc" ,
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ dlmalloc = { version = "0.2.4", features = ['rustc-dep-of-std'] }
48
48
fortanix-sgx-abi = { version = " 0.5.0" , features = [' rustc-dep-of-std' ], public = true }
49
49
50
50
[target .'cfg(target_os = "hermit")' .dependencies ]
51
- hermit-abi = { version = " 0.3.2 " , features = [' rustc-dep-of-std' ], public = true }
51
+ hermit-abi = { version = " 0.3.9 " , features = [' rustc-dep-of-std' ], public = true }
52
52
53
53
[target .'cfg(target_os = "wasi")' .dependencies ]
54
54
wasi = { version = " 0.11.0" , features = [' rustc-dep-of-std' ], default-features = false }
Original file line number Diff line number Diff line change @@ -14,15 +14,15 @@ use crate::sys::unsupported;
14
14
use crate :: vec;
15
15
16
16
pub fn errno ( ) -> i32 {
17
- 0
17
+ unsafe { abi :: get_errno ( ) }
18
18
}
19
19
20
- pub fn error_string ( _errno : i32 ) -> String {
21
- "operation successful" . to_string ( )
20
+ pub fn error_string ( errno : i32 ) -> String {
21
+ abi :: error_string ( errno ) . to_string ( )
22
22
}
23
23
24
24
pub fn getcwd ( ) -> io:: Result < PathBuf > {
25
- unsupported ( )
25
+ Ok ( PathBuf :: from ( "/" ) )
26
26
}
27
27
28
28
pub fn chdir ( _: & path:: Path ) -> io:: Result < ( ) > {
@@ -188,7 +188,7 @@ pub fn unsetenv(k: &OsStr) -> io::Result<()> {
188
188
}
189
189
190
190
pub fn temp_dir ( ) -> PathBuf {
191
- panic ! ( "no filesystem on hermit ")
191
+ PathBuf :: from ( "/tmp ")
192
192
}
193
193
194
194
pub fn home_dir ( ) -> Option < PathBuf > {
You can’t perform that action at this time.
0 commit comments