|
|
1.1 ! root 1: #ifndef __GLUE_H ! 2: #define __GLUE_H ! 3: ! 4: #include "asm/types.h" ! 5: #include "config.h" ! 6: #include "libc/byteorder.h" ! 7: ! 8: typedef uint64_t sector_t; ! 9: ! 10: int devopen(void); ! 11: ! 12: int devread(unsigned long sector, unsigned long byte_offset, ! 13: unsigned long byte_len, void *buf); ! 14: ! 15: int file_open(const char *filename); ! 16: int file_read(void *buf, unsigned long len); ! 17: int file_seek(unsigned long offset); ! 18: unsigned long file_size(void); ! 19: void file_close(void); ! 20: ! 21: int mount_fs(void); ! 22: ! 23: extern int using_devsize; ! 24: ! 25: /* ! 26: * some of the filesystem drivers don't correctly provide their ! 27: * prototypes. we fix this here so we can leave them untouched. ! 28: */ ! 29: ! 30: int ffs_mount (void); ! 31: int ffs_read (char *buf, int len); ! 32: int ffs_dir (char *dirname); ! 33: int ffs_embed (int *start_sector, int needed_sectors); ! 34: ! 35: int vstafs_mount (void); ! 36: int vstafs_dir (char *dirname); ! 37: int vstafs_read (char *addr, int len); ! 38: ! 39: int ntfs_mount (void); ! 40: int ntfs_dir (char *dirname); ! 41: int ntfs_read (char *addr, int len); ! 42: ! 43: int affs_mount (void); ! 44: int affs_dir (char *dirname); ! 45: int affs_read (char *addr, int len); ! 46: ! 47: ! 48: #endif /* FS_H */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.