summaryrefslogtreecommitdiff
path: root/debian/patches/0007-libcons-add-a-payload-aware-intrans-function.patch
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2014-12-02 00:29:37 +0100
committerJustus Winter <4winter@informatik.uni-hamburg.de>2014-12-02 00:29:37 +0100
commitdf1a438eae4acd80c9a9ac8cfcf596ff21adef1c (patch)
treea9bf557001bfaddf46da6fdc49293b0d02715718 /debian/patches/0007-libcons-add-a-payload-aware-intrans-function.patch
parent370e931feb0f74481b30236a11e8de95f2cba8d6 (diff)
add patch series
Diffstat (limited to 'debian/patches/0007-libcons-add-a-payload-aware-intrans-function.patch')
-rw-r--r--debian/patches/0007-libcons-add-a-payload-aware-intrans-function.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/debian/patches/0007-libcons-add-a-payload-aware-intrans-function.patch b/debian/patches/0007-libcons-add-a-payload-aware-intrans-function.patch
new file mode 100644
index 00000000..a4bcb303
--- /dev/null
+++ b/debian/patches/0007-libcons-add-a-payload-aware-intrans-function.patch
@@ -0,0 +1,44 @@
+From e36f31c6aecdc4ac1653b18aa99c23c0bba62e37 Mon Sep 17 00:00:00 2001
+From: Justus Winter <4winter@informatik.uni-hamburg.de>
+Date: Thu, 28 Nov 2013 14:12:25 +0100
+Subject: [PATCH hurd 07/29] libcons: add a payload-aware intrans function
+
+* libcons/mutations.h: Add mutator.
+* libcons/priv.h (begin_using_notify_payload): New function.
+---
+ libcons/mutations.h | 1 +
+ libcons/priv.h | 6 ++++++
+ 2 files changed, 7 insertions(+)
+
+diff --git a/libcons/mutations.h b/libcons/mutations.h
+index c895447..4751340 100644
+--- a/libcons/mutations.h
++++ b/libcons/mutations.h
+@@ -21,6 +21,7 @@
+ /* Only CPP macro definitions should go in this file. */
+
+ #define FS_NOTIFY_INTRAN cons_notify_t begin_using_notify_port (fs_notify_t)
++#define FS_NOTIFY_INTRAN_PAYLOAD cons_notify_t begin_using_notify_payload
+ #define FS_NOTIFY_DESTRUCTOR end_using_notify_port (cons_notify_t)
+
+ #define FS_NOTIFY_IMPORTS import "priv.h";
+diff --git a/libcons/priv.h b/libcons/priv.h
+index 38971ff..6cdf3db 100644
+--- a/libcons/priv.h
++++ b/libcons/priv.h
+@@ -80,6 +80,12 @@ begin_using_notify_port (fs_notify_t port)
+ return ports_lookup_port (cons_port_bucket, port, cons_port_class);
+ }
+
++static inline cons_notify_t
++begin_using_notify_payload (unsigned long payload)
++{
++ return ports_lookup_payload (cons_port_bucket, payload, cons_port_class);
++}
++
+ /* Called by MiG after server routines have been run; this balances
+ begin_using_notify_port, and is arranged for the fs_notify
+ interfaces by mutations.h. */
+--
+2.1.3
+