|
Packit |
8930e1 |
#include <errno.h>
|
|
Packit |
8930e1 |
|
|
Packit |
8930e1 |
#include "helpers.h"
|
|
Packit |
8930e1 |
|
|
Packit |
8930e1 |
#ifndef CONFIG_LINUX_FALLOCATE
|
|
Packit |
8930e1 |
int fallocate(int fd, int mode, off_t offset, off_t len)
|
|
Packit |
8930e1 |
{
|
|
Packit |
8930e1 |
errno = ENOSYS;
|
|
Packit |
8930e1 |
return -1;
|
|
Packit |
8930e1 |
}
|
|
Packit |
8930e1 |
#endif
|
|
Packit |
8930e1 |
|
|
Packit |
8930e1 |
#ifndef CONFIG_POSIX_FALLOCATE
|
|
Packit |
8930e1 |
int posix_fallocate(int fd, off_t offset, off_t len)
|
|
Packit |
8930e1 |
{
|
|
Packit |
8930e1 |
return 0;
|
|
Packit |
8930e1 |
}
|
|
Packit |
8930e1 |
#endif
|
|
Packit |
8930e1 |
|
|
Packit |
8930e1 |
#ifndef CONFIG_SYNC_FILE_RANGE
|
|
Packit |
8930e1 |
int sync_file_range(int fd, uint64_t offset, uint64_t nbytes,
|
|
Packit |
8930e1 |
unsigned int flags)
|
|
Packit |
8930e1 |
{
|
|
Packit |
8930e1 |
errno = ENOSYS;
|
|
Packit |
8930e1 |
return -1;
|
|
Packit |
8930e1 |
}
|
|
Packit |
8930e1 |
#endif
|
|
Packit |
8930e1 |
|
|
Packit |
8930e1 |
#ifndef CONFIG_POSIX_FADVISE
|
|
Packit |
8930e1 |
int posix_fadvise(int fd, off_t offset, off_t len, int advice)
|
|
Packit |
8930e1 |
{
|
|
Packit |
8930e1 |
return 0;
|
|
Packit |
8930e1 |
}
|
|
Packit |
8930e1 |
#endif
|