Author: sthibaul-guest
Date: 2009-01-27 21:20:22 +0000 (Tue, 27 Jan 2009)
New Revision: 3255

Added:
   
glibc-package/branches/glibc-2.9/debian/patches/hurd-i386/submitted-critical-sections.diff
Modified:
   glibc-package/branches/glibc-2.9/debian/changelog
   glibc-package/branches/glibc-2.9/debian/patches/series
Log:
  * hurd-i386/submitted-critical-sections.diff: new patch to fix some missing
    critical sections.


Modified: glibc-package/branches/glibc-2.9/debian/changelog
===================================================================
--- glibc-package/branches/glibc-2.9/debian/changelog   2009-01-27 21:15:11 UTC 
(rev 3254)
+++ glibc-package/branches/glibc-2.9/debian/changelog   2009-01-27 21:20:22 UTC 
(rev 3255)
@@ -98,6 +98,8 @@
     values in some packages
   * hurd-i386/cvs-hurdsig-fix.diff: new patch to fix hurd signal FD locking.
   * hurd-i386/cvs-report-wait-fix.diff: new patch to fix report-wait crash.
+  * hurd-i386/submitted-critical-sections.diff: new patch to fix some missing
+    critical sections.
 
  -- Aurelien Jarno <[email protected]>  Sun, 25 Jan 2009 11:14:06 +0100
 

Added: 
glibc-package/branches/glibc-2.9/debian/patches/hurd-i386/submitted-critical-sections.diff
===================================================================
--- 
glibc-package/branches/glibc-2.9/debian/patches/hurd-i386/submitted-critical-sections.diff
                          (rev 0)
+++ 
glibc-package/branches/glibc-2.9/debian/patches/hurd-i386/submitted-critical-sections.diff
  2009-01-27 21:20:22 UTC (rev 3255)
@@ -0,0 +1,65 @@
+Index: glibc/hurd/hurd/fd.h
+===================================================================
+RCS file: /cvs/glibc/libc/hurd/hurd/fd.h,v
+retrieving revision 1.37
+diff -u -p -r1.37 fd.h
+--- glibc/hurd/hurd/fd.h       2 Jul 2008 09:53:29 -0000       1.37
++++ glibc/hurd/hurd/fd.h       27 Jan 2009 21:15:32 -0000
+@@ -63,6 +63,7 @@ extern struct mutex _hurd_dtable_lock; /
+ {
+   struct hurd_fd *descriptor;
+ 
++  HURD_CRITICAL_BEGIN;
+   __mutex_lock (&_hurd_dtable_lock);
+   if (fd < 0 || fd >= _hurd_dtablesize)
+     descriptor = NULL;
+@@ -87,6 +88,7 @@ _hurd_fd_get (int fd)
+       }
+     }
+   __mutex_unlock (&_hurd_dtable_lock);
++  HURD_CRITICAL_END;
+ 
+   return descriptor;
+ }
+Index: glibc/sysdeps/mach/hurd/dirfd.c
+===================================================================
+RCS file: /cvs/glibc/libc/sysdeps/mach/hurd/dirfd.c,v
+retrieving revision 1.4
+diff -u -p -r1.4 dirfd.c
+--- glibc/sysdeps/mach/hurd/dirfd.c    6 Jul 2001 04:55:56 -0000       1.4
++++ glibc/sysdeps/mach/hurd/dirfd.c    27 Jan 2009 21:15:35 -0000
+@@ -26,6 +26,8 @@ int
+ dirfd (DIR *dirp)
+ {
+   int fd;
++
++  HURD_CRITICAL_BEGIN;
+   __mutex_lock (&_hurd_dtable_lock);
+   for (fd = 0; fd < _hurd_dtablesize; ++fd)
+     if (_hurd_dtable[fd] == dirp->__fd)
+@@ -36,6 +38,7 @@ dirfd (DIR *dirp)
+       fd = -1;
+     }
+   __mutex_unlock (&_hurd_dtable_lock);
++  HURD_CRITICAL_END;
+ 
+   return fd;
+ }
+Index: glibc/sysdeps/mach/hurd/opendir.c
+===================================================================
+RCS file: /cvs/glibc/libc/sysdeps/mach/hurd/opendir.c,v
+retrieving revision 1.17
+--- glibc/sysdeps/mach/hurd/opendir.c  5 Mar 2006 11:53:30 -0000       1.17
++++ glibc/sysdeps/mach/hurd/opendir.c  27 Jan 2009 21:15:36 -0000
+@@ -51,9 +51,11 @@ _hurd_fd_opendir (struct hurd_fd *d)
+     return NULL;
+ 
+   /* Set the descriptor to close on exec. */
++  HURD_CRITICAL_BEGIN;
+   __spin_lock (&d->port.lock);
+   d->flags |= FD_CLOEXEC;
+   __spin_unlock (&d->port.lock);
++  HURD_CRITICAL_END;
+ 
+   dirp->__fd = d;
+   dirp->__data = dirp->__ptr = NULL;

Modified: glibc-package/branches/glibc-2.9/debian/patches/series
===================================================================
--- glibc-package/branches/glibc-2.9/debian/patches/series      2009-01-27 
21:15:11 UTC (rev 3254)
+++ glibc-package/branches/glibc-2.9/debian/patches/series      2009-01-27 
21:20:22 UTC (rev 3255)
@@ -88,6 +88,7 @@
 hurd-i386/cvs-resource-prio.diff
 hurd-i386/cvs-hurdsig-fix.diff
 hurd-i386/cvs-report-wait-fix.diff
+hurd-i386/submitted-critical-sections.diff
 
 i386/local-biarch.diff
 i386/local-clone.diff


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to