https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=662740b3d0781b8e76896092d7bcc3921b0ecaf3

commit 662740b3d0781b8e76896092d7bcc3921b0ecaf3
Author: Corinna Vinschen <[email protected]>
Date:   Tue Nov 28 13:10:34 2017 +0100

    cygwin: further improve tags generation
    
    Signed-off-by: Corinna Vinschen <[email protected]>

Diff:
---
 winsup/cygwin/Makefile.in           | 4 +++-
 winsup/cygwin/fhandler_disk_file.cc | 2 ++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/winsup/cygwin/Makefile.in b/winsup/cygwin/Makefile.in
index bc45208..4675055 100644
--- a/winsup/cygwin/Makefile.in
+++ b/winsup/cygwin/Makefile.in
@@ -776,7 +776,9 @@ tags:  CTAGS
 CTAGS:
        -cd $(srcdir) && \
        ctags -R --c++-kinds=+p --fields=+iaS --extra=+q \
-       --regex-C++='/EXPORT_ALIAS *\([[a-zA-Z0-9_]*, *([a-zA-Z0-9_]*)\)/\1/' \
+       --regex-C++='/EXPORT_ALIAS *\([a-zA-Z0-9_]*, *([a-zA-Z0-9_]*)\)/\1/' \
+       --regex-C++='/_EXFUN *\(([a-zA-Z0-9_]*)[,\)]/\1/' \
+       --regex-C++='/__ASMNAME *\("([a-zA-Z0-9_]*)"\)/\1/' \
        @newlib_headers@ .
 
 deps:=${wildcard *.d}
diff --git a/winsup/cygwin/fhandler_disk_file.cc 
b/winsup/cygwin/fhandler_disk_file.cc
index 5dfcae4..149c804 100644
--- a/winsup/cygwin/fhandler_disk_file.cc
+++ b/winsup/cygwin/fhandler_disk_file.cc
@@ -1635,8 +1635,10 @@ fhandler_disk_file::pwrite (void *buf, size_t count, 
off_t offset)
 
       if (!prw_handle && prw_open (true))
        goto non_atomic;
+      debug_printf ("Before NtWriteFile, io %Y", io.Information);
       status = NtWriteFile (prw_handle, NULL, NULL, NULL, &io, buf, count,
                            &off, NULL);
+      debug_printf ("After NtWriteFile, io %Y, status %y", io.Information);
       if (!NT_SUCCESS (status))
        {
          __seterrno_from_nt_status (status);

Reply via email to