Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Sat, 14 May 2011 18:19:19 +0400
From: Solar Designer <>
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":

So I guess that you need to specify 500, 600, or something like this:

#define _XOPEN_SOURCE 4
#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,


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.