Merge branch 'master' into lwip
[syslinux/sherbszt.git] / libinstaller / syslxcom.h
blobbf186ca6148eed0b097c57ea7d9110c0235bb83e
1 #ifndef _H_SYSLXCOM_
2 #define _H_SYSLXCOM_
4 #include "syslinux.h"
6 /* Global fs_type for handling fat, ext2/3/4 and btrfs */
7 enum filesystem {
8 NONE,
9 EXT2,
10 BTRFS,
11 VFAT,
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 int syslinux_already_installed(int dev_fd);
23 #endif