From 23d0322571f85a50d325f3d94424810ad99d2424 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Fri, 5 May 2006 14:17:13 +0000 Subject: [PATCH] * sysdeps/unix/sysv/linux/arm/bits/mman.h: Update error message for consistency with other ports. (MADV_REMOVE, MADV_DONTFORK, MADV_DOFORK): Define. --- ChangeLog.arm | 6 ++++++ sysdeps/unix/sysv/linux/arm/bits/mman.h | 7 +++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog.arm b/ChangeLog.arm index aaf4573..2db13d0 100644 --- a/ChangeLog.arm +++ b/ChangeLog.arm @@ -1,3 +1,9 @@ +2006-05-05 Daniel Jacobowitz + + * sysdeps/unix/sysv/linux/arm/bits/mman.h: Update error message + for consistency with other ports. + (MADV_REMOVE, MADV_DONTFORK, MADV_DOFORK): Define. + 2006-05-05 Lior Balkohen * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: Remove diff --git a/sysdeps/unix/sysv/linux/arm/bits/mman.h b/sysdeps/unix/sysv/linux/arm/bits/mman.h index 7430f15..828ec94 100644 --- a/sysdeps/unix/sysv/linux/arm/bits/mman.h +++ b/sysdeps/unix/sysv/linux/arm/bits/mman.h @@ -1,5 +1,5 @@ /* Definitions for POSIX memory map interface. Linux/ARM version. - Copyright (C) 1997, 2000, 2003, 2005 Free Software Foundation, Inc. + Copyright (C) 1997, 2000, 2003, 2005, 2006 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -18,7 +18,7 @@ 02111-1307 USA. */ #ifndef _SYS_MMAN_H -# error "Never include this file directly. Use instead" +# error "Never use directly; include instead." #endif /* The following definitions basically come from the kernel headers. @@ -88,6 +88,9 @@ # define MADV_SEQUENTIAL 2 /* Expect sequential page references. */ # define MADV_WILLNEED 3 /* Will need these pages. */ # define MADV_DONTNEED 4 /* Don't need these pages. */ +# define MADV_REMOVE 9 /* Remove these pages and resources. */ +# define MADV_DONTFORK 10 /* Do not inherit across fork. */ +# define MADV_DOFORK 11 /* Do inherit across fork. */ #endif /* The POSIX people had to invent similar names for the same things. */ -- 2.7.4