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-12-20 23:34:28 +0300
committerCorinna Vinschen <corinna@vinschen.de>2005-12-20 23:34:28 +0300
commitc5a3166fc542ce515e83befe6be9e62d9e2c6102 (patch)
treed5f847047f1b5d8595364d1c964738d2dd49378e /winsup/cygwin/miscfuncs.cc
parent56c07aa2ce1cde43eda6928fdad1e19140efc8be (diff)
* winsup.h (flush_file_buffers): Define as inline function.
* miscfuncs.cc (flush_file_buffers): Remove.
Diffstat (limited to 'winsup/cygwin/miscfuncs.cc')
-rw-r--r--winsup/cygwin/miscfuncs.cc11
1 files changed, 0 insertions, 11 deletions
diff --git a/winsup/cygwin/miscfuncs.cc b/winsup/cygwin/miscfuncs.cc
index 474843a19..26686bd2b 100644
--- a/winsup/cygwin/miscfuncs.cc
+++ b/winsup/cygwin/miscfuncs.cc
@@ -361,14 +361,3 @@ create_pipe (PHANDLE hr,PHANDLE hw, LPSECURITY_ATTRIBUTES sa, DWORD n)
break;
return false;
}
-
-#undef FlushFileBuffers
-bool
-flush_file_buffers (HANDLE h)
-{
- DWORD ftype = GetFileType (h);
- /* Per MSDN, FlushFileBuffers on named pipes might block. This is the last
- we want it to do, especially when printing debug output as when calling
- system_printf. */
- return (ftype != FILE_TYPE_PIPE) ? FlushFileBuffers (h) : true;
-}