diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-12-05 02:11:43 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-12-05 02:11:43 +0000 |
commit | a9745bc4f63707ff156676f72d9c9e6099fad6b7 (patch) | |
tree | 486a0d369a7b3eca7863e82b954b2cedf9a0e512 /term | |
parent | 199059b00afea16595cdc2063bb9848303bfbe85 (diff) |
(pty_io_read): Add CRED arg.
Diffstat (limited to 'term')
-rw-r--r-- | term/ptyio.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/term/ptyio.c b/term/ptyio.c index ea032be6..c4fea4a1 100644 --- a/term/ptyio.c +++ b/term/ptyio.c @@ -211,7 +211,8 @@ struct bottomhalf ptyio_bottom = /* Validation has already been done by trivfs_S_io_read. */ error_t -pty_io_read (char **data, +pty_io_read (struct trivfs_protid *cred, + char **data, mach_msg_type_number_t *datalen, mach_msg_type_number_t amount) { @@ -219,6 +220,8 @@ pty_io_read (char **data, mutex_lock (&global_lock); + /* Validate CRED. XXX */ + while (!control_byte && (!qsize (outputq) || (termflags & USER_OUTPUT_SUSP))) { |