diff options
author | Flavio Cruz <flaviocruz@gmail.com> | 2015-12-31 16:12:59 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2015-12-31 16:23:16 +0100 |
commit | f2524f5bfed878ae229eea3484dad2e0e9369b3a (patch) | |
tree | 5fc02c80c3d71f47234d31179a48a71664ab35f4 /libtrivfs | |
parent | 2c414dc400729160ec4d2004c60470ce59ad9008 (diff) |
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.
Diffstat (limited to 'libtrivfs')
-rw-r--r-- | libtrivfs/mig-decls.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libtrivfs/mig-decls.h b/libtrivfs/mig-decls.h index 230af239..f3afd5ae 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) { |