This is the mail archive of the cygwin-patches mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch] Add dirent.d_type support to Cygwin 1.7 ?


Corinna Vinschen wrote:
On Nov 27 21:15, Christopher Faylor wrote:
...
If Corinna's ok with this then so am I.

Yep. Applied with just a minor change to the ChangeLog entry.



Thanks.


Attn maintainers:
If package with dirent.d_type support is rebuild with new sys/dirent.h, it is no longer backward compatible with older Cygwin releases. This is IMO no problem for packages rebuild for 1.7.


If desired, this can be fixed by initializing d_type after opendir:

  DIR * dir = opendir(path);
  if (!dir) {...}
+#if defined(__CYGWIN__) && defined(_DIRENT_HAVE_D_TYPE)
+  dir->__d_dirent->d_type = DT_UNKNOWN;
+#endif


Probably OT: Current CVS does not work for me, bash fails when first command is run:


[C:\cygwin-1.7\bin].\bash
bash-3.2$ ./true
419 [sig] bash 3016 _cygtls::handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
1032 [sig] bash 3016 open_stackdumpfile: Dumping stack trace to bash.exe.stackdump


Using exception.cc 1.326 instead of 1.327 fixes the problem.

Christian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]