public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* tst-getcpu failure
@ 2007-05-12  7:42 Andreas Jaeger
  2007-05-12 16:22 ` Ulrich Drepper
  0 siblings, 1 reply; 6+ messages in thread
From: Andreas Jaeger @ 2007-05-12  7:42 UTC (permalink / raw)
  To: GNU libc hackers

[-- Attachment #1: Type: text/plain, Size: 969 bytes --]


tst-getcpu fails for me on x86-64:
getcpu results 14 not possible

This is one a one CPU system running Linux 2.6.18.

Btw. the following patch fixes a warning about a missing getpid
prototype.  Ok to commit?

Andreas

2007-05-12  Andreas Jaeger  <aj@suse.de>

	* sysdeps/unix/sysv/linux/tst-getcpu.c: Include <unistd.h> for
	getpid.

============================================================
Index: sysdeps/unix/sysv/linux/tst-getcpu.c
--- sysdeps/unix/sysv/linux/tst-getcpu.c	11 May 2007 06:37:33 -0000	1.1
+++ sysdeps/unix/sysv/linux/tst-getcpu.c	12 May 2007 07:38:47 -0000
@@ -1,6 +1,7 @@
 #include <errno.h>
 #include <stdio.h>
 #include <sched.h>
+#include <unistd.h>
 
 
 static int

-- 
 Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj/
  SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
   Maxfeldstr. 5, 90409 Nürnberg, Germany
    GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126

[-- Attachment #2: Type: application/pgp-signature, Size: 188 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-05-13 18:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-12  7:42 tst-getcpu failure Andreas Jaeger
2007-05-12 16:22 ` Ulrich Drepper
2007-05-12 21:05   ` Andreas Jaeger
2007-05-12 21:09     ` Ulrich Drepper
2007-05-13 18:15       ` Andreas Jaeger
2007-05-13 18:19         ` Ulrich Drepper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).