@@ -22,14 +22,14 @@ backend_t wasmfs_get_backend_by_path(const char* path __attribute__((nonnull)));
22
22
// Obtains the backend_t of a specified fd.
23
23
backend_t wasmfs_get_backend_by_fd (int fd );
24
24
25
- // Creates and opens a new file in the new file system under a specific backend.
25
+ // Creates and opens a new file using a specific backend.
26
26
// Returns the file descriptor for the new file like `open`. Returns a negative
27
27
// value on error. TODO: It might be worth returning a more specialized type
28
28
// like __wasi_fd_t here.
29
29
// TODO: Remove this function so that only directories can be mounted.
30
30
int wasmfs_create_file (const char * pathname __attribute__((nonnull )), mode_t mode , backend_t backend );
31
31
32
- // Creates a new directory in the new file system under a specific backend.
32
+ // Creates a new directory using a specific backend.
33
33
// Returns 0 on success like `mkdir`, or a negative value on error.
34
34
// TODO: Add an alias with wasmfs_mount.
35
35
int wasmfs_create_directory (const char * path __attribute__((nonnull )), mode_t mode , backend_t backend );
@@ -40,7 +40,7 @@ int wasmfs_unmount(const char* path __attribute__((nonnull)));
40
40
41
41
// Backend creation
42
42
43
- // Creates a JSFile Backend in the new file system.
43
+ // Creates a new JSFile Backend
44
44
backend_t wasmfs_create_js_file_backend (void );
45
45
46
46
// A function that receives a void* and returns a backend.
@@ -91,7 +91,7 @@ backend_t wasmfs_create_node_backend(const char* root __attribute__((nonnull)));
91
91
// thread.
92
92
backend_t wasmfs_create_opfs_backend (void );
93
93
94
- // Creates a generic JSIMPL backend in the new file system.
94
+ // Creates a generic JSIMPL backend
95
95
backend_t wasmfs_create_jsimpl_backend (void );
96
96
97
97
backend_t wasmfs_create_icase_backend (backend_t backend );
0 commit comments