summaryrefslogtreecommitdiff
path: root/pfinet
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-11-06 22:00:54 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-11-06 22:00:54 +0000
commitd1d7bd219fffe28666c9dbd79e36dc0270e381ba (patch)
tree5c42d0343310403c20b33658cd79d766b2ae7fbd /pfinet
parent20cb496aa95f4c1b48a721dcdc8151bec1f3962c (diff)
Formerly socket-ops.c.~4~
Diffstat (limited to 'pfinet')
-rw-r--r--pfinet/socket-ops.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/pfinet/socket-ops.c b/pfinet/socket-ops.c
index 6bb72b53..f54c71a9 100644
--- a/pfinet/socket-ops.c
+++ b/pfinet/socket-ops.c
@@ -18,7 +18,9 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */
+#include <hurd/trivfs.h>
+#include "pfinet.h"
#include "socket_S.h"
@@ -132,9 +134,7 @@ S_socket_accept (struct sock_user *user,
if (err)
goto out;
- /* O_NONBLOCK flag in Linux comes from fd table for third
- arg here... what to do? XXX */
- err = - (*sock->ops->accept) (sock, newsock, 0);
+ err = - (*sock->ops->accept) (sock, newsock, sock->userflags);
if (err)
goto out;
@@ -177,8 +177,8 @@ S_socket_connect (struct sock_user *user,
if (!err)
- /* Flags here come from fd table in Linux for O_NONBLOCK... XXX */
- err = - (*sock->ops->connect) (sock, addr->address, addr->len, 0);
+ err = - (*sock->ops->connect) (sock, addr->address, addr->len,
+ sock->userflags);
mutex_unlock (&global_lock);
@@ -383,12 +383,12 @@ S_socket_send (struct sock_user *user,
become_task (user);
if (addr)
- /* O_NONBLOCK in fourth arg? XXX */
- err = - (*user->sock->ops->sendto) (user->sock, data, datalen, 0,
- flags, addr->address, addr->len);
+ err = - (*user->sock->ops->sendto) (user->sock, data, datalen,
+ user->sock->userflags, flags,
+ addr->address, addr->len);
else
- /* O_NONBLOCK in fourth arg? XXX */
- err = - (*user->sock->ops->send) (user->sock, data, datalen, 0, flags);
+ err = - (*user->sock->ops->send) (user->sock, data, datalen,
+ user->sock->userflags, flags);
mutex_unlock (&global_lock);