winsup/cygwin ChangeLog ChangeLog-2011
CVSROOT:/cvs/uberbaum Module name:winsup Changes by: c...@sourceware.org 2012-01-01 16:57:25 Modified files: cygwin : ChangeLog Added files: cygwin : ChangeLog-2011 Log message: Bump ChangeLog Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/winsup/cygwin/ChangeLog-2011.diff?cvsroot=uberbaumr1=NONEr2=1.1 http://sourceware.org/cgi-bin/cvsweb.cgi/winsup/cygwin/ChangeLog.diff?cvsroot=uberbaumr1=1.5649r2=1.5650
src/winsup/cygwin ChangeLog cygwin.din path.cc ...
CVSROOT:/cvs/src Module name:src Changes by: yselkow...@sourceware.org 2012-01-01 12:54:26 Modified files: winsup/cygwin : ChangeLog cygwin.din path.cc posix.sgml winsup/cygwin/include/cygwin: version.h Log message: * cygwin.din (get_current_dir_name): Export. * path.cc (get_current_dir_name): New function. * posix.sgml (std-gnu): Add get_current_dir_name. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ChangeLog.diff?cvsroot=srcr1=1.5650r2=1.5651 http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/cygwin.din.diff?cvsroot=srcr1=1.250r2=1.251 http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/path.cc.diff?cvsroot=srcr1=1.644r2=1.645 http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/posix.sgml.diff?cvsroot=srcr1=1.73r2=1.74 http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/cygwin/include/cygwin/version.h.diff?cvsroot=srcr1=1.358r2=1.359
src/winsup/doc ChangeLog new-features.sgml
CVSROOT:/cvs/src Module name:src Changes by: yselkow...@sourceware.org 2012-01-01 12:55:40 Modified files: winsup/doc : ChangeLog new-features.sgml Log message: * new-features.sgml (ov-new1.7.10): Document get_current_dir_name. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/doc/ChangeLog.diff?cvsroot=srcr1=1.370r2=1.371 http://sourceware.org/cgi-bin/cvsweb.cgi/src/winsup/doc/new-features.sgml.diff?cvsroot=srcr1=1.95r2=1.96
Re: [PATCH] Add get_current_dir_name(3)
On Sun, Jan 01, 2012 at 01:13:25AM -0600, Yaakov (Cygwin/X) wrote: On Sun, 2012-01-01 at 01:46 -0500, Christopher Faylor wrote: On Sat, Dec 31, 2011 at 08:45:07PM -0600, Yaakov (Cygwin/X) wrote: +extern C char * +get_current_dir_name (void) +{ + char *pwd = getenv (PWD); + char *cwd = getcwd (NULL, 0); + + if (pwd) +{ + struct __stat64 pwdbuf, cwdbuf; + stat64 (pwd, pwdbuf); + stat64 (cwd, cwdbuf); + if (pwdbuf.st_ino == cwdbuf.st_ino) You have to check st_dev here too don't you? Of course. Revised patch for winsup/cygwin attached. Looks good. The Cygwin part is approved. Thanks. cgf
[PATCH] Add pthread_sigqueue(3)
This patchset adds pthread_sigqueue(3), a GNU extension: http://www.kernel.org/doc/man-pages/online/pages/man3/pthread_sigqueue.3.html The implementation is based on the existing sigqueue(2) and pthread_kill(3) code. Patches for winsup/cygwin and winsup/doc attached. Yaakov 2012-01-?? Yaakov Selkowitz yselkowitz@... * cygwin.din (pthread_sigqueue): Export. * posix.sgml (std-gnu): Add pthread_sigqueue. * thread.cc (pthread_sigqueue): New function. * include/thread.h (pthread_sigqueue): New function. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump. Index: cygwin.din === RCS file: /cvs/src/src/winsup/cygwin/cygwin.din,v retrieving revision 1.246 diff -u -p -r1.246 cygwin.din --- cygwin.din 3 Aug 2011 19:17:02 - 1.246 +++ cygwin.din 4 Aug 2011 09:21:52 - @@ -1270,6 +1270,7 @@ pthread_setschedparam SIGFE pthread_setschedprio SIGFE pthread_setspecific SIGFE pthread_sigmask SIGFE +pthread_sigqueue SIGFE pthread_suspend SIGFE pthread_spin_destroy SIGFE pthread_spin_init SIGFE Index: posix.sgml === RCS file: /cvs/src/src/winsup/cygwin/posix.sgml,v retrieving revision 1.70 diff -u -p -r1.70 posix.sgml --- posix.sgml 3 Aug 2011 19:17:02 - 1.70 +++ posix.sgml 4 Aug 2011 09:21:53 - @@ -1133,6 +1133,7 @@ also IEEE Std 1003.1-2008 (POSIX.1-2008) pow10f ppoll pthread_getattr_np +pthread_sigqueue ptsname_r removexattr setxattr Index: thread.cc === RCS file: /cvs/src/src/winsup/cygwin/thread.cc,v retrieving revision 1.246 diff -u -p -r1.246 thread.cc --- thread.cc 3 Aug 2011 19:17:02 - 1.246 +++ thread.cc 4 Aug 2011 09:21:53 - @@ -3093,6 +3093,24 @@ pthread_sigmask (int operation, const si return res; } +extern C int +pthread_sigqueue (pthread_t *thread, int sig, const union sigval value) +{ + siginfo_t si = {0}; + + if (!pthread::is_good_object (thread)) +return EINVAL; + if (!(*thread)-valid) +return ESRCH; + + si.si_signo = sig; + si.si_code = SI_QUEUE; + si.si_value = value; + si.si_pid = myself-pid; + si.si_uid = myself-uid; + return sig_send (NULL, si, (*thread)-cygtls); +} + /* ID */ extern C int Index: include/pthread.h === RCS file: /cvs/src/src/winsup/cygwin/include/pthread.h,v retrieving revision 1.34 diff -u -p -r1.34 pthread.h --- include/pthread.h 21 Jul 2011 09:39:22 - 1.34 +++ include/pthread.h 4 Aug 2011 09:21:53 - @@ -202,6 +202,7 @@ void pthread_testcancel (void); /* Non posix calls */ int pthread_getattr_np (pthread_t, pthread_attr_t *); +int pthread_sigqueue (pthread_t *, int, const union sigval); int pthread_suspend (pthread_t); int pthread_continue (pthread_t); int pthread_yield (void); Index: include/cygwin/version.h === RCS file: /cvs/src/src/winsup/cygwin/include/cygwin/version.h,v retrieving revision 1.351 diff -u -p -r1.351 version.h --- include/cygwin/version.h 3 Aug 2011 19:17:02 - 1.351 +++ include/cygwin/version.h 4 Aug 2011 09:21:53 - @@ -427,12 +427,13 @@ details. */ 256: Add CW_ALLOC_DRIVE_MAP, CW_MAP_DRIVE_MAP, CW_FREE_DRIVE_MAP. 257: Export getpt. 258: Export get_current_dir_name. + 259: Export pthread_sigqueue. */ /* Note that we forgot to bump the api for ualarm, strtoll, strtoull */ #define CYGWIN_VERSION_API_MAJOR 0 -#define CYGWIN_VERSION_API_MINOR 258 +#define CYGWIN_VERSION_API_MINOR 259 /* There is also a compatibity version number associated with the shared memory regions. It is incremented when incompatible 2012-01-?? Yaakov Selkowitz yselkowitz@... * new-features.sgml (ov-new1.7.10): Document pthread_sigqueue. Index: new-features.sgml === RCS file: /cvs/src/src/winsup/doc/new-features.sgml,v retrieving revision 1.96 diff -u -p -r1.96 new-features.sgml --- new-features.sgml 1 Jan 2012 18:55:40 - 1.96 +++ new-features.sgml 1 Jan 2012 18:56:51 - @@ -103,7 +103,7 @@ dlopen now supports the Glibc-specific R listitempara Other new API: clock_settime, __fpurge, getgrouplist, get_current_dir_name, getpt, ppoll, psiginfo, psignal, ptsname_r, sys_siglist, pthread_setschedprio, -sysinfo. +pthread_sigqueue, sysinfo. /para/listitem /itemizedlist
Re: Fwd: CRLF
Hi Christopher, What is this interesting workaround? Most probably we will use bash with set -o igncr btw. Best regards Franz Am 01.01.2012 00:31, schrieb Christopher Faylor: On Sat, Dec 31, 2011 at 01:55:58PM -0800, Andrew DeFaria wrote: On 12/31/11 13:32, Chris Sutcliffe wrote: Below please find the response from Thorsten (the mksh developer) regarding CRLF. I must say, then why bother with this offbeat mksh? His answers are unconvincing (I keep everything the same no matter what! Even if it's better to do it differently). If you just want a ksh Cygwin's got one. mksh is Cygwin's ksh. I can't really blame someone for not wanting to hack their code to handle CRLF, especially knowing the ugliness (i.e., lseek()) that needs to go on in the Cygwin DLL to handle this. I wish, in retrospect, I hadn't been talked into having text mode there in the first place. I'm entiredly convinced that it isn't worth the time to retrofit support for CRLF into something that doesn't already support it given the existence of easy methods to convert CRLF - LF. And, maybe I'm missing something but it seems like Thorsten even provided an interesting workaround so it doesn't seem like he's being even a tiny bit unreasonable. cgf -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Fwd: CRLF
On Sun, Jan 01, 2012 at 09:45:11AM +0100, Franz Fehringer wrote: What is this interesting workaround? Most probably we will use bash with set -o igncr btw. Read the forwarded email in this thread. cgf -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
RE: CRLF
Thorsten Glaser wrote on 31 December 2011 15:00 tr -d \\r would work, too (but also strip CR in the middle). sed -e 's/\r$//' preserves CRs in the midddle. - Barry ..Disclaimer: Statements made herein are not made on behalf of NIAID. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: rsync 3.0.9 fails when over ssh: connection unexpectedly closed / error in rsync protocol data stream
Any help on this would be most appreciated, as I'm really stuck on this. Even just confirmations that rsync over ssh is working for someone (and on what versions of rsync/ssh) would be helpful. Thanks, Ludovic On Wed, Dec 28, 2011 at 16:27, Ludovic Aelbrecht ludovic.aelbre...@gmail.com wrote: Hello all, I'm trying to run an rsync backup over ssh, but I'm getting an error message when doing this. First of, these are the versions of rsync ssh I'm running: -- rsync version 3.0.9 protocol version 30 OpenSSH_5.9p1, OpenSSL 0.9.8r 8 Feb 2011 -- Attached you can find the output of running the command cygcheck -s -v -r. When I run rsync without ssh, it's working fine, e.g.: -- rsync --delete -ahzv --exclude=.svn /cygdrive/c/projects ludovic@REMOTEHOST::backup/E6410/ Password: sending incremental file list sent 9.00M bytes received 68.31K bytes 15.56K bytes/sec total size is 12.62G speedup is 1391.54 -- When I run the same rsync command over ssh, it fails like this (note that it fails right away, it doesn't need the usual ~5-10 minutes to check the 'c/projects/' dir): -- $ rsync --delete -ahzv --exclude=.svn -e ssh /cygdrive/c/projects ludovic@REMOTEHOST::backup/E6410/ rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: error in rsync protocol data stream (code 12) at /home/lapo/package/rsync-3.0.9-1/src/rsync-3.0.9/io.c(605) [sender=3.0.9] -- The same problem occurs when using less rsync options, e.g. rsync -e ssh /cygdrive/c/projects ludovic@REMOTEHOST::backup/E6410/. I've attached an strace output of running this command, in case that helps. However, ssh'ing to the remote host works fine. SSH worked fine when it wasn't passwordless; I set it up a few days ago to be passwordless and it's still working fine: -- $ ssh ludovic@REMOTEHOST Last login: Wed Dec 28 15:51:45 2011 from [foobar] on pts/0 Linux REMOTEHOST 2.6.37 #1 SMP Mon Aug 15 16:19:41 PDT 2011 x86_64 GNU/Linux Last login: Wed Dec 28 15:51:50 2011 from [foobar] ludovic@REMOTEHOST:~$ -- rsync over ssh always gives me the same error, whether passwordless or not. I have no idea if I'm doing something wrong, or if this is a bug. Given the amount of people probably running it like this, I'd say it's a problem on my side, but the type of error makes me wonder. Thanks in advance for any help, Ludovic P.S.: Please keep me in Cc as I'm not subscribed. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: rsync 3.0.9 fails when over ssh: connection unexpectedly closed / error in rsync protocol data stream
On Sun, Jan 01, 2012 at 09:27:26PM +0100, Ludovic Aelbrecht wrote: Any help on this would be most appreciated, as I'm really stuck on this. Even just confirmations that rsync over ssh is working for someone (and on what versions of rsync/ssh) would be helpful. $ rsync -av -e ssh test.file.txt dawud@164.0.0.2:downloads/ WARNING: Unauthorized access to this system is forbidden and will be prosecuted by law. By accessing this system, you agree that your actions may be monitored if unauthorized usage is suspected. dawud@164.0.0.2's password: sending incremental file list test.file.txt sent 106 bytes received 31 bytes 24.91 bytes/sec total size is 11 speedup is 0.08 $ cygcheck -c rsync openssh Cygwin Package Information Package VersionStatus openssh 5.9p1-1OK rsync3.0.9-1OK $ uname -a CYGWIN_NT-6.1 win7 1.7.9(0.237/5/3) 2011-03-29 10:10 i686 Cygwin Works for me. -- Huella de clave primaria: AD8F BDC0 5A2C FD5F A179 60E7 F79B AB04 5299 EC56 signature.asc Description: Digital signature
Re: Fwd: CRLF
On 01/01/2012 12:45 AM, Franz Fehringer wrote: Hi Christopher, What is this interesting workaround? Most probably we will use bash with set -o igncr btw. Actually I hadn't heard about set -o igncr until this thread but thinking about it I wouldn't use it. If I did then things would just work for me. Problem is I'm very good with Cygwin but I come across others who very often do not invest as much time to get to know Cygwin. So if there's trailing CRs in a script I want it to fail so that I see it. Otherwise another user will say I tried that but it didn't work (as they always do) and I don't want it to just work when I try it - I want it to fail like it most liked did for the other guy. When I hit this problem I simply do d2u file and I'm done. -- Andrew DeFaria http://defaria.com If people are good only because they fear punishment, and hope for reward, then we are a sorry lot indeed. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple