This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
[PATCH 5/4] alpha: Use fopen "rce" in ioperm
- From: Matt Turner <mattst88 at gmail dot com>
- To: Richard Henderson <rth at twiddle dot net>
- Cc: libc-ports at sourceware dot org, Matt Turner <mattst88 at gmail dot com>
- Date: Thu, 26 Apr 2012 22:22:59 -0400
- Subject: [PATCH 5/4] alpha: Use fopen "rce" in ioperm
---
ChangeLog.alpha | 5 +++++
sysdeps/unix/sysv/linux/alpha/ioperm.c | 4 ++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/ChangeLog.alpha b/ChangeLog.alpha
index e908e27..08de3cf 100644
--- a/ChangeLog.alpha
+++ b/ChangeLog.alpha
@@ -1,5 +1,10 @@
2012-04-26 Matt Turner <mattst88@gmail.com>
+ * * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo): Use "c"
+ and "e" in fopen.
+
+2012-04-26 Matt Turner <mattst88@gmail.com>
+
* sysdeps/unix/sysv/linux/alpha/bits/mman.h (MAP_STACK): Define.
(MAP_HUGETLB): Likewise.
diff --git a/sysdeps/unix/sysv/linux/alpha/ioperm.c b/sysdeps/unix/sysv/linux/alpha/ioperm.c
index 4055c5d..8b6c830 100644
--- a/sysdeps/unix/sysv/linux/alpha/ioperm.c
+++ b/sysdeps/unix/sysv/linux/alpha/ioperm.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1992, 1996-1999, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1992-2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by David Mosberger.
@@ -496,7 +496,7 @@ process_cpuinfo(struct cpuinfo_data *data)
return 1;
}
- fp = fopen (PATH_CPUINFO, "r");
+ fp = fopen (PATH_CPUINFO, "rce");
if (!fp)
return 0;
--
1.7.3.4