]> sourceware.org Git - newlib-cygwin.git/commitdiff
Cygwin: dll_list: drop unused read_fbi method
authorMichael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
Thu, 2 May 2019 08:05:25 +0000 (10:05 +0200)
committerKen Brown <kbrown@cornell.edu>
Sun, 5 May 2019 14:04:43 +0000 (10:04 -0400)
winsup/cygwin/dll_init.h
winsup/cygwin/forkable.cc

index e4fbde867808e18f0372de728a84275873c2cee7..3c274cf353d7db0fad7bb296169736144d1d80f0 100644 (file)
@@ -119,7 +119,6 @@ public:
                            ULONG openopts = 0, ACCESS_MASK access = 0,
                            HANDLE rootDir = NULL);
   static bool read_fii (HANDLE fh, PFILE_INTERNAL_INFORMATION pfii);
-  static bool read_fbi (HANDLE fh, PFILE_BASIC_INFORMATION pfbi);
   static PWCHAR form_ntname (PWCHAR ntbuf, size_t bufsize, PCWCHAR name);
   static PWCHAR form_shortname (PWCHAR shortbuf, size_t bufsize, PCWCHAR name);
   static PWCHAR nt_max_path_buf ()
index e78784c2f87ce10068cbcdc725dfcb857b23ead5..1dcafe5e19c78bbe75357e55ced0239879d89241 100644 (file)
@@ -268,29 +268,6 @@ dll_list::read_fii (HANDLE fh, PFILE_INTERNAL_INFORMATION pfii)
   return true;
 }
 
-bool
-dll_list::read_fbi (HANDLE fh, PFILE_BASIC_INFORMATION pfbi)
-{
-  pfbi->FileAttributes = INVALID_FILE_ATTRIBUTES;
-  pfbi->LastWriteTime.QuadPart = -1LL;
-
-  NTSTATUS status;
-  IO_STATUS_BLOCK iosb;
-  status = NtQueryInformationFile (fh, &iosb,
-                                  pfbi, sizeof (*pfbi),
-                                  FileBasicInformation);
-  if (!NT_SUCCESS (status))
-    {
-      system_printf ("WARNING: %y = NtQueryInformationFile (%p,"
-                    " BasicInfo, io.Status %y)",
-                    status, fh, iosb.Status);
-      pfbi->FileAttributes = INVALID_FILE_ATTRIBUTES;
-      pfbi->LastWriteTime.QuadPart = -1LL;
-      return false;
-    }
-  return true;
-}
-
 /* Into buf if not NULL, write the IndexNumber in pli.
    Return the number of characters (that would be) written. */
 static int
This page took 0.057599 seconds and 5 git commands to generate.