compat.h File Reference

#include <fcntl.h>
#include <sys/types.h>
#include <time.h>

Include dependency graph for compat.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define _REMOVE_GNU_SOURCE
#define LACK_SYNC_FILE_RANGE   1
#define LACK_POSIX_FADVISE   1
#define POSIX_FADV_WILLNEED   0
#define posix_fadvise(fd, offset, len, advise)
#define LACK_FDATASYNC   1
#define LACK_CLOCK_GETTIME   1
#define CLOCK_REALTIME   0

Functions

int sync_range_submit (int fd, off_t offset, size_t nbytes)
int sync_range_wait (int fd, off_t offset, size_t nbytes)
int fdatasync (int fd)
int clock_gettime (int clk_id, struct timespec *tp)

Variables

const int have_sync_range


Define Documentation

#define _REMOVE_GNU_SOURCE

Definition at line 16 of file compat.h.

#define LACK_SYNC_FILE_RANGE   1

Definition at line 25 of file compat.h.

#define LACK_POSIX_FADVISE   1

Definition at line 42 of file compat.h.

#define POSIX_FADV_WILLNEED   0

Definition at line 43 of file compat.h.

Referenced by jtrans_add_common().

#define posix_fadvise ( fd,
offset,
len,
advise   ) 

Definition at line 44 of file compat.h.

Referenced by jtrans_add_common().

#define LACK_FDATASYNC   1

Definition at line 52 of file compat.h.

#define LACK_CLOCK_GETTIME   1

Definition at line 63 of file compat.h.

#define CLOCK_REALTIME   0

Definition at line 64 of file compat.h.

Referenced by autosync_thread().


Function Documentation

int sync_range_submit ( int  fd,
off_t  offset,
size_t  nbytes 
)

Definition at line 19 of file compat.c.

Referenced by journal_pre_commit(), and jtrans_commit().

Here is the caller graph for this function:

int sync_range_wait ( int  fd,
off_t  offset,
size_t  nbytes 
)

Definition at line 24 of file compat.c.

Referenced by jtrans_commit().

Here is the call graph for this function:

Here is the caller graph for this function:

int fdatasync ( int  fd  ) 

Definition at line 91 of file compat.c.

Referenced by corrupt_journal_file(), jsync(), jtrans_commit(), and sync_range_wait().

Here is the caller graph for this function:

int clock_gettime ( int  clk_id,
struct timespec *  tp 
)

Definition at line 71 of file compat.c.

Referenced by autosync_thread().

Here is the caller graph for this function:


Variable Documentation

const int have_sync_range

Definition at line 17 of file compat.c.

Referenced by jtrans_commit().


Generated on Sat Sep 12 13:33:31 2009 for libjio (internal) by  doxygen 1.5.8