source: scripts/fetch/eglibc/2.10.1/30-fadvise64_64.patch

systemd
Last change on this file was b17b911f, checked in by jim <clfs@…>, 15 years ago

Updated eglibc fetch script.

  • Property mode set to 100644
File size: 705 bytes
  • sysdeps/unix/sysv/linux/posix_fadvise.c

     sysdeps/unix/sysv/linux/posix_fadvise.c |   13 +++++++++++++
     1 file changed, 13 insertions(+)
    
    a b  
    3535    return INTERNAL_SYSCALL_ERRNO (ret, err);
    3636  return 0;
    3737#else
     38# ifdef __NR_fadvise64_64
     39  INTERNAL_SYSCALL_DECL (err); 
     40  int ret = INTERNAL_SYSCALL (fadvise64_64, err, 6, fd,
     41                              __LONG_LONG_PAIR ((long) (offset >> 31),
     42                                                (long) offset),
     43                              __LONG_LONG_PAIR ((long) (len >> 31),
     44                                                (long) len),
     45                              advise);
     46  if (INTERNAL_SYSCALL_ERROR_P (ret, err))
     47    return INTERNAL_SYSCALL_ERRNO (ret, err);
     48  return 0;
     49# else
    3850  return ENOSYS;
     51# endif
    3952#endif
    4053}
Note: See TracBrowser for help on using the repository browser.