Add support for Windows 8, first step

2011-10-11 Thread Teemu Nätkinniemi

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  

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

--- wincap.cc.orig  2011-07-30 23:51:03.0 +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:


Re: [PATCH] add getconf(1)

2011-10-11 Thread Corinna Vinschen
On Oct 11 11:45, Yaakov (Cygwin/X) wrote:
> On Mon, Oct 10, 2011 at 10:04, Corinna Vinschen wrote:
> > what I didn't realize at the time was the fact that you didn't provide a
> > documentation patch, too.  My latest patch to utils.sgml adds a short
> > description for the getconf tool.  It's rather tight-lipped, so I'd
> > appreciate if you could have a look and, perhaps, improve the text.
> 
> My apologies.  Patch attached.

Thanks!  Please apply.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat


Re: [PATCH] add getconf(1)

2011-10-11 Thread Yaakov (Cygwin/X)
On Mon, Oct 10, 2011 at 10:04, Corinna Vinschen wrote:
> what I didn't realize at the time was the fact that you didn't provide a
> documentation patch, too.  My latest patch to utils.sgml adds a short
> description for the getconf tool.  It's rather tight-lipped, so I'd
> appreciate if you could have a look and, perhaps, improve the text.

My apologies.  Patch attached.


Yaakov


doc-getconf.patch
Description: Binary data