Yaakov Selkowitz | 12 Feb 03:38 2016
Picon
Gravatar

[PATCH] cygwin: update child info magic

	winsup/cygwin/
	* child_info.h (CURR_CHILD_INFO_MAGIC): Update.

Signed-off-by: Yaakov Selkowitz <yselkowi <at> redhat.com>
---
 winsup/cygwin/child_info.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/winsup/cygwin/child_info.h b/winsup/cygwin/child_info.h
index ddd5b8b..c11040c 100644
--- a/winsup/cygwin/child_info.h
+++ b/winsup/cygwin/child_info.h
 <at>  <at>  -39,7 +39,7  <at>  <at>  enum child_status
 #define EXEC_MAGIC_SIZE sizeof(child_info)

 /* Change this value if you get a message indicating that it is out-of-sync. */
-#define CURR_CHILD_INFO_MAGIC 0x30ea98f6U
+#define CURR_CHILD_INFO_MAGIC 0xf67f938cU

 #define NPROCS	256

--

-- 
2.7.0

Yaakov Selkowitz | 12 Feb 03:26 2016
Picon
Gravatar

[PATCH] cygwin: fix errors with GCC 5

GCC 5 switched from C89 to C11 by default, which implies a change from
GNU to C99 inline.

	winsup/cygwin/
	* exceptions.cc (exception::handle): Fix always-true boolean
	comparison warning.
	* include/cygwin/config.h (__getreent): Mark gnu_inline.
	* winbase.h (ilockcmpexch, ilockcmpexch64): Ditto.

Signed-off-by: Yaakov Selkowitz <yselkowi <at> redhat.com>
---
 winsup/cygwin/exceptions.cc           | 2 +-
 winsup/cygwin/include/cygwin/config.h | 1 +
 winsup/cygwin/winbase.h               | 2 ++
 3 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc
index c3a45d2..a50973b 100644
--- a/winsup/cygwin/exceptions.cc
+++ b/winsup/cygwin/exceptions.cc
 <at>  <at>  -645,7 +645,7  <at>  <at>  exception::handle (EXCEPTION_RECORD *e, exception_list *frame, CONTEXT *in,
     me.andreas->leave ();	/* Return from a "san" caught fault */
 #endif

-  if (debugging && ++debugging < 500000)
+  if (debugging && ++debugging)
     {
       SetThreadPriority (hMainThread, THREAD_PRIORITY_NORMAL);
       return ExceptionContinueExecution;
diff --git a/winsup/cygwin/include/cygwin/config.h b/winsup/cygwin/include/cygwin/config.h
(Continue reading)

Václav Haisman | 11 Feb 14:30 2016
Picon
Gravatar

[PATCH][RFC] POSIX barrier implementation, take 1

Hi.

I am attaching a patch that adds (or tries to) POSIX barriers
implementation into Cygwin. I have compiled it but not actually tested
it, yet. I am dumping it here just in case I get run over by a bus on
my way home. :)

-- 
VH
diff --git a/newlib/libc/include/sys/features.h b/newlib/libc/include/sys/features.h
index 4ad7fbd..0c6043c 100644
--- a/newlib/libc/include/sys/features.h
+++ b/newlib/libc/include/sys/features.h
 <at>  <at>  -118,10 +118,10  <at>  <at>  extern "C" {

 #define _POSIX_ADVISORY_INFO			200112L
 /* #define _POSIX_ASYNCHRONOUS_IO		    -1 */
-/* #define _POSIX_BARRIERS			    -1 */
+#define _POSIX_BARRIERS				200112L
 #define _POSIX_CHOWN_RESTRICTED			     1
 #define _POSIX_CLOCK_SELECTION			200112L
-#define _POSIX_CPUTIME			    	200112L
+#define _POSIX_CPUTIME				200112L
 #define _POSIX_FSYNC				200112L
 #define _POSIX_IPV6				200112L
 #define _POSIX_JOB_CONTROL			     1
 <at>  <at>  -140,7 +140,7  <at>  <at>  extern "C" {
 #define _POSIX_REGEXP				     1
(Continue reading)

Jon Turney | 14 Jan 19:05 2016
Picon
Gravatar

[PATCH] Update FAQ question and answer about gdb and signals

Signed-off-by: Jon Turney <jon.turney <at> dronecode.org.uk>
---
 winsup/doc/faq-programming.xml | 19 +++++++++++++------
 1 file changed, 13 insertions(+), 6 deletions(-)

diff --git a/winsup/doc/faq-programming.xml b/winsup/doc/faq-programming.xml
index af6102a..7f1ffd9 100644
--- a/winsup/doc/faq-programming.xml
+++ b/winsup/doc/faq-programming.xml
 <at>  <at>  -859,15 +859,22  <at>  <at>  on using <literal>strace</literal>, see the Cygwin User's Guide.
 </answer></qandaentry>

 <qandaentry id="faq.programming.gdb-signals">
-<question><para>Why doesn't gdb handle signals?</para></question>
+<question><para>How does gdb handle signals?</para></question>
 <answer>

-<para>Unfortunately, there is only minimal signal handling support in gdb
-currently.  Signal handling only works with Windows-type signals.
-SIGINT may work, SIGFPE may work, SIGSEGV definitely does.  You cannot
-'stop', 'print' or 'nopass' signals like SIGUSR1 or SIGHUP to the
-process being debugged.
+<para>
+gdb maps known Windows exceptions to signals such as SIGSEGV, SIGFPE, SIGTRAP,
+SIGINT and SIGILL.  Other Windows exceptions are passed on to the handler (if
+any), and reported as an unknown signal if an unhandled (second chance)
+exception occurs.
 </para>
+
+<para>
(Continue reading)

Ken Brown | 11 Dec 23:14 2015
Picon

Trivial fix to last change

cygwin1.dll doesn't build on x86 after the last commit (eed35ef).  The 
trivial patch attached fixes it.

Ken
From 1cd61c54994b2ba6c6ec1d1f8f1249f5f8fd4af3 Mon Sep 17 00:00:00 2001
From: Ken Brown <kbrown <at> cornell.edu>
Date: Fri, 11 Dec 2015 17:08:28 -0500
Subject: [PATCH] Fix regparm attribute of fhandler_base::fstat_helper

* winsup/cygwin/fhandler_disk_file.cc (fhandler_base::fstat_helper):
Align regparm attribute to declaration in fhandler.h.
---
 winsup/cygwin/ChangeLog             | 5 +++++
 winsup/cygwin/fhandler_disk_file.cc | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 3c9804b..7079baa 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
 <at>  <at>  -1,3 +1,8  <at>  <at> 
+2015-12-11  Ken Brown  <kbrown <at> cornell.edu>
+
+	* fhandler_disk_file.cc (fhandler_base::fstat_helper): Align
+	regparm attribute to declaration in fhandler.h.
+
 2015-12-10  Corinna Vinschen  <corinna <at> vinschen.de>

(Continue reading)

David Macek | 25 Nov 13:49 2015
Picon
Gravatar

[PATCH] Add MacType to BLODA

One more patch. MacType was observed by several users to cause `GPGME: Invalid crypto engine` failures in
MSYS2. See <https://github.com/Alexpux/MSYS2-packages/issues/393>.

I also removed two full stops in the sake of consistency.

	* faq-using.xml: Add Forefront TMG to the BLODA

---
 winsup/doc/faq-using.xml | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/winsup/doc/faq-using.xml b/winsup/doc/faq-using.xml
index 35370f6..ae72145 100644
--- a/winsup/doc/faq-using.xml
+++ b/winsup/doc/faq-using.xml
 <at>  <at>  -1318,6 +1318,7  <at>  <at>  behaviour which affect the operation of other programs, such as Cygwin.
 <listitem><para>Citrix Metaframe Presentation Server/XenApp (see <ulink
url="http://support.citrix.com/article/CTX107825">Citrix Support page</ulink>)</para></listitem>
 <listitem><para>Lavasoft Web Companion</para></listitem>
 <listitem><para>Forefront TMG</para></listitem>
+<listitem><para>MacType</para></listitem>
 </itemizedlist></para>
 <para>Sometimes these problems can be worked around, by temporarily or partially
 disabling the offending software.  For instance, it may be possible to disable
 <at>  <at>  -1332,7 +1333,7  <at>  <at>  it may be necessary to uninstall the software altogether to restore normal opera
 <para>Some of the symptoms you may experience are:</para>
 <para><itemizedlist>
 <listitem>
-<para>Random fork() failures.</para>
+<para>Random fork() failures</para>
(Continue reading)

David Macek | 24 Nov 23:29 2015
Picon
Gravatar

[PATCH] Add Forefront TMG to the BLODA

A user of MSYS2 had non-deterministic segfaults when running simple command from bash started from cmd.
We've isolated the cause to `C:\Program Files (x86)\Forefront TMG Client\FwcWsp64.dll`. See
<http://sourceforge.net/p/msys2/tickets/212/> for a little more information.

It seems enough to include the software in BLODA, but if not, sorry for the unsolicited patch and let's discuss.

	* faq-using.xml: Add Forefront TMG to the BLODA

---
 winsup/doc/faq-using.xml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/winsup/doc/faq-using.xml b/winsup/doc/faq-using.xml
index 4cfc822..35370f6 100644
--- a/winsup/doc/faq-using.xml
+++ b/winsup/doc/faq-using.xml
 <at>  <at>  -1317,6 +1317,7  <at>  <at>  behaviour which affect the operation of other programs, such as Cygwin.
 <listitem><para>AVAST (disable FILESYSTEM and BEHAVIOR realtime shields)</para></listitem>
 <listitem><para>Citrix Metaframe Presentation Server/XenApp (see <ulink
url="http://support.citrix.com/article/CTX107825">Citrix Support page</ulink>)</para></listitem>
 <listitem><para>Lavasoft Web Companion</para></listitem>
+<listitem><para>Forefront TMG</para></listitem>
 </itemizedlist></para>
 <para>Sometimes these problems can be worked around, by temporarily or partially
 disabling the offending software.  For instance, it may be possible to disable
-- 
2.6.2.windows.1

--

-- 
David Macek
(Continue reading)

Andy Stevens | 20 Nov 22:24 2015

patch to cron

Hello Cygwin patchers, this is my first submission, hope I do OK.

I have discovered a bug in Vixie's cron in the bash script
/usr/bin/cron-config. The bug only appears on Windows 10 which has
an NT version of "10.0". This breaks the version checking in the
bash script. (Bash only supports integer compare or ASCII compare,
but not float compare.)

Below is my proposed patch.  Thanks to
http://stackoverflow.com/questions/8654051 for this bash magic.

--- /usr/bin/cron-config        2015-01-21 23:34:21.000000000 -0500
+++ cron-config 2015-11-20 16:08:24.574218000 -0500
 <at>  <at>  -126,7 +126,10  <at>  <at> 
      nt2003=""
      nt=$(uname -s | sed -ne 's/^CYGWIN_NT-\([^ ]*\)/\1/p')
      [ -z "$nt" ] && echo "Unknown system name" && return 1
-    [ "$nt" \> 5.1 ] && nt2003=yes
+    minver=5.1
+    if [ ${nt%.*} -eq ${minver%.*} ] && [ ${nt#*.} \> ${minver#*.} ] || [ ${nt%.*} -gt ${minver%.*} ]; then
+       nt2003=yes
+    fi
      return 0
  } # === End of get_NT() === #

Best,

--Andy Stevens
Electrical Science, Inc.
114 Pearl St., Suite 2B
(Continue reading)

Yaakov Selkowitz | 17 Nov 19:28 2015
Picon
Gravatar

[PATCH] cygwin: export rpmatch(3)

winsup/cygwin/
* common.din (rpmatch): Export.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.

winsup/doc/
* new-features.xml (ov-new2.4): New section. Document rpmatch.
* posix.xml (std-bsd): Add rpmatch.

Signed-off-by: Yaakov Selkowitz <yselkowi <at> redhat.com>
---
This depends on the newlib patch sent to their list.

 winsup/cygwin/ChangeLog                |  5 +++++
 winsup/cygwin/common.din               |  1 +
 winsup/cygwin/include/cygwin/version.h |  3 ++-
 winsup/doc/ChangeLog                   |  5 +++++
 winsup/doc/new-features.xml            | 12 ++++++++++++
 winsup/doc/posix.xml                   |  1 +
 6 files changed, 26 insertions(+), 1 deletion(-)

diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index bdaab40..1bab25c 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
 <at>  <at>  -1,3 +1,8  <at>  <at> 
+2015-11-17  Yaakov Selkowitz  <yselkowi <at> redhat.com>
+
+	* common.din (rpmatch): Export.
+	* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
+
(Continue reading)

Jon Turney | 27 Oct 14:52 2015
Picon
Gravatar

[PATCH] Remove spurious execute permissions from some Cygwin source and text files

2015-08-21  Jon Turney  <jon.turney <at> dronecode.org.uk>

	* cygwin-cxx.h: Remove execute permissions.
	* fenv.cc: Ditto.
	* how-startup-shutdown-works.txt: Ditto.
	* include/arpa/nameser.h: Ditto.
	* include/arpa/nameser_compat.h: Ditto.
	* include/fenv.h: Ditto.
	* include/resolv.h: Ditto.
	* libstdcxx_wrapper.cc: Ditto.

2015-10-27  Jon Turney  <jon.turney <at> dronecode.org.uk>

	* winsup.api/signal-into-win32-api.c: Remove execute permissions.

Signed-off-by: Jon Turney <jon.turney <at> dronecode.org.uk>
---
 winsup/cygwin/ChangeLog                             | 11 +++++++++++
 winsup/cygwin/cygwin-cxx.h                          |  0
 winsup/cygwin/fenv.cc                               |  0
 winsup/cygwin/how-startup-shutdown-works.txt        |  0
 winsup/cygwin/include/arpa/nameser.h                |  0
 winsup/cygwin/include/arpa/nameser_compat.h         |  0
 winsup/cygwin/include/fenv.h                        |  0
 winsup/cygwin/include/resolv.h                      |  0
 winsup/cygwin/libstdcxx_wrapper.cc                  |  0
 winsup/testsuite/ChangeLog                          |  4 ++++
 winsup/testsuite/winsup.api/signal-into-win32-api.c |  0
 11 files changed, 15 insertions(+)
 mode change 100755 => 100644 winsup/cygwin/cygwin-cxx.h
(Continue reading)

Yaakov Selkowitz | 22 Oct 19:35 2015
Picon
Gravatar

[PATCH] winsup/utils: add CPU cache variables to getconf(1)

* getconf.c (conf_table): Add LEVEL*_CACHE_* variables.
---
 winsup/utils/ChangeLog |  4 ++++
 winsup/utils/getconf.c | 15 +++++++++++++++
 2 files changed, 19 insertions(+)

diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog
index 66bfcb0..ac6eb98 100644
--- a/winsup/utils/ChangeLog
+++ b/winsup/utils/ChangeLog
 <at>  <at>  -1,3 +1,7  <at>  <at> 
+2015-10-22  Yaakov Selkowitz  <yselkowi <at> redhat.com>
+
+	* getconf.c (conf_table): Add LEVEL*_CACHE_* variables.
+
 2015-08-30  Corinna Vinschen  <corinna <at> vinschen.de>

 	* cygcheck.cc (dump_sysinfo): Fix missing commas in products array.
diff --git a/winsup/utils/getconf.c b/winsup/utils/getconf.c
index 7e0b5f5..8732be1 100644
--- a/winsup/utils/getconf.c
+++ b/winsup/utils/getconf.c
 <at>  <at>  -357,6 +357,21  <at>  <at>  static const struct conf_variable conf_table[] =
   { "POSIX2_UPE",			SYSCONF,	_SC_2_UPE		},
   { "POSIX2_VERSION",			SYSCONF,	_SC_2_VERSION		},
   /* implementation-specific values */
+  { "LEVEL1_ICACHE_SIZE",		SYSCONF,	_SC_LEVEL1_ICACHE_SIZE	},
+  { "LEVEL1_ICACHE_ASSOC",		SYSCONF,	_SC_LEVEL1_ICACHE_ASSOC	},
+  { "LEVEL1_ICACHE_LINESIZE",		SYSCONF,	_SC_LEVEL1_ICACHE_LINESIZE	},
+  { "LEVEL1_DCACHE_SIZE",		SYSCONF,	_SC_LEVEL1_DCACHE_SIZE	},
(Continue reading)


Gmane