Back to index

glibc  2.9
posix_fadvise.c File Reference
#include <errno.h>
#include <fcntl.h>
#include <sysdep.h>

Go to the source code of this file.


int posix_fadvise (int fd, off_t offset, off_t len, int advise)

Function Documentation

int posix_fadvise ( int  fd,
off_t  offset,
off_t  len,
int  advise 

Definition at line 27 of file posix_fadvise.c.

/* MIPS kernel only has NR_fadvise64 which acts as NR_fadvise64_64 */
#ifdef __NR_fadvise64
  int ret = INTERNAL_SYSCALL (fadvise64, err, 7, fd, 0,
                           __LONG_LONG_PAIR (offset >> 31, offset),
                           __LONG_LONG_PAIR (len >> 31, len),
  if (INTERNAL_SYSCALL_ERROR_P (ret, err))
    return INTERNAL_SYSCALL_ERRNO (ret, err);
  return 0;
  return ENOSYS;

Here is the call graph for this function: