This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: getitimer() in 1.7.10-1


On Feb 17 17:06, Andrew Mangogna wrote:
> 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) ;
>     }
> }
> [...]
> 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.

No, you're not doing anything wrong, it's plainly a bug in 1.7.10.  A
local variable was not correctly used.  Thanks for the report and the
testcase.  This should be fixed in CVS.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]