taskfs fix up, minor refactoring
[lunaix-os.git] / lunaix-os / includes / lunaix / fs / api.h
index d00277415115f4044fc28f96f07894eabdb3f8c5..9e8ce2f4123ee4dfa1ecbf59f1d3c35f657febc3 100644 (file)
@@ -298,4 +298,16 @@ fsapi_fs_finalise(struct filesystem* fs)
     fsm_register(fs);
 }
 
+static inline bool
+fsapi_check_readdir_pos_pseduo(struct v_file* file)
+{
+    return file->f_pos < 2;
+}
+
+static inline bool
+fsapi_readdir_pos_entries_at(struct v_file* file, unsigned int pos)
+{
+    return file->f_pos == pos + 2;
+}
+
 #endif /* __LUNAIX_FSAPI_H */