* syscalls.cc (setmode): Call _fwalk with _GLOBAL_REENT.
This commit is contained in:
@@ -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>
|
2005-01-01 Christopher Faylor <cgf@timesys.com>
|
||||||
|
|
||||||
* cygthread.cc (cygthread::stub): Set inuse to false when exiting.
|
* cygthread.cc (cygthread::stub): Set inuse to false when exiting.
|
||||||
|
@@ -1,6 +1,7 @@
|
|||||||
/* syscalls.cc: syscalls
|
/* 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.
|
This file is part of Cygwin.
|
||||||
|
|
||||||
@@ -1674,7 +1675,7 @@ setmode (int fd, int mode)
|
|||||||
else
|
else
|
||||||
setmode_mode = O_BINARY;
|
setmode_mode = O_BINARY;
|
||||||
setmode_file = fd;
|
setmode_file = fd;
|
||||||
_fwalk (_REENT, setmode_helper);
|
_fwalk (_GLOBAL_REENT, setmode_helper);
|
||||||
|
|
||||||
syscall_printf ("(%d<%s>, %p) returning %s", fd, cfd->get_name (),
|
syscall_printf ("(%d<%s>, %p) returning %s", fd, cfd->get_name (),
|
||||||
mode, res & O_TEXT ? "text" : "binary");
|
mode, res & O_TEXT ? "text" : "binary");
|
||||||
|
Reference in New Issue
Block a user