Yaakov Selkowitz | 10 Mar 17:26 2015

[PATCH] cygwin: fix __x86_64__ conditional in stdint.h

Signed-off-by: Yaakov Selkowitz <yselkowi <at> redhat.com>
 winsup/cygwin/ChangeLog        | 4 ++++
 winsup/cygwin/include/stdint.h | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 550490a..cd2dbb9 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
 <at>  <at>  -1,3 +1,7  <at>  <at> 
+2015-03-10  Yaakov Selkowitz  <yselkowitz <at> cygwin.com>
+	* include/stdint.h: Fix __x86_64__ conditional.
 2015-03-05  Corinna Vinschen  <corinna <at> vinschen.de>

 	* tty.h (tty::set_master_ctl_closed): Rename from set_master_closed.
diff --git a/winsup/cygwin/include/stdint.h b/winsup/cygwin/include/stdint.h
index b670884..94b6b76 100644
--- a/winsup/cygwin/include/stdint.h
+++ b/winsup/cygwin/include/stdint.h
 <at>  <at>  -114,7 +114,7  <at>  <at>  typedef unsigned long long uintmax_t;
 #if !defined (__cplusplus) || defined (__STDC_LIMIT_MACROS) \
     || defined (__INSIDE_CYGWIN__)

-#if __x86_64__
+#ifdef __x86_64__
 # define __I64(n) n ## L
 # define __U64(n) n ## UL
(Continue reading)

Jon TURNEY | 19 Feb 14:21 2015

[PATCH] Compile sigfe.s with CFLAGS

CFLAGS isn't used when compiling the generated file sigfe.s, so if that 
contains -g, it lacks source debugging information.

2015-02-19  Jon TURNEY  <jon.turney <at> dronecode.org.uk>

	* Makefile.in (sigfe.o): Use CFLAGS.

Index: cygwin/Makefile.in
RCS file: /cvs/src/src/winsup/cygwin/Makefile.in,v
retrieving revision 1.278
diff -u -u -p -r1.278 Makefile.in
--- cygwin/Makefile.in	28 Jan 2015 11:43:06 -0000	1.278
+++ cygwin/Makefile.in	19 Feb 2015 13:12:11 -0000
 <at>  <at>  -710,7 +710,7  <at>  <at>  sigfe.s: $(DEF_FILE)
 	[ -s $ <at>  ] && touch $ <at> 

 sigfe.o: sigfe.s
-	$(CC) -c -o $ <at>  $<
+	$(CC) ${CFLAGS} -c -o $ <at>  $<

 ctags: CTAGS
 tags:  CTAGS
Pierre A. Humblet | 23 Jan 03:05 2015

[PATCH] Add-on to gethostbyname2

Add-on to gethostbyname2, as discussed previously on main list.
The diff is also attached.


2015-01-22  Pierre A. Humblet <pierre <at> phumblet.no-ip.org>

         * net.cc (cygwin_inet_pton): Declare.
         (gethostby_specials): New function.
         (gethostby_helper): Change returned addrtype in 4-to-6 case.
         (gethostbyname2): Call gethostby_specials.

cvs diff -up net.cc
Index: net.cc
RCS file: /cvs/src/src/winsup/cygwin/net.cc,v
retrieving revision 1.322
diff -u -p -r1.322 net.cc
--- net.cc      20 Jan 2015 18:23:19 -0000      1.322
+++ net.cc      23 Jan 2015 00:02:22 -0000
 <at>  <at>  -72,6 +72,7  <at>  <at>  extern "C"
    int __stdcall rcmd (char **ahost, unsigned short inport, char *locuser,
                       char *remuser, char *cmd, SOCKET * fd2p);
    int sscanf (const char *, const char *, ...);
+  int cygwin_inet_pton(int, const char *, void *);
    int cygwin_inet_aton(const char *, struct in_addr *);
    const char *cygwin_inet_ntop (int, const void *, char *, socklen_t);
    int dn_length1(const unsigned char *, const unsigned char *,
 <at>  <at>  -1168,6 +1169,97  <at>  <at>  memcpy4to6 (char *dst, const u_char *src
    memcpy (dst + 12, src, NS_INADDRSZ);
(Continue reading)

Yaakov Selkowitz | 18 Dec 18:21 2014

[PATCH] spelling fix for struct passwd

This field is spelled pw_passwd on Linux, and I haven't found a 
different spelling on other platforms (it is not mandated by POSIX). 
Patch attached.


Attachment (doc-ntsec-passwd.patch): text/x-patch, 730 bytes
Yaakov Selkowitz | 18 Dec 17:13 2014

[PATCH] Export new stdio and stdio_ext functions

These patches export the BSD, GNU, and Solaris stdio extensions (27 in 
total) recently added to newlib.

Attachment (cygwin-stdio-new.patch): text/x-patch, 4306 bytes
Attachment (doc-stdio-new.patch): text/x-patch, 3469 bytes
Yaakov Selkowitz | 5 Dec 04:08 2014

[PATCH] qsort_r (pending newlib patch)


2014-12-04  Yaakov Selkowitz  <yselkowitz <at> ...>

	* new-features.xml (ov-new1.7.34): Document qsort_r and __bsd_qsort_r.
	* posix.xml (std-bsd): Add qsort_r.
	(std-gnu): Ditto.
	(std-notes): Add section for qsort_r.

	* common.din (__bsd_qsort_r): Add.
	(qsort_r): Add.
	* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.

Index: doc/new-features.xml
RCS file: /cvs/src/src/winsup/doc/new-features.xml,v
retrieving revision 1.36
diff -u -p -r1.36 new-features.xml
--- doc/new-features.xml	13 Nov 2014 13:10:26 -0000	1.36
+++ doc/new-features.xml	5 Dec 2014 01:22:25 -0000
 <at>  <at>  -36,6 +36,10  <at>  <at>  are supposed to work.  Finally implement
 getfacl(1)/setfacl(1) accordingly.

(Continue reading)

Lev Bishop | 19 Nov 20:30 2014

Re: Fix performance on 10Gb networks

Maybe my analysis from some years ago can be relevant here? Another
issue with delayed acks and winsock. I haven't been following cygwin
for some time, so not sure exactly what the status is:



Lev Bishop

Iuliu Rus | 18 Nov 20:30 2014

Fix performance on 10Gb networks

Google is running Cygwin apps on its 10Gb networks and we are seeing
extremely bad performance in a couple of cases. For example, iperf
with the defaults results in only 10Mbits/sec.
We tracked this down to a combination of non-blocking sockets with
Nagle+delayed ack kicking in, since the apps eventually end up sending
a very small packets (2 bytes).
We have a case open against Microsoft but since everything is moving
very slow we would like to work around by picking socket buffers that
are multiple of 4k.

Change log:
2014-11-18 Iuliu Rus <rus.iuliu <at> gmail.com>

* net.cc Change default values for socket buffers to fix performance
on 10Gb networks.
Attachment (net_patch): application/octet-stream, 1969 bytes
Christian Franke | 25 Sep 14:40 2014

[PATCH] Disable AF_UNIX handshake with setsockopt(..., SO_PEERCRED, ...)

This is a workaround for this problem which blocks ITP postfix:

With the patch, this disables the secret+cred handshakes of the AF_UNIX 

int sd = socket(AF_UNIX, SOCK_STREAM, 0);

setsockopt(sd, SOL_SOCKET, SO_PEERCRED, NULL, 0);

Postfix works if socket() calls are replaced by the above.

Calls of getsockopt(..., SO_PEERCRED, ...) and getpeereid() would fail with ENOTSUP then. These are not
used by postfix.


Christian Franke | 23 Sep 18:01 2014

[PATCH] Fix crash of ffs (0x80000000) on 64 bit

This fixes the issue reported here:

On 64 bit, i = 0x80000000 results in x = 0xffffffff80000000 due to sign 


Christian Franke | 7 Aug 22:15 2014

[PATCH] cygcheck -m, --check-mtimes option

Attached is an experimental patch which adds -m, 
--check-mtimes[=SECONDS] option to cygcheck. It provides an IMO useful 
heuristics to find files possibly modified after installation.

"cygcheck -c -m" prints the number of files with st_mtime > 
INSTALL_TIME+SECONDS. INSTALL_TIME is the st_mtime of the 
/etc/setup/PACKAGE.lst.gz file.

With -v, the affected path names are printed. The optional parameter 
SECONDS defaults to 600 to hide files modified by postinstall scripts.

Documentation update and changelog entry are still missing.