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>2008-03-14 23:43:28 +0300
committerCorinna Vinschen <corinna@vinschen.de>2008-03-14 23:43:28 +0300
commitd63c2da552bc89c6748c31af651699b77fc1efe6 (patch)
tree60b0f22bcb42139330c8c68e425e3539c49904fb /winsup/cygwin/fcntl.cc
parent56f19ae0e933794e899fe7833a812c5d96730fcf (diff)
* fcntl.cc (fcntl_worker): Protect with a 'myfault'.
* path.cc (normalize_posix_path): Treat X:/ as Win32 path, too. * smallprint.cc (__wrn): New static function. (__small_vswprintf): New function to generate WCHAR strings. (__small_swprintf): Ditto. * winsup.h (__small_swprintf): Declare. (__small_vswprintf): Declare.
Diffstat (limited to 'winsup/cygwin/fcntl.cc')
-rw-r--r--winsup/cygwin/fcntl.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/winsup/cygwin/fcntl.cc b/winsup/cygwin/fcntl.cc
index b1f0d9972..f9a023ec4 100644
--- a/winsup/cygwin/fcntl.cc
+++ b/winsup/cygwin/fcntl.cc
@@ -18,12 +18,17 @@ details. */
#include "dtable.h"
#include "cygheap.h"
#include "thread.h"
+#include "cygtls.h"
int
fcntl_worker (int fd, int cmd, void *arg)
{
int res;
+ myfault efault;
+ if (efault.faulted (EFAULT))
+ return -1;
+
cygheap_fdget cfd (fd, true);
if (cfd < 0)
{