This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/1358] New: sched_setaffinity is busted on alpha
- From: "colin at gibbsonline dot net" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 19 Sep 2005 23:02:54 -0000
- Subject: [Bug libc/1358] New: sched_setaffinity is busted on alpha
- Reply-to: sourceware-bugzilla at sourceware dot org
The problem stems from this call (sched_setaffinity.c:51):
while (res = INTERNAL_SYSCALL (sched_getaffinity, err, 3, getpid (),
psize, p),
INTERNAL_SYSCALL_ERROR_P (res, err)
&& INTERNAL_SYSCALL_ERRNO (res, err) == EINVAL)
When the macro is expanded the call to getpid clobbers the system call number.
There was a similar problem on ppc documented here:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=311053
--
Summary: sched_setaffinity is busted on alpha
Product: glibc
Version: 2.3.5
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: gotom at debian dot or dot jp
ReportedBy: colin at gibbsonline dot net
CC: glibc-bugs at sources dot redhat dot com
GCC host triplet: alpha-linux
GCC target triplet: alpha-linux
http://sourceware.org/bugzilla/show_bug.cgi?id=1358
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.