|
1 | | -package wasi:filesystem@0.2.3; |
| 1 | +package wasi:filesystem@0.2.6; |
2 | 2 |
|
3 | 3 | /// WASI filesystem is a filesystem API primarily intended to let users run WASI |
4 | 4 | /// programs that access their files on their existing filesystems, without |
@@ -27,9 +27,9 @@ package wasi:filesystem@0.2.3; |
27 | 27 | @since(version = 0.2.0) |
28 | 28 | interface types { |
29 | 29 | @since(version = 0.2.0) |
30 | | - use wasi:io/streams@0.2.3.{input-stream, output-stream, error}; |
| 30 | + use wasi:io/streams@0.2.6.{input-stream, output-stream, error}; |
31 | 31 | @since(version = 0.2.0) |
32 | | - use wasi:clocks/wall-clock@0.2.3.{datetime}; |
| 32 | + use wasi:clocks/wall-clock@0.2.6.{datetime}; |
33 | 33 |
|
34 | 34 | /// File size or length of a region within a file. |
35 | 35 | @since(version = 0.2.0) |
@@ -446,6 +446,10 @@ interface types { |
446 | 446 | set-times-at: func(path-flags: path-flags, path: string, data-access-timestamp: new-timestamp, data-modification-timestamp: new-timestamp) -> result<_, error-code>; |
447 | 447 | /// Create a hard link. |
448 | 448 | /// |
| 449 | + /// Fails with `error-code::no-entry` if the old path does not exist, |
| 450 | + /// with `error-code::exist` if the new path already exists, and |
| 451 | + /// `error-code::not-permitted` if the old path is not a file. |
| 452 | + /// |
449 | 453 | /// Note: This is similar to `linkat` in POSIX. |
450 | 454 | @since(version = 0.2.0) |
451 | 455 | link-at: func(old-path-flags: path-flags, old-path: string, new-descriptor: borrow<descriptor>, new-path: string) -> result<_, error-code>; |
@@ -516,12 +520,12 @@ interface types { |
516 | 520 | /// |
517 | 521 | /// Implementations are encouraged to provide the following properties: |
518 | 522 | /// |
519 | | - /// - If the file is not modified or replaced, the computed hash value should |
520 | | - /// usually not change. |
521 | | - /// - If the object is modified or replaced, the computed hash value should |
522 | | - /// usually change. |
523 | | - /// - The inputs to the hash should not be easily computable from the |
524 | | - /// computed hash. |
| 523 | + /// - If the file is not modified or replaced, the computed hash value should |
| 524 | + /// usually not change. |
| 525 | + /// - If the object is modified or replaced, the computed hash value should |
| 526 | + /// usually change. |
| 527 | + /// - The inputs to the hash should not be easily computable from the |
| 528 | + /// computed hash. |
525 | 529 | /// |
526 | 530 | /// However, none of these is required. |
527 | 531 | @since(version = 0.2.0) |
@@ -569,13 +573,13 @@ interface preopens { |
569 | 573 | @since(version = 0.2.0) |
570 | 574 | world imports { |
571 | 575 | @since(version = 0.2.0) |
572 | | - import wasi:io/error@0.2.3; |
| 576 | + import wasi:io/error@0.2.6; |
573 | 577 | @since(version = 0.2.0) |
574 | | - import wasi:io/poll@0.2.3; |
| 578 | + import wasi:io/poll@0.2.6; |
575 | 579 | @since(version = 0.2.0) |
576 | | - import wasi:io/streams@0.2.3; |
| 580 | + import wasi:io/streams@0.2.6; |
577 | 581 | @since(version = 0.2.0) |
578 | | - import wasi:clocks/wall-clock@0.2.3; |
| 582 | + import wasi:clocks/wall-clock@0.2.6; |
579 | 583 | @since(version = 0.2.0) |
580 | 584 | import types; |
581 | 585 | @since(version = 0.2.0) |
|
0 commit comments