summaryrefslogtreecommitdiff
path: root/debian/patches/0008-auth-add-a-payload-aware-intrans-function.patch
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2014-11-21 12:13:50 +0100
committerJustus Winter <4winter@informatik.uni-hamburg.de>2014-11-21 12:13:50 +0100
commitab8e6cfa9734082d02e36934852ac53715ed9cf8 (patch)
tree21a501d9aa2d1ad92fe18269208c68ce5a39950b /debian/patches/0008-auth-add-a-payload-aware-intrans-function.patch
parenta22a44d56a9776c04151f43b495baf12d8718739 (diff)
add patch series
Diffstat (limited to 'debian/patches/0008-auth-add-a-payload-aware-intrans-function.patch')
-rw-r--r--debian/patches/0008-auth-add-a-payload-aware-intrans-function.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/debian/patches/0008-auth-add-a-payload-aware-intrans-function.patch b/debian/patches/0008-auth-add-a-payload-aware-intrans-function.patch
new file mode 100644
index 00000000..a17b1182
--- /dev/null
+++ b/debian/patches/0008-auth-add-a-payload-aware-intrans-function.patch
@@ -0,0 +1,43 @@
+From b68dede80f8b2844a48e48e472d9e416d9546cc2 Mon Sep 17 00:00:00 2001
+From: Justus Winter <4winter@informatik.uni-hamburg.de>
+Date: Thu, 28 Nov 2013 14:43:31 +0100
+Subject: [PATCH hurd 08/29] auth: add a payload-aware intrans function
+
+* auth/mig-mutate.h: Add mutator.
+* auth/mig-decls.h (auth_payload_to_handle): New function.
+---
+ auth/mig-decls.h | 6 ++++++
+ auth/mig-mutate.h | 1 +
+ 2 files changed, 7 insertions(+)
+
+diff --git a/auth/mig-decls.h b/auth/mig-decls.h
+index 09c7c70..fa7b06d 100644
+--- a/auth/mig-decls.h
++++ b/auth/mig-decls.h
+@@ -32,6 +32,12 @@ auth_port_to_handle (mach_port_t auth)
+ return ports_lookup_port (auth_bucket, auth, authhandle_portclass);
+ }
+
++static inline struct authhandle * __attribute__ ((unused))
++auth_payload_to_handle (unsigned long payload)
++{
++ return ports_lookup_payload (auth_bucket, payload, authhandle_portclass);
++}
++
+ static inline void __attribute__ ((unused))
+ end_using_authhandle (struct authhandle *auth)
+ {
+diff --git a/auth/mig-mutate.h b/auth/mig-mutate.h
+index ea40c70..5cc8914 100644
+--- a/auth/mig-mutate.h
++++ b/auth/mig-mutate.h
+@@ -20,5 +20,6 @@
+ /* CPP definitions for MiG processing of auth.defs for auth server. */
+
+ #define AUTH_INTRAN authhandle_t auth_port_to_handle (auth_t)
++#define AUTH_INTRAN_PAYLOAD authhandle_t auth_payload_to_handle
+ #define AUTH_DESTRUCTOR end_using_authhandle (authhandle_t)
+ #define AUTH_IMPORTS import "mig-decls.h";
+--
+2.1.3
+