blob: ff97827f630f42d63a3f83c6ca94e7294b99442c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
/*
* sync_file_range.c - provide the sync_file_range IPC system call
* since bionic doesn't supply this function
*/
#define _GNU_SOURCE
#include <sys/types.h>
#include <sys/syscall.h>
#include <sys/glibc-syscalls.h>
#include <unistd.h>
#include "android_compat.h"
int sync_file_range(int fd, off64_t offset, off64_t nbytes,
unsigned int flags)
{
return syscall(SYS_sync_file_range, fd, offset, nbytes, flags);
}
|