source: azure_iot_hub/trunk/musl-1.1.18/src/fcntl/posix_fadvise.c@ 388

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

Azure IoT Hub Device C SDK を使ったサンプルの追加

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/x-csrc
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.