RE: genini patch
Christopher Faylor wrote: * genini (parsedir): Use correct sorting order based on file versions It's a lot more complicated than this if you want to get the sorting right. Maybe the setup.cc code could be of some use. You're right, it was a simplistic approach. Do you mean version_compare.cc? I don't feel like re-implementing that in perl. Instead I found Sort::Versions (apt-get install libsort-versions-perl). The output looks good given the current release tree. If you don't mind adding the dependency, it would keep the genini code small and simple. See the patch below. (get): Fix quotes in sdesc and ldesc values It took me a couple of tries but I think I've implemented this in a slightly cleaner manner than your patch. Ok, great. As I said, I'm not a perl coder: this is in fact the first time I work on a perl script. (parse): # in the middle of a line does not start a comment Actually, yes it does. It just doesn't start a comment in a quoted string. I haven't committed this since more work is needed. According to http://sourceware.org/cygwin-apps/setup-head.ini.html: Any line beginning with # is ignored by setup and can be used to add commentary to the file. All current setup.hint/ini files follow this rule. If you also want to support end-of-line-comments, that's great. Please consider committing my patch as a temporary measure until the final solution is ready. Don't output keys with empty values Committed Fix minor typo in warning Committed New categories: KDE, Perl, Python Committed Thank you, Servaas. -- --- genini-1.7 2007-02-25 10:33:14.0 +0100 +++ genini 2007-02-25 11:14:23.0 +0100 @@ -8,6 +8,7 @@ use File::Basename; use Digest::MD5; use Getopt::Long; +use Sort::Versions; use strict; @@ -108,7 +109,7 @@ open(\*F, '', $f) or die $0: couldn't open $f - $!\n; while (F) { chomp; - s/#.*$//o; + s/^#.*$//o; s/^\s+//o; s/(\S)\s+$/$1/o; length or next; @@ -170,17 +171,27 @@ } return if $explicit; -my @files = sort grep{!/-src\.tar.bz2/} glob($d/*.tar.bz2); -if ([EMAIL PROTECTED]) { + +# Create list of files and versions +my @versions; +my %files; +foreach my $file (glob($d/*[0-9].tar.bz2)) { + my $version = getver($file); + push(@versions, $version); + $files{$version} = $file; +} +if (!%files) { myerror not enough package files in $d; return; } +@versions = sort { versioncmp($a, $b) } @versions; for my $what ('', [prev]\n) { - my $f = pop @files or last; + my $version = pop @versions or last; + my $f = $files{$version}; $pkg{$pname}{$what}{-unused} = 1; my $x = $pkg{$pname}{$what}; my $p; - ($p, $x-{'version'}) = getver($f); + ($p, $x-{'version'}) = $version; addfiles($p, $x, $d); } }
Re: XWin and Vista -- 100% CPU on exit
William Bierman schrieb: I made myself a shortcut (though I get the same behavior no matter how I start X) to run X by executing: C:\cygwin\usr\X11R6\bin\run.exe -p /usr/X11R6/bin Xwin -multiwindow Try to start with -engine 1 -once . It worked for me, but i'm not using multiwindow. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: XWin and Vista -- 100% CPU on exit
That works without -multiwindow. When I add -multiwindow back it continues to happen. On 2/25/07, Holger Krull [EMAIL PROTECTED] wrote: William Bierman schrieb: I made myself a shortcut (though I get the same behavior no matter how I start X) to run X by executing: C:\cygwin\usr\X11R6\bin\run.exe -p /usr/X11R6/bin Xwin -multiwindow Try to start with -engine 1 -once . It worked for me, but i'm not using multiwindow. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: fork vs. multithreaded CPU...
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Corinna Vinschen wrote: On Feb 16 00:26, Yaakov (Cygwin Ports) wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 ... and fork is losing, and it's driving me crazy. On my P4 550 (3.40GHz) with 1.5.23, .24, as well as current snapshot (didn't have this computer before that), I always get fork errors, such as: I'm running Cygwin for a while on a dual core Athlon but I didn't have any such problem so far. ../libtool: fork: Resource temporarily unavailable usually when building packages, always leading to errors in the build process, due to incomplete commands being sent to gcc, etc. What do you mean with incomplete commands? Parallel make has been ruled out. Rebase does not help. AFAICS either this is a bash issue (since configure, libtool, etc. are all bash scripts), or with Cygwin itself. And you could also rule out multiple Cygwin versions, Virus checker software, etc? Did you contemplate trying to strace this? make with strace can take a *bit* of time, but maybe it's possible to catch something interesting. Windows XP Media Center Edition Ver 5.1 Build 2600 Service Pack 2 Is that the version which doesn't install the nul device by default? I thought only the embedded versions didn't implement the NUL device. The Media Center Edition is nothing more than Pro edition with the domain join functionality removed and enhanced multimedia software which makes it ideal for a Media Center PC. I will look into it. My laptop runs MCE but I havn't had a chance to get Cygwin on it. A test case will be useful to me and also the packages installed will also be useful so I can try to replicate the environment. - -- Robert Pendell [EMAIL PROTECTED] Thawte Web of Trust Notary CAcert Assurer -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.3 (MingW32) iD8DBQFF4VIVOzNfzNFG1LQRAmeuAKCkamtiEXPg9w9f/aw2m/RYET4pEQCfbuI1 /B4c0YeIiXUAh+IDHGtLwFk= =+0Fs -END PGP SIGNATURE- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Setting up a ssh service
* Gregg Levine (Sat, 24 Feb 2007 21:48:21 -0500) Obviously it should be part of the base documents, and I know I have read them. I'll do more of that before I ask a question that is more of a case of RTMF. I definitely wouldn't recommend to read the manual fu Thorsten -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
good threatenin
Hi, Chaepest CALIS and VAGRA online. http://parkerokay+now.com Remove + from the link. for a moment, picturing Dumbledore, with his long silver beard, full length wizards robes, and pointed hat, stretched out on a beach somewhere, rubbing suntan lotion onto his long crooked nose. Wherever -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Setting up a ssh service
On 2/25/07, Thorsten Kampe [EMAIL PROTECTED] wrote: * Gregg Levine (Sat, 24 Feb 2007 21:48:21 -0500) Obviously it should be part of the base documents, and I know I have read them. I'll do more of that before I ask a question that is more of a case of RTMF. I definitely wouldn't recommend to read the manual fu Thorsten -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ Hello! Early on, on this list, without naming names, that is exactly what it seemed like. Now, no. But anything can happen, and it usually does. -- Gregg C Levine [EMAIL PROTECTED] This signature was once found posting rude messages in English in the Moscow subway. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Setting up a ssh service
On Sat, Feb 24, 2007 at 05:10:35PM -0800, Brian Dessent wrote: Web Developer wrote: add a new entry to system variables: New variable name is CYGWIN, variable value is ntsec Why do people keep repeating this chestnut? 'ntsec' is the default. There is no need to have it in CYGWIN. Having CYGWIN=ntsec is a no-op. This does nothing. Brian It's in the SSH doc. BTW: I've had the funky SSH issues before where nothing at all works. My solution was pretty much voodoo based: 1. Delete every single ssh, ssh_server, ssh-related user manually. Delete these users from /etc/passwd as well as the windows side of the things. 2. Delete every dynamically generated ssh file - keys, config, etc. 3. Run ssh-host-config again. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Setting up a ssh service
Christopher Layne wrote: BTW: I've had the funky SSH issues before where nothing at all works. My solution was pretty much voodoo based: 1. Delete every single ssh, ssh_server, ssh-related user manually. Delete these users from /etc/passwd as well as the windows side of the things. 2. Delete every dynamically generated ssh file - keys, config, etc. 3. Run ssh-host-config again. I've gotten cygwin ssh to work on my home network, but after it broke for the second time I felt it was just too much hassle to reinstall. For me ssh is a convenience, not a necessity. Would rsh be any easier to maintain? I would gladly trade security for convenience. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Setting up a ssh service
On Sun, Feb 25, 2007 at 12:18:31PM -0600, Charles D. Russell wrote: Christopher Layne wrote: BTW: I've had the funky SSH issues before where nothing at all works. My solution was pretty much voodoo based: 1. Delete every single ssh, ssh_server, ssh-related user manually. Delete these users from /etc/passwd as well as the windows side of the things. 2. Delete every dynamically generated ssh file - keys, config, etc. 3. Run ssh-host-config again. I've gotten cygwin ssh to work on my home network, but after it broke for the second time I felt it was just too much hassle to reinstall. For me ssh is a convenience, not a necessity. Would rsh be any easier to maintain? I would gladly trade security for convenience. There's not really much to maintain after you install it the first time. It only takes maybe 20 minutes to work out any inconsistencies. Don't even think of rsh or rlogin. -cl -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
gcc doesn't like my .o file at the end
it wants it at the beginning. The gcc on my linux box doesn't care. Any way to make gcc work with the object file at the beginning? example: ---doesn't work $ gcc -mno-cygwin -mwin32 -I/[blah..] -L[blah..] -lglib-2.0 -lintl -liconv -o hello hello.o ---works $ gcc hello.o -mno-cygwin -mwin32 -I/[blah..] -L[blah..] -lglib-2.0 -lintl -liconv -o hello any ideas? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: gcc doesn't like my .o file at the end
alexl wrote: it wants it at the beginning. The gcc on my linux box doesn't care. Any way to make gcc work with the object file at the beginning? example: ---doesn't work $ gcc -mno-cygwin -mwin32 -I/[blah..] -L[blah..] -lglib-2.0 -lintl -liconv -o hello hello.o ---works $ gcc hello.o -mno-cygwin -mwin32 -I/[blah..] -L[blah..] -lglib-2.0 -lintl -liconv -o hello any ideas? Yes. Put it at the end where it belongs. The fact that Linux doesn't require this is a feature of Linux which, no matter how convenient it may seem, is not portable. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 _ A: Yes. Q: Are you sure? A: Because it reverses the logical flow of conversation. Q: Why is top posting annoying in email? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: gcc doesn't like my .o file at the end
hello I want to compil my Gulp program using g95 under cygwin, and I got this error message: /bin///ld: cannot find -lf95 make[1]: *** [gulp_] Error 1 make[1]: Leaving directory `/cygdrive/c/gulpsource/src/{os}' mv: cannot stat `gulp': No such file or directory make: *** [gulp] Error 1 some help please --- Larry Hall (Cygwin) [EMAIL PROTECTED] wrote: alexl wrote: it wants it at the beginning. The gcc on my linux box doesn't care. Any way to make gcc work with the object file at the beginning? example: ---doesn't work $ gcc -mno-cygwin -mwin32 -I/[blah..] -L[blah..] -lglib-2.0 -lintl -liconv -o hello hello.o ---works $ gcc hello.o -mno-cygwin -mwin32 -I/[blah..] -L[blah..] -lglib-2.0 -lintl -liconv -o hello any ideas? Yes. Put it at the end where it belongs. The fact that Linux doesn't require this is a feature of Linux which, no matter how convenient it may seem, is not portable. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 _ A: Yes. Q: Are you sure? A: Because it reverses the logical flow of conversation. Q: Why is top posting annoying in email? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ No need to miss a message. Get email on-the-go with Yahoo! Mail for Mobile. Get started. http://mobile.yahoo.com/mail -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: gcc doesn't like my .o file at the end
nordine wrote: hello I want to compil my Gulp program using g95 under cygwin, and I got this error message: /bin///ld: cannot find -lf95 make[1]: *** [gulp_] Error 1 make[1]: Leaving directory `/cygdrive/c/gulpsource/src/{os}' mv: cannot stat `gulp': No such file or directory make: *** [gulp] Error 1 some help please Please don't commandeer someone else's thread for your own purposes. If you have a question to ask and it's not related to any current thread, just send a new message to the list. Cygwin doesn't have a g95 compiler package. The currently available package is g77. If you require g95, you'll need to build it yourself or find an existing package, Cygwin-based or not, elsewhere for the time being. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 _ A: Yes. Q: Are you sure? A: Because it reverses the logical flow of conversation. Q: Why is top posting annoying in email? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Fontconfig 2.4.1-4 is missing /etc/fonts/local.conf
The previous version 2.2.2-1 does include this file. It also appears that the postinstall script needs some updating or it may no longer be needed. Yahoo! Music Unlimited Access over 1 million songs. http://music.yahoo.com/unlimited -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
LyX 1.4.4-1 postinstall script has fatal error in sed script.
LyX 1.4.4-1 postinstall script has fatal error in sed script. The sed script is split across two lines which is causing the script to fail while trying to add the lyx font directory. This leaves a blank local.conf file. I fixed the script by using a \n after the \dir directive. I also added a tab \t before the dir to get things to line up better. No need to miss a message. Get email on-the-go with Yahoo! Mail for Mobile. Get started. http://mobile.yahoo.com/mail -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
/dev/null timing and clock skew problems
I am doing make based builds on Cygwin and am getting following warning messages multiple times in stdout :- make[2]: Warning: File `/dev/null' has modification time 0.0096 s in the future make[2]: warning: Clock skew detected. Your build may be incomplete. I am using Windows XP. Anyone know what is going on and how to correct it ? Aaron -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: 100% CPU Usage and Error Message: Error, messageQ semaphore not equal to zero.
neo napster wrote: Thanks for the solution. Can I know This kind of error comes? Can u give me some brief explaination or any link about the error message. As Corinna has mentioned, the cygwin app you are using is already outdated and unsupported. The best way to solve your problem would be to upgrade cygwin and use cygsever. cygipc has been obsoleted a long time ago. - Original Message From: Corinna Vinschen [EMAIL PROTECTED] And, http://cygwin.com/acronyms/#PCYMTNQREAIYR Thank you very much. Best Regards, Carlo -- Carlo Florendo Softare Engineer/Network Co-Administrator Astra Philippines Inc. UP-Ayala Technopark, Diliman 1101, Quezon City Philippines http://www.astra.ph Member of the Astra Group of Companies 5-3-11 Sekido, Tama City Tokyo 206-0011, Japan http://www.astra.co.jp -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
compilation problem
nordine wrote: hello I want to compil my Gulp program under cygwin, and I got this error message: /bin///ld: cannot find -lf95 make[1]: *** [gulp_] Error 1 make[1]: Leaving directory `/cygdrive/c/gulpsource/src/{os}' mv: cannot stat `gulp': No such file or directory make: *** [gulp] Error 1 some help please Don't pick lemons. See all the new 2007 cars at Yahoo! Autos. http://autos.yahoo.com/new_cars.html -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: DBD::mysql install problem cygwin
Hi Brian, This worked like a charm. Sorry for the delayed reply; I wanted to attempt both solutions suggested to me on this list; I appreciated your fast reply and help in this matter. Yours, Michael Janis -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brian Dessent Sent: Wednesday, February 21, 2007 6:08 PM To: cygwin@cygwin.com Subject: Re: DBD::mysql install problem cygwin Michael Janis wrote: In file included from dbdimp.c:20: dbdimp.h:23:45: mysqld_error.h: No such file or directory I seem to recall this is a bug in the MySQL configury where it neglects to install this header if you only build the client libs. A workaround would be to configure and install MySQL with --enable-server (even if you plan to use the native Win32 server and not the Cygwin server), and you should have the header installed. Brian -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: DBD::mysql install problem cygwin
Hi Yaakov, Thank you for taking the time to create cygport and these ports which look like they were created for my use. Unfortunately I received errors at nearly every stage of the install process and ultimately was unsuccessful. However, I do appreciate your efforts. I would be happy to rediscover the (copious) output messages I received if they will help you in creating / maintaining cygport. Yours, Michael -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Yaakov (Cygwin Ports) Sent: Wednesday, February 21, 2007 7:46 PM To: cygwin@cygwin.com Subject: Re: DBD::mysql install problem cygwin -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Brian Dessent wrote: I seem to recall this is a bug in the MySQL configury where it neglects to install this header if you only build the client libs. A workaround would be to configure and install MySQL with --enable-server (even if you plan to use the native Win32 server and not the Cygwin server), and you should have the header installed. http://cygwin-ports.cvs.sourceforge.net/*checkout*/cygwin-ports/ports/libs/m ysql/mysql-5.0.27-1.cygport http://cygwin-ports.cvs.sourceforge.net/*checkout*/cygwin-ports/ports/perl/D BD-mysql/perl-DBD-mysql-3.0006-1.cygport Yaakov -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Cygwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF3RIDpiWmPGlmQSMRCAUGAKDa0Wv2z3jvTxfD+VihvI6THWg0mACgoasn ufbGe9oHj3hIEauZc2I4CWg= =lk57 -END PGP SIGNATURE- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: tar/gzip outside of bash problem
Eric Blake wrote: -snip- But you DO have an entry with spaces and parenthesis; perhaps cygwin's path-conversion routines are being confused by that? Can you compare 'echo $PATH' under bash vs. 'set PATH' under cmd? How about 'env | grep ^PATH' under cmd? Yup. I removed quotes from the first entry and it works now. Thanks. -- Marko ICQ: 5990814 I'm not under the alkafluence of inkahol that some thinkle peep I am. It's just the drunker I sit here the longer I get. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
does usleep() sleep more than it's supposed to?
Good Day, I'm writing an application that requires time precisions up to the microsecond level. However, I put a hard-coded adjustment of 9000 microseconds since usleep() seems to sleep on the average of 9000 microseconds more than it's supposed to, at least on my system. I could work with up to 2000 microseconds for function overhead but 9000 microseconds seems to be too long. I've attached a simple test case that let's usleep() sleep at 10 microseconds at each call. I've also included the output of cygcheck -svr. The output of the attached code on my system is the following: [EMAIL PROTECTED] /cygdrive/e/midi $ gcc time2.c [EMAIL PROTECTED] /cygdrive/e/midi $ ./a.exe Print elapsed time at every call to usleep() Elapsed time (sec:microsec) 0:109000 Elapsed time (sec:microsec) 0:109000 Elapsed time (sec:microsec) 0:11 Elapsed time (sec:microsec) 0:109000 Elapsed time (sec:microsec) 0:109000 Elapsed time (sec:microsec) 0:11 Elapsed time (sec:microsec) 0:109000 Elapsed time (sec:microsec) 0:11 Elapsed time (sec:microsec) 0:109000 Elapsed time (sec:microsec) 0:109000 Print elapsed after the loop() Elapsed time (sec:microsec) 1:94000 ^^^ calling usleep() 10 times made it sleep an additional 94000 microseconds. Please note that I am aware of GetSystemTimeAdjustment() and it seems not to have an effect on my observations. Is the above the expected usleep() behaviour? If not, how do we let usleep() sleep properly? Thank you very much! Best Regards, Carlo -- Carlo Florendo Softare Engineer/Network Co-Administrator Astra Philippines Inc. UP-Ayala Technopark, Diliman 1101, Quezon City Philippines http://www.astra.ph Member of the Astra Group of Companies 5-3-11 Sekido, Tama City Tokyo 206-0011, Japan http://www.astra.co.jp Cygwin Configuration Diagnostics Current System Time: Mon Feb 26 15:50:36 2007 Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 4 Path: e:\cygwin\usr\local\bin e:\cygwin\bin e:\cygwin\bin e:\cygwin\usr\X11R6\bin c:\WINNT\system32 c:\WINNT c:\WINNT\System32\Wbem f:\cygwin\bin d:\MySQL\MySQL Server 4.1\bin d:\Common Files\GTK\2.0\bin d:\Microsoft Visual Studio\Common\Tools\WinNT d:\Microsoft Visual Studio\Common\MSDev98\Bin d:\Microsoft Visual Studio\Common\Tools d:\Microsoft Visual Studio\VC98\bin e:\cygwin\usr\local\bin e:\cygwin\usr\local\sbin Output from e:\cygwin\bin\id.exe (nontsec) UID: 1000(admin)GID: 513(None) 0(root) 513(None) 544(Administrators) 545(Users) Output from e:\cygwin\bin\id.exe (ntsec) UID: 1000(admin)GID: 513(None) 0(root) 513(None) 544(Administrators) 545(Users) SysDir: C:\WINNT\system32 WinDir: C:\WINNT USER = 'admin' PWD = '/cygdrive/e/midi' CYGWIN = 'server' HOME = '/home/admin' MAKE_MODE = 'unix' HOMEPATH = '\Documents and Settings\admin' MANPATH = '/usr/local/man:/usr/share/man:/usr/man::/usr/ssl/man' APPDATA = 'C:\Documents and Settings\admin\Application Data' HOSTNAME = 'host144' TERM = 'xterm' PROCESSOR_IDENTIFIER = 'x86 Family 15 Model 1 Stepping 2, GenuineIntel' WINDIR = 'C:\WINNT' WINDOWID = '7879448' OLDPWD = '/cygdrive/e/fd' USERDOMAIN = 'THORIN' OS = 'Windows_NT' ALLUSERSPROFILE = 'C:\Documents and Settings\All Users' OS2LIBPATH = 'C:\WINNT\system32\os2\dll;' TEMP = '/cygdrive/c/DOCUME~1/admin/LOCALS~1/Temp' COMMONPROGRAMFILES = 'C:\Program Files\Common Files' LIB = 'D:\Microsoft Visual Studio\VC98\mfc\lib;D:\Microsoft Visual Studio\VC98\lib' USERNAME = 'admin' PROCESSOR_LEVEL = '15' SYSTEMDRIVE = 'C:' USERPROFILE = 'C:\Documents and Settings\admin' PS1 = '\[\e]0;[EMAIL PROTECTED] \[\e[33m\]\w\[\e[0m\]\n\$ ' LOGONSERVER = '\\THORIN' PROCESSOR_ARCHITECTURE = 'x86' SHLVL = '1' COLORFGBG = '15;default;0' PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH' HOMEDRIVE = 'C:' COMSPEC = 'C:\WINNT\system32\cmd.exe' TMP = '/cygdrive/c/DOCUME~1/admin/LOCALS~1/Temp' SYSTEMROOT = 'C:\WINNT' PRINTER = '\\aragorn\hp LaserJet 1000' CVS_RSH = '/bin/ssh' PROCESSOR_REVISION = '0102' MSDEVDIR = 'D:\Microsoft Visual Studio\Common\MSDev98' PKG_CONFIG_PATH = '/usr/X11R6/lib/pkgconfig' INFOPATH = '/usr/local/info:/usr/share/info:/usr/info:' PROGRAMFILES = 'C:\Program Files' DISPLAY = ':0' NUMBER_OF_PROCESSORS = '1' INCLUDE = 'D:\Microsoft Visual Studio\VC98\atl\include;D:\Microsoft Visual Studio\VC98\mfc\include;D:\Microsoft Visual Studio\VC98\include' COMPUTERNAME = 'THORIN' COLORTERM = 'rxvt-xpm' _ = '/usr/bin/cygcheck' POSIXLY_CORRECT = '1' HKEY_CURRENT_USER\Software\Cygnus Solutions HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus