Switch to 64-bit sector pointers everywhere
[profile/ivi/syslinux.git] / libinstaller / syslxcom.h
1 #ifndef _H_SYSLXCOM_
2 #define _H_SYSLXCOM_
3
4 #include "syslinux.h"
5
6 /* Global fs_type for handling fat, ext2/3/4 and btrfs */
7 enum filesystem {
8     NONE,
9     EXT2,
10     BTRFS,
11     VFAT,
12 };
13
14 extern int fs_type;
15 extern const char *program;
16 ssize_t xpread(int fd, void *buf, size_t count, off_t offset);
17 ssize_t xpwrite(int fd, const void *buf, size_t count, off_t offset);
18 void clear_attributes(int fd);
19 void set_attributes(int fd);
20 int sectmap(int fd, sector_t *sectors, int nsectors);
21
22 #endif