summaryrefslogtreecommitdiff
path: root/pflocal
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-07-14 18:22:57 +0000
committerMiles Bader <miles@gnu.org>1995-07-14 18:22:57 +0000
commit9a039bc78fe03ac1d33df114d7cf5ff2e6aa434e (patch)
treec5b9954541b3f3d82160133e98e5ca8063a4787d /pflocal
parentb45e66621e40a50e720e6861ba9ab4c879bcf223 (diff)
Formerly io.c.~6~
Diffstat (limited to 'pflocal')
-rw-r--r--pflocal/io.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/pflocal/io.c b/pflocal/io.c
index 09b19fe6..46872b0b 100644
--- a/pflocal/io.c
+++ b/pflocal/io.c
@@ -40,7 +40,8 @@ S_io_read (struct sock_user *user,
if (!err)
{
err =
- pipe_read (pipe, sock->flags & SOCK_NONBLOCK, data, data_len, amount);
+ pipe_read (pipe, sock->flags & SOCK_NONBLOCK,
+ NULL, data, data_len, amount, NULL, NULL, NULL, NULL);
pipe_release (pipe);
}
@@ -111,7 +112,7 @@ S_io_readable (struct sock_user *user, mach_msg_type_number_t *amount)
err = sock_aquire_read_pipe (user->sock, &pipe);
if (!err)
{
- *amount = pipe_readable (user->sock->read_pipe);
+ *amount = pipe_readable (user->sock->read_pipe, 1);
pipe_release (pipe);
}
@@ -213,7 +214,7 @@ S_io_select (struct sock_user *user, int *select_type, int *id_tag)
if (!pipe)
return EBADF;
- if (! pipe_readable (pipe))
+ if (! pipe_is_readable (pipe, 1))
/* Nothing to read on PIPE yet... */
if (*select_type & ~SELECT_READ)
/* But there's other stuff to report, so return that. */
@@ -221,7 +222,7 @@ S_io_select (struct sock_user *user, int *select_type, int *id_tag)
else
/* The user only cares about reading, so wait until something is
readable. */
- err = pipe_wait (pipe, 0);
+ err = pipe_wait (pipe, 0, 1);
pipe_release (pipe);
}