[PATCH] fadvise(2) system call
Ed Schouten
ed at 80386.nl
Mon Oct 31 21:21:59 UTC 2011
* John Baldwin <jhb at freebsd.org>, 20111031 22:17:
> They don't. They use fadvise() which is part of Linux's API much as
> madvise(2) is part of ours. (See the other fork in this thread.)
Huh? Wait. It seems fadvise() is only a name used by the Linux kernel.
It's not exported by glibc as a symbol. At least not on my laptop
(Ubuntu 11.10).
> (ed at mekker) ~ $ man fadvise
> No manual entry for fadvise
> (ed at mekker) ~ $ fgrep -r fadvise /usr/include | grep -v posix_fadvise
> /usr/include/x86_64-linux-gnu/bits/syscall.h:#define SYS_fadvise64 __NR_fadvise64
> /usr/include/x86_64-linux-gnu/bits/syscall.h:#define SYS_fadvise64_64 __NR_fadvise64_64
> /usr/include/x86_64-linux-gnu/asm/unistd_64.h:#define __NR_fadvise64 221
> /usr/include/x86_64-linux-gnu/asm/unistd_64.h:__SYSCALL(__NR_fadvise64, sys_fadvise64)
> /usr/include/x86_64-linux-gnu/asm/unistd_32.h:#define __NR_fadvise64 250
> /usr/include/x86_64-linux-gnu/asm/unistd_32.h:#define __NR_fadvise64_64 272
> /usr/include/asm-generic/unistd.h:/* mm/fadvise.c */
> /usr/include/asm-generic/unistd.h:#define __NR3264_fadvise64 223
> /usr/include/asm-generic/unistd.h:__SC_COMP(__NR3264_fadvise64, sys_fadvise64_64, compat_sys_fadvise64_64)
> /usr/include/asm-generic/unistd.h:#define __NR_fadvise64 1053
> /usr/include/asm-generic/unistd.h:__SYSCALL(__NR_fadvise64, sys_fadvise64)
> /usr/include/asm-generic/unistd.h:#define __NR_fadvise64 __NR3264_fadvise64
> /usr/include/asm-generic/unistd.h:#define __NR_fadvise64_64 __NR3264_fadvise64
> (ed at mekker) ~ $ nm -D /lib/x86_64-linux-gnu/libc.so.6 | grep fadvise
> 00000000000d59e0 T posix_fadvise
> 00000000000d59e0 T posix_fadvise64
--
Ed Schouten <ed at 80386.nl>
WWW: http://80386.nl/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20111031/6e8dd6de/attachment.pgp
More information about the freebsd-arch
mailing list