r4944 - in glibc-package/trunk/debian: . patches/hurd-i386
Author: sthibault
Date: 2011-09-06 12:32:22 +0000 (Tue, 06 Sep 2011)
New Revision: 4944
Added:
glibc-package/trunk/debian/patches/hurd-i386/submitted-DEV_BSIZE.diff
glibc-package/trunk/debian/patches/hurd-i386/submitted-ttyname_ERANGE.diff
Modified:
glibc-package/trunk/debian/changelog
Log:
* Add patches/hurd-i386/submitted-ttyname_ERANGE.diff to fix ttyname error value.
* Add patches/hurd-i386/submitted-DEV_BSIZE.diff to add DEV_BSIZE.
Modified: glibc-package/trunk/debian/changelog
===================================================================
--- glibc-package/trunk/debian/changelog 2011-09-04 17:01:06 UTC (rev 4943)
+++ glibc-package/trunk/debian/changelog 2011-09-06 12:32:22 UTC (rev 4944)
@@ -24,6 +24,9 @@
[ Samuel Thibault ]
* Add patches/hurd-i386/submitted-libc_stack_end.diff to fix ruby1.9.1 stack
detection.
+ * Add patches/hurd-i386/submitted-ttyname_ERANGE.diff to fix ttyname error
+ value.
+ * Add patches/hurd-i386/submitted-DEV_BSIZE.diff to add DEV_BSIZE.
[ Petr Salinger ]
* kfreebsd/local-sysdeps.diff: update to revision 3697 (from glibc-bsd).
Added: glibc-package/trunk/debian/patches/hurd-i386/submitted-DEV_BSIZE.diff
===================================================================
--- glibc-package/trunk/debian/patches/hurd-i386/submitted-DEV_BSIZE.diff (rev 0)
+++ glibc-package/trunk/debian/patches/hurd-i386/submitted-DEV_BSIZE.diff 2011-09-06 12:32:22 UTC (rev 4944)
@@ -0,0 +1,19 @@
+2011-09-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
+
+* sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): Define macro.
+
+diff --git a/sysdeps/mach/hurd/sys/param.h b/sysdeps/mach/hurd/sys/param.h
+index 699ba35..29cb1e3 100644
+--- a/sysdeps/mach/hurd/sys/param.h
++++ b/sysdeps/mach/hurd/sys/param.h
+@@ -119,6 +119,10 @@
+ #define MAX(a,b) (((a)>(b))?(a):(b))
+
+
++/* Unit of `st_blocks'. */
++#define DEV_BSIZE 512
++
++
+ /* Scale factor for scaled integers used to count %cpu time and load avgs.
+
+ The number of CPU `tick's that map to a unique `%age' can be expressed
Added: glibc-package/trunk/debian/patches/hurd-i386/submitted-ttyname_ERANGE.diff
===================================================================
--- glibc-package/trunk/debian/patches/hurd-i386/submitted-ttyname_ERANGE.diff (rev 0)
+++ glibc-package/trunk/debian/patches/hurd-i386/submitted-ttyname_ERANGE.diff 2011-09-06 12:32:22 UTC (rev 4944)
@@ -0,0 +1,20 @@
+http://sourceware.org/ml/libc-alpha/2011-08/msg00013.html
+
+2011-08-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
+
+ * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
+ EINVAL when BUFLEN is too smal.
+
+diff --git a/sysdeps/mach/hurd/ttyname_r.c b/sysdeps/mach/hurd/ttyname_r.c
+index 5f6c9c3..5718fca 100644
+--- a/sysdeps/mach/hurd/ttyname_r.c
++++ b/sysdeps/mach/hurd/ttyname_r.c
+@@ -43,7 +43,7 @@ __ttyname_r (int fd, char *buf, size_t buflen)
+ len = strlen (nodename) + 1;
+ if (len > buflen)
+ {
+- errno = EINVAL;
++ errno = ERANGE;
+ return errno;
+ }
+
Reply to: