Last change
on this file since 445 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:
537 bytes
|
Line | |
---|
1 | #include <fcntl.h>
|
---|
2 | #include "syscall.h"
|
---|
3 | #include "libc.h"
|
---|
4 |
|
---|
5 | int posix_fadvise(int fd, off_t base, off_t len, int advice)
|
---|
6 | {
|
---|
7 | #if defined(SYSCALL_FADVISE_6_ARG)
|
---|
8 | /* Some archs, at least arm and powerpc, have the syscall
|
---|
9 | * arguments reordered to avoid needing 7 argument registers
|
---|
10 | * due to 64-bit argument alignment. */
|
---|
11 | return -__syscall(SYS_fadvise, fd, advice,
|
---|
12 | __SYSCALL_LL_E(base), __SYSCALL_LL_E(len));
|
---|
13 | #else
|
---|
14 | return -__syscall(SYS_fadvise, fd, __SYSCALL_LL_O(base),
|
---|
15 | __SYSCALL_LL_E(len), advice);
|
---|
16 | #endif
|
---|
17 | }
|
---|
18 |
|
---|
19 | LFS64(posix_fadvise);
|
---|
Note:
See
TracBrowser
for help on using the repository browser.