Cygwin: fix a few comments mentioning Windows 7 or 8

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2022-11-15 21:50:13 +01:00
parent 6951d258eb
commit a3af720dee
5 changed files with 5 additions and 11 deletions

View File

@ -1179,9 +1179,6 @@ cache_err:
return get_query_hdl_per_process (name, ntfn); /* Since Win8 */ return get_query_hdl_per_process (name, ntfn); /* Since Win8 */
} }
/* This function is faster than get_query_hdl_per_system(), however,
only works since Windows 8 because ProcessHandleInformation is not
suppoted by NtQueryInformationProcess() before Windows 8. */
HANDLE HANDLE
fhandler_pipe::get_query_hdl_per_process (WCHAR *name, fhandler_pipe::get_query_hdl_per_process (WCHAR *name,
OBJECT_NAME_INFORMATION *ntfn) OBJECT_NAME_INFORMATION *ntfn)

View File

@ -650,7 +650,6 @@ format_proc_cpuinfo (void *, char *&destbuf)
char *buf = tp.c_get (); char *buf = tp.c_get ();
char *bufptr = buf; char *bufptr = buf;
//WORD num_cpu_groups = 1; /* Pre Windows 7, only one group... */
WORD num_cpu_per_group = __get_cpus_per_group (); WORD num_cpu_per_group = __get_cpus_per_group ();
cpu_num_p = wcpcpy (cpu_key, L"\\Registry\\Machine\\HARDWARE\\DESCRIPTION" cpu_num_p = wcpcpy (cpu_key, L"\\Registry\\Machine\\HARDWARE\\DESCRIPTION"

View File

@ -961,8 +961,7 @@ typedef struct _LDR_DATA_TABLE_ENTRY
ULONG Flags; ULONG Flags;
USHORT LoadCount; USHORT LoadCount;
/* More follows. Left out since it's just not used. The aforementioned /* More follows. Left out since it's just not used. The aforementioned
part of the structure is stable from at least NT4 up to Windows 8, part of the structure is stable from at least NT4 up to Windows 11. */
including WOW64. */
} LDR_DATA_TABLE_ENTRY, *PLDR_DATA_TABLE_ENTRY; } LDR_DATA_TABLE_ENTRY, *PLDR_DATA_TABLE_ENTRY;
typedef struct _PEB_LDR_DATA typedef struct _PEB_LDR_DATA

View File

@ -294,13 +294,13 @@ fs_info::update (PUNICODE_STRING upath, HANDLE in_vol)
if (is_remote_drive ()) if (is_remote_drive ())
{ {
/* Should be reevaluated for each new OS. Right now this mask is valid up /* Should be reevaluated for each new OS. Right now this mask is valid up
to Windows 8. The important point here is to test only flags indicating to Windows 11. The important point here is to test only flags indicating
capabilities and to ignore flags indicating a specific state of this capabilities and to ignore flags indicating a specific state of this
volume. At present these flags to ignore are FILE_VOLUME_IS_COMPRESSED, volume. At present these flags to ignore are FILE_VOLUME_IS_COMPRESSED,
FILE_READ_ONLY_VOLUME, and FILE_SEQUENTIAL_WRITE_ONCE. The additional FILE_READ_ONLY_VOLUME, and FILE_SEQUENTIAL_WRITE_ONCE. The additional
filesystem flags supported since Windows 7 are also ignored for now. filesystem flags supported since Windows 7 are also ignored for now.
They add information, but only on W7 and later, and only for filesystems They add information only for filesystems also supporting these flags,
also supporting these flags, right now only NTFS. */ right now only NTFS. */
#define GETVOLINFO_VALID_MASK (0x002701ffUL) #define GETVOLINFO_VALID_MASK (0x002701ffUL)
#define TEST_GVI(f,m) (((f) & GETVOLINFO_VALID_MASK) == (m)) #define TEST_GVI(f,m) (((f) & GETVOLINFO_VALID_MASK) == (m))

View File

@ -218,8 +218,7 @@ __set_rlimit_as (unsigned long new_as_limit)
/* If we already have a limit, we must not change it because that /* If we already have a limit, we must not change it because that
would potentially influence already running child processes. would potentially influence already running child processes.
Just try to create another, nested job. On systems prior to Just try to create another, nested job. */
Windows 8 / Server 2012 this will fail, but that's ok. */
while (new_as_id == 0) while (new_as_id == 0)
new_as_id = InterlockedIncrement (&job_serial_number); new_as_id = InterlockedIncrement (&job_serial_number);
RtlInitUnicodeString (&uname, RtlInitUnicodeString (&uname,