aboutsummaryrefslogtreecommitdiff
path: root/proc/mig-mutate.h
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2014-04-05 17:40:24 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2014-04-06 18:09:38 +0200
commite9687ec4ff525ae4a88314ba4ae97da770bd012f (patch)
tree9f434a3d390fc926d396c6958594e406090b7e46 /proc/mig-mutate.h
parente27425e63392683b85101961489a83e0abef133b (diff)
downloadhurd-e9687ec4ff525ae4a88314ba4ae97da770bd012f.tar.gz
hurd-e9687ec4ff525ae4a88314ba4ae97da770bd012f.tar.bz2
hurd-e9687ec4ff525ae4a88314ba4ae97da770bd012f.zip
libports: fix notify_port_t receiver lookups
* libports/Makefile (MIGSFLAGS): Include mig-mutate.h. * libports/mig-decls.h: New file. * libports/mig-mutate.h: Likewise. * libports/notify-dead-name.c: Fix receiver lookups. * libports/notify-no-senders.c: Likewise. * libports/notify-msg-accepted.c: Adjust function declaration. * libports/notify-port-deleted.c: Likewise. * libports/notify-port-destroyed.c: Likewise. * libports/notify-send-once.c: Likewise. * libports/ports.h: Likewise. * proc/Makefile (MIGSFLAGS): Include mig-mutate.h, move PROCESS mutators... * proc/mig-mutate.h: ... into a new file, add NOTIFY mutators. * proc/notify.c: Fix receiver lookups, adjust function declarations. * term/devio.c (ports_do_mach_notify_send_once): Adjust accordingly.
Diffstat (limited to 'proc/mig-mutate.h')
-rw-r--r--proc/mig-mutate.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/proc/mig-mutate.h b/proc/mig-mutate.h
new file mode 100644
index 00000000..ad6eb321
--- /dev/null
+++ b/proc/mig-mutate.h
@@ -0,0 +1,33 @@
+/*
+ Copyright (C) 2014 Free Software Foundation, Inc.
+ Written by Justus Winter.
+
+ This file is part of the GNU Hurd.
+
+ The GNU Hurd is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License as
+ published by the Free Software Foundation; either version 2, or (at
+ your option) any later version.
+
+ The GNU Hurd 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
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with the GNU Hurd. If not, see <http://www.gnu.org/licenses/>. */
+
+
+#define PROCESS_INTRAN \
+ pstruct_t reqport_find (process_t)
+#define PROCESS_DESTRUCTOR \
+ process_drop (pstruct_t)
+#define PROCESS_IMPORTS \
+ import "proc.h";
+
+#define NOTIFY_INTRAN \
+ port_info_t begin_using_port_info_port (mach_port_t)
+#define NOTIFY_DESTRUCTOR \
+ end_using_port_info (port_info_t)
+#define NOTIFY_IMPORTS \
+ import "libports/mig-decls.h";