Blob Blame History Raw
2007-06-11  Stepan Kasal  <skasal@redhat.com>

	* man2/sched_setaffinity.2: Fix the type of cpusetsize.

The evolution of the second parameter of sched_{set,get}affinity() can
be watched here:
http://sourceware.org/cgi-bin/cvsweb.cgi/libc/posix/sched.h?cvsroot=glibc

When it was first introduced in glibc-2.3, it had type `unsigned long int' (rev 1.11.):
http://sourceware.org/cgi-bin/cvsweb.cgi/libc/posix/sched.h.diff?r1=1.10&r2=1.11&cvsroot=glibc

For 2.3.2, the type was changed to `unsigned int' (rev 1.12):
http://sourceware.org/cgi-bin/cvsweb.cgi/libc/posix/sched.h.diff?r1=1.11&r2=1.12&cvsroot=glibc

As the manual says, the parameter has disappeared in glibc-2.3.3 (rev. 1.13):
http://sourceware.org/cgi-bin/cvsweb.cgi/libc/posix/sched.h.diff?r1=1.12&r2=1.13&cvsroot=glibc

When it was reintroduced in 2.3.4, it had type `size_t' (rev. 1.16):
http://sourceware.org/cgi-bin/cvsweb.cgi/libc/posix/sched.h.diff?r1=1.15&r2=1.16&cvsroot=glibc

Since then (Mar 19, 2004), the interface has not changed.


diff -urpN man-pages-2.51.orig/man2/sched_setaffinity.2 man-pages-2.51/man2/sched_setaffinity.2
--- man-pages-2.51.orig/man2/sched_setaffinity.2	2007-04-13 00:42:49.000000000 +0200
+++ man-pages-2.51/man2/sched_setaffinity.2	2007-06-08 17:19:00.000000000 +0200
@@ -38,10 +38,10 @@ sched_setaffinity, sched_getaffinity, CP
 .nf
 .B #include <sched.h>
 .sp
-.BI "int sched_setaffinity(pid_t " pid ", unsigned int " cpusetsize ,
+.BI "int sched_setaffinity(pid_t " pid ", size_t " cpusetsize ,
 .BI "                      cpu_set_t *" mask );
 .sp
-.BI "int sched_getaffinity(pid_t " pid ", unsigned int " cpusetsize ,
+.BI "int sched_getaffinity(pid_t " pid ", size_t " cpusetsize ,
 .BI "                      cpu_set_t *" mask );
 .sp
 .BI "void CPU_CLR(int " cpu ", cpu_set_t *" set );