[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 13/23] auth: add a payload-aware intrans function
From: |
Justus Winter |
Subject: |
[PATCH 13/23] auth: add a payload-aware intrans function |
Date: |
Fri, 29 Nov 2013 01:03:41 +0100 |
* auth/authmutations.h: Add mutator.
* auth/auth_mig.h (auth_payload_to_handle): New declaration.
* auth/auth.c (auth_payload_to_handle): New function.
* utils/fakeauth.c (auth_payload_to_handle): Likewise.
---
auth/auth.c | 6 ++++++
auth/auth_mig.h | 1 +
auth/authmutations.h | 1 +
utils/fakeauth.c | 6 ++++++
4 files changed, 14 insertions(+)
diff --git a/auth/auth.c b/auth/auth.c
index 91a21e4..4fdb712 100644
--- a/auth/auth.c
+++ b/auth/auth.c
@@ -80,6 +80,12 @@ auth_port_to_handle (auth_t auth)
{
return ports_lookup_port (auth_bucket, auth, authhandle_portclass);
}
+
+authhandle_t
+auth_payload_to_handle (unsigned long payload)
+{
+ return ports_lookup_payload (auth_bucket, payload, authhandle_portclass);
+}
/* id management. */
diff --git a/auth/auth_mig.h b/auth/auth_mig.h
index d919c1b..7b20915 100644
--- a/auth/auth_mig.h
+++ b/auth/auth_mig.h
@@ -1,5 +1,6 @@
typedef struct authhandle *authhandle_t;
authhandle_t auth_port_to_handle (auth_t);
+authhandle_t auth_payload_to_handle (unsigned long);
#include <hurd/ports.h>
diff --git a/auth/authmutations.h b/auth/authmutations.h
index 63b2f54..69875ae 100644
--- a/auth/authmutations.h
+++ b/auth/authmutations.h
@@ -1,6 +1,7 @@
/* 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 ports_port_deref (authhandle_t)
#define AUTH_IMPORTS import "auth_mig.h";
diff --git a/utils/fakeauth.c b/utils/fakeauth.c
index 154bf8e..d934f41 100644
--- a/utils/fakeauth.c
+++ b/utils/fakeauth.c
@@ -71,6 +71,12 @@ auth_port_to_handle (auth_t auth)
{
return ports_lookup_port (auth_bucket, auth, authhandle_portclass);
}
+
+authhandle_t
+auth_payload_to_handle (unsigned long payload)
+{
+ return ports_lookup_payload (auth_bucket, payload, authhandle_portclass);
+}
/* id management. */
--
1.7.10.4
- [PATCH 02/23] proc: fix the receiver lookup in S_proc_exception_raise, (continued)
- [PATCH 02/23] proc: fix the receiver lookup in S_proc_exception_raise, Justus Winter, 2013/11/28
- [PATCH 03/23] libports: add ports_lookup_payload, Justus Winter, 2013/11/28
- [PATCH 04/23] proc: add a payload-aware intrans function, Justus Winter, 2013/11/28
- [PATCH 05/23] console: add a payload-aware intrans function, Justus Winter, 2013/11/28
- [PATCH 07/23] libnetfs: add a payload-aware intrans function, Justus Winter, 2013/11/28
- [PATCH 06/23] libdiskfs: add a payload-aware intrans function, Justus Winter, 2013/11/28
- [PATCH 10/23] exec: add intranspayload, Justus Winter, 2013/11/28
- [PATCH 08/23] libtrivfs: add a payload-aware intrans functions, Justus Winter, 2013/11/28
- [PATCH 09/23] libcons: add a payload-aware intrans function, Justus Winter, 2013/11/28
- [PATCH 11/23] pfinet: add a payload-aware intrans functions, Justus Winter, 2013/11/28
- [PATCH 13/23] auth: add a payload-aware intrans function,
Justus Winter <=
- [PATCH 12/23] pflocal: add a payload-aware intrans functions, Justus Winter, 2013/11/28
- [PATCH 14/23] trans: add a payload-aware intrans function to password, Justus Winter, 2013/11/28
- [PATCH 15/23] proc: add a payload-aware intrans function, Justus Winter, 2013/11/28
- [PATCH 17/23] trans: disable default payload to port mapping in fsysServer.c, Justus Winter, 2013/11/28
- [PATCH 16/23] init: disable default payload to port mapping, Justus Winter, 2013/11/28
- [PATCH 18/23] libports: add ports_payload_get_name, Justus Winter, 2013/11/28
- [PATCH 19/23] hurd: add intranpayload functions to all hurd types, Justus Winter, 2013/11/28
- [PATCH 22/23] Fix build, Justus Winter, 2013/11/28
- [PATCH 23/23] XXX i broke rpctrace, Justus Winter, 2013/11/28
- [PATCH 21/23] XXX libports: clear payload prior to port destruction, Justus Winter, 2013/11/28