aboutsummaryrefslogtreecommitdiff
path: root/hurd/new-fd.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1999-08-22 22:28:03 +0000
committerRoland McGrath <roland@gnu.org>1999-08-22 22:28:03 +0000
commitdc32a7c4b2ee873f72b35ad9c7efa7f7c85bb904 (patch)
tree7580ffbd7bed2314d915c4e389152fdbc22e333d /hurd/new-fd.c
parent38e30b398a33ecaf1c17aa5cef9520564d41d4ef (diff)
downloadglibc-dc32a7c4b2ee873f72b35ad9c7efa7f7c85bb904.zip
glibc-dc32a7c4b2ee873f72b35ad9c7efa7f7c85bb904.tar.gz
glibc-dc32a7c4b2ee873f72b35ad9c7efa7f7c85bb904.tar.bz2
1999-08-22 Mark Kettenis <kettenis@gnu.org>
* hurd/new-fd.c (_hurd_new_fd): Initialize fcntl flags. * hurd/port2fd.c (_hurd_port2fd): Reset the fcntl flags when installing PORT in the descriptor cell. 1999-08-19 Roland McGrath <roland@baalperazim.frob.com> * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Mark OPTION and TIMEOUT as outputs of the asm to indicate that the signal thread might mutate them. * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Short circuit to plain mach_msg if only sending or only receiving (i.e., not an RPC). When making an RPC that might get interrupted, save OPTION and the portion of the message buffer that gets clobbered by an EINTR reply message, and properly restore them before attempting to retry the request message send.
Diffstat (limited to 'hurd/new-fd.c')
-rw-r--r--hurd/new-fd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/hurd/new-fd.c b/hurd/new-fd.c
index 37ba82e..47cbbc0 100644
--- a/hurd/new-fd.c
+++ b/hurd/new-fd.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1994, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1994, 1997, 1999 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -33,6 +33,9 @@ _hurd_new_fd (io_t port, io_t ctty)
/* Initialize the port cells. */
_hurd_port_init (&d->port, port);
_hurd_port_init (&d->ctty, ctty);
+
+ /* And the fcntl flags. */
+ d->flags = 0;
}
return d;