* Makefile.in: Build wincap.o.
* wincap.cc: New file.
* wincap.h: Ditto.
* autoload.cc: Add dynamic load statement for `CreateHardLinkA'.
* dcrt0.cc (os_being_run): Eliminated.
(osname): Ditto.
(iswinnt): Ditto.
(set_os_type): Ditto.
(dll_crt0_1): Call wincap.init() instead of set_os_type().
(_dll_crt0): Ditto.
* environ.cc (set_chunksize): New function.
(parse_thing): `forkchunk' setting now invokes function `set_chunksize'.
* fork.cc (chunksize): Eliminated. Moved to be member of wincap.
* host_dependent.h: Removed.
* syscalls.cc (_link): Try using `CreateHardLinkA' first, if available.
* cygheap.cc, dcrt0.cc, delqueue.cc, dir.cc,
environ.cc, fhandler.cc, fhandler.h, fhandler_console.cc,
fhandler_mem.cc, fork.cc, mmap.cc, net.cc, pinfo.cc, pinfo.h,
security.cc, syscalls.cc, sysconf.cc, syslog.cc, thread.cc,
times.cc, tty.cc, uinfo.cc, uname.cc, winsup.h: Use new wincap
capability check throughout.
* winsup.h: Include wincap.h. Eliminate extern declarations of
`os_being_run' and `iswinnt'. Eliminate `os_type" definition.
* include/cygwin/version.h: Bump version to 1.3.4.
2001-09-13 01:46:37 +08:00
|
|
|
/* wincap.cc -- figure out on which OS we're running. Set the
|
|
|
|
capability class to the appropriate values.
|
|
|
|
|
|
|
|
This file is part of Cygwin.
|
|
|
|
|
|
|
|
This software is a copyrighted work licensed under the terms of the
|
|
|
|
Cygwin license. Please consult the file "CYGWIN_LICENSE" for
|
|
|
|
details. */
|
|
|
|
|
|
|
|
#include "winsup.h"
|
2007-07-19 16:33:22 +08:00
|
|
|
#include "security.h"
|
2008-04-28 16:47:06 +08:00
|
|
|
#include "ntdll.h"
|
* Makefile.in: Build wincap.o.
* wincap.cc: New file.
* wincap.h: Ditto.
* autoload.cc: Add dynamic load statement for `CreateHardLinkA'.
* dcrt0.cc (os_being_run): Eliminated.
(osname): Ditto.
(iswinnt): Ditto.
(set_os_type): Ditto.
(dll_crt0_1): Call wincap.init() instead of set_os_type().
(_dll_crt0): Ditto.
* environ.cc (set_chunksize): New function.
(parse_thing): `forkchunk' setting now invokes function `set_chunksize'.
* fork.cc (chunksize): Eliminated. Moved to be member of wincap.
* host_dependent.h: Removed.
* syscalls.cc (_link): Try using `CreateHardLinkA' first, if available.
* cygheap.cc, dcrt0.cc, delqueue.cc, dir.cc,
environ.cc, fhandler.cc, fhandler.h, fhandler_console.cc,
fhandler_mem.cc, fork.cc, mmap.cc, net.cc, pinfo.cc, pinfo.h,
security.cc, syscalls.cc, sysconf.cc, syslog.cc, thread.cc,
times.cc, tty.cc, uinfo.cc, uname.cc, winsup.h: Use new wincap
capability check throughout.
* winsup.h: Include wincap.h. Eliminate extern declarations of
`os_being_run' and `iswinnt'. Eliminate `os_type" definition.
* include/cygwin/version.h: Bump version to 1.3.4.
2001-09-13 01:46:37 +08:00
|
|
|
|
2008-10-24 05:00:45 +08:00
|
|
|
/* CV, 2008-10-23: All wincapc's have to be in the .cygwin_dll_common section,
|
|
|
|
same as wincap itself. Otherwise the capability changes made in
|
|
|
|
wincapc::init() are not propagated to any subsequently started process
|
|
|
|
in the same session. I'm only writing this longish comment because I'm
|
|
|
|
puzzled that this has never been noticed before... */
|
|
|
|
|
|
|
|
wincaps wincap_vista __attribute__((section (".cygwin_dll_common"), shared)) = {
|
2015-07-05 04:49:30 +08:00
|
|
|
def_guard_pages:1,
|
2015-12-15 23:34:40 +08:00
|
|
|
{
|
|
|
|
is_server:false,
|
|
|
|
needs_count_in_si_lpres2:true,
|
|
|
|
has_gaa_largeaddress_bug:true,
|
|
|
|
has_broken_alloc_console:false,
|
|
|
|
has_console_logon_sid:false,
|
|
|
|
has_precise_system_time:false,
|
|
|
|
has_microsoft_accounts:false,
|
|
|
|
has_processor_groups:false,
|
|
|
|
has_broken_prefetchvm:false,
|
|
|
|
has_new_pebteb_region:false,
|
|
|
|
has_broken_whoami:true,
|
2017-04-24 23:14:03 +08:00
|
|
|
has_unprivileged_createsymlink:false,
|
2018-11-27 20:47:02 +08:00
|
|
|
has_unbiased_interrupt_time:false,
|
|
|
|
has_precise_interrupt_time:false,
|
2015-12-15 23:34:40 +08:00
|
|
|
},
|
2009-05-09 23:56:37 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
wincaps wincap_7 __attribute__((section (".cygwin_dll_common"), shared)) = {
|
2015-07-05 04:49:30 +08:00
|
|
|
def_guard_pages:1,
|
2015-12-15 23:34:40 +08:00
|
|
|
{
|
|
|
|
is_server:false,
|
|
|
|
needs_count_in_si_lpres2:false,
|
|
|
|
has_gaa_largeaddress_bug:true,
|
|
|
|
has_broken_alloc_console:true,
|
|
|
|
has_console_logon_sid:true,
|
|
|
|
has_precise_system_time:false,
|
|
|
|
has_microsoft_accounts:false,
|
|
|
|
has_processor_groups:true,
|
|
|
|
has_broken_prefetchvm:false,
|
|
|
|
has_new_pebteb_region:false,
|
|
|
|
has_broken_whoami:true,
|
2017-04-24 23:14:03 +08:00
|
|
|
has_unprivileged_createsymlink:false,
|
2018-11-27 20:47:02 +08:00
|
|
|
has_unbiased_interrupt_time:true,
|
|
|
|
has_precise_interrupt_time:false,
|
2015-12-15 23:34:40 +08:00
|
|
|
},
|
2012-05-03 16:34:44 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
wincaps wincap_8 __attribute__((section (".cygwin_dll_common"), shared)) = {
|
2015-07-05 04:49:30 +08:00
|
|
|
def_guard_pages:2,
|
2015-12-15 23:34:40 +08:00
|
|
|
{
|
|
|
|
is_server:false,
|
|
|
|
needs_count_in_si_lpres2:false,
|
|
|
|
has_gaa_largeaddress_bug:false,
|
|
|
|
has_broken_alloc_console:true,
|
|
|
|
has_console_logon_sid:true,
|
|
|
|
has_precise_system_time:true,
|
|
|
|
has_microsoft_accounts:true,
|
|
|
|
has_processor_groups:true,
|
|
|
|
has_broken_prefetchvm:false,
|
|
|
|
has_new_pebteb_region:false,
|
|
|
|
has_broken_whoami:false,
|
2017-04-24 23:14:03 +08:00
|
|
|
has_unprivileged_createsymlink:false,
|
2018-11-27 20:47:02 +08:00
|
|
|
has_unbiased_interrupt_time:true,
|
|
|
|
has_precise_interrupt_time:false,
|
2015-12-15 23:34:40 +08:00
|
|
|
},
|
2014-12-01 22:02:55 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
wincaps wincap_10 __attribute__((section (".cygwin_dll_common"), shared)) = {
|
2015-07-05 04:49:30 +08:00
|
|
|
def_guard_pages:2,
|
2015-12-15 23:34:40 +08:00
|
|
|
{
|
|
|
|
is_server:false,
|
|
|
|
needs_count_in_si_lpres2:false,
|
|
|
|
has_gaa_largeaddress_bug:false,
|
|
|
|
has_broken_alloc_console:true,
|
|
|
|
has_console_logon_sid:true,
|
|
|
|
has_precise_system_time:true,
|
|
|
|
has_microsoft_accounts:true,
|
|
|
|
has_processor_groups:true,
|
|
|
|
has_broken_prefetchvm:true,
|
|
|
|
has_new_pebteb_region:false,
|
|
|
|
has_broken_whoami:false,
|
2017-04-24 23:14:03 +08:00
|
|
|
has_unprivileged_createsymlink:false,
|
2018-11-27 20:47:02 +08:00
|
|
|
has_unbiased_interrupt_time:true,
|
|
|
|
has_precise_interrupt_time:true,
|
2015-12-15 23:34:40 +08:00
|
|
|
},
|
2015-12-03 20:33:43 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
wincaps wincap_10_1511 __attribute__((section (".cygwin_dll_common"), shared)) = {
|
|
|
|
def_guard_pages:2,
|
2015-12-15 23:34:40 +08:00
|
|
|
{
|
|
|
|
is_server:false,
|
|
|
|
needs_count_in_si_lpres2:false,
|
|
|
|
has_gaa_largeaddress_bug:false,
|
|
|
|
has_broken_alloc_console:true,
|
|
|
|
has_console_logon_sid:true,
|
|
|
|
has_precise_system_time:true,
|
|
|
|
has_microsoft_accounts:true,
|
|
|
|
has_processor_groups:true,
|
|
|
|
has_broken_prefetchvm:false,
|
|
|
|
has_new_pebteb_region:true,
|
|
|
|
has_broken_whoami:false,
|
2017-04-24 23:14:03 +08:00
|
|
|
has_unprivileged_createsymlink:false,
|
2018-11-27 20:47:02 +08:00
|
|
|
has_unbiased_interrupt_time:true,
|
|
|
|
has_precise_interrupt_time:true,
|
2017-04-24 23:14:03 +08:00
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
wincaps wincap_10_1703 __attribute__((section (".cygwin_dll_common"), shared)) = {
|
|
|
|
def_guard_pages:2,
|
|
|
|
{
|
|
|
|
is_server:false,
|
|
|
|
needs_count_in_si_lpres2:false,
|
|
|
|
has_gaa_largeaddress_bug:false,
|
|
|
|
has_broken_alloc_console:true,
|
|
|
|
has_console_logon_sid:true,
|
|
|
|
has_precise_system_time:true,
|
|
|
|
has_microsoft_accounts:true,
|
|
|
|
has_processor_groups:true,
|
|
|
|
has_broken_prefetchvm:false,
|
|
|
|
has_new_pebteb_region:true,
|
|
|
|
has_broken_whoami:false,
|
|
|
|
has_unprivileged_createsymlink:true,
|
2018-11-27 20:47:02 +08:00
|
|
|
has_unbiased_interrupt_time:true,
|
|
|
|
has_precise_interrupt_time:true,
|
2015-12-15 23:34:40 +08:00
|
|
|
},
|
* Makefile.in: Build wincap.o.
* wincap.cc: New file.
* wincap.h: Ditto.
* autoload.cc: Add dynamic load statement for `CreateHardLinkA'.
* dcrt0.cc (os_being_run): Eliminated.
(osname): Ditto.
(iswinnt): Ditto.
(set_os_type): Ditto.
(dll_crt0_1): Call wincap.init() instead of set_os_type().
(_dll_crt0): Ditto.
* environ.cc (set_chunksize): New function.
(parse_thing): `forkchunk' setting now invokes function `set_chunksize'.
* fork.cc (chunksize): Eliminated. Moved to be member of wincap.
* host_dependent.h: Removed.
* syscalls.cc (_link): Try using `CreateHardLinkA' first, if available.
* cygheap.cc, dcrt0.cc, delqueue.cc, dir.cc,
environ.cc, fhandler.cc, fhandler.h, fhandler_console.cc,
fhandler_mem.cc, fork.cc, mmap.cc, net.cc, pinfo.cc, pinfo.h,
security.cc, syscalls.cc, sysconf.cc, syslog.cc, thread.cc,
times.cc, tty.cc, uinfo.cc, uname.cc, winsup.h: Use new wincap
capability check throughout.
* winsup.h: Include wincap.h. Eliminate extern declarations of
`os_being_run' and `iswinnt'. Eliminate `os_type" definition.
* include/cygwin/version.h: Bump version to 1.3.4.
2001-09-13 01:46:37 +08:00
|
|
|
};
|
|
|
|
|
2006-01-11 02:11:32 +08:00
|
|
|
wincapc wincap __attribute__((section (".cygwin_dll_common"), shared));
|
* Makefile.in: Build wincap.o.
* wincap.cc: New file.
* wincap.h: Ditto.
* autoload.cc: Add dynamic load statement for `CreateHardLinkA'.
* dcrt0.cc (os_being_run): Eliminated.
(osname): Ditto.
(iswinnt): Ditto.
(set_os_type): Ditto.
(dll_crt0_1): Call wincap.init() instead of set_os_type().
(_dll_crt0): Ditto.
* environ.cc (set_chunksize): New function.
(parse_thing): `forkchunk' setting now invokes function `set_chunksize'.
* fork.cc (chunksize): Eliminated. Moved to be member of wincap.
* host_dependent.h: Removed.
* syscalls.cc (_link): Try using `CreateHardLinkA' first, if available.
* cygheap.cc, dcrt0.cc, delqueue.cc, dir.cc,
environ.cc, fhandler.cc, fhandler.h, fhandler_console.cc,
fhandler_mem.cc, fork.cc, mmap.cc, net.cc, pinfo.cc, pinfo.h,
security.cc, syscalls.cc, sysconf.cc, syslog.cc, thread.cc,
times.cc, tty.cc, uinfo.cc, uname.cc, winsup.h: Use new wincap
capability check throughout.
* winsup.h: Include wincap.h. Eliminate extern declarations of
`os_being_run' and `iswinnt'. Eliminate `os_type" definition.
* include/cygwin/version.h: Bump version to 1.3.4.
2001-09-13 01:46:37 +08:00
|
|
|
|
|
|
|
void
|
|
|
|
wincapc::init ()
|
|
|
|
{
|
2002-01-29 10:02:03 +08:00
|
|
|
if (caps)
|
|
|
|
return; // already initialized
|
|
|
|
|
2011-05-10 23:39:02 +08:00
|
|
|
GetSystemInfo (&system_info);
|
2013-11-20 06:21:11 +08:00
|
|
|
version.dwOSVersionInfoSize = sizeof (RTL_OSVERSIONINFOEXW);
|
|
|
|
RtlGetVersion (&version);
|
2016-03-10 06:10:17 +08:00
|
|
|
/* Overwrite unreliable kernel version with correct values returned by
|
|
|
|
RtlGetNtVersionNumbers. See git log of this change for a description. */
|
|
|
|
RtlGetNtVersionNumbers (&version.dwMajorVersion,
|
|
|
|
&version.dwMinorVersion,
|
|
|
|
&version.dwBuildNumber);
|
2017-04-24 23:12:16 +08:00
|
|
|
version.dwBuildNumber &= 0xffff;
|
* Makefile.in: Build wincap.o.
* wincap.cc: New file.
* wincap.h: Ditto.
* autoload.cc: Add dynamic load statement for `CreateHardLinkA'.
* dcrt0.cc (os_being_run): Eliminated.
(osname): Ditto.
(iswinnt): Ditto.
(set_os_type): Ditto.
(dll_crt0_1): Call wincap.init() instead of set_os_type().
(_dll_crt0): Ditto.
* environ.cc (set_chunksize): New function.
(parse_thing): `forkchunk' setting now invokes function `set_chunksize'.
* fork.cc (chunksize): Eliminated. Moved to be member of wincap.
* host_dependent.h: Removed.
* syscalls.cc (_link): Try using `CreateHardLinkA' first, if available.
* cygheap.cc, dcrt0.cc, delqueue.cc, dir.cc,
environ.cc, fhandler.cc, fhandler.h, fhandler_console.cc,
fhandler_mem.cc, fork.cc, mmap.cc, net.cc, pinfo.cc, pinfo.h,
security.cc, syscalls.cc, sysconf.cc, syslog.cc, thread.cc,
times.cc, tty.cc, uinfo.cc, uname.cc, winsup.h: Use new wincap
capability check throughout.
* winsup.h: Include wincap.h. Eliminate extern declarations of
`os_being_run' and `iswinnt'. Eliminate `os_type" definition.
* include/cygwin/version.h: Bump version to 1.3.4.
2001-09-13 01:46:37 +08:00
|
|
|
|
2012-07-24 21:56:14 +08:00
|
|
|
switch (version.dwMajorVersion)
|
* Makefile.in: Build wincap.o.
* wincap.cc: New file.
* wincap.h: Ditto.
* autoload.cc: Add dynamic load statement for `CreateHardLinkA'.
* dcrt0.cc (os_being_run): Eliminated.
(osname): Ditto.
(iswinnt): Ditto.
(set_os_type): Ditto.
(dll_crt0_1): Call wincap.init() instead of set_os_type().
(_dll_crt0): Ditto.
* environ.cc (set_chunksize): New function.
(parse_thing): `forkchunk' setting now invokes function `set_chunksize'.
* fork.cc (chunksize): Eliminated. Moved to be member of wincap.
* host_dependent.h: Removed.
* syscalls.cc (_link): Try using `CreateHardLinkA' first, if available.
* cygheap.cc, dcrt0.cc, delqueue.cc, dir.cc,
environ.cc, fhandler.cc, fhandler.h, fhandler_console.cc,
fhandler_mem.cc, fork.cc, mmap.cc, net.cc, pinfo.cc, pinfo.h,
security.cc, syscalls.cc, sysconf.cc, syslog.cc, thread.cc,
times.cc, tty.cc, uinfo.cc, uname.cc, winsup.h: Use new wincap
capability check throughout.
* winsup.h: Include wincap.h. Eliminate extern declarations of
`os_being_run' and `iswinnt'. Eliminate `os_type" definition.
* include/cygwin/version.h: Bump version to 1.3.4.
2001-09-13 01:46:37 +08:00
|
|
|
{
|
2012-07-24 21:56:14 +08:00
|
|
|
case 6:
|
|
|
|
switch (version.dwMinorVersion)
|
|
|
|
{
|
|
|
|
case 0:
|
|
|
|
caps = &wincap_vista;
|
|
|
|
break;
|
|
|
|
case 1:
|
|
|
|
caps = &wincap_7;
|
|
|
|
break;
|
2014-12-01 22:02:55 +08:00
|
|
|
case 2:
|
|
|
|
case 3:
|
2012-07-24 21:56:14 +08:00
|
|
|
caps = &wincap_8;
|
|
|
|
break;
|
2014-12-01 22:02:55 +08:00
|
|
|
default:
|
|
|
|
caps = &wincap_10;
|
|
|
|
break;
|
2012-07-24 21:56:14 +08:00
|
|
|
}
|
2001-11-05 14:09:15 +08:00
|
|
|
break;
|
2014-12-01 22:02:55 +08:00
|
|
|
case 10:
|
* Makefile.in: Build wincap.o.
* wincap.cc: New file.
* wincap.h: Ditto.
* autoload.cc: Add dynamic load statement for `CreateHardLinkA'.
* dcrt0.cc (os_being_run): Eliminated.
(osname): Ditto.
(iswinnt): Ditto.
(set_os_type): Ditto.
(dll_crt0_1): Call wincap.init() instead of set_os_type().
(_dll_crt0): Ditto.
* environ.cc (set_chunksize): New function.
(parse_thing): `forkchunk' setting now invokes function `set_chunksize'.
* fork.cc (chunksize): Eliminated. Moved to be member of wincap.
* host_dependent.h: Removed.
* syscalls.cc (_link): Try using `CreateHardLinkA' first, if available.
* cygheap.cc, dcrt0.cc, delqueue.cc, dir.cc,
environ.cc, fhandler.cc, fhandler.h, fhandler_console.cc,
fhandler_mem.cc, fork.cc, mmap.cc, net.cc, pinfo.cc, pinfo.h,
security.cc, syscalls.cc, sysconf.cc, syslog.cc, thread.cc,
times.cc, tty.cc, uinfo.cc, uname.cc, winsup.h: Use new wincap
capability check throughout.
* winsup.h: Include wincap.h. Eliminate extern declarations of
`os_being_run' and `iswinnt'. Eliminate `os_type" definition.
* include/cygwin/version.h: Bump version to 1.3.4.
2001-09-13 01:46:37 +08:00
|
|
|
default:
|
2015-12-15 23:09:38 +08:00
|
|
|
if (version.dwBuildNumber < 10586)
|
2015-12-03 20:33:43 +08:00
|
|
|
caps = &wincap_10;
|
2017-04-24 23:14:03 +08:00
|
|
|
else if (version.dwBuildNumber < 15063)
|
2015-12-15 23:09:38 +08:00
|
|
|
caps = &wincap_10_1511;
|
2017-04-24 23:14:03 +08:00
|
|
|
else
|
|
|
|
caps = &wincap_10_1703;
|
* Makefile.in: Build wincap.o.
* wincap.cc: New file.
* wincap.h: Ditto.
* autoload.cc: Add dynamic load statement for `CreateHardLinkA'.
* dcrt0.cc (os_being_run): Eliminated.
(osname): Ditto.
(iswinnt): Ditto.
(set_os_type): Ditto.
(dll_crt0_1): Call wincap.init() instead of set_os_type().
(_dll_crt0): Ditto.
* environ.cc (set_chunksize): New function.
(parse_thing): `forkchunk' setting now invokes function `set_chunksize'.
* fork.cc (chunksize): Eliminated. Moved to be member of wincap.
* host_dependent.h: Removed.
* syscalls.cc (_link): Try using `CreateHardLinkA' first, if available.
* cygheap.cc, dcrt0.cc, delqueue.cc, dir.cc,
environ.cc, fhandler.cc, fhandler.h, fhandler_console.cc,
fhandler_mem.cc, fork.cc, mmap.cc, net.cc, pinfo.cc, pinfo.h,
security.cc, syscalls.cc, sysconf.cc, syslog.cc, thread.cc,
times.cc, tty.cc, uinfo.cc, uname.cc, winsup.h: Use new wincap
capability check throughout.
* winsup.h: Include wincap.h. Eliminate extern declarations of
`os_being_run' and `iswinnt'. Eliminate `os_type" definition.
* include/cygwin/version.h: Bump version to 1.3.4.
2001-09-13 01:46:37 +08:00
|
|
|
}
|
2003-09-27 11:44:31 +08:00
|
|
|
|
2011-05-10 23:39:02 +08:00
|
|
|
((wincaps *)caps)->is_server = (version.wProductType != VER_NT_WORKSTATION);
|
2013-04-23 17:44:36 +08:00
|
|
|
#ifdef __x86_64__
|
|
|
|
wow64 = 0;
|
2015-07-05 04:49:30 +08:00
|
|
|
/* 64 bit systems have one more guard page than their 32 bit counterpart. */
|
|
|
|
++((wincaps *)caps)->def_guard_pages;
|
2013-04-23 17:44:36 +08:00
|
|
|
#else
|
2009-12-19 04:32:04 +08:00
|
|
|
if (NT_SUCCESS (NtQueryInformationProcess (NtCurrentProcess (),
|
2008-04-28 16:47:06 +08:00
|
|
|
ProcessWow64Information,
|
|
|
|
&wow64, sizeof wow64, NULL))
|
|
|
|
&& !wow64)
|
2013-04-23 17:44:36 +08:00
|
|
|
#endif
|
2008-02-13 17:42:22 +08:00
|
|
|
{
|
2008-04-28 00:12:00 +08:00
|
|
|
((wincaps *)caps)->needs_count_in_si_lpres2 = false;
|
2012-05-03 16:34:44 +08:00
|
|
|
((wincaps *)caps)->has_gaa_largeaddress_bug = false;
|
2015-08-27 19:34:10 +08:00
|
|
|
((wincaps *)caps)->has_broken_prefetchvm = false;
|
2008-02-13 17:42:22 +08:00
|
|
|
}
|
2006-01-11 02:11:32 +08:00
|
|
|
|
2007-12-12 20:12:24 +08:00
|
|
|
__small_sprintf (osnam, "NT-%d.%d", version.dwMajorVersion,
|
* Makefile.in: Build wincap.o.
* wincap.cc: New file.
* wincap.h: Ditto.
* autoload.cc: Add dynamic load statement for `CreateHardLinkA'.
* dcrt0.cc (os_being_run): Eliminated.
(osname): Ditto.
(iswinnt): Ditto.
(set_os_type): Ditto.
(dll_crt0_1): Call wincap.init() instead of set_os_type().
(_dll_crt0): Ditto.
* environ.cc (set_chunksize): New function.
(parse_thing): `forkchunk' setting now invokes function `set_chunksize'.
* fork.cc (chunksize): Eliminated. Moved to be member of wincap.
* host_dependent.h: Removed.
* syscalls.cc (_link): Try using `CreateHardLinkA' first, if available.
* cygheap.cc, dcrt0.cc, delqueue.cc, dir.cc,
environ.cc, fhandler.cc, fhandler.h, fhandler_console.cc,
fhandler_mem.cc, fork.cc, mmap.cc, net.cc, pinfo.cc, pinfo.h,
security.cc, syscalls.cc, sysconf.cc, syslog.cc, thread.cc,
times.cc, tty.cc, uinfo.cc, uname.cc, winsup.h: Use new wincap
capability check throughout.
* winsup.h: Include wincap.h. Eliminate extern declarations of
`os_being_run' and `iswinnt'. Eliminate `os_type" definition.
* include/cygwin/version.h: Bump version to 1.3.4.
2001-09-13 01:46:37 +08:00
|
|
|
version.dwMinorVersion);
|
|
|
|
}
|