libjio.h   libjio.h 
skipping to change at line 28 skipping to change at line 28
#endif #endif
/* logical structures */ /* logical structures */
/* the main file structure */ /* the main file structure */
struct jfs { struct jfs {
int fd; /* main file descriptor */ int fd; /* main file descriptor */
char *name; /* and its name */ char *name; /* and its name */
int jdirfd; /* journal directory file descriptor */ int jdirfd; /* journal directory file descriptor */
int jfd; /* journal's lock file descriptor */ int jfd; /* journal's lock file descriptor */
int *jmap; /* journal's lock file mmap area */ unsigned int *jmap; /* journal's lock file mmap area */
int flags; /* journal flags */ int flags; /* journal flags */
struct jlinger *ltrans; /* lingered transactions */ struct jlinger *ltrans; /* lingered transactions */
pthread_mutex_t lock; /* a soft lock used in some operations */ pthread_mutex_t lock; /* a soft lock used in some operations */
}; };
/* a single operation */ /* a single operation */
struct joper { struct joper {
int locked; /* is the region is locked? */ int locked; /* is the region is locked? */
off_t offset; /* operation's offset */ off_t offset; /* operation's offset */
size_t len; /* data length */ size_t len; /* data length */
skipping to change at line 113 skipping to change at line 113
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, 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);
/* 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 );
size_t jfread(void *ptr, size_t size, size_t nmemb, struct jfs *stream); size_t jfread(void *ptr, size_t size, size_t nmemb, struct jfs *stream);
size_t jfwrite(const void *ptr, size_t size, size_t nmemb, struct jfs *stre am); size_t jfwrite(const void *ptr, size_t size, size_t nmemb, struct jfs *stre am);
int jfileno(struct jfs *stream); int jfileno(struct jfs *stream);
int jfeof(struct jfs *stream); int jfeof(struct jfs *stream);
void jclearerr(struct jfs *stream); void jclearerr(struct jfs *stream);
skipping to change at line 137 skipping to change at line 138
FILE *jfsopen(struct jfs *stream, const char *mode); FILE *jfsopen(struct jfs *stream, const char *mode);
/* jfs constants */ /* jfs 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 3 /* use lingering transactions */ #define J_LINGER 3 /* use lingering transactions */
/* jtrans constants */ /* jtrans constants */
#define J_COMMITED 1 /* mark a transaction as commited */ #define J_COMMITED 1 /* mark a transaction as commited */
#define J_ROLLBACKED 2 /* mark a transaction as rollbacked */ #define J_ROLLBACKED 2 /* mark a transaction as rollbacked */
#define J_ROLLBACKING 3 /* mark a transaction as rollbacking */
/* 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. 3 change blocks. 
1 lines changed or deleted 3 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/