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
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.
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.
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.
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
24 +/* We need to define a special parser for /proc/cpuinfo. */
25 +#define GET_NPROCS_PARSER(FP, BUFFER, RESULT) \
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 \
33 + while (fgets_unlocked (BUFFER, sizeof (BUFFER), FP) != NULL) \
34 + if (strncmp (BUFFER, "cpu\t\t:", 6) == 0) \
39 +#include <sysdeps/unix/sysv/linux/getsysstats.c>