blob: 60e4d9907bcf4b0715a7ab75d960fe14a99d6a44 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
From a244ba7a56f2c793c0948cf1603a838b3ecd2d35 Mon Sep 17 00:00:00 2001
From: Justus Winter <4winter@informatik.uni-hamburg.de>
Date: Mon, 14 Apr 2014 14:21:16 +0200
Subject: [PATCH hurd 17/28] term: add a payload-aware intrans function
* term/mig-mutate.h: Add mutator.
---
term/mig-decls.h | 6 ++++++
term/mig-mutate.h | 3 +++
2 files changed, 9 insertions(+)
diff --git a/term/mig-decls.h b/term/mig-decls.h
index c91b133..09b45c6 100644
--- a/term/mig-decls.h
+++ b/term/mig-decls.h
@@ -32,6 +32,12 @@ begin_using_ctty_port (mach_port_t port)
return ports_lookup_port (term_bucket, port, cttyid_class);
}
+static inline struct port_info * __attribute__ ((unused))
+begin_using_ctty_payload (unsigned long payload)
+{
+ return ports_lookup_payload (term_bucket, payload, cttyid_class);
+}
+
static inline void __attribute__ ((unused))
end_using_ctty (struct port_info *p)
{
diff --git a/term/mig-mutate.h b/term/mig-mutate.h
index 1545719..af8877e 100644
--- a/term/mig-mutate.h
+++ b/term/mig-mutate.h
@@ -20,10 +20,13 @@
/* Only CPP macro definitions should go in this file. */
#define IO_INTRAN trivfs_protid_t trivfs_begin_using_protid (io_t)
+#define IO_INTRAN_PAYLOAD trivfs_protid_t trivfs_begin_using_protid_payload
#define IO_DESTRUCTOR trivfs_end_using_protid (trivfs_protid_t)
#define CTTY_INTRAN \
port_info_t begin_using_ctty_port (mach_port_t)
+#define CTTY_INTRAN_PAYLOAD \
+ port_info_t begin_using_ctty_payload
#define CTTY_DESTRUCTOR \
end_using_ctty (port_info_t)
--
2.1.3
|