clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
Last change
on this file since 4fdf874 was b17b911f, checked in by jim <clfs@…>, 15 years ago |
Updated eglibc fetch script.
|
-
Property mode
set to
100644
|
File size:
705 bytes
|
Rev | Line | |
---|
[b17b911f] | 1 | sysdeps/unix/sysv/linux/posix_fadvise.c | 13 +++++++++++++
|
---|
| 2 | 1 file changed, 13 insertions(+)
|
---|
| 3 |
|
---|
| 4 | --- a/sysdeps/unix/sysv/linux/posix_fadvise.c
|
---|
| 5 | +++ b/sysdeps/unix/sysv/linux/posix_fadvise.c
|
---|
| 6 | @@ -35,6 +35,19 @@
|
---|
| 7 | return INTERNAL_SYSCALL_ERRNO (ret, err);
|
---|
| 8 | return 0;
|
---|
| 9 | #else
|
---|
| 10 | +# ifdef __NR_fadvise64_64
|
---|
| 11 | + INTERNAL_SYSCALL_DECL (err);
|
---|
| 12 | + int ret = INTERNAL_SYSCALL (fadvise64_64, err, 6, fd,
|
---|
| 13 | + __LONG_LONG_PAIR ((long) (offset >> 31),
|
---|
| 14 | + (long) offset),
|
---|
| 15 | + __LONG_LONG_PAIR ((long) (len >> 31),
|
---|
| 16 | + (long) len),
|
---|
| 17 | + advise);
|
---|
| 18 | + if (INTERNAL_SYSCALL_ERROR_P (ret, err))
|
---|
| 19 | + return INTERNAL_SYSCALL_ERRNO (ret, err);
|
---|
| 20 | + return 0;
|
---|
| 21 | +# else
|
---|
| 22 | return ENOSYS;
|
---|
| 23 | +# endif
|
---|
| 24 | #endif
|
---|
| 25 | }
|
---|
| 26 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.