commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hurd] 58/75: Define IO_OUTTRAN so that term_on_pty returns a mach_port_


From: Samuel Thibault
Subject: [hurd] 58/75: Define IO_OUTTRAN so that term_on_pty returns a mach_port_t
Date: Thu, 14 Jan 2016 01:04:10 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch dde
in repository hurd.

commit f2524f5bfed878ae229eea3484dad2e0e9369b3a
Author: Flavio Cruz <address@hidden>
Date:   Thu Dec 31 16:12:59 2015 +0100

    Define IO_OUTTRAN so that term_on_pty returns a mach_port_t
    
    * libtrivfs/mig-decls.h: Implement trivfs_convert_to_port.
    * term/mig-mutate.h: Define IO_OUTTRAN.
---
 libtrivfs/mig-decls.h | 6 ++++++
 term/mig-mutate.h     | 1 +
 2 files changed, 7 insertions(+)

diff --git a/libtrivfs/mig-decls.h b/libtrivfs/mig-decls.h
index 230af23..f3afd5a 100644
--- a/libtrivfs/mig-decls.h
+++ b/libtrivfs/mig-decls.h
@@ -75,6 +75,12 @@ trivfs_end_using_protid (struct trivfs_protid *cred)
     ports_port_deref (cred);
 }
 
+static inline mach_port_t __attribute__ ((unused))
+trivfs_convert_to_port(struct trivfs_protid *protid)
+{
+  return protid->pi.port_right;
+}
+
 static inline struct trivfs_control * __attribute__ ((unused))
 trivfs_begin_using_control (mach_port_t port)
 {
diff --git a/term/mig-mutate.h b/term/mig-mutate.h
index af8877e..9fcdbbc 100644
--- a/term/mig-mutate.h
+++ b/term/mig-mutate.h
@@ -22,6 +22,7 @@
 #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 IO_OUTTRAN io_t trivfs_convert_to_port (trivfs_protid_t)
 
 #define CTTY_INTRAN                                    \
   port_info_t begin_using_ctty_port (mach_port_t)

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]