diff options
author | Miles Bader <miles@gnu.org> | 1995-07-26 18:35:19 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1995-07-26 18:35:19 +0000 |
commit | 150737252407c187573801dcc8550c1d5cca1f98 (patch) | |
tree | 43c48df623ba0ef0cf5515d6066d23a4ddbd4509 /pflocal/io.c | |
parent | 82a0e7f010359b41f43cb570f64d5b31ab40d7d9 (diff) | |
download | hurd-150737252407c187573801dcc8550c1d5cca1f98.tar.gz hurd-150737252407c187573801dcc8550c1d5cca1f98.tar.bz2 hurd-150737252407c187573801dcc8550c1d5cca1f98.zip |
entered into RCS
Diffstat (limited to 'pflocal/io.c')
-rw-r--r-- | pflocal/io.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/pflocal/io.c b/pflocal/io.c index fcbce170..acc6bed4 100644 --- a/pflocal/io.c +++ b/pflocal/io.c @@ -27,9 +27,9 @@ #include <hurd.h> /* for getauth() */ #include <hurd/hurd_types.h> #include <hurd/auth.h> +#include <hurd/pipe.h> #include "sock.h" -#include "pipe.h" #include "connq.h" #include "sserver.h" @@ -57,8 +57,8 @@ S_io_read (struct sock_user *user, if (!err) { err = - pipe_read (pipe, user->sock->flags & SOCK_NONBLOCK, NULL, NULL, - data, data_len, amount, NULL, NULL, NULL, NULL); + pipe_read (pipe, user->sock->flags & SOCK_NONBLOCK, NULL, + data, data_len, amount); pipe_release (pipe); } @@ -101,9 +101,7 @@ S_io_write (struct sock_user *user, if (!err) { - err = pipe_write (pipe, source_addr, - data, data_len, NULL, 0, NULL, 0, - amount); + err = pipe_write (pipe, source_addr, data, data_len, amount); if (source_addr) ports_port_deref (source_addr); } @@ -310,6 +308,7 @@ S_io_stat (struct sock_user *user, struct stat *st) bzero (st, sizeof (struct stat)); st->st_fstype = FSTYPE_SOCKET; + st->st_mode = S_IFSOCK; st->st_fsid = getpid (); st->st_ino = sock->id; /* As we try to be clever with large transfers, ask for them. */ @@ -336,9 +335,6 @@ debug (sock, "lock"); copy_time (&sock->change_time, &st->st_ctime, &st->st_ctime_usec); - /* When RPIPE == WPIPE, it *is* a fifo; also the fifo server uses sockets. */ - st->st_mode = (wpipe == rpipe ? S_IFIFO : S_IFSOCK); - debug (sock, "unlock"); mutex_unlock (&sock->lock); |