Hello!

Here's a small patch that enables Cygwin to run on Windows 8 (tested on x64 build 8102, the Windows Developer Preview). Windows 8 does not seem to support FAST_CWD or the current implementation of FAST_CWD is not compatible with Windows 8 so it is disabled at the moment.

Teemu Nätkinniemi
2011-10-11  Teemu Nätkinniemi  <tnatk...@gmail.com>

        * wincap.cc (wincap_8): Add support to Windows 8
        (wincapc::init): Ditto

--- wincap.cc.orig      2011-07-30 23:51:03.000000000 +0300
+++ wincap.cc   2011-10-11 22:13:44.556795800 +0300
@@ -263,6 +263,36 @@
   has_stack_size_param_is_a_reservation:true,
 };
 
+wincaps wincap_8 __attribute__((section (".cygwin_dll_common"), shared)) = {
+  max_sys_priv:SE_CREATE_SYMBOLIC_LINK_PRIVILEGE,
+  is_server:false,
+  has_physical_mem_access:false,
+  has_create_global_privilege:true,
+  has_ioctl_storage_get_media_types_ex:true,
+  has_disk_ex_ioctls:true,
+  has_buggy_restart_scan:false,
+  has_mandatory_integrity_control:true,
+  needs_logon_sid_in_sid_list:false,
+  needs_count_in_si_lpres2:false,
+  has_recycle_dot_bin:true,
+  has_gaa_prefixes:true,
+  has_gaa_on_link_prefix:true,
+  supports_all_posix_ai_flags:true,
+  has_restricted_stack_args:false,
+  has_transactions:true,
+  has_recvmsg:true,
+  has_sendmsg:true,
+  has_broken_udf:false,
+  has_console_handle_problem:true,
+  has_broken_alloc_console:true,
+  has_always_all_codepages:true,
+  has_localenames:true,
+  has_fast_cwd:false,
+  has_restricted_raw_disk_access:true,
+  use_dont_resolve_hack:false,
+  has_stack_size_param_is_a_reservation:true,
+};
+
 wincapc wincap __attribute__((section (".cygwin_dll_common"), shared));
 
 void
@@ -320,9 +350,12 @@
                  case 0:
                    caps = &wincap_vista;
                    break;
-                 default:
+                 case 1:
                    caps = &wincap_7;
                    break;
+                 default:
+                   caps = &wincap_8;
+                   break;
                }
              break;
            default:

Reply via email to