This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap 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: Global constants


Hi Martin,

On Mon, 2006-02-13 at 11:41 -0800, Martin Hunt wrote:

> Also it would be nice to have a way to declare these constants in
> embedded C, so we can use the C header files to get the values, rather
> than look them up.
> 
> something like
> %{ const_O_CREAT = O_CREAT; %}
>   instead of
> O_CREAT = 64

	Absolutely, that was my first thought too ... unfortunately, the kernel
headers don't seem to have all the values e.g. O_ASYNC is only available
as FASYNC ... I didn't take it any further than thinking "uggh, that
sucks", though :-)

Cheers,
Mark.


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