@@ -181,8 +181,8 @@ os_fstat(os_file_handle handle, struct __wasi_filestat_t *buf)
181181 buf -> st_dev = 0 ; // Zephyr's fs_stat doesn't provide a device ID
182182 buf -> st_ino = 0 ; // Zephyr's fs_stat doesn't provide an inode number
183183 buf -> st_filetype = entry .type == FS_DIR_ENTRY_DIR
184- ? __WASI_FILETYPE_DIRECTORY
185- : __WASI_FILETYPE_REGULAR_FILE ;
184+ ? __WASI_FILETYPE_DIRECTORY
185+ : __WASI_FILETYPE_REGULAR_FILE ;
186186 buf -> st_nlink = 1 ; // Zephyr's fs_stat doesn't provide a link count
187187 buf -> st_size = entry .size ;
188188 buf -> st_atim = 0 ; // Zephyr's fs_stat doesn't provide timestamps
@@ -449,10 +449,11 @@ os_openat(os_file_handle handle, const char *path, __wasi_oflags_t oflags,
449449 // Is a directory
450450 fs_dir_t_init (& ptr -> dir );
451451 rc = fs_opendir (& ptr -> dir , abs_path );
452- }
453- else {
452+ }
453+ else {
454454 // Is a file
455- int zmode = wasi_flags_to_zephyr (oflags , fd_flags , lookup_flags , access_mode );
455+ int zmode =
456+ wasi_flags_to_zephyr (oflags , fd_flags , lookup_flags , access_mode );
456457 fs_file_t_init (& ptr -> file );
457458 rc = fs_open (& ptr -> file , abs_path , zmode );
458459 }
@@ -481,7 +482,7 @@ os_file_get_access_mode(os_file_handle handle,
481482 * access_mode = WASI_LIBC_ACCESS_MODE_READ_WRITE ;
482483 return __WASI_ESUCCESS ;
483484 }
484-
485+
485486 GET_FILE_SYSTEM_DESCRIPTOR (handle -> fd , ptr );
486487
487488 if (ptr -> is_dir ) {
0 commit comments