From: Matt Turner Date: Fri, 27 Apr 2012 02:22:59 +0000 (-0400) Subject: alpha: Use fopen "rce" in ioperm X-Git-Tag: glibc-2.16-ports-before-merge~172 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=99449c154fad30b695c4151095873d4e994bce4d;p=thirdparty%2Fglibc.git alpha: Use fopen "rce" in ioperm --- diff --git a/ChangeLog.alpha b/ChangeLog.alpha index e908e277901..065930d839c 100644 --- a/ChangeLog.alpha +++ b/ChangeLog.alpha @@ -1,3 +1,8 @@ +2012-04-26 Matt Turner + + * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo): Use "c" + and "e" in fopen. + 2012-04-26 Matt Turner * sysdeps/unix/sysv/linux/alpha/bits/mman.h (MAP_STACK): Define. diff --git a/sysdeps/unix/sysv/linux/alpha/ioperm.c b/sysdeps/unix/sysv/linux/alpha/ioperm.c index 4055c5d5649..8b6c8309f82 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;