[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 11/37: hurd: make the protected payload changes less intrusive
From: |
Samuel Thibault |
Subject: |
[hurd] 11/37: hurd: make the protected payload changes less intrusive |
Date: |
Mon, 09 Feb 2015 09:59:09 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to annotated tag upstream/hurd/0.5.git20150208
in repository hurd.
commit 89c2cbb53b8ad14ae9d5d06ec230a696bea4a6ba
Author: Justus Winter <address@hidden>
Date: Fri Dec 12 17:09:07 2014 +0100
hurd: make the protected payload changes less intrusive
The changes to `hurd_types.defs' caused the glibc build to fail.
Guard the problematic parts with `HURD_SERVER' similar how it is done
in GNU Mach.
* Makeconf: Define `HURD_SERVER' when preprocessing the RPC
definitions for the server side.
* hurd/hurd_types.defs: Guard problematic parts with `HURD_SERVER'.
---
Makeconf | 1 +
hurd/hurd_types.defs | 5 ++---
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Makeconf b/Makeconf
index 5439913..ed2f6d0 100644
--- a/Makeconf
+++ b/Makeconf
@@ -546,6 +546,7 @@ MIGCOMFLAGS := -subrprefix __
%.sdefsi %.sdefs.d: %.defs
$(CPP) $(CPPFLAGS) $(MIGSFLAGS) $($*-MIGSFLAGS) -DSERVERPREFIX=S_ \
+ -DHURD_SERVER=1 \
-MD -MF $*.sdefs.d.new \
$< -o $*.sdefsi
sed -e 's/[^:]*:/$*Server.c $(mig-sheader-prefix)$*_S.h:/' \
diff --git a/hurd/hurd_types.defs b/hurd/hurd_types.defs
index 4c01e63..5fa59f3 100644
--- a/hurd/hurd_types.defs
+++ b/hurd/hurd_types.defs
@@ -18,6 +18,7 @@ along with the GNU Hurd; see the file COPYING. If not, write
to
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
+#ifdef HURD_SERVER
/* The Hurd uses protected payloads to quickly look up the object
receiving a message. Looking up objects is optimized at the cost
of having to translate payloads back to port names if the server
@@ -42,10 +43,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA
02139, USA. */
#undef HURD_DEFAULT_PAYLOAD_TO_PORT
#endif
#else
-/* Ideally we would include this here, to make sure ports_payload_get_name gets
- declared, but this leads to an inclusion loop via hurd/signal.h
import <hurd/ports.h>;
- */
#define HURD_DEFAULT_PAYLOAD_TO_PORT ports_payload_get_name
#endif
@@ -55,6 +53,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA
02139, USA. */
#ifdef HURD_DEFAULT_PAYLOAD_TO_PORT
#define MACH_PAYLOAD_TO_PORT HURD_DEFAULT_PAYLOAD_TO_PORT
#endif
+#endif /* HURD_SERVER */
#include <mach/std_types.defs>
#include <mach/mach_types.defs>
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] annotated tag upstream/hurd/0.5.git20150208 created (now 45cd7fe), Samuel Thibault, 2015/02/09
- [hurd] 13/37: Make sure to free content dir in procfs, Samuel Thibault, 2015/02/09
- [hurd] 14/37: Revert "Make sure to free content dir in procfs", Samuel Thibault, 2015/02/09
- [hurd] 20/37: libshouldbeinlibc: Fix typo in local variable name, Samuel Thibault, 2015/02/09
- [hurd] 15/37: lib*: Fix typos in comments (found by codespell), Samuel Thibault, 2015/02/09
- [hurd] 11/37: hurd: make the protected payload changes less intrusive,
Samuel Thibault <=
- [hurd] 23/37: random: fix typo, Samuel Thibault, 2015/02/09
- [hurd] 21/37: procfs: Fix typos in comments (found by codespell), Samuel Thibault, 2015/02/09
- [hurd] 25/37: libdiskfs: fix port leak, Samuel Thibault, 2015/02/09
- [hurd] 17/37: console-client: Fix typos in comments, Samuel Thibault, 2015/02/09
- [hurd] 27/37: startup: give the tasks we create a name, Samuel Thibault, 2015/02/09
- [hurd] 33/37: Remove unimplemented -s option, Samuel Thibault, 2015/02/09
- [hurd] 19/37: misc: Fix typos in comments (found by codespell), Samuel Thibault, 2015/02/09
- [hurd] 36/37: startup: add more error handling, Samuel Thibault, 2015/02/09
- [hurd] 32/37: utils/rpctrace: fix notification port handling, Samuel Thibault, 2015/02/09
- [hurd] 16/37: aclocal.m4, configure.ac: Fix typos and grammar in comment (found by codespell), Samuel Thibault, 2015/02/09