source:
scripts/fetch/eglibc/2.10.1/30-fadvise64_64.patch@
5043f73
Last change on this file since 5043f73 was b17b911f, checked in by , 15 years ago | |
---|---|
|
|
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 35 35 return INTERNAL_SYSCALL_ERRNO (ret, err); 36 36 return 0; 37 37 #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 38 50 return ENOSYS; 51 # endif 39 52 #endif 40 53 }
Note:
See TracBrowser
for help on using the repository browser.