From: Roland McGrath Date: Sun, 22 Aug 1999 22:18:46 +0000 (+0000) Subject: 1999-08-22 Mark Kettenis X-Git-Tag: cvs/glibc_2-1-2~81 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0308b12127950a2e591cd40795735a98fda354a;p=thirdparty%2Fglibc.git 1999-08-22 Mark Kettenis * 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. --- diff --git a/hurd/new-fd.c b/hurd/new-fd.c index 37ba82e3347..47cbbc086c4 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; diff --git a/hurd/port2fd.c b/hurd/port2fd.c index 063f27b66e2..16a5af04a41 100644 --- a/hurd/port2fd.c +++ b/hurd/port2fd.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 @@ -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); }