Andreas Schwab writes: > Thorsten Kukuk writes: > >> Hi, >> >> sched_setaffinity has the following code: >> >> INTERNAL_SYSCALL (sched_getaffinity, err, 3, getpid(), psize, p) > > Here is a patch to fix the INTERNAL_SYSCALL macro for x86_64 and ia64. > The definition on arm is probably also affected, but I can't test it. The x86-64 version is ok. The question is just whether we want to go this road - or fix sched_getaffinity instead. I consider it safer to change INTERNAL_SYSCALL. But we should check all other platforms, a brief look shows: - m68k, x86 are ok - x86-64, ia64: Fixed with your patch - arm: Might need changes - s390, s390x: Look also broken. - ppc,ppc64, sparc, alpha, sh, mips, hppa, : Might need changes Andreas -- Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj SuSE Linux AG, Maxfeldstr. 5, 90409 Nürnberg, Germany GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126