* 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-12 10:46:37 -07:00
|
|
|
/* wincap.cc -- figure out on which OS we're running. Set the
|
|
|
|
capability class to the appropriate values.
|
|
|
|
|
2013-01-20 20:38:31 -08:00
|
|
|
Copyright 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011,
|
2014-05-08 12:33:07 -07:00
|
|
|
2012, 2013, 2014 Red Hat, Inc.
|
* 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-12 10:46:37 -07:00
|
|
|
|
|
|
|
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 01:33:22 -07:00
|
|
|
#include "security.h"
|
2008-04-28 01:47:06 -07: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-12 10:46:37 -07:00
|
|
|
|
2008-10-23 14:00:45 -07: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_xpsp2 __attribute__((section (".cygwin_dll_common"), shared)) = {
|
2007-07-19 01:33:22 -07:00
|
|
|
max_sys_priv:SE_CREATE_GLOBAL_PRIVILEGE,
|
|
|
|
is_server:false,
|
|
|
|
has_mandatory_integrity_control:false,
|
|
|
|
needs_count_in_si_lpres2:false,
|
|
|
|
has_recycle_dot_bin:false,
|
2007-01-17 11:26:58 -08:00
|
|
|
has_gaa_on_link_prefix:false,
|
2012-05-03 01:34:44 -07:00
|
|
|
has_gaa_largeaddress_bug:false,
|
2007-02-01 07:54:40 -08:00
|
|
|
supports_all_posix_ai_flags:false,
|
2008-02-13 01:42:22 -08:00
|
|
|
has_restricted_stack_args:false,
|
2008-05-15 09:34:01 -07:00
|
|
|
has_transactions:false,
|
2009-01-20 03:16:59 -08:00
|
|
|
has_sendmsg:false,
|
2009-01-29 12:32:08 -08:00
|
|
|
has_broken_udf:true,
|
2009-06-26 08:12:06 -07:00
|
|
|
has_broken_alloc_console:false,
|
2009-07-20 08:44:55 -07:00
|
|
|
has_always_all_codepages:false,
|
2010-01-22 14:31:31 -08:00
|
|
|
has_localenames:false,
|
2010-10-09 03:54:13 -07:00
|
|
|
has_fast_cwd:false,
|
2011-01-11 06:50:45 -08:00
|
|
|
has_restricted_raw_disk_access:false,
|
2011-02-28 16:19:23 -08:00
|
|
|
use_dont_resolve_hack:true,
|
2011-10-15 09:31:57 -07:00
|
|
|
has_console_logon_sid:false,
|
2011-12-19 04:50:35 -08:00
|
|
|
wow64_has_secondary_stack:false,
|
2012-04-15 10:51:22 -07:00
|
|
|
has_program_compatibility_assistant:false,
|
2013-04-23 02:44:36 -07:00
|
|
|
has_pipe_reject_remote_clients:false,
|
2013-03-29 10:00:36 -07:00
|
|
|
terminate_thread_frees_stack:false,
|
2013-06-14 08:41:17 -07:00
|
|
|
has_precise_system_time:false,
|
2014-05-08 12:33:07 -07:00
|
|
|
has_microsoft_accounts:false,
|
2003-05-20 08:22:09 -07:00
|
|
|
};
|
|
|
|
|
2008-10-23 14:00:45 -07:00
|
|
|
wincaps wincap_2003 __attribute__((section (".cygwin_dll_common"), shared)) = {
|
2007-07-19 01:33:22 -07:00
|
|
|
max_sys_priv:SE_CREATE_GLOBAL_PRIVILEGE,
|
2011-05-10 08:39:02 -07:00
|
|
|
is_server:false,
|
2006-11-08 03:38:05 -08:00
|
|
|
has_mandatory_integrity_control:false,
|
2006-12-05 02:59:21 -08:00
|
|
|
needs_count_in_si_lpres2:false,
|
2006-12-10 08:43:30 -08:00
|
|
|
has_recycle_dot_bin:false,
|
2007-01-17 11:26:58 -08:00
|
|
|
has_gaa_on_link_prefix:false,
|
2012-05-03 01:34:44 -07:00
|
|
|
has_gaa_largeaddress_bug:false,
|
2007-02-01 07:54:40 -08:00
|
|
|
supports_all_posix_ai_flags:false,
|
2008-02-13 01:42:22 -08:00
|
|
|
has_restricted_stack_args:true,
|
2008-05-15 09:34:01 -07:00
|
|
|
has_transactions:false,
|
2009-01-20 03:16:59 -08:00
|
|
|
has_sendmsg:false,
|
2009-01-29 12:32:08 -08:00
|
|
|
has_broken_udf:true,
|
2009-06-26 08:12:06 -07:00
|
|
|
has_broken_alloc_console:false,
|
2009-07-20 08:44:55 -07:00
|
|
|
has_always_all_codepages:false,
|
2010-01-22 14:31:31 -08:00
|
|
|
has_localenames:false,
|
2010-10-09 03:54:13 -07:00
|
|
|
has_fast_cwd:false,
|
2011-01-11 06:50:45 -08:00
|
|
|
has_restricted_raw_disk_access:false,
|
2011-03-23 14:33:36 -07:00
|
|
|
use_dont_resolve_hack:true,
|
2011-10-15 09:31:57 -07:00
|
|
|
has_console_logon_sid:false,
|
2011-12-19 04:50:35 -08:00
|
|
|
wow64_has_secondary_stack:true,
|
2012-04-15 10:51:22 -07:00
|
|
|
has_program_compatibility_assistant:false,
|
2013-04-23 02:44:36 -07:00
|
|
|
has_pipe_reject_remote_clients:false,
|
2013-03-29 10:00:36 -07:00
|
|
|
terminate_thread_frees_stack:false,
|
2013-06-14 08:41:17 -07:00
|
|
|
has_precise_system_time:false,
|
2014-05-08 12:33:07 -07:00
|
|
|
has_microsoft_accounts:false,
|
2005-09-28 12:33:18 -07:00
|
|
|
};
|
|
|
|
|
2008-10-23 14:00:45 -07:00
|
|
|
wincaps wincap_vista __attribute__((section (".cygwin_dll_common"), shared)) = {
|
2007-07-19 01:33:22 -07:00
|
|
|
max_sys_priv:SE_CREATE_SYMBOLIC_LINK_PRIVILEGE,
|
2007-01-17 11:26:58 -08:00
|
|
|
is_server:false,
|
2006-11-08 03:38:05 -08:00
|
|
|
has_mandatory_integrity_control:true,
|
2006-12-05 02:59:21 -08:00
|
|
|
needs_count_in_si_lpres2:true,
|
2006-12-10 08:43:30 -08:00
|
|
|
has_recycle_dot_bin:true,
|
2007-01-17 11:26:58 -08:00
|
|
|
has_gaa_on_link_prefix:true,
|
2012-05-03 01:34:44 -07:00
|
|
|
has_gaa_largeaddress_bug:true,
|
2007-02-01 07:54:40 -08:00
|
|
|
supports_all_posix_ai_flags:true,
|
2008-02-13 01:42:22 -08:00
|
|
|
has_restricted_stack_args:false,
|
2008-05-15 09:34:01 -07:00
|
|
|
has_transactions:true,
|
2009-01-20 03:16:59 -08:00
|
|
|
has_sendmsg:true,
|
2009-01-29 12:32:08 -08:00
|
|
|
has_broken_udf:false,
|
2009-06-26 08:12:06 -07:00
|
|
|
has_broken_alloc_console:false,
|
2009-07-20 08:44:55 -07:00
|
|
|
has_always_all_codepages:true,
|
2010-01-22 14:31:31 -08:00
|
|
|
has_localenames:true,
|
2010-10-09 03:54:13 -07:00
|
|
|
has_fast_cwd:true,
|
2011-01-11 06:50:45 -08:00
|
|
|
has_restricted_raw_disk_access:true,
|
2011-02-28 16:19:23 -08:00
|
|
|
use_dont_resolve_hack:false,
|
2011-10-15 09:31:57 -07:00
|
|
|
has_console_logon_sid:false,
|
2011-12-19 04:50:35 -08:00
|
|
|
wow64_has_secondary_stack:false,
|
2012-04-15 10:51:22 -07:00
|
|
|
has_program_compatibility_assistant:true,
|
2013-04-23 02:44:36 -07:00
|
|
|
has_pipe_reject_remote_clients:true,
|
2013-03-29 10:00:36 -07:00
|
|
|
terminate_thread_frees_stack:true,
|
2013-06-14 08:41:17 -07:00
|
|
|
has_precise_system_time:false,
|
2014-05-08 12:33:07 -07:00
|
|
|
has_microsoft_accounts:false,
|
2009-05-09 08:56:37 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
wincaps wincap_7 __attribute__((section (".cygwin_dll_common"), shared)) = {
|
|
|
|
max_sys_priv:SE_CREATE_SYMBOLIC_LINK_PRIVILEGE,
|
|
|
|
is_server:false,
|
|
|
|
has_mandatory_integrity_control:true,
|
2010-07-15 01:00:52 -07:00
|
|
|
needs_count_in_si_lpres2:false,
|
2009-05-09 08:56:37 -07:00
|
|
|
has_recycle_dot_bin:true,
|
|
|
|
has_gaa_on_link_prefix:true,
|
2012-05-03 01:34:44 -07:00
|
|
|
has_gaa_largeaddress_bug:true,
|
|
|
|
supports_all_posix_ai_flags:true,
|
|
|
|
has_restricted_stack_args:false,
|
|
|
|
has_transactions:true,
|
|
|
|
has_sendmsg:true,
|
|
|
|
has_broken_udf:false,
|
|
|
|
has_broken_alloc_console:true,
|
|
|
|
has_always_all_codepages:true,
|
|
|
|
has_localenames:true,
|
|
|
|
has_fast_cwd:true,
|
|
|
|
has_restricted_raw_disk_access:true,
|
|
|
|
use_dont_resolve_hack:false,
|
|
|
|
has_console_logon_sid:true,
|
|
|
|
wow64_has_secondary_stack:false,
|
|
|
|
has_program_compatibility_assistant:true,
|
2013-04-23 02:44:36 -07:00
|
|
|
has_pipe_reject_remote_clients:true,
|
2013-03-29 10:00:36 -07:00
|
|
|
terminate_thread_frees_stack:true,
|
2013-06-14 08:41:17 -07:00
|
|
|
has_precise_system_time:false,
|
2014-05-08 12:33:07 -07:00
|
|
|
has_microsoft_accounts:false,
|
2012-05-03 01:34:44 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
wincaps wincap_8 __attribute__((section (".cygwin_dll_common"), shared)) = {
|
|
|
|
max_sys_priv:SE_CREATE_SYMBOLIC_LINK_PRIVILEGE,
|
|
|
|
is_server:false,
|
2014-12-01 06:02:55 -08:00
|
|
|
has_mandatory_integrity_control:true,
|
|
|
|
needs_count_in_si_lpres2:false,
|
|
|
|
has_recycle_dot_bin:true,
|
|
|
|
has_gaa_on_link_prefix:true,
|
|
|
|
has_gaa_largeaddress_bug:false,
|
|
|
|
supports_all_posix_ai_flags:true,
|
|
|
|
has_restricted_stack_args:false,
|
|
|
|
has_transactions:true,
|
|
|
|
has_sendmsg:true,
|
|
|
|
has_broken_udf:false,
|
|
|
|
has_broken_alloc_console:true,
|
|
|
|
has_always_all_codepages:true,
|
|
|
|
has_localenames:true,
|
|
|
|
has_fast_cwd:true,
|
|
|
|
has_restricted_raw_disk_access:true,
|
|
|
|
use_dont_resolve_hack:false,
|
|
|
|
has_console_logon_sid:true,
|
|
|
|
wow64_has_secondary_stack:false,
|
|
|
|
has_program_compatibility_assistant:true,
|
|
|
|
has_pipe_reject_remote_clients:true,
|
|
|
|
terminate_thread_frees_stack:true,
|
|
|
|
has_precise_system_time:true,
|
|
|
|
has_microsoft_accounts:true,
|
|
|
|
};
|
|
|
|
|
|
|
|
wincaps wincap_10 __attribute__((section (".cygwin_dll_common"), shared)) = {
|
|
|
|
max_sys_priv:SE_CREATE_SYMBOLIC_LINK_PRIVILEGE,
|
|
|
|
is_server:false,
|
2012-05-03 01:34:44 -07:00
|
|
|
has_mandatory_integrity_control:true,
|
|
|
|
needs_count_in_si_lpres2:false,
|
|
|
|
has_recycle_dot_bin:true,
|
|
|
|
has_gaa_on_link_prefix:true,
|
|
|
|
has_gaa_largeaddress_bug:false,
|
2009-05-09 08:56:37 -07:00
|
|
|
supports_all_posix_ai_flags:true,
|
|
|
|
has_restricted_stack_args:false,
|
|
|
|
has_transactions:true,
|
|
|
|
has_sendmsg:true,
|
|
|
|
has_broken_udf:false,
|
2009-06-26 08:12:06 -07:00
|
|
|
has_broken_alloc_console:true,
|
2009-07-20 08:44:55 -07:00
|
|
|
has_always_all_codepages:true,
|
2010-01-22 14:31:31 -08:00
|
|
|
has_localenames:true,
|
2010-10-09 03:54:13 -07:00
|
|
|
has_fast_cwd:true,
|
2011-01-11 06:50:45 -08:00
|
|
|
has_restricted_raw_disk_access:true,
|
2011-02-28 16:19:23 -08:00
|
|
|
use_dont_resolve_hack:false,
|
2011-10-15 09:31:57 -07:00
|
|
|
has_console_logon_sid:true,
|
2011-12-19 04:50:35 -08:00
|
|
|
wow64_has_secondary_stack:false,
|
2012-04-15 10:51:22 -07:00
|
|
|
has_program_compatibility_assistant:true,
|
2013-04-23 02:44:36 -07:00
|
|
|
has_pipe_reject_remote_clients:true,
|
2013-03-29 10:00:36 -07:00
|
|
|
terminate_thread_frees_stack:true,
|
2013-06-14 08:41:17 -07:00
|
|
|
has_precise_system_time:true,
|
2014-05-08 12:33:07 -07:00
|
|
|
has_microsoft_accounts:true,
|
* 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-12 10:46:37 -07:00
|
|
|
};
|
|
|
|
|
2006-01-10 10: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-12 10:46:37 -07:00
|
|
|
|
|
|
|
void
|
|
|
|
wincapc::init ()
|
|
|
|
{
|
2002-01-28 18:02:03 -08:00
|
|
|
if (caps)
|
|
|
|
return; // already initialized
|
|
|
|
|
2011-05-10 08:39:02 -07:00
|
|
|
GetSystemInfo (&system_info);
|
2013-11-19 14:21:11 -08:00
|
|
|
version.dwOSVersionInfoSize = sizeof (RTL_OSVERSIONINFOEXW);
|
|
|
|
RtlGetVersion (&version);
|
* 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-12 10:46:37 -07:00
|
|
|
|
2012-07-24 06:56:14 -07: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-12 10:46:37 -07:00
|
|
|
{
|
2012-07-24 06:56:14 -07:00
|
|
|
case 5:
|
|
|
|
switch (version.dwMinorVersion)
|
* 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-12 10:46:37 -07:00
|
|
|
{
|
2012-07-24 06:56:14 -07:00
|
|
|
case 1:
|
2013-04-23 02:44:36 -07:00
|
|
|
caps = &wincap_xpsp2;
|
2005-09-28 12:33:18 -07:00
|
|
|
break;
|
2012-07-24 06:56:14 -07: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-12 10:46:37 -07:00
|
|
|
default:
|
2012-07-24 06:56:14 -07:00
|
|
|
caps = &wincap_2003;
|
* 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-12 10:46:37 -07:00
|
|
|
}
|
2001-11-04 22:09:15 -08:00
|
|
|
break;
|
2012-07-24 06:56:14 -07:00
|
|
|
case 6:
|
|
|
|
switch (version.dwMinorVersion)
|
|
|
|
{
|
|
|
|
case 0:
|
|
|
|
caps = &wincap_vista;
|
|
|
|
break;
|
|
|
|
case 1:
|
|
|
|
caps = &wincap_7;
|
|
|
|
break;
|
2014-12-01 06:02:55 -08:00
|
|
|
case 2:
|
|
|
|
case 3:
|
2012-07-24 06:56:14 -07:00
|
|
|
caps = &wincap_8;
|
|
|
|
break;
|
2014-12-01 06:02:55 -08:00
|
|
|
default:
|
|
|
|
caps = &wincap_10;
|
|
|
|
break;
|
2012-07-24 06:56:14 -07:00
|
|
|
}
|
2001-11-04 22:09:15 -08:00
|
|
|
break;
|
2014-12-01 06: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-12 10:46:37 -07:00
|
|
|
default:
|
2014-12-01 06:02:55 -08:00
|
|
|
caps = &wincap_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-12 10:46:37 -07:00
|
|
|
break;
|
|
|
|
}
|
2003-09-26 20:44:31 -07:00
|
|
|
|
2011-05-10 08:39:02 -07:00
|
|
|
((wincaps *)caps)->is_server = (version.wProductType != VER_NT_WORKSTATION);
|
2013-04-23 02:44:36 -07:00
|
|
|
#ifdef __x86_64__
|
|
|
|
wow64 = 0;
|
|
|
|
#else
|
2009-12-18 12:32:04 -08:00
|
|
|
if (NT_SUCCESS (NtQueryInformationProcess (NtCurrentProcess (),
|
2008-04-28 01:47:06 -07:00
|
|
|
ProcessWow64Information,
|
|
|
|
&wow64, sizeof wow64, NULL))
|
|
|
|
&& !wow64)
|
2013-04-23 02:44:36 -07:00
|
|
|
#endif
|
2008-02-13 01:42:22 -08:00
|
|
|
{
|
2008-04-27 09:12:00 -07:00
|
|
|
((wincaps *)caps)->needs_count_in_si_lpres2 = false;
|
|
|
|
((wincaps *)caps)->has_restricted_stack_args = false;
|
2011-12-19 04:50:35 -08:00
|
|
|
((wincaps *)caps)->wow64_has_secondary_stack = false;
|
2012-05-03 01:34:44 -07:00
|
|
|
((wincaps *)caps)->has_gaa_largeaddress_bug = false;
|
2008-02-13 01:42:22 -08:00
|
|
|
}
|
2006-01-10 10:11:32 -08:00
|
|
|
|
2007-12-12 04: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-12 10:46:37 -07:00
|
|
|
version.dwMinorVersion);
|
|
|
|
}
|