[PATCH 0/3] Fix fstat on FIFOs, part 2

Ken Brown kbrown@cornell.edu
Thu Feb 18 17:13:45 GMT 2021


The first patch fixes a bug, in which fstat on FIFOs sometimes used
pipe handles instead of file handles.

The second and third patches should improve the efficiency of fstat
and open on FIFOs.

Ken Brown (3):
  Cygwin: define fhandler_fifo::fstat
  Cygwin: fstat_helper: always use handle in call to get_file_attribute
  Cygwin: FIFO: temporarily keep a conv_handle in syscalls.cc:open

 winsup/cygwin/fhandler.h            |  1 +
 winsup/cygwin/fhandler_disk_file.cc |  3 +--
 winsup/cygwin/fhandler_fifo.cc      | 23 +++++++++++++++++++++++
 winsup/cygwin/syscalls.cc           | 22 +++++++++++++++++++---
 4 files changed, 44 insertions(+), 5 deletions(-)

-- 
2.30.0



More information about the Cygwin-patches mailing list