]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Use fopen "rce" in ARM ioperm.
authorJoseph Myers <joseph@codesourcery.com>
Wed, 16 Nov 2011 16:07:33 +0000 (16:07 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Wed, 16 Nov 2011 16:07:33 +0000 (16:07 +0000)
ChangeLog.arm
sysdeps/unix/sysv/linux/arm/ioperm.c

index c61cfe461f641e159e644a749dc77b7d537316b2..8c14f089829db64f42756d77a117aea70d09e6bd 100644 (file)
@@ -1,3 +1,8 @@
+2011-11-16  Joseph Myers  <joseph@codesourcery.com>
+
+       * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Use "c" and
+       "e" in fopen.
+
 2011-10-26  Joseph Myers  <joseph@codesourcery.com>
 
        * sysdeps/arm/dl-machine.h, sysdeps/unix/arm/sysdep.S: Restore
index 8af1ea356eeb6277632db457b0f88862d4dc132a..8ac9b09c258fedca22ccb78b9dfed0234ea1603d 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (C) 1998, 1999, 2003, 2005, 2008 Free Software Foundation, Inc.
+/* Copyright (C) 1998, 1999, 2003, 2005, 2008, 2011
+   Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Phil Blundell, based on the Alpha version by
    David Mosberger.
@@ -135,7 +136,7 @@ init_iosys (void)
     {
       FILE * fp;
 
-      fp = fopen (PATH_CPUINFO, "r");
+      fp = fopen (PATH_CPUINFO, "rce");
       if (! fp)
        return -1;
       while ((n = fscanf (fp, "Hardware\t: %256[^\n]\n", systype))