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

/* 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, uint32_t * sectors, int nsectors);

#endif