libjio.h | libjio.h | |||
---|---|---|---|---|
/* | /* | |||
* libjio - A library for Journaled I/O | * libjio - A library for Journaled I/O | |||
* Alberto Bertogli (albertogli@telpin.com.ar) | * Alberto Bertogli (albertito@blitiri.com.ar) | |||
*/ | */ | |||
#ifndef _LIBJIO_H | #ifndef _LIBJIO_H | |||
#define _LIBJIO_H | #define _LIBJIO_H | |||
#include <stdint.h> | #include <stdint.h> | |||
#include <stdio.h> | #include <stdio.h> | |||
#include <sys/types.h> | #include <sys/types.h> | |||
#include <sys/uio.h> | #include <sys/uio.h> | |||
#include <pthread.h> | #include <pthread.h> | |||
#include <unistd.h> | #include <unistd.h> | |||
/* Check if we're using Large File Support - otherwise refuse to build. | /* Check if we're using Large File Support - otherwise refuse to build. | |||
* Otherwise, we would allow applications not using LFS to link with the | * Otherwise, we would allow applications not using LFS to link with the | |||
* library (which uses LFS) and that's just begging for problems. There sho uld | * library (which uses LFS) and that's just begging for problems. There sho uld | |||
* be a portable way for the C library to do some of this for us, but until I | * be a portable way for the C library to do some of this for us, but until I | |||
* find one, this is the best we can do */ | * find one, this is the best we can do */ | |||
#if (!defined _FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS != 64) | #if (!defined _FILE_OFFSET_BITS) || (_FILE_OFFSET_BITS != 64) | |||
#error "You must compile your application with Large File Support" | #error "You must compile your application with Large File Support" | |||
#endif | #endif | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
/* logical structures */ | /* logical structures */ | |||
/* the main file structure */ | /* the main file structure */ | |||
skipping to change at line 159 | skipping to change at line 159 | |||
#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 */ | #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 */ | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
} /* from extern "C" avobe */ | } /* from extern "C" above */ | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 4 change blocks. | ||||
6 lines changed or deleted | 6 lines changed or added | |||