#include <fcntl.h>
#include <sys/types.h>
#include <time.h>
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 POSIX_FADV_WILLNEED 0 |
#define posix_fadvise | ( | fd, | |||
offset, | |||||
len, | |||||
advise | ) |
#define CLOCK_REALTIME 0 |
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().
int sync_range_wait | ( | int | fd, | |
off_t | offset, | |||
size_t | nbytes | |||
) |
Definition at line 24 of file compat.c.
Referenced by jtrans_commit().
int fdatasync | ( | int | fd | ) |
Definition at line 91 of file compat.c.
Referenced by corrupt_journal_file(), jsync(), jtrans_commit(), and sync_range_wait().
int clock_gettime | ( | int | clk_id, | |
struct timespec * | tp | |||
) |
Definition at line 71 of file compat.c.
Referenced by autosync_thread().
const int have_sync_range |