* 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"
|
2018-12-23 07:21:21 +08:00
|
|
|
#include "miscfuncs.h"
|
2007-07-19 16:33:22 +08:00
|
|
|
#include "security.h"
|
2008-04-28 16:47:06 +08:00
|
|
|
#include "ntdll.h"
|
2022-10-27 04:04:41 +08:00
|
|
|
#include "memory_layout.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... */
|
|
|
|
|
2019-03-03 17:59:13 +08:00
|
|
|
wincaps wincap_8_1 __attribute__((section (".cygwin_dll_common"), shared)) = {
|
2015-12-15 23:34:40 +08:00
|
|
|
{
|
|
|
|
is_server:false,
|
|
|
|
has_new_pebteb_region:false,
|
2017-04-24 23:14:03 +08:00
|
|
|
has_unprivileged_createsymlink:false,
|
2018-11-27 20:47:02 +08:00
|
|
|
has_precise_interrupt_time:false,
|
2019-01-15 03:38:24 +08:00
|
|
|
has_posix_unlink_semantics:false,
|
2021-01-22 23:47:11 +08:00
|
|
|
has_posix_unlink_semantics_with_ignore_readonly:false,
|
2018-12-25 08:07:39 +08:00
|
|
|
has_case_sensitive_dirs:false,
|
2019-01-15 03:38:24 +08:00
|
|
|
has_posix_rename_semantics:false,
|
2019-03-31 23:47:46 +08:00
|
|
|
has_con_24bit_colors:false,
|
2020-01-14 09:53:59 +08:00
|
|
|
has_con_broken_csi3j:false,
|
2020-02-26 23:32:59 +08:00
|
|
|
has_con_broken_il_dl:false,
|
2020-02-26 23:33:01 +08:00
|
|
|
has_con_esc_rep:false,
|
2020-04-07 20:13:50 +08:00
|
|
|
has_extended_mem_api:false,
|
2020-06-30 20:34:19 +08:00
|
|
|
has_tcp_fastopen:false,
|
2020-07-02 02:27:10 +08:00
|
|
|
has_linux_tcp_keepalive_sockopts:false,
|
2020-07-02 02:30:22 +08:00
|
|
|
has_tcp_maxrtms:false,
|
2022-02-16 17:13:02 +08:00
|
|
|
has_con_broken_tabs:false,
|
2015-12-15 23:34:40 +08:00
|
|
|
},
|
2014-12-01 22:02:55 +08:00
|
|
|
};
|
|
|
|
|
2018-12-23 07:21:21 +08:00
|
|
|
wincaps wincap_10_1507 __attribute__((section (".cygwin_dll_common"), shared)) = {
|
2015-12-15 23:34:40 +08:00
|
|
|
{
|
|
|
|
is_server:false,
|
|
|
|
has_new_pebteb_region:false,
|
2017-04-24 23:14:03 +08:00
|
|
|
has_unprivileged_createsymlink:false,
|
2018-11-27 20:47:02 +08:00
|
|
|
has_precise_interrupt_time:true,
|
2019-01-15 03:38:24 +08:00
|
|
|
has_posix_unlink_semantics:false,
|
2021-01-22 23:47:11 +08:00
|
|
|
has_posix_unlink_semantics_with_ignore_readonly:false,
|
2018-12-25 08:07:39 +08:00
|
|
|
has_case_sensitive_dirs:false,
|
2019-01-15 03:38:24 +08:00
|
|
|
has_posix_rename_semantics:false,
|
2019-03-31 23:47:46 +08:00
|
|
|
has_con_24bit_colors:false,
|
2020-01-14 09:53:59 +08:00
|
|
|
has_con_broken_csi3j:false,
|
2020-02-26 23:32:59 +08:00
|
|
|
has_con_broken_il_dl:false,
|
2020-02-26 23:33:01 +08:00
|
|
|
has_con_esc_rep:false,
|
2020-04-07 20:13:50 +08:00
|
|
|
has_extended_mem_api:false,
|
2020-06-30 20:34:19 +08:00
|
|
|
has_tcp_fastopen:false,
|
2020-07-02 02:27:10 +08:00
|
|
|
has_linux_tcp_keepalive_sockopts:false,
|
2020-07-02 02:30:22 +08:00
|
|
|
has_tcp_maxrtms:false,
|
2022-02-16 17:13:02 +08:00
|
|
|
has_con_broken_tabs:false,
|
2020-06-30 20:34:19 +08:00
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
wincaps wincap_10_1607 __attribute__((section (".cygwin_dll_common"), shared)) = {
|
|
|
|
{
|
|
|
|
is_server:false,
|
|
|
|
has_new_pebteb_region:false,
|
|
|
|
has_unprivileged_createsymlink:false,
|
|
|
|
has_precise_interrupt_time:true,
|
|
|
|
has_posix_unlink_semantics:false,
|
2021-01-22 23:47:11 +08:00
|
|
|
has_posix_unlink_semantics_with_ignore_readonly:false,
|
2020-06-30 20:34:19 +08:00
|
|
|
has_case_sensitive_dirs:false,
|
|
|
|
has_posix_rename_semantics:false,
|
|
|
|
has_con_24bit_colors:false,
|
|
|
|
has_con_broken_csi3j:false,
|
|
|
|
has_con_broken_il_dl:false,
|
|
|
|
has_con_esc_rep:false,
|
|
|
|
has_extended_mem_api:false,
|
|
|
|
has_tcp_fastopen:true,
|
2020-07-02 02:27:10 +08:00
|
|
|
has_linux_tcp_keepalive_sockopts:false,
|
2020-07-02 02:30:22 +08:00
|
|
|
has_tcp_maxrtms:true,
|
2022-02-16 17:13:02 +08:00
|
|
|
has_con_broken_tabs:false,
|
2015-12-15 23:34:40 +08:00
|
|
|
},
|
2015-12-03 20:33:43 +08:00
|
|
|
};
|
|
|
|
|
2017-04-24 23:14:03 +08:00
|
|
|
wincaps wincap_10_1703 __attribute__((section (".cygwin_dll_common"), shared)) = {
|
|
|
|
{
|
|
|
|
is_server:false,
|
|
|
|
has_new_pebteb_region:true,
|
|
|
|
has_unprivileged_createsymlink:true,
|
2018-11-27 20:47:02 +08:00
|
|
|
has_precise_interrupt_time:true,
|
2019-01-15 03:38:24 +08:00
|
|
|
has_posix_unlink_semantics:false,
|
2021-01-22 23:47:11 +08:00
|
|
|
has_posix_unlink_semantics_with_ignore_readonly:false,
|
2018-12-25 08:07:39 +08:00
|
|
|
has_case_sensitive_dirs:false,
|
2019-01-15 03:38:24 +08:00
|
|
|
has_posix_rename_semantics:false,
|
2019-03-31 23:47:46 +08:00
|
|
|
has_con_24bit_colors:true,
|
2020-01-14 09:53:59 +08:00
|
|
|
has_con_broken_csi3j:false,
|
2020-02-26 23:32:59 +08:00
|
|
|
has_con_broken_il_dl:false,
|
2020-02-26 23:33:01 +08:00
|
|
|
has_con_esc_rep:false,
|
2020-04-07 20:13:50 +08:00
|
|
|
has_extended_mem_api:false,
|
2020-06-30 20:34:19 +08:00
|
|
|
has_tcp_fastopen:true,
|
2020-07-02 02:27:10 +08:00
|
|
|
has_linux_tcp_keepalive_sockopts:false,
|
2020-07-02 02:30:22 +08:00
|
|
|
has_tcp_maxrtms:true,
|
2022-02-16 17:13:02 +08:00
|
|
|
has_con_broken_tabs:true,
|
2018-12-23 07:21:21 +08:00
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
wincaps wincap_10_1709 __attribute__((section (".cygwin_dll_common"), shared)) = {
|
|
|
|
{
|
|
|
|
is_server:false,
|
|
|
|
has_new_pebteb_region:true,
|
|
|
|
has_unprivileged_createsymlink:true,
|
|
|
|
has_precise_interrupt_time:true,
|
2019-01-15 03:38:24 +08:00
|
|
|
has_posix_unlink_semantics:true,
|
2021-01-22 23:47:11 +08:00
|
|
|
has_posix_unlink_semantics_with_ignore_readonly:false,
|
2018-12-25 08:07:39 +08:00
|
|
|
has_case_sensitive_dirs:false,
|
2019-01-15 03:38:24 +08:00
|
|
|
has_posix_rename_semantics:false,
|
2019-03-31 23:47:46 +08:00
|
|
|
has_con_24bit_colors:true,
|
2020-01-14 09:53:59 +08:00
|
|
|
has_con_broken_csi3j:false,
|
2020-02-26 23:32:59 +08:00
|
|
|
has_con_broken_il_dl:false,
|
2020-02-26 23:33:01 +08:00
|
|
|
has_con_esc_rep:false,
|
2020-04-07 20:13:50 +08:00
|
|
|
has_extended_mem_api:false,
|
2020-06-30 20:34:19 +08:00
|
|
|
has_tcp_fastopen:true,
|
2020-07-02 02:27:10 +08:00
|
|
|
has_linux_tcp_keepalive_sockopts:true,
|
2020-07-02 02:30:22 +08:00
|
|
|
has_tcp_maxrtms:true,
|
2022-02-16 17:13:02 +08:00
|
|
|
has_con_broken_tabs:true,
|
2018-12-25 08:07:39 +08:00
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
wincaps wincap_10_1803 __attribute__((section (".cygwin_dll_common"), shared)) = {
|
|
|
|
{
|
|
|
|
is_server:false,
|
|
|
|
has_new_pebteb_region:true,
|
|
|
|
has_unprivileged_createsymlink:true,
|
|
|
|
has_precise_interrupt_time:true,
|
2019-01-15 03:38:24 +08:00
|
|
|
has_posix_unlink_semantics:true,
|
2021-01-22 23:47:11 +08:00
|
|
|
has_posix_unlink_semantics_with_ignore_readonly:false,
|
2018-12-25 08:07:39 +08:00
|
|
|
has_case_sensitive_dirs:true,
|
2019-01-15 03:38:24 +08:00
|
|
|
has_posix_rename_semantics:false,
|
2019-03-31 23:47:46 +08:00
|
|
|
has_con_24bit_colors:true,
|
2020-01-14 09:53:59 +08:00
|
|
|
has_con_broken_csi3j:false,
|
2020-02-26 23:32:59 +08:00
|
|
|
has_con_broken_il_dl:false,
|
2020-02-26 23:33:01 +08:00
|
|
|
has_con_esc_rep:false,
|
2020-04-07 20:13:50 +08:00
|
|
|
has_extended_mem_api:true,
|
2020-06-30 20:34:19 +08:00
|
|
|
has_tcp_fastopen:true,
|
2020-07-02 02:27:10 +08:00
|
|
|
has_linux_tcp_keepalive_sockopts:true,
|
2020-07-02 02:30:22 +08:00
|
|
|
has_tcp_maxrtms:true,
|
2022-02-16 17:13:02 +08:00
|
|
|
has_con_broken_tabs:true,
|
2019-01-15 03:38:24 +08:00
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
wincaps wincap_10_1809 __attribute__((section (".cygwin_dll_common"), shared)) = {
|
|
|
|
{
|
|
|
|
is_server:false,
|
|
|
|
has_new_pebteb_region:true,
|
|
|
|
has_unprivileged_createsymlink:true,
|
|
|
|
has_precise_interrupt_time:true,
|
|
|
|
has_posix_unlink_semantics:true,
|
2021-01-22 23:47:11 +08:00
|
|
|
has_posix_unlink_semantics_with_ignore_readonly:true,
|
2019-01-15 03:38:24 +08:00
|
|
|
has_case_sensitive_dirs:true,
|
|
|
|
has_posix_rename_semantics:true,
|
2019-03-31 23:47:46 +08:00
|
|
|
has_con_24bit_colors:true,
|
2020-01-14 09:53:59 +08:00
|
|
|
has_con_broken_csi3j:true,
|
2020-02-26 23:32:59 +08:00
|
|
|
has_con_broken_il_dl:false,
|
2020-02-26 23:33:01 +08:00
|
|
|
has_con_esc_rep:false,
|
2020-04-07 20:13:50 +08:00
|
|
|
has_extended_mem_api:true,
|
2020-06-30 20:34:19 +08:00
|
|
|
has_tcp_fastopen:true,
|
2020-07-02 02:27:10 +08:00
|
|
|
has_linux_tcp_keepalive_sockopts:true,
|
2020-07-02 02:30:22 +08:00
|
|
|
has_tcp_maxrtms:true,
|
2022-02-16 17:13:02 +08:00
|
|
|
has_con_broken_tabs:true,
|
2020-01-14 09:53:59 +08:00
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
wincaps wincap_10_1903 __attribute__((section (".cygwin_dll_common"), shared)) = {
|
|
|
|
{
|
|
|
|
is_server:false,
|
|
|
|
has_new_pebteb_region:true,
|
|
|
|
has_unprivileged_createsymlink:true,
|
|
|
|
has_precise_interrupt_time:true,
|
|
|
|
has_posix_unlink_semantics:true,
|
2021-01-22 23:47:11 +08:00
|
|
|
has_posix_unlink_semantics_with_ignore_readonly:true,
|
2020-01-14 09:53:59 +08:00
|
|
|
has_case_sensitive_dirs:true,
|
|
|
|
has_posix_rename_semantics:true,
|
|
|
|
has_con_24bit_colors:true,
|
|
|
|
has_con_broken_csi3j:false,
|
2020-02-26 23:32:59 +08:00
|
|
|
has_con_broken_il_dl:true,
|
2020-02-26 23:33:01 +08:00
|
|
|
has_con_esc_rep:true,
|
2020-04-07 20:13:50 +08:00
|
|
|
has_extended_mem_api:true,
|
2020-06-30 20:34:19 +08:00
|
|
|
has_tcp_fastopen:true,
|
2020-07-02 02:27:10 +08:00
|
|
|
has_linux_tcp_keepalive_sockopts:true,
|
2020-07-02 02:30:22 +08:00
|
|
|
has_tcp_maxrtms:true,
|
2022-02-16 17:13:02 +08:00
|
|
|
has_con_broken_tabs: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
|
|
|
};
|
|
|
|
|
2022-02-05 13:47:26 +08:00
|
|
|
wincaps wincap_10_2004 __attribute__((section (".cygwin_dll_common"), shared)) = {
|
|
|
|
{
|
|
|
|
is_server:false,
|
|
|
|
has_new_pebteb_region:true,
|
|
|
|
has_unprivileged_createsymlink:true,
|
|
|
|
has_precise_interrupt_time:true,
|
|
|
|
has_posix_unlink_semantics:true,
|
|
|
|
has_posix_unlink_semantics_with_ignore_readonly:true,
|
|
|
|
has_case_sensitive_dirs:true,
|
|
|
|
has_posix_rename_semantics:true,
|
|
|
|
has_con_24bit_colors:true,
|
|
|
|
has_con_broken_csi3j:false,
|
|
|
|
has_con_broken_il_dl:false,
|
|
|
|
has_con_esc_rep:true,
|
|
|
|
has_extended_mem_api:true,
|
|
|
|
has_tcp_fastopen:true,
|
|
|
|
has_linux_tcp_keepalive_sockopts:true,
|
|
|
|
has_tcp_maxrtms:true,
|
2022-02-16 17:13:02 +08:00
|
|
|
has_con_broken_tabs:true,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
wincaps wincap_11 __attribute__((section (".cygwin_dll_common"), shared)) = {
|
|
|
|
{
|
|
|
|
is_server:false,
|
|
|
|
has_new_pebteb_region:true,
|
|
|
|
has_unprivileged_createsymlink:true,
|
|
|
|
has_precise_interrupt_time:true,
|
|
|
|
has_posix_unlink_semantics:true,
|
|
|
|
has_posix_unlink_semantics_with_ignore_readonly:true,
|
|
|
|
has_case_sensitive_dirs:true,
|
|
|
|
has_posix_rename_semantics:true,
|
|
|
|
has_con_24bit_colors:true,
|
|
|
|
has_con_broken_csi3j:false,
|
|
|
|
has_con_broken_il_dl:false,
|
|
|
|
has_con_esc_rep:true,
|
|
|
|
has_extended_mem_api:true,
|
|
|
|
has_tcp_fastopen:true,
|
|
|
|
has_linux_tcp_keepalive_sockopts:true,
|
|
|
|
has_tcp_maxrtms:true,
|
|
|
|
has_con_broken_tabs:false,
|
2022-02-05 13:47:26 +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:
|
2022-11-16 00:59:44 +08:00
|
|
|
caps = &wincap_8_1;
|
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:
|
2022-02-16 17:13:02 +08:00
|
|
|
if (likely (version.dwBuildNumber >= 22000))
|
|
|
|
caps = &wincap_11;
|
|
|
|
else if (version.dwBuildNumber >= 19041)
|
2022-02-05 13:47:26 +08:00
|
|
|
caps = &wincap_10_2004;
|
|
|
|
else if (version.dwBuildNumber >= 18362)
|
2020-01-14 09:53:59 +08:00
|
|
|
caps = &wincap_10_1903;
|
|
|
|
else if (version.dwBuildNumber >= 17763)
|
2019-01-15 03:38:24 +08:00
|
|
|
caps = &wincap_10_1809;
|
|
|
|
else if (version.dwBuildNumber >= 17134)
|
2018-12-25 08:07:39 +08:00
|
|
|
caps = &wincap_10_1803;
|
|
|
|
else if (version.dwBuildNumber >= 16299)
|
2018-12-23 07:21:21 +08:00
|
|
|
caps = &wincap_10_1709;
|
|
|
|
else if (version.dwBuildNumber >= 15063)
|
|
|
|
caps = &wincap_10_1703;
|
2020-06-30 20:34:19 +08:00
|
|
|
else if (version.dwBuildNumber >= 14393)
|
|
|
|
caps = &wincap_10_1607;
|
2017-04-24 23:14:03 +08:00
|
|
|
else
|
2018-12-23 07:21:21 +08:00
|
|
|
caps = & wincap_10_1507;
|
* 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);
|
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);
|
|
|
|
}
|