File:  [DVB] / dietlibc / arm / __fadvise.c
Revision 1.2: download - view: text, annotated - select for diffs
Sat Apr 19 15:07:32 2014 UTC (10 years, 1 month ago) by leitner
Branches: MAIN
CVS tags: HEAD
Massive ARM changes from Enrico Scholz

#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 __arm_fadvise64_64(int fd, int advice, off64_t offset, off64_t len);

  return __arm_fadvise64_64(fd, advice, offset, len);
}

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

LinuxTV legacy CVS <linuxtv.org/cvs>