From a9745bc4f63707ff156676f72d9c9e6099fad6b7 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Tue, 5 Dec 1995 02:11:43 +0000 Subject: (pty_io_read): Add CRED arg. --- term/ptyio.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'term') 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))) { -- cgit v1.2.3