aboutsummaryrefslogtreecommitdiffstats
path: root/libinstaller/syslxcom.h
blob: 39ca09d31b62e11343a1672dff7370e7a2ba1e8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef _H_SYSLXCOM_
#define _H_SYSLXCOM_

#include "syslinux.h"

/* Global fs_type for handling fat, ext2/3/4 and btrfs */
enum filesystem {
    NONE,
    EXT2,
    BTRFS,
    VFAT,
};

extern int fs_type;
extern const char *program;
ssize_t xpread(int fd, void *buf, size_t count, off_t offset);
ssize_t xpwrite(int fd, const void *buf, size_t count, off_t offset);
void clear_attributes(int fd);
void set_attributes(int fd);
int sectmap(int fd, sector_t *sectors, int nsectors);

#endif