From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26498 invoked by alias); 18 Apr 2003 21:12:32 -0000 Mailing-List: contact libc-hacker-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sources.redhat.com Received: (qmail 26478 invoked from network); 18 Apr 2003 21:12:32 -0000 Received: from unknown (HELO trained-monkey.org) (209.217.122.11) by sources.redhat.com with SMTP; 18 Apr 2003 21:12:32 -0000 Received: from trained-monkey.org (trained-monkey.org [127.0.0.1]) by trained-monkey.org (8.12.9/8.12.8) with ESMTP id h3ILCVTU005156; Fri, 18 Apr 2003 17:12:31 -0400 Received: (from jes@localhost) by trained-monkey.org (8.12.9/8.12.9/Submit) id h3ILCVtY005152; Fri, 18 Apr 2003 17:12:31 -0400 To: libc-hacker@sources.redhat.com Cc: Ray Bryant Subject: posix_fadvise() on ia64 and Alpha From: Jes Sorensen User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 Date: Fri, 18 Apr 2003 21:12:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-04/txt/msg00052.txt.bz2 Whoops did it again - trying the right address this time. Hi, Ray Bry pointed out to me that there is a disreprency between the glibc ia64 (and I noticed Alpha as well) definitions of POSIX_FADV_DONTNEED and POSIX_FADV_NOREUSE compared to the kernel. Anyone know if there is a deliberate reason for this or if it was a mistake? I wont rule out that I blindly copied over the changes from the Alpha back when I introduced the file, but it's been a while. Anyway, for the case that it's unintentional, patch included (2.2), should apply cleanly to 2.3 as well. Cheers, Jes 2003-04-18 * libc/sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Sync with Linux 2.5.67. * libc/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise. --- sysdeps/unix/sysv/linux/ia64/bits/fcntl.h.~1.4.~ Fri Jul 6 00:56:17 2001 +++ sysdeps/unix/sysv/linux/ia64/bits/fcntl.h Fri Apr 18 16:55:49 2003 @@ -169,6 +169,6 @@ # define POSIX_FADV_RANDOM 1 /* Expect random page references. */ # define POSIX_FADV_SEQUENTIAL 2 /* Expect sequential page references. */ # define POSIX_FADV_WILLNEED 3 /* Will need these pages. */ -# define POSIX_FADV_DONTNEED 6 /* Don't need these pages. */ -# define POSIX_FADV_NOREUSE 7 /* Data will be accessed once. */ +# define POSIX_FADV_DONTNEED 4 /* Don't need these pages. */ +# define POSIX_FADV_NOREUSE 5 /* Data will be accessed once. */ #endif --- sysdeps/unix/sysv/linux/alpha/bits/fcntl.h.~1.14.~ Fri Jul 6 00:56:13 2001 +++ sysdeps/unix/sysv/linux/alpha/bits/fcntl.h Fri Apr 18 16:57:48 2003 @@ -168,6 +168,6 @@ # define POSIX_FADV_RANDOM 1 /* Expect random page references. */ # define POSIX_FADV_SEQUENTIAL 2 /* Expect sequential page references. */ # define POSIX_FADV_WILLNEED 3 /* Will need these pages. */ -# define POSIX_FADV_DONTNEED 6 /* Don't need these pages. */ -# define POSIX_FADV_NOREUSE 7 /* Data will be accessed once. */ +# define POSIX_FADV_DONTNEED 4 /* Don't need these pages. */ +# define POSIX_FADV_NOREUSE 5 /* Data will be accessed once. */ #endif