Yaakov (Cygwin/X | 6 Dec 06:20 2012
Picon
Picon

[PATCH] waitpid(2) WAIT_* macros

WAIT_ANY and WAIT_MYPGRP are defined by glibc[1] as symbolic constants
for special values in the first argument to waitpid(2).  Patch attached.

Yaakov

[1]
http://www.gnu.org/software/libc/manual/html_node/Process-Completion.html
Attachment (wait-macros.patch): text/x-patch, 634 bytes
Yaakov (Cygwin/X | 21 Nov 11:54 2012
Picon
Picon

[PATCH] add cfsetspeed

This patchset adds cfsetspeed(3), a BSD extension also available in
glibc:

http://man7.org/linux/man-pages/man3/termios.3.html

Per the description, cfsetspeed() is the equivalent of cfsetospeed() and
cfsetispeed() with the same baud rate.  Patch for winsup/cygwin
attached.

Yaakov

Attachment (cygwin-cfsetspeed.patch): text/x-patch, 3424 bytes
Christopher Faylor | 12 Nov 21:02 2012

[WIP] mingw64 related changes to Cygwin configure and other assorted files with departed w32api/mingw

I decided over the weekend to port over configury changes that I made to
Cygwin's now-out-of-date GIT repository.

These changes basically just cleaned up some of the configure scripts
and made it easier to pinpoint where windows headers and libraries come
from by adding a --with-windows-headers and --with-windows-libs options.
However, some of the assumptions made for the git repository weren't
really valid for the CVS repository so there was a fair amount of work
involved.

I thought that I'd do this so I could easily get up-and-running with the
MinGW64 stuff but I ran into some problems building things with gentoo's
MinGW64 implementation.  So, I switched to using the files from the
Cygwin release.

As I mentioned in cygwin-developers, getting the most recent version of
mingw64 stuff working required making some changes to some Cygwin source
files.  Most of the changes just involved #undef'ing constants defined
in Windows headers.  Still, I was surprised that these hadn't already
been handled since I thought I was behind the times by still using the
Mingw32 stuff.

Anyway, is a summary of the changes I've made to files is below.  I'll
be doing appropriate ChangeLogs too, of course.  I've also attached the
patch.

This is a heads up in case this conflicted materially with any of the
w64 development.

cgf
(Continue reading)

Yaakov (Cygwin/X | 5 Nov 03:41 2012
Picon
Picon

[PATCH] additional sys/termios.h defines

The attached patch adds a few defines to <sys/termios.h> to make it
compatible with Linux and *BSD.

Yaakov

Attachment (ttydefaults.patch): text/x-patch, 1500 bytes
Kai Tietz | 26 Oct 22:13 2012

[patch cygwin]: Rename strechr to strchrnul

Hello,

this patch replaces strechr by strchrnul symbol-name.  The strchrnul
name is that one also present in new-libc for this function behavior.
ChangeLog

2012-10-26  Kai Tietz

	* dcrt0.cc (quoted): Renamed strechr to strchrnul.
	* environ.cc (environ_init): Likewise.
	* sec_acl.cc (aclfromtext32): Likewise.
	* sec_auth.cc (extract_nt_dom_user): Likewise.
	* uinfo.cc (pwdgrp::next_str): Likewise.
	* string.h (strechr): Likewise.

Ok for apply?

Regards,
Kai

Index: dcrt0.cc
===================================================================
RCS file: /cvs/src/src/winsup/cygwin/dcrt0.cc,v
retrieving revision 1.434
diff -p -u -r1.434 dcrt0.cc
--- dcrt0.cc	9 Aug 2012 19:58:52 -0000	1.434
+++ dcrt0.cc	26 Oct 2012 20:06:23 -0000
 <at>  <at>  -162,7 +162,7  <at>  <at>  quoted (char *cmd, int winshell)
     {
       char *p;
(Continue reading)

Corinna Vinschen | 24 Oct 15:42 2012

[toplevel patch] Simplify FLAGS_FOR_TARGET for Cygwin

Hi guys,

I just applied the below patch to the sourceware src repo.  The reason
for the patch is that Cygwin won't be using the in-tree mingw and w32api
any longer, but instead it requires an external installation of a
Mingw64 based w32api, and a Mingw64 build environment to build the
native Windows utilities.  Additionally the FLAGS_FOR_TARGET contains
one dir which doesn't contain any libs (winsup) and one dir which doesn't
exist (winsup/include).  The below patch only changes FLAGS_FOR_TARGET
accordingly.

Could somebody with toplevel checkin rights in the gcc repo please apply
this patch there, too?

Thanks,
Corinna

2012-10-24  Corinna Vinschen  <corinna AT vinschen DOT de>

	* configure.ac (FLAGS_FOR_TARGET,target=cygwin): Fix for building
	against Mingw64 w32api.
	* configure: Regenerate.

Index: configure.ac
===================================================================
RCS file: /cvs/src/src/configure.ac,v
retrieving revision 1.176
diff -u -p -r1.176 configure.ac
--- configure.ac	23 Oct 2012 23:02:33 -0000	1.176
+++ configure.ac	24 Oct 2012 13:39:56 -0000
(Continue reading)

Corinna Vinschen | 24 Oct 14:27 2012
Picon

Re: Fwd: Re: [patch]: Decouple cygwin building from in-tree mingw/w32api building

On Oct 24 07:15, Earnie Boyd wrote:
> On Wed, Oct 24, 2012 at 3:49 AM, Corinna Vinschen wrote:
> >
> > Just to be sure:  Does that mean we can simply remove the mingw and
> > w32api dirs in the sourceware repo any time?
> 
> Yes.

Ok, thank you!

Corinna

--

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

Corinna Vinschen | 24 Oct 14:25 2012

[Fwd: Re: Fwd: Re: [patch]: Decouple cygwin building from in-tree mingw/w32api building]

FYI.

----- Forwarded message from Earnie Boyd <...> -----

> Date: Wed, 24 Oct 2012 07:15:52 -0400
> From: Earnie Boyd <...>
> To: Keith Marshall <...>, Christopher Faylor
> 	<...>, cygwin-patches <at> cygwin.com, Corinna Vinschen
> 	<...>
> Subject: Re: Fwd: Re: [patch]: Decouple cygwin building from in-tree
> 	mingw/w32api building
> 
> On Wed, Oct 24, 2012 at 3:49 AM, Corinna Vinschen wrote:
> >
> > Just to be sure:  Does that mean we can simply remove the mingw and
> > w32api dirs in the sourceware repo any time?
> 
> Yes.
> 
> -- 
> Earnie
> -- https://sites.google.com/site/earnieboyd

----- End forwarded message -----

Kai Tietz | 24 Oct 11:16 2012

[patch cygwin]: Replace inline-assembler in string.h by C implementation

Hello,

this patch replaces the inline-assember used in string.h by C implementation.
There are three reasons why I want to suggest this.  First, the C-code might
be optimized further by fixed (constant) arguments.  Secondly, it is
architecture
independent and so we just need to maintain on code-path.  And as
third point, by
inspecting generated assembly code produced by compiler out of C code
vs. inline-assembler
it shows that compiler produces better code.  It handles
jump-threading better, and also
improves average executed instructions.

ChangeLog

2012-10-24  Kai Tietz

	* string.h (strechr): Replace assembler by
	C code.
	(ascii_strcasematch): Likewise.
	(ascii_strncasematch): Likwise.

Ok for apply?

Regards,
Kai

Index: string.h
===================================================================
(Continue reading)

Corinna Vinschen | 24 Oct 09:49 2012
Picon

Re: Fwd: Re: [patch]: Decouple cygwin building from in-tree mingw/w32api building

On Oct 23 17:48, Christopher Faylor wrote:
> On Tue, Oct 23, 2012 at 09:50:10PM +0100, Keith Marshall wrote:
> >And just like Earnie's, the response he requested from me also bounced.
> >Forwarded copy below:
> 
> >-------- Original Message --------
> >Subject: Re: [patch]: Decouple cygwin building from in-tree mingw/w32api 
> >building
> >Date: Tue, 23 Oct 2012 21:41:07 +0100
> >From: Keith Marshall <...>
> >Organization: MinGW Project
> >To: Earnie Boyd <...>
> >CC: cygwin-patches<...>
> >
> >On 22/10/12 12:14, Earnie Boyd wrote:
> >> On Mon, Oct 22, 2012 at 12:09 AM, Christopher Faylor wrote:
> >>>Earnie, we seem to be transitioning from the need to have a
> >>>mingw/w32api in the source tree.  What do you think about removing
> >>>these directories from the depot and moving repo to sourceforge, or
> >>>some other place?
> >>
> >>In anticipation of this event I've already copied the source.  I would
> >>like to leave the code in winsup until the end of the year if that
> >>timeline is fine with Keith.
> >
> >Fine by me; I also have my Mercurial clones of both repositories, from
> >the time when we abandoned them in favour of our own git repository on
> >SourceForge.
> >
> >>>You've got a home for as long as you like on sourceware.org but I was
(Continue reading)

Kai Tietz | 18 Oct 17:57 2012

Re: [patch]: Decouple cygwin building from in-tree mingw/w32api building

Hi Corinna,

2012/10/18 Corinna Vinschen:
> Hi Yaakov,
>
> On Oct 18 02:33, Yaakov (Cygwin/X) wrote:
>> On Wed, 2012-10-17 at 15:32 -0400, Christopher Faylor wrote:
>>> But, anyway, nevermind.  This shouldn't be a requirement for getting
>>> these changes checked in.  I'm more concerned with just nuking the
>>> now-unneeded mingw script.
>>
>> Draft patch attached, based partially on Kai's.  Yes, it needs a
>> ChangeLog entry, but it also needs more testing first.
>>
>> On Cygwin, you need either mingw-gcc-g++ and mingw-zlib, or
>> mingw64-i686-gcc-g++ with Ports' mingw64-i686-zlib, available here:
>
> Any problem to move mingw64-i686-zlib into the distro?

Hmm, wouldn't assume so.  I can give JonY a ping for that.  I assume
he would provide such a package.  Shall I ask him?

>> ftp://ftp.cygwinports.org/pub/cygwinports/release-2/CrossDevel/mingw64-i686-zlib/
>>
>> On Fedora, you need my cygwin-gcc-c++ plus mingw32-gcc-c++ and
>> mingw32-zlib-static.  Unfortunately F17's mingw32-headers isn't
>> (aren't?) new enough, so two files in winsup/utils wouldn't compile
>
> Indeed, unfortunately.  The Fedora maintainer cut the latest version
> right before I started to apply my changes to mingw64.
(Continue reading)


Gmane