libjio.h | libjio.h | |||
---|---|---|---|---|
skipping to change at line 119 | skipping to change at line 119 | |||
int jsync(struct jfs *fs); | int jsync(struct jfs *fs); | |||
int jclose(struct jfs *fs); | int jclose(struct jfs *fs); | |||
/* journal checker */ | /* journal checker */ | |||
int jfsck(const char *name, struct jfsck_result *res); | int jfsck(const char *name, struct jfsck_result *res); | |||
int jfsck_cleanup(const char *name); | int jfsck_cleanup(const char *name); | |||
/* UNIX API wrappers */ | /* UNIX API wrappers */ | |||
ssize_t jread(struct jfs *fs, void *buf, size_t count); | ssize_t jread(struct jfs *fs, void *buf, size_t count); | |||
ssize_t jpread(struct jfs *fs, void *buf, size_t count, off_t offset); | ssize_t jpread(struct jfs *fs, void *buf, size_t count, off_t offset); | |||
ssize_t jreadv(struct jfs *fs, struct iovec *vector, int count); | ssize_t jreadv(struct jfs *fs, const struct iovec *vector, int count); | |||
ssize_t jwrite(struct jfs *fs, const void *buf, size_t count); | ssize_t jwrite(struct jfs *fs, const void *buf, size_t count); | |||
ssize_t jpwrite(struct jfs *fs, const void *buf, size_t count, off_t offset ); | ssize_t jpwrite(struct jfs *fs, const void *buf, size_t count, off_t offset ); | |||
ssize_t jwritev(struct jfs *fs, const struct iovec *vector, int count); | ssize_t jwritev(struct jfs *fs, const struct iovec *vector, int count); | |||
int jtruncate(struct jfs *fs, off_t length); | int jtruncate(struct jfs *fs, off_t length); | |||
off_t jlseek(struct jfs *fs, off_t offset, int whence); | off_t jlseek(struct jfs *fs, off_t offset, int whence); | |||
/* ANSI C stdio wrappers */ | /* ANSI C stdio wrappers */ | |||
struct jfs *jfopen(const char *path, const char *mode); | struct jfs *jfopen(const char *path, const char *mode); | |||
int jfclose(struct jfs *stream); | int jfclose(struct jfs *stream); | |||
struct jfs *jfreopen(const char *path, const char *mode, struct jfs *stream ); | struct jfs *jfreopen(const char *path, const char *mode, struct jfs *stream ); | |||
skipping to change at line 148 | skipping to change at line 148 | |||
void frewind(struct jfs *stream); | void frewind(struct jfs *stream); | |||
FILE *jfsopen(struct jfs *stream, const char *mode); | FILE *jfsopen(struct jfs *stream, const char *mode); | |||
/* jfs and jtrans constants */ | /* jfs and jtrans constants */ | |||
#define J_NOLOCK 1 /* don't lock the file before operating on i t */ | #define J_NOLOCK 1 /* don't lock the file before operating on i t */ | |||
#define J_NOROLLBACK 2 /* no need to read rollback information */ | #define J_NOROLLBACK 2 /* no need to read rollback information */ | |||
#define J_LINGER 4 /* use lingering transactions */ | #define J_LINGER 4 /* use lingering transactions */ | |||
#define J_COMMITTED 8 /* mark a transaction as committed */ | #define J_COMMITTED 8 /* mark a transaction as committed */ | |||
#define J_ROLLBACKED 16 /* mark a transaction as rollbacked */ | #define J_ROLLBACKED 16 /* mark a transaction as rollbacked */ | |||
#define J_ROLLBACKING 32 /* mark a transaction as rollbacking */ | #define J_ROLLBACKING 32 /* mark a transaction as rollbacking */ | |||
#define J_RDONLY 64 /* mark a file as read-only */ | ||||
/* disk constants */ | /* disk constants */ | |||
#define J_DISKHEADSIZE 12 /* length of disk_header */ | #define J_DISKHEADSIZE 12 /* length of disk_header */ | |||
#define J_DISKOPHEADSIZE 16 /* length of disk_operation header */ | #define J_DISKOPHEADSIZE 16 /* length of disk_operation header */ | |||
/* jfsck constants (return values) */ | /* jfsck constants (return values) */ | |||
#define J_ESUCCESS 0 /* success - shouldn't be used */ | #define J_ESUCCESS 0 /* success - shouldn't be used */ | |||
#define J_ENOENT 1 /* no such file */ | #define J_ENOENT 1 /* no such file */ | |||
#define J_ENOJOURNAL 2 /* no journal associated */ | #define J_ENOJOURNAL 2 /* no journal associated */ | |||
#define J_ENOMEM 3 /* no enough free memory */ | #define J_ENOMEM 3 /* no enough free memory */ | |||
End of changes. 2 change blocks. | ||||
1 lines changed or deleted | 2 lines changed or added | |||