diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2008-03-14 20:43:28 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2008-03-14 20:43:28 +0000 |
commit | d63c2da552bc89c6748c31af651699b77fc1efe6 (patch) | |
tree | 60b0f22bcb42139330c8c68e425e3539c49904fb /winsup/cygwin/fcntl.cc | |
parent | 56f19ae0e933794e899fe7833a812c5d96730fcf (diff) | |
download | cygnal-d63c2da552bc89c6748c31af651699b77fc1efe6.tar.gz cygnal-d63c2da552bc89c6748c31af651699b77fc1efe6.tar.bz2 cygnal-d63c2da552bc89c6748c31af651699b77fc1efe6.zip |
* 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.cc | 5 |
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) { |