42
48
#define XT_FS_CREATE 2 /* Create if the file does not exist. */
43
49
#define XT_FS_EXCLUSIVE 4 /* Create, and generate an error if it already exists. */
44
50
#define XT_FS_MISSING_OK 8 /* Set this flag if you don't want to throw an error if the file does not exist! */
46
53
xtBool xt_fs_exists(char *path);
47
54
xtBool xt_fs_delete(struct XTThread *self, char *path);
48
55
xtBool xt_fs_file_not_found(int err);
49
56
void xt_fs_mkdir(struct XTThread *self, char *path);
51
59
xtBool xt_fs_stat(struct XTThread *self, char *path, off_t *size, struct timespec *mod_time);
52
60
void xt_fs_move(struct XTThread *self, char *from_path, char *to_path);
53
61
xtBool xt_fs_rename(struct XTThread *self, char *from_path, char *to_path);
58
64
u_int fil_ref_count; /* The number of open file structure referencing this file. */