Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 207517 Details for
Bug 289642
sys-libs/glibc: patches for alpha
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to add getsysstats support
submitted-getsysstats.diff (text/plain), 1.28 KB, created by
Matt Turner
on 2009-10-19 00:58:42 UTC
(
hide
)
Description:
patch to add getsysstats support
Filename:
MIME Type:
Creator:
Matt Turner
Created:
2009-10-19 00:58:42 UTC
Size:
1.28 KB
patch
obsolete
>2009-05-16 Aurelien Jarno <aurelien@aurel32.net> > > * sysdeps/unix/sysv/linux/alpha/getsysstats.c (GET_NPROCS_PARSER): > Change parameters and use next_line. > >--- > ports/sysdeps/unix/sysv/linux/alpha/getsysstats.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > >--- a/ports/sysdeps/unix/sysv/linux/alpha/getsysstats.c >+++ b/ports/sysdeps/unix/sysv/linux/alpha/getsysstats.c >@@ -20,15 +20,16 @@ > > > /* We need to define a special parser for /proc/cpuinfo. */ >-#define GET_NPROCS_PARSER(FP, BUFFER, RESULT) \ >+#define GET_NPROCS_PARSER(FD, BUFFER, CP, RE, BUFFER_END, RESULT) \ > do \ > { \ > /* Find the line that contains the information about the number of \ > active cpus. We don't have to fear extremely long lines since \ > the kernel will not generate them. 8192 bytes are really enough. \ > If there is no "CPUs ..." line then we are on a UP system. */ \ >+ char *l; \ > (RESULT) = 1; \ >- while (fgets_unlocked (BUFFER, sizeof (BUFFER), FP) != NULL) \ >+ while ((l = next_line (FD, BUFFER, &CP, &RE, BUFFER_END)) != NULL) \ > if ((sscanf (BUFFER, "cpus active : %d", &(RESULT)) == 1) \ > || (sscanf (BUFFER, "CPUs probed %*d active %d", \ > &(RESULT)) == 1)) \
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 289642
:
207510
|
207511
|
207515
|
207517
|
207519
|
207520
|
207522
|
207524
|
207525
|
207527
|
208573