]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/glibc/glibc-2.3.2/powerpc-sysconf.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / glibc / glibc-2.3.2 / powerpc-sysconf.patch
1 --- glibc-2.2.4/sysdeps/unix/sysv/linux/powerpc/getsysstats.c   Wed Dec 31 16:00:00 1969
2 +++ glibc-2.2.4-ds/sysdeps/unix/sysv/linux/powerpc/getsysstats.c        Wed Jan  2 05:01:46 2002
3 @@ -0,0 +1,36 @@
4 +/* Determine various system internal values, Linux/PowerPC version.
5 +   Copyright (C) 2001,2002 Free Software Foundation, Inc.
6 +   This file is part of the GNU C Library.
7 +
8 +   The GNU C Library is free software; you can redistribute it and/or
9 +   modify it under the terms of the GNU Lesser General Public
10 +   License as published by the Free Software Foundation; either
11 +   version 2.1 of the License, or (at your option) any later version.
12 +
13 +   The GNU C Library is distributed in the hope that it will be useful,
14 +   but WITHOUT ANY WARRANTY; without even the implied warranty of
15 +   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16 +   Lesser General Public License for more details.
17 +
18 +   You should have received a copy of the GNU Lesser General Public
19 +   License along with the GNU C Library; if not, write to the Free
20 +   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
21 +   02111-1307 USA.  */
22 +
23 +
24 +/* We need to define a special parser for /proc/cpuinfo.  */
25 +#define GET_NPROCS_PARSER(FP, BUFFER, RESULT)                            \
26 +  do                                                                     \
27 +    {                                                                    \
28 +      (RESULT) = 0;                                                      \
29 +      /* Read all lines and count the lines starting with the string     \
30 +        "cpu model".  We don't have to fear extremely long lines since   \
31 +        the kernel will not generate them.  8192 bytes are really        \
32 +        enough.  */                                                      \
33 +      while (fgets_unlocked (BUFFER, sizeof (BUFFER), FP) != NULL)       \
34 +       if (strncmp (BUFFER, "cpu\t\t:", 6) == 0)                         \
35 +         ++(RESULT);                                                     \
36 +    }                                                                    \
37 +  while (0)
38 +
39 +#include <sysdeps/unix/sysv/linux/getsysstats.c>