summaryrefslogtreecommitdiff
path: root/term
diff options
context:
space:
mode:
Diffstat (limited to 'term')
-rw-r--r--term/term.h10
-rw-r--r--term/users.c24
2 files changed, 0 insertions, 34 deletions
diff --git a/term/term.h b/term/term.h
index 74a4bf3e..c629a95d 100644
--- a/term/term.h
+++ b/term/term.h
@@ -291,14 +291,4 @@ error_t pty_io_write (struct trivfs_protid *, char *,
error_t pty_io_read (struct trivfs_protid *, char **,
mach_msg_type_number_t *, mach_msg_type_number_t);
error_t pty_io_readable (int *);
-error_t pty_io_get_openmodes (struct trivfs_protid *, int *);
-error_t pty_io_set_all_openmodes (struct trivfs_protid *, int);
-error_t pty_io_set_some_openmodes (struct trivfs_protid *, int);
-error_t pty_io_clear_some_openmodes (struct trivfs_protid *, int);
-error_t pty_io_mod_owner (pid_t);
-error_t pty_io_get_owner (pid_t *);
-error_t pty_io_get_async_icky (struct trivfs_protid *,
- mach_port_t *, mach_msg_type_name_t *);
-error_t pty_io_async (struct trivfs_protid *, mach_port_t, mach_port_t *,
- mach_msg_type_name_t *);
error_t pty_io_select (struct trivfs_protid *, int *, int *);
diff --git a/term/users.c b/term/users.c
index 63e52803..8b27acee 100644
--- a/term/users.c
+++ b/term/users.c
@@ -1514,9 +1514,6 @@ trivfs_S_io_get_openmodes (struct trivfs_protid *cred,
if (!cred)
return EOPNOTSUPP;
- if (cred->pi.class == pty_class)
- return pty_io_get_openmodes (cred, bits);
-
mutex_lock (&global_lock);
*bits = cred->po->openmodes;
mutex_unlock (&global_lock);
@@ -1535,9 +1532,6 @@ trivfs_S_io_set_all_openmodes (struct trivfs_protid *cred,
if (!cred)
return EOPNOTSUPP;
- if (cred->pi.class == pty_class)
- return pty_io_set_all_openmodes (cred, bits);
-
mutex_lock (&global_lock);
cred->po->openmodes &= ~HONORED_STATE_MODES;
cred->po->openmodes |= (bits & HONORED_STATE_MODES);
@@ -1554,9 +1548,6 @@ trivfs_S_io_set_some_openmodes (struct trivfs_protid *cred,
if (!cred)
return EOPNOTSUPP;
- if (cred->pi.class == pty_class)
- return pty_io_set_some_openmodes (cred, bits);
-
mutex_lock (&global_lock);
cred->po->openmodes |= (bits & HONORED_STATE_MODES);
mutex_unlock (&global_lock);
@@ -1572,9 +1563,6 @@ trivfs_S_io_clear_some_openmodes (struct trivfs_protid *cred,
if (!cred)
return EOPNOTSUPP;
- if (cred->pi.class == pty_class)
- return pty_io_clear_some_openmodes (cred, bits);
-
mutex_lock (&global_lock);
cred->po->openmodes &= ~(bits & HONORED_STATE_MODES);
mutex_unlock (&global_lock);
@@ -1590,9 +1578,6 @@ trivfs_S_io_mod_owner (struct trivfs_protid *cred,
if (!cred)
return EOPNOTSUPP;
- if (cred->pi.class == pty_class)
- return pty_io_mod_owner (owner);
-
mutex_lock (&global_lock);
termflags &= ~NO_OWNER;
foreground_id = owner;
@@ -1609,9 +1594,6 @@ trivfs_S_io_get_owner (struct trivfs_protid *cred,
if (!cred)
return EOPNOTSUPP;
- if (cred->pi.class == pty_class)
- return pty_io_get_owner (owner);
-
mutex_lock (&global_lock);
if (termflags & NO_OWNER)
{
@@ -1631,9 +1613,6 @@ trivfs_S_io_get_async_icky (struct trivfs_protid *cred,
if (!cred)
return EOPNOTSUPP;
- if (cred->pi.class == pty_class)
- return pty_io_get_async_icky (cred, id, idtype);
-
mutex_lock (&global_lock);
if (!(cred->po->openmodes & (O_READ|O_WRITE)))
{
@@ -1656,9 +1635,6 @@ trivfs_S_io_async (struct trivfs_protid *cred,
if (!cred)
return EOPNOTSUPP;
- if (cred->pi.class == pty_class)
- return pty_io_async (cred, notify, id, idtype);
-
mutex_lock (&global_lock);
if (!(cred->po->openmodes & (O_READ|O_WRITE)))
{