Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Oct 2011 22:21:57 +0100
From:      Ed Schouten <ed@80386.nl>
To:        John Baldwin <jhb@freebsd.org>
Cc:        arch@freebsd.org, Jilles Tjoelker <jilles@stack.nl>
Subject:   Re: [PATCH] fadvise(2) system call
Message-ID:  <20111031212157.GQ2258@hoeg.nl>
In-Reply-To: <201110311717.53476.jhb@freebsd.org>
References:  <201110281426.00013.jhb@freebsd.org> <201110311024.07580.jhb@freebsd.org> <20111031190359.GP2258@hoeg.nl> <201110311717.53476.jhb@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--wg9FEZT+WCTrEXgJ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

* John Baldwin <jhb@freebsd.org>, 20111031 22:17:
> They don't.  They use fadvise() which is part of Linux's API much as=20
> 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@mekker) ~ $ man fadvise
> No manual entry for fadvise
> (ed@mekker) ~ $ fgrep -r fadvise /usr/include | grep -v posix_fadvise
> /usr/include/x86_64-linux-gnu/bits/syscall.h:#define SYS_fadvise64 __NR_f=
advise64
> /usr/include/x86_64-linux-gnu/bits/syscall.h:#define SYS_fadvise64_64 __N=
R_fadvise64_64
> /usr/include/x86_64-linux-gnu/asm/unistd_64.h:#define __NR_fadvise64				2=
21
> /usr/include/x86_64-linux-gnu/asm/unistd_64.h:__SYSCALL(__NR_fadvise64, s=
ys_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	2=
72
> /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_fadvi=
se64_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_fadvise=
64
> /usr/include/asm-generic/unistd.h:#define __NR_fadvise64_64 __NR3264_fadv=
ise64
> (ed@mekker) ~ $ nm -D /lib/x86_64-linux-gnu/libc.so.6 | grep fadvise
> 00000000000d59e0 T posix_fadvise
> 00000000000d59e0 T posix_fadvise64

--=20
 Ed Schouten <ed@80386.nl>
 WWW: http://80386.nl/

--wg9FEZT+WCTrEXgJ
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (FreeBSD)

iQIcBAEBAgAGBQJOrxF1AAoJEG5e2P40kaK7jUQP/3MgNDOIy9KT19oHXut9JKRX
yMvC9BKPmHZJ/5V4vF+3hTZDqyCjSvU79y8Z0yeVlRygyYjuQxBhtPlZFsVybXUL
rxMgDrbMYUhgqkSrV0jWpK00h1x3B9ei8IHkZOwsUzxKT/mT6kQYJLJ3tebJwk/2
ZdtrODs/YmZ2cqmU0m+2dDCcOa5B2wWkiYZohcIB6QOp2G7Wz/2fCXHEE9JLVMJT
BibPib6Qv7MQG0pBTu99fYs4O1wizMFfLuh7Q0agyECvcf0Q7U0KLwDDbzZqh+dX
bR3IKjVTRLZPhYDhOQHzVMXByXKP52IYlj1QSHEtiDr5t7Al/r9OX0ynqIcJVY1s
PL4SePUDXDoLxRTwfSZSWykQFDjZBzRwLXM9sV+DyP0bccZmeMwLNtR8BhJ7dT5p
zA/kYyHzeXPoJCbimTsfG6taMSaHCUWvi1Ob5hytSlOOc7vSFzzDzjGxRPtzusc+
qv6OJAZM692OML8GbLYNhJY9NO69vyL3E/P4sJblNstESYd3AY+GfeJXO5Wh6YAV
z9ATBEN5817hjDglWj/hEywAi9y4/g48YA1L7csMk0T5tqvVA9jFwBS+ZU6aQWVM
JRMQjSaEY3QGH6fTrlzmBV59F8rhaB/BIU9/U5pyWqWPdJ5TG3ppvEErSZc2ux4A
sd+RCKsJ7jC7Nn+5FsGf
=nl0q
-----END PGP SIGNATURE-----

--wg9FEZT+WCTrEXgJ--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20111031212157.GQ2258>