This repository was archived by the owner on Oct 13, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -30,10 +30,10 @@ impl wasi_filesystem::WasiFilesystem for WasiCtx {
30
30
todo ! ( )
31
31
}
32
32
33
- fn fd_info (
33
+ fn info (
34
34
& mut self ,
35
35
fd : wasi_filesystem:: Descriptor ,
36
- ) -> HostResult < wasi_filesystem:: Info , wasi_filesystem:: Errno > {
36
+ ) -> HostResult < wasi_filesystem:: FdInfo , wasi_filesystem:: Errno > {
37
37
todo ! ( )
38
38
}
39
39
Original file line number Diff line number Diff line change @@ -248,7 +248,7 @@ pub unsafe extern "C" fn fd_datasync(fd: Fd) -> Errno {
248
248
pub unsafe extern "C" fn fd_fdstat_get ( fd : Fd , stat : * mut Fdstat ) -> Errno {
249
249
match Descriptor :: get ( fd) {
250
250
Descriptor :: File ( file) => {
251
- let info = match wasi_filesystem:: fd_info ( file. fd ) {
251
+ let info = match wasi_filesystem:: info ( file. fd ) {
252
252
Ok ( info) => info,
253
253
Err ( err) => return errno_from_wasi_filesystem ( err) ,
254
254
} ;
Original file line number Diff line number Diff line change @@ -46,12 +46,12 @@ type filedelta = s64
46
46
type timestamp = u64
47
47
```
48
48
49
- ## ` info `
49
+ ## ` fd- info`
50
50
``` wit
51
51
/// Information associated with a descriptor.
52
52
///
53
53
/// Note: This was called `fdstat` in earlier versions of WASI.
54
- record info {
54
+ record fd- info {
55
55
/// The type of filesystem object referenced by a descriptor.
56
56
%type: %type,
57
57
/// Flags associated with a descriptor.
@@ -445,18 +445,18 @@ datasync: func(
445
445
) -> result<_, errno>
446
446
```
447
447
448
- ## ` fd- info`
448
+ ## ` info `
449
449
``` wit
450
450
/// Get information associated with a descriptor.
451
451
///
452
452
/// Note: This returns similar flags to `fcntl(fd, F_GETFL)` in POSIX, as well
453
453
/// as additional fields.
454
454
///
455
455
/// Note: This was called `fdstat_get` in earlier versions of WASI.
456
- fd- info: func(
456
+ info: func(
457
457
/// The resource to operate on.
458
458
fd: descriptor,
459
- ) -> result<info, errno>
459
+ ) -> result<fd- info, errno>
460
460
```
461
461
462
462
## ` set-size `
You can’t perform that action at this time.
0 commit comments