X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org X-SpamScore: -6 X-BigFish: VS-6(z21eNzzz1202hzzz2fh2a8h668h839h944h) X-Forefront-Antispam-Report: CIP:67.155.192.4;KIP:(null);UIP:(null);IPV:NLI;H:Mailserv01.invention.in-cube.com;RD:incube-mail01.incubelabs.com;EFVD:NLI Received-SPF: pass (mail42-ch1: domain of incubelabs.com designates 67.155.192.4 as permitted sender) client-ip=67.155.192.4; envelope-from=andrewM AT incubelabs DOT com; helo=Mailserv01.invention.in-cube.com ;.in-cube.com ; From: Andrew Mangogna <andrewM AT incubelabs DOT com> To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com> Subject: getitimer() in 1.7.10-1 Date: Fri, 17 Feb 2012 17:06:07 +0000 Message-ID: <B84CC3A4DA13D544BD4334A6E10E2D6F2A9FF3C5@MAILSERV01.invention.in-cube.com> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-OriginatorOrg: incubelabs.com Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: <cygwin.cygwin.com> List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com> List-Archive: <http://sourceware.org/ml/cygwin/> List-Post: <mailto:cygwin AT cygwin DOT com> List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q1HH6hEU017039 After recently updating to 1.7.10-1 of the Cygwin library I have noticed that the invocation of "getitimer()" in my applications is now failing all the time. The following program shows the result: #include <stdio.h> #include <string.h> #include <sys/time.h> #include <errno.h> int main( int arc, char **argv) { struct itimerval timer ; int err = getitimer(ITIMER_REAL, &timer) ; if (err != 0) { printf("getitimer failed: %d, \"%s\"(%d)\n", err, strerror(errno), errno) ; } } When compiled with: gcc -o gtmr -D_POSIX_C_SOURCE=200112L -std=c99 -g3 -Wall gtmr.c Executing the result gives: getitimer failed: -1, "No error"(0) with various permutation of compiler flags not changing the result. The same program on a colleague's box where 1.7.9 is installed runs without any output. I'm curious if anyone else has seen a problem here. I suspect I'm doing something wrong, but this has been working for quite some time in the past and getitimer() is petty mundane stuff. Andrew Mangogna -- 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