r4206 - in glibc-package/trunk/debian: . patches patches/sparc
Author: aurel32
Date: 2010-02-26 21:46:33 +0000 (Fri, 26 Feb 2010)
New Revision: 4206
Added:
glibc-package/trunk/debian/patches/sparc/submitted-msgrcv.diff
Modified:
glibc-package/trunk/debian/changelog
glibc-package/trunk/debian/patches/series
Log:
* Add patches/sparc/submitted-msgrcv.diff to fix msgrcv() on sparc64,
and with it fakeroot.
Modified: glibc-package/trunk/debian/changelog
===================================================================
--- glibc-package/trunk/debian/changelog 2010-02-23 19:00:37 UTC (rev 4205)
+++ glibc-package/trunk/debian/changelog 2010-02-26 21:46:33 UTC (rev 4206)
@@ -21,6 +21,8 @@
* rules.d/debhelper.mk: remove obsolete comment. Closes: #570946.
* Replace patches/sparc/local-sparcv9-memchr.diff by
patches/sparc/cvs-sparcv9-memchr.diff.
+ * Add patches/sparc/submitted-msgrcv.diff to fix msgrcv() on sparc64,
+ and with it fakeroot.
[ Petr Salinger]
* kfreebsd/local-sysdeps.diff: update to revision 2986 (from glibc-bsd).
@@ -28,7 +30,7 @@
the 8.0 kernel supports them as native, under previous kernels we have
limited emulation.
- -- Aurelien Jarno <aurel32@debian.org> Tue, 23 Feb 2010 11:24:08 +0100
+ -- Aurelien Jarno <aurel32@debian.org> Fri, 26 Feb 2010 22:38:47 +0100
eglibc (2.10.2-6) unstable; urgency=low
Modified: glibc-package/trunk/debian/patches/series
===================================================================
--- glibc-package/trunk/debian/patches/series 2010-02-23 19:00:37 UTC (rev 4205)
+++ glibc-package/trunk/debian/patches/series 2010-02-26 21:46:33 UTC (rev 4206)
@@ -149,6 +149,7 @@
sparc/local-sparcv9-target.diff
sparc/submitted-timing.diff
sparc/cvs-sparcv9-memchr.diff
+sparc/submitted-msgrcv.diff
all/local-alias-UTF-8.diff
all/local-alias-et_EE.diff
Added: glibc-package/trunk/debian/patches/sparc/submitted-msgrcv.diff
===================================================================
--- glibc-package/trunk/debian/patches/sparc/submitted-msgrcv.diff (rev 0)
+++ glibc-package/trunk/debian/patches/sparc/submitted-msgrcv.diff 2010-02-26 21:46:33 UTC (rev 4206)
@@ -0,0 +1,56 @@
+2010-02-26 Aurelien Jarno <aurelien@aurel32.net>
+
+ * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: New file.
+
+--- /dev/null
++++ b/sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c
+@@ -0,0 +1,49 @@
++/* Copyright (C) 2010 Free Software Foundation, Inc.
++ This file is part of the GNU C Library.
++
++ The GNU C Library is free software; you can redistribute it and/or
++ modify it under the terms of the GNU Lesser General Public
++ License as published by the Free Software Foundation; either
++ version 2.1 of the License, or (at your option) any later version.
++
++ The GNU C Library is distributed in the hope that it will be useful,
++ but WITHOUT ANY WARRANTY; without even the implied warranty of
++ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
++ Lesser General Public License for more details.
++
++ You should have received a copy of the GNU Lesser General Public
++ License along with the GNU C Library; if not, write to the Free
++ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
++ 02111-1307 USA. */
++
++#include <errno.h>
++#include <sys/msg.h>
++#include <ipc_priv.h>
++
++#include <sysdep-cancel.h>
++#include <sys/syscall.h>
++
++#include <bp-checks.h>
++
++ssize_t
++__libc_msgrcv (msqid, msgp, msgsz, msgtyp, msgflg)
++ int msqid;
++ void *msgp;
++ size_t msgsz;
++ long int msgtyp;
++ int msgflg;
++{
++ if (SINGLE_THREAD_P)
++ return INLINE_SYSCALL (ipc, 6, IPCOP_msgrcv, msqid, msgsz, msgflg,
++ CHECK_N (msgp, msgsz), msgtyp);
++
++ int oldtype = LIBC_CANCEL_ASYNC ();
++
++ ssize_t result = INLINE_SYSCALL (ipc, 6, IPCOP_msgrcv, msqid, msgsz, msgflg,
++ CHECK_N (msgp, msgsz), msgtyp);
++
++ LIBC_CANCEL_RESET (oldtype);
++
++ return result;
++}
++weak_alias (__libc_msgrcv, msgrcv)
Reply to: