Re: [PATCH 0/3] Add support for /proc//environ

2017-01-09 Thread Corinna Vinschen
Hi Erik, On Jan 5 18:39, erik.m.b...@gmail.com wrote: > From: "Erik M. Bray" > > Per this discussion started in this thread: > https://cygwin.com/ml/cygwin/2016-11/msg00205.html > > I finally got around to finishing a patch for this feature. It supports both > Cygwin and > native Windows pro

Re: [PATCH 1/3] Move the core environment parsing of environ_init into a new win32env_to_cygenv function.

2017-01-09 Thread Corinna Vinschen
On Jan 5 18:39, Erik M. Bray wrote: > @@ -805,32 +796,8 @@ environ_init (char **envp, int envc) > } >debug_printf ("GetEnvironmentStrings returned %p", rawenv); > > - /* Current directory information is recorded as variables of the > - form "=X:=X:\foo\bar; these must be

Re: [PATCH 2/3] Add a _pinfo.environ() method analogous to _pinfo.cmdline(), and others.

2017-01-09 Thread Corinna Vinschen
On Jan 5 18:39, Erik M. Bray wrote: > diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc > index 1ce6809..a3e376c 100644 > --- a/winsup/cygwin/pinfo.cc > +++ b/winsup/cygwin/pinfo.cc > @@ -653,8 +653,29 @@ commune_process (void *arg) > else if (!WritePipeOverlapped (tothem, path, n

[PATCH] Return the correct value for getsockopt(SO_REUSEADDR) after setting setsockopt(SO_REUSEADDR, 1).

2017-01-09 Thread Erik Bray
From: Erik M. Bray --- winsup/cygwin/net.cc | 8 1 file changed, 8 insertions(+) diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc index e4805d3..b02f9e3 100644 --- a/winsup/cygwin/net.cc +++ b/winsup/cygwin/net.cc @@ -925,6 +925,14 @@ cygwin_getsockopt (int fd, int level, int o

Re: [PATCH] Return the correct value for getsockopt(SO_REUSEADDR) after setting setsockopt(SO_REUSEADDR, 1).

2017-01-09 Thread Corinna Vinschen
On Jan 9 17:36, Erik Bray wrote: > --- > winsup/cygwin/net.cc | 8 > 1 file changed, 8 insertions(+) > > diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc > index e4805d3..b02f9e3 100644 > --- a/winsup/cygwin/net.cc > +++ b/winsup/cygwin/net.cc > @@ -925,6 +925,14 @@ cygwin_getso

Re: [PATCH] Return the correct value for getsockopt(SO_REUSEADDR) after setting setsockopt(SO_REUSEADDR, 1).

2017-01-09 Thread Erik Bray
On Mon, Jan 9, 2017 at 5:58 PM, Corinna Vinschen wrote: > On Jan 9 17:36, Erik Bray wrote: >> --- >> winsup/cygwin/net.cc | 8 >> 1 file changed, 8 insertions(+) >> >> diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc >> index e4805d3..b02f9e3 100644 >> --- a/winsup/cygwin/net.cc