[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Sat, 14 May 2011 18:19:19 +0400
From: Solar Designer <solar@...nwall.com>
To: john-users@...ts.openwall.com
Subject: Re: ITIMER_REAL' error in bench.c
On Sat, May 14, 2011 at 10:05:40AM -0400, Robert Harris wrote:
> Problem setting in bench.c:
> #define _XOPEN_SOURCE /* for setitimer(2) */
>
> Setting that fixed bench.c:
> #define _XOPEN_SOURCE 500 /* for setitimer(2) */
Thanks. I'll commit this fix. Does everything else compile cleanly for
you, with no warnings?
> Why does the number 500 work? I tried other numbers like 2200, 200, and
> 400 and they all failed.
It's version of the standard specification you request support for.
Apparently, setitimer() was "First released in Issue 4, Version 2" and
"Moved from X/OPEN UNIX extension to BASE" in "Issue 5":
http://pubs.opengroup.org/onlinepubs/009695399/functions/getitimer.html
So I guess that you need to specify 500, 600, or something like this:
#define _XOPEN_SOURCE 4
#define _XOPEN_SOURCE_EXTENDED
#define _XPG4_2
...where the _XOPEN_SOURCE_EXTENDED might make this extension available
along with your request for 4.2. I did not test this, though.
Thanks again,
Alexander
Powered by blists - more mailing lists
Powered by Openwall GNU/*/Linux -
Powered by OpenVZ