Last change
on this file since 444 was 444, checked in by coas-nagasima, 4 years ago |
muslのソースコードを追加
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-csrc;charset=UTF-8
|
File size:
451 bytes
|
Rev | Line | |
---|
[444] | 1 | #define _GNU_SOURCE
|
---|
| 2 | #include <fcntl.h>
|
---|
| 3 | #include <errno.h>
|
---|
| 4 | #include "syscall.h"
|
---|
| 5 |
|
---|
| 6 | int sync_file_range(int fd, off_t pos, off_t len, unsigned flags)
|
---|
| 7 | {
|
---|
| 8 | #if defined(SYS_sync_file_range2)
|
---|
| 9 | return syscall(SYS_sync_file_range2, fd, flags,
|
---|
| 10 | __SYSCALL_LL_E(pos), __SYSCALL_LL_E(len));
|
---|
| 11 | #elif defined(SYS_sync_file_range)
|
---|
| 12 | return syscall(SYS_sync_file_range, fd,
|
---|
| 13 | __SYSCALL_LL_O(pos), __SYSCALL_LL_E(len), flags);
|
---|
| 14 | #else
|
---|
| 15 | return __syscall_ret(-ENOSYS);
|
---|
| 16 | #endif
|
---|
| 17 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.