Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2005-01-03 13:59:09 +0300
committerCorinna Vinschen <corinna@vinschen.de>2005-01-03 13:59:09 +0300
commit26e3b0f006796e8ec33befc35520113230b3db43 (patch)
treec02a7269fa046b50050bccf0d81c1e1e09ce135b
parent9e5e1983f8ff24700e7ea140ff9571e18804e58b (diff)
* syscalls.cc (setmode): Call _fwalk with _GLOBAL_REENT.
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/syscalls.cc5
2 files changed, 7 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index a6e9a7031..521d30511 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -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.
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc
index e7abeab22..098106305 100644
--- a/winsup/cygwin/syscalls.cc
+++ b/winsup/cygwin/syscalls.cc
@@ -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");