delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/10/04/05:55:37

From: corinna DOT vinschen AT cityweb DOT de (Corinna Vinschen)
Subject: diffs to b20 Windows interface
4 Oct 1998 05:55:37 -0700 :
Message-ID: <36176449.D9D6791C.cygnus.cygwin32.developers@cityweb.de>
Mime-Version: 1.0
To: cygwin32-developers AT cygnus DOT com

Hi,

there are still some gaps in the Windows header files and
in the kernel sysdef. The diffs follow.

Besides, I have found a potentially problem in
..../Windows32/CommonFunctions.h, which I didn't want to
correct by reason of uncertainty:
There are five lines, where the type definition BOOL is
used, instead of type WINBOOL. Should this not be changed???

Corinna

------- snip ---------
*** winsup/include/Windows32/ASCIIFunctions.h.orig       Sun Oct 04
13:40:31 1998
--- winsup/include/Windows32/ASCIIFunctions.h    Sun Oct 04 13:41:54
1998
*************** GetDiskFreeSpaceA(
*** 531,536 ****
--- 531,545 ----

  WINBOOL
  STDCALL
+ GetDiskFreeSpaceExA(
+     LPCSTR lpDirectoryName,
+     PULARGE_INTEGER lpFreeBytesAvailableToCaller,
+     PULARGE_INTEGER lpTotalNumberOfBytes,
+     PULARGE_INTEGER lpTotalNumberOfFreeBytes
+     );
+
+ WINBOOL
+ STDCALL
  CreateDirectoryA(
      LPCSTR lpPathName,
      LPSECURITY_ATTRIBUTES lpSecurityAttributes
*** winsup/include/Windows32/Defines.h.orig      Sun Oct 04 13:18:41
1998
--- winsup/include/Windows32/Defines.h   Sun Oct 04 13:28:52 1998
*************** extern "C" {
*** 4096,4101 ****
--- 4096,4103 ----
  /* TAPE_GET_DRIVE_PARAMETERS structure */
  #define TAPE_DRIVE_COMPRESSION        (131072)
  #define TAPE_DRIVE_ECC        (65536)
+ #define TAPE_DRIVE_EJECT_MEDIA        (16777216)
+ #define TAPE_DRIVE_EOT_WZ_SIZE        (8192)
  #define TAPE_DRIVE_ERASE_BOP_ONLY     (64)
  #define TAPE_DRIVE_ERASE_LONG (32)
  #define TAPE_DRIVE_ERASE_IMMEDIATE    (128)
*************** extern "C" {
*** 4113,4122 ****
--- 4115,4127 ----
  #define TAPE_DRIVE_TAPE_REMAINING     (512)
  #define TAPE_DRIVE_VARIABLE_BLOCK     (2048)
  #define TAPE_DRIVE_WRITE_PROTECT      (4096)
+ #define TAPE_DRIVE_HIGH_FEATURES      (-2147483648)
  #define TAPE_DRIVE_ABS_BLK_IMMED      (-2147475456)
  #define TAPE_DRIVE_ABSOLUTE_BLK       (-2147479552)
  #define TAPE_DRIVE_END_OF_DATA        (-2147418112)
  #define TAPE_DRIVE_FILEMARKS  (-2147221504)
+ #define TAPE_DRIVE_FORMAT     (-1610612736)
+ #define TAPE_DRIVE_FORMAT_IMMEDIATE   (-1073741824)
  #define TAPE_DRIVE_LOAD_UNLOAD        (-2147483647)
  #define TAPE_DRIVE_LOAD_UNLD_IMMED    (-2147483616)
  #define TAPE_DRIVE_LOCK_UNLOCK        (-2147483644)
*** winsup/include/Windows32/Functions.h.orig    Sun Oct 04 13:40:52
1998
--- winsup/include/Windows32/Functions.h Sun Oct 04 13:42:31 1998
***************
*** 317,322 ****
--- 317,323 ----
  #define SetCurrentDirectory  SetCurrentDirectoryW
  #define GetCurrentDirectory  GetCurrentDirectoryW
  #define GetDiskFreeSpace  GetDiskFreeSpaceW
+ #define GetDiskFreeSpaceEx  GetDiskFreeSpaceExW
  #define CreateDirectory  CreateDirectoryW
  #define CreateDirectoryEx  CreateDirectoryExW
  #define RemoveDirectory  RemoveDirectoryW
***************
*** 725,730 ****
--- 726,732 ----
  #define SetCurrentDirectory  SetCurrentDirectoryA
  #define GetCurrentDirectory  GetCurrentDirectoryA
  #define GetDiskFreeSpace  GetDiskFreeSpaceA
+ #define GetDiskFreeSpaceEx  GetDiskFreeSpaceExA
  #define CreateDirectory  CreateDirectoryA
  #define CreateDirectoryEx  CreateDirectoryExA
  #define RemoveDirectory  RemoveDirectoryA
*** winsup/include/Windows32/Structures.h.orig   Sun Oct 04 13:45:50
1998
--- winsup/include/Windows32/Structures.h        Sun Oct 04 13:48:51
1998
*************** typedef struct _TAPE_GET_MEDIA_PARAMETER
*** 4068,4073 ****
--- 4068,4074 ----
    DWORD   BlockSize;
    DWORD   PartitionCount;
    BOOLEAN WriteProtected;
+   BOOLEAN reserved[7];
  } TAPE_GET_MEDIA_PARAMETERS;

  typedef struct _TAPE_GET_POSITION {
*** winsup/include/Windows32/UnicodeFunctions.h.orig     Sun Oct 04
13:40:40 1998
--- winsup/include/Windows32/UnicodeFunctions.h  Sun Oct 04 13:42:45
1998
*************** GetDiskFreeSpaceW(
*** 531,536 ****
--- 531,545 ----

  WINBOOL
  STDCALL
+ GetDiskFreeSpaceExW(
+     LPCSTR lpDirectoryName,
+     PULARGE_INTEGER lpFreeBytesAvailableToCaller,
+     PULARGE_INTEGER lpTotalNumberOfBytes,
+     PULARGE_INTEGER lpTotalNumberOfFreeBytes
+     );
+
+ WINBOOL
+ STDCALL
  CreateDirectoryW(
      LPCWSTR lpPathName,
      LPSECURITY_ATTRIBUTES lpSecurityAttributes
*** winsup/sysdef/kernel32.def.orig   Sun Oct 04 14:00:33 1998
--- winsup/sysdef/kernel32.def        Sun Oct 04 14:01:44 1998
*************** GetDefaultCommConfigA AT 12
*** 236,241 ****
--- 236,243 ----
  GetDefaultCommConfigW AT 12
  GetDiskFreeSpaceA AT 20
  GetDiskFreeSpaceW AT 20
+ GetDiskFreeSpaceExA AT 16
+ GetDiskFreeSpaceExW AT 16
  GetDriveTypeA AT 4
  GetDriveTypeW AT 4
  GetEnvironmentStrings AT 0

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019