]> sourceware.org Git - glibc.git/commitdiff
1999-08-22 Mark Kettenis <kettenis@gnu.org>
authorRoland McGrath <roland@gnu.org>
Sun, 22 Aug 1999 22:28:03 +0000 (22:28 +0000)
committerRoland McGrath <roland@gnu.org>
Sun, 22 Aug 1999 22:28:03 +0000 (22:28 +0000)
* 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.

ChangeLog
hurd/new-fd.c
hurd/port2fd.c

index 8e2b1827a0b3abb6542a28f09c8d0812743e2aa3..cee4d6446105eb543df7cb0c3e587f048f4d4aa9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,21 @@
+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.
+
 1999-08-21  Mark Kettenis  <kettenis@gnu.org>
 
        * stdio-common/vfscanf.c [! USE_IN_LIBIO]: Add necessary
index 37ba82e3347a058b9cf0958f02d7a48f9db88b32..47cbbc086c4e6fbf8936256fee135057ca1ca9bc 100644 (file)
@@ -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;
index 063f27b66e27360dcf369fcfbb7833633db65d99..16a5af04a414af0a09fa807d38af097bc334b08c 100644 (file)
@@ -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
@@ -67,6 +67,7 @@ _hurd_port2fd (struct hurd_fd *d, io_t port, int flags)
     mach_port_t old
       = _hurd_userlink_clear (&d->port.users) ? d->port.port : MACH_PORT_NULL;
     d->port.port = port;
+    d->flags = 0;
     if (old != MACH_PORT_NULL)
       __mach_port_deallocate (__mach_task_self (), old);
   }
This page took 0.050934 seconds and 5 git commands to generate.