File tree 4 files changed +233
-110
lines changed
library/std/src/sys/hermit
4 files changed +233
-110
lines changed Original file line number Diff line number Diff line change @@ -1975,17 +1975,6 @@ dependencies = [
1975
1975
" unic-langid" ,
1976
1976
]
1977
1977
1978
- [[package ]]
1979
- name = " io-lifetimes"
1980
- version = " 1.0.11"
1981
- source = " registry+https://github.com/rust-lang/crates.io-index"
1982
- checksum = " eae7b9aee968036d54dce06cebaefd919e4472e753296daccd6d344e3e2df0c2"
1983
- dependencies = [
1984
- " hermit-abi 0.3.3" ,
1985
- " libc" ,
1986
- " windows-sys 0.48.0" ,
1987
- ]
1988
-
1989
1978
[[package ]]
1990
1979
name = " ipnet"
1991
1980
version = " 2.7.2"
@@ -1999,7 +1988,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
1999
1988
checksum = " 24fddda5af7e54bf7da53067d6e802dbcc381d0a8eef629df528e3ebf68755cb"
2000
1989
dependencies = [
2001
1990
" hermit-abi 0.3.3" ,
2002
- " rustix 0.38.2 " ,
1991
+ " rustix" ,
2003
1992
" windows-sys 0.48.0" ,
2004
1993
]
2005
1994
Original file line number Diff line number Diff line change @@ -48,6 +48,11 @@ impl FileDesc {
48
48
pub fn set_nonblocking ( & self , _nonblocking : bool ) -> io:: Result < ( ) > {
49
49
unsupported ( )
50
50
}
51
+
52
+ pub fn fstat ( & self , stat : * mut abi:: stat ) -> io:: Result < ( ) > {
53
+ cvt ( unsafe { abi:: fstat ( self . fd . as_raw_fd ( ) , stat) } ) ?;
54
+ Ok ( ( ) )
55
+ }
51
56
}
52
57
53
58
impl < ' a > Read for & ' a FileDesc {
You can’t perform that action at this time.
0 commit comments