tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: refine of the GSOC project
On May 12, 9:50pm, charles.cui1984%gmail.com@localhost (Charles Cui) wrote:
-- Subject: Re: refine of the GSOC project
| Well, your saying of _NETBSD_SOURCE is defined by default seems correct,
| I compiled a file in the benchmark separately which has the problem of
| accessing
| macro SA_ONSTACK
| <http://nxr.netbsd.org/source/s?refs=SA_ONSTACK&project=src> which lives
| in <signal.h>. There is no problem in executing.
| However, I am still not convinced why _NETBSD_SOURCE does not take effect
| in the benchmark execution? There is no #undef _NETBSD_SOURCE in the
| benchmark,
| also defining other macros will not affect _NETBSD_SOURCE (it will make
| multiple macros
| exist simultaneously). I am not quite clear why the default _NETBSD_SOURCE
| does not
| work in the benchmark.
|
| this is from <signal.h>, benchmark using SA_ONSTACK reporting this macro
| not found.
|
Why do you say that? Just compile and run this:
#include <signal.h>
#include <stdio.h>
int
main(void)
{
printf("%#x\n", SA_ONSTACK);
return 0;
}
christos
Home |
Main Index |
Thread Index |
Old Index