source: asp3_tinet_ecnl_arm/trunk/musl-1.1.18/src/fcntl/posix_fadvise.c@ 352

Last change on this file since 352 was 352, checked in by coas-nagasima, 6 years ago

arm向けASP3版ECNLを追加

  • 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
5int 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
19LFS64(posix_fadvise);
Note: See TracBrowser for help on using the repository browser.