Jeffrey Walton | 1 Jul 03:38 2015

Using g++ and -m32 option on x86_64 broken

Cygwin's GCC responds to the -m32 option, but it causes a compile error:

   expected unqualified-id before ‘__int128’
       inline __int128

If the project does not support the -m32 option, then it should be
removes so that using it causes a compile error.

Below is the changed needed to get through the compile with -m32:

$ diff /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/include/c++/x86_64-pc-cygwin/bits/c++config.h
< #ifndef __CYGWIN32__      /* -m32 used on x86_64 */
< # define _GLIBCXX_USE_INT128 1
< #endif
> #define _GLIBCXX_USE_INT128 1


And this project really needs a bug tracker...

Jon TURNEY | 22 Jun 16:39 2015

[PATCH 0/5] More cygwin-doc stuff

intro.1 and intro.3 man pages for Cygwin
Cygwin User's Guide and Cygwin API reference .info
A few documentation related cleanups.

Jon TURNEY (5):
  winsup/doc: Create info pages from cygwin documentation
  winsup/doc: Add intro man pages from cygwin-doc
  winsup/doc: Remove 'Usage' prefix from synopses
  winsup/doc: Use xidepend to generate the source list for FAQ targets
    as well
  winsup/doc: Update ancient README about building documentation

 winsup/doc/ChangeLog         |  26 ++++++
 winsup/doc/       |  40 +++++++--
 winsup/doc/README            |  23 +----
 winsup/doc/cygwin-api.xml    |   3 +
 winsup/doc/cygwin-ug-net.xml |   3 +
 winsup/doc/intro.xml         | 196 +++++++++++++++++++++++++++++++++++++++++++
 winsup/doc/ntsec.xml         |  18 +++-
 winsup/doc/utils.xml         |  88 +++++++++----------
 8 files changed, 321 insertions(+), 76 deletions(-)
 create mode 100644 winsup/doc/intro.xml



Jon TURNEY | 17 Jun 14:37 2015

[PATCH 0/5] Generate cygwin-api manpages

This patch set changes the DocBook source XML for the Cygwin API reference to 
use refentry elements, and also generates man pages from that.

Again, note that after this, the chunked html now has a page for each function, 
rather than one containing all functions.

Jon TURNEY (5):
  winsup/doc: Rename cygwin.xsl as html.xsl
  winsup/doc: Generate ANSI rather than K&R style function prototypes
  winsup/doc: Convert cygwin-api function documentation to refentry
  winsup/doc: Make and install cygwin-api function manpages
  winsup/doc: Add man.xsl customization stylesheet

 winsup/doc/ChangeLog                |  28 ++++++
 winsup/doc/              |  31 ++++---
 winsup/doc/cygwin-api.xml           |   6 +-
 winsup/doc/fo.xsl                   |   3 +
 winsup/doc/{cygwin.xsl => html.xsl} |   5 +-
 winsup/doc/logon-funcs.xml          |  59 ++++++++++---
 winsup/doc/man.xsl                  |  13 +++
 winsup/doc/misc-funcs.xml           |  81 +++++++++++++----
 winsup/doc/path.xml                 | 172 +++++++++++++++++++++++++++---------
 9 files changed, 318 insertions(+), 80 deletions(-)
 rename winsup/doc/{cygwin.xsl => html.xsl} (85%)
 create mode 100644 winsup/doc/man.xsl



(Continue reading)

Christian Franke | 16 Jun 18:27 2015

[PATCH] Hide sethostname() in unistd.h

Found during an experimental build of busybox:

The sethostname() prototype in /usr/include/sys/unistd.h is enabled also 
on Cygwin.
It should be disabled because Cygwin does not provide this function.


Attachment (unistd-sethostname.patch): text/x-patch, 750 bytes
Jon TURNEY | 15 Jun 14:36 2015

[PATCH 0/8] Generate utilities manpages

Sorry about the patch-bomb.

Currently, the manpages in the cygwin-doc package are generated by a conversion 
from the DocBook XML by perl scripts with minimal understanding of the markup, 
which gives sub-optimal results.  I've been looking at doing that in a better 

This patch set changes the DocBook source XML for the Cygwin utilities to use 
refentry entities, and also generates man pages from that.

Note that after this, the chunked html now has a page for each utility, rather 
than one containing all utilities.  This probably could be changed back with 
further stylesheet customization, but I'm not sure that's required.

Jon TURNEY (8):
  winsup/doc: Remove tarball target from .PHONY
  winsup/doc: Fix xidepend to handle relative pathnames
  winsup/doc: Some preparatory XML fixes
  winsup/doc: Use fo.xsl to customize PDF generation from DocBook XML
  winsup/doc: Convert utils.xml to using refentry
  winsup/doc: Make it easier to extend xidepend to more targets
  winsup/doc: Make and install manpages for utils
  winsup/doc: Fix an issue with parallel make

 winsup/doc/ChangeLog         |  46 +++
 winsup/doc/       |  40 +-
 winsup/doc/cygwin-ug-net.xml |   1 -
 winsup/doc/cygwin.xsl        |  13 +
 winsup/doc/fo.xsl            |  36 ++
 winsup/doc/utils.xml         | 852 ++++++++++++++++++++++++++++++-------------
(Continue reading)

Jon TURNEY | 10 Jun 14:05 2015

[PATCH] Improve strace to log most Windows debug events

Not sure if this is wanted, but on a couple of occasions recently I have been
presented with strace output which contains an exception at an address in an
unknown module (i.e. not in the cygwin DLL or the main executable), so here is a
patch which adds some more information, including DLL load addresses, to help
interpret such straces.

2015-06-07  Jon Turney  <jon.turney <at>>

	* (proc_child): Log process and thread create and exit,
	and DLL load and unload.
	(GetFileNameFromHandle): New function.
	* (strace.exe): Link against psapi.dll.

Signed-off-by: Jon TURNEY <jon.turney <at>>
 winsup/utils/ChangeLog   |  7 ++++++
 winsup/utils/ |  2 +-
 winsup/utils/   | 58 ++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 66 insertions(+), 1 deletion(-)

diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog
index bfdb42a..7561a58 100644
--- a/winsup/utils/ChangeLog
+++ b/winsup/utils/ChangeLog
 <at>  <at>  -1,3 +1,10  <at>  <at> 
+2015-06-07  Jon Turney  <jon.turney <at>>
+	* (proc_child): Log process and thread create and exit,
+	and DLL load and unload.
+	(GetFileNameFromHandle): New function.
(Continue reading)

Jon TURNEY | 4 Jun 21:55 2015

[PATCH] winsup/doc: Remove ancient unused Makefile rules to make documentation tarball

This used to be used by cygwin-doc to make a tarball which would be used with a
ssh script to run docbook tools on a linux host since they weren't available on
Cygwin or something crazy like that...

2015-06-04  Jon Turney  <jon.turney <at>>

	* Remove ancient unused rules to make a documentation

Signed-off-by: Jon TURNEY <jon.turney <at>>
 winsup/doc/ChangeLog   |  5 +++++
 winsup/doc/ | 11 -----------
 2 files changed, 5 insertions(+), 11 deletions(-)

diff --git a/winsup/doc/ChangeLog b/winsup/doc/ChangeLog
index 0c961fa..05d78a8 100644
--- a/winsup/doc/ChangeLog
+++ b/winsup/doc/ChangeLog
 <at>  <at>  -1,3 +1,8  <at>  <at> 
+2015-06-04  Jon Turney  <jon.turney <at>>
+	* Remove ancient unused rules to make a documentation
+	tarball.
 2015-06-01  Jon Turney  <jon.turney <at>>

 	* ov-ex-unix.xml: Remove unhelpful mention of and inaccurate size
diff --git a/winsup/doc/ b/winsup/doc/
index 8bf86f7..396d9bc 100644
(Continue reading)

Jon TURNEY | 21 May 18:44 2015

[PATCH] Update the estimate of the size of installing everything

Update the estimate of the size of installing everything from "hundreds of
megabytes" to "tens of gigabytes", just in case someone should think it's a
good idea with contemporary hard disk sizes :)

2015-05-21  Jon Turney  <jon.turney <at>>

	* ov-ex-unix.xml: Update the estimate of the size of installing
	* ov-ex-win.xml: Ditto.

Signed-off-by: Jon TURNEY <jon.turney <at>>
 winsup/doc/ov-ex-unix.xml | 2 +-
 winsup/doc/ov-ex-win.xml  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/winsup/doc/ov-ex-unix.xml b/winsup/doc/ov-ex-unix.xml
index 75a0ff6..7459381 100644
--- a/winsup/doc/ov-ex-unix.xml
+++ b/winsup/doc/ov-ex-unix.xml
 <at>  <at>  -39,7 +39,7  <at>  <at>  at the Cygwin web site.
 Another option is to install everything by clicking on the
 <literal>Default</literal> field next to the <literal>All</literal>
 category. However, be advised that this will download and install
-several hundreds of megabytes of software to your computer. The best
+several tens of gigabytes of software to your computer. The best
 plan is probably to click on individual categories and install either
 entire categories or packages from the categories themselves.
 After installation, you can find Cygwin-specific documentation in
diff --git a/winsup/doc/ov-ex-win.xml b/winsup/doc/ov-ex-win.xml
(Continue reading)

Yaakov Selkowitz | 29 Apr 18:22 2015

[PATCH] Fix more typos in ntsec.xml

Signed-off-by: Yaakov Selkowitz <yselkowi <at>>
 winsup/doc/ntsec.xml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/winsup/doc/ntsec.xml b/winsup/doc/ntsec.xml
index b731cd0..d982867 100644
--- a/winsup/doc/ntsec.xml
+++ b/winsup/doc/ntsec.xml
 <at>  <at>  -863,7 +863,7  <at>  <at>  the old information.
 So, what settings can we perform with <filename>/etc/nsswitch.conf</filename>?
 Let's start with an example <filename>/etc/nsswitch.conf</filename> file
-file set up to all default values:
+set up to all default values:

 <at>  <at>  -1749,7 +1749,7  <at>  <at>  The <literal>unix</literal> schema utilizes the
 <literal>posixAccount</literal> attribute extension.  This is one of two
 schema extensions which are connected to AD accounts, available by default
 starting with Windows Server 2003 R2.  They are usually
-<literal>not set</literal>, unless used by the Active Directory
+<emphasis role='bold'>not set</emphasis>, unless used by the Active Directory
 <literal>Server for NIS</literal> feature (deprecated since Server 2012 R2).

 Two schemata are interesting for Cygwin, <literal>posixAccount</literal>,
 <at>  <at>  -2031,7 +2031,7  <at>  <at>  by child processes.

(Continue reading)

Mike DePaulo | 27 Apr 10:46 2015

[PATCH] cygserver.xml: Add new section. How to install Cygserver.

I recently wasted time at work because I did not know how to install Cygserver.
It looks like other people had this problem too:

So I wrote a patch for the documentation, which people are likely to find via

Also, this is my 1st time using git-send-email.

Mike DePaulo (1):
  * cygserver.xml: Add new section. How to install Cygserver.

 winsup/doc/cygserver.xml | 13 +++++++++++++
 1 file changed, 13 insertions(+)



Jon TURNEY | 9 Apr 15:13 2015

[PATCH 0/3] signal handler ucontext improvements

A few further patches improving the ucontext created for a signal handler

Jon TURNEY (3):
  Initialize context before RtlContextCapture
  Only construct ucontext for SA_SIGINFO signal handlers
  Set mcontext.cr2 to the faulting address

 winsup/cygwin/ChangeLog     | 16 +++++++++++++
 winsup/cygwin/ | 58 +++++++++++++++++++++++++++++----------------
 2 files changed, 54 insertions(+), 20 deletions(-)