From 50b7d1c3b850ac90fde5eb32a5862149b3f14cb0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=A0t=C4=9Bp=C3=A1n=20Kasal?= <kasal@fedoraproject.org>
Date: Mon, 11 Jun 2007 15:46:40 +0000
Subject: [PATCH] Add proove to the top of my patches, to convince upstrem.

---
 man-pages-2.51-nscd-conf.patch         | 20 ++++++++++++-
 man-pages-2.51-sched_setaffinity.patch | 39 ++++++++++++++++++++++++++
 man-pages-2.51-typos.patch             |  4 ++-
 3 files changed, 61 insertions(+), 2 deletions(-)
 create mode 100644 man-pages-2.51-sched_setaffinity.patch

diff --git a/man-pages-2.51-nscd-conf.patch b/man-pages-2.51-nscd-conf.patch
index c02a62e..7898779 100644
--- a/man-pages-2.51-nscd-conf.patch
+++ b/man-pages-2.51-nscd-conf.patch
@@ -1,4 +1,22 @@
-Document max-db-size and auto-propagate.
+Document max-db-size and auto-propagate in nscd.conf.
+
+The code for nscd is available at:
+http://sourceware.org/cgi-bin/cvsweb.cgi/libc/nscd/?cvsroot=glibc
+
+The two new options are used in the default nscd.conf, introduced in
+revisions 1.11 and 1.12.  See:
+http://sourceware.org/cgi-bin/cvsweb.cgi/libc/nscd/nscd.conf.diff?r1=1.10&r2=1.12&cvsroot=glibc
+
+See also the parser code for `nscd.conf', in `nscd/nscd_conf.c'.
+To see how the max-db-size is used, grep `nscd/mem.c' for
+`max_db_size'.
+To se the actual usage of `auto-propagate', grep `nscd/pwdcache.c' and
+`nscd/grpcache.c' for `propagate'.
+
+A news entry where Ulrich Drepper announces the `auto-propagate'
+option:
+http://sourceware.org/ml/libc-alpha/2006-09/msg00065.html
+
 
 diff -urpN man-pages-2.51.orig/man5/nscd.conf.5 man-pages-2.51/man5/nscd.conf.5
 --- man-pages-2.51.orig/man5/nscd.conf.5	2007-05-11 20:38:22.000000000 +0200
diff --git a/man-pages-2.51-sched_setaffinity.patch b/man-pages-2.51-sched_setaffinity.patch
new file mode 100644
index 0000000..ca4b014
--- /dev/null
+++ b/man-pages-2.51-sched_setaffinity.patch
@@ -0,0 +1,39 @@
+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 );
diff --git a/man-pages-2.51-typos.patch b/man-pages-2.51-typos.patch
index 5c1f689..53f0cc2 100644
--- a/man-pages-2.51-typos.patch
+++ b/man-pages-2.51-typos.patch
@@ -1,4 +1,6 @@
-cacheing -> caching
+2007-06-11  Stepan Kasal  <skasal@redhat.com>
+
+	* man7/bootparam.7, man8/nscd.8: Fix typo: "cacheing" -> "caching".
 
 diff -urpN man-pages-2.51.orig/man7/bootparam.7 man-pages-2.51/man7/bootparam.7
 --- man-pages-2.51.orig/man7/bootparam.7	2007-05-05 00:53:16.000000000 +0200