@@ -22,14 +22,14 @@ backend_t wasmfs_get_backend_by_path(const char* path __attribute__((nonnull)));
2222// Obtains the backend_t of a specified fd.
2323backend_t wasmfs_get_backend_by_fd (int fd );
2424
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.
2626// Returns the file descriptor for the new file like `open`. Returns a negative
2727// value on error. TODO: It might be worth returning a more specialized type
2828// like __wasi_fd_t here.
2929// TODO: Remove this function so that only directories can be mounted.
3030int wasmfs_create_file (const char * pathname __attribute__((nonnull )), mode_t mode , backend_t backend );
3131
32- // Creates a new directory in the new file system under a specific backend.
32+ // Creates a new directory using a specific backend.
3333// Returns 0 on success like `mkdir`, or a negative value on error.
3434// TODO: Add an alias with wasmfs_mount.
3535int 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)));
4040
4141// Backend creation
4242
43- // Creates a JSFile Backend in the new file system.
43+ // Creates a new JSFile Backend
4444backend_t wasmfs_create_js_file_backend (void );
4545
4646// 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)));
9191// thread.
9292backend_t wasmfs_create_opfs_backend (void );
9393
94- // Creates a generic JSIMPL backend in the new file system.
94+ // Creates a generic JSIMPL backend
9595backend_t wasmfs_create_jsimpl_backend (void );
9696
9797backend_t wasmfs_create_icase_backend (backend_t backend );
0 commit comments