From owner-freebsd-arch@FreeBSD.ORG Mon Oct 31 21:21:59 2011 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9E071106564A; Mon, 31 Oct 2011 21:21:59 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from mx0.hoeg.nl (mx0.hoeg.nl [IPv6:2a01:4f8:101:5343::aa]) by mx1.freebsd.org (Postfix) with ESMTP id 37B078FC17; Mon, 31 Oct 2011 21:21:58 +0000 (UTC) Received: by mx0.hoeg.nl (Postfix, from userid 1000) id 528762A28CF0; Mon, 31 Oct 2011 22:21:57 +0100 (CET) Date: Mon, 31 Oct 2011 22:21:57 +0100 From: Ed Schouten To: John Baldwin Message-ID: <20111031212157.GQ2258@hoeg.nl> References: <201110281426.00013.jhb@freebsd.org> <201110311024.07580.jhb@freebsd.org> <20111031190359.GP2258@hoeg.nl> <201110311717.53476.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="wg9FEZT+WCTrEXgJ" Content-Disposition: inline In-Reply-To: <201110311717.53476.jhb@freebsd.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: arch@freebsd.org, Jilles Tjoelker Subject: Re: [PATCH] fadvise(2) system call X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Oct 2011 21:21:59 -0000 --wg9FEZT+WCTrEXgJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * John Baldwin , 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 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--