File:  [DVB] / dietlibc / parisc / __fadvise.c
Revision 1.1: download - view: text, annotated - select for diffs
Mon Jun 6 12:06:11 2016 UTC (8 years ago) by leitner
Branches: MAIN
CVS tags: HEAD
  parisc fixes (Gerrit Pape, John David Anglin, Helge Deller, Christian Seiler)

#include "syscalls.h"
#define _LINUX_SOURCE
#include <fcntl.h>
#include <unistd.h>

#ifndef __NR_fadvise64
long fadvise64_64(int fd, off64_t offset, off64_t len, int advice)
{
  extern long __parisc_fadvise64_64(int fd, long offset_hi, long offset_lo, long len_hi, long len_lo, int advice);

  return __parisc_fadvise64_64(fd, (long)(offset >> 32), (long)offset, (long)(len >> 32), (long)len, advice);
}

int posix_fadvise(int fd, off64_t offset, off64_t len, int advise)
  __attribute__((__alias__("fadvise64_64")));
#endif

LinuxTV legacy CVS <linuxtv.org/cvs>