diff options
-rw-r--r-- | debian/patches/pp-random.patch | 41 | ||||
-rw-r--r-- | debian/patches/series | 1 |
2 files changed, 42 insertions, 0 deletions
diff --git a/debian/patches/pp-random.patch b/debian/patches/pp-random.patch new file mode 100644 index 00000000..ae315312 --- /dev/null +++ b/debian/patches/pp-random.patch @@ -0,0 +1,41 @@ +commit fa1aea985c171a3c754ef33cc7dbd6b0b9dd824c +Author: Justus Winter <4winter@informatik.uni-hamburg.de> +Date: Mon Jun 9 11:47:02 2014 +0200 + + devnode: add a payload-aware intrans function + + * random/mig-mutate.h: Add mutator. + * random/mig-decls.h (begin_using_startup_payload): New function. + +diff --git a/random/mig-decls.h b/random/mig-decls.h +index 87b7eb2..dbe6b4a 100644 +--- a/random/mig-decls.h ++++ b/random/mig-decls.h +@@ -37,6 +37,14 @@ begin_using_startup_port (mach_port_t port) + shutdown_notify_class); + } + ++static inline struct port_info * __attribute__ ((unused)) ++begin_using_startup_payload (unsigned long payload) ++{ ++ return ports_lookup_payload (fsys->pi.bucket, ++ payload, ++ shutdown_notify_class); ++} ++ + static inline void __attribute__ ((unused)) + end_using_startup (struct port_info *p) + { +diff --git a/random/mig-mutate.h b/random/mig-mutate.h +index dab89e5..240b1f6 100644 +--- a/random/mig-mutate.h ++++ b/random/mig-mutate.h +@@ -19,6 +19,8 @@ + + #define STARTUP_INTRAN \ + port_info_t begin_using_startup_port (mach_port_t) ++#define STARTUP_INTRAN_PAYLOAD \ ++ port_info_t begin_using_startup_payload + #define STARTUP_DESTRUCTOR \ + end_using_startup (port_info_t) + #define STARTUP_IMPORTS \ diff --git a/debian/patches/series b/debian/patches/series index 56cd011f..5c6ddf6a 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -53,3 +53,4 @@ fix-net_rcv_msg.patch 0009-ext2fs-fix-type-of-retry_dotdot.patch pp.patch pp-dde.patch +pp-random.patch |