|
Message-ID: <20110514141919.GA22079@openwall.com> 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
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.