* syscalls.cc (setmode): Call _fwalk with _GLOBAL_REENT.

This commit is contained in:
Corinna Vinschen 2005-01-03 10:59:09 +00:00
parent 9e5e1983f8
commit 26e3b0f006
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2005-01-03 Corinna Vinschen <corinna@vinschen.de>
* syscalls.cc (setmode): Call _fwalk with _GLOBAL_REENT.
2005-01-01 Christopher Faylor <cgf@timesys.com>
* cygthread.cc (cygthread::stub): Set inuse to false when exiting.

View File

@ -1,6 +1,7 @@
/* syscalls.cc: syscalls
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
2005 Red Hat, Inc.
This file is part of Cygwin.
@ -1674,7 +1675,7 @@ setmode (int fd, int mode)
else
setmode_mode = O_BINARY;
setmode_file = fd;
_fwalk (_REENT, setmode_helper);
_fwalk (_GLOBAL_REENT, setmode_helper);
syscall_printf ("(%d<%s>, %p) returning %s", fd, cfd->get_name (),
mode, res & O_TEXT ? "text" : "binary");