From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30326 invoked by alias); 13 Feb 2006 20:14:17 -0000 Received: (qmail 30318 invoked by uid 22791); 13 Feb 2006 20:14:17 -0000 X-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,FORGED_RCVD_HELO,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 13 Feb 2006 20:14:16 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id k1DKEEkm017690 for ; Mon, 13 Feb 2006 15:14:14 -0500 Received: from post-office.corp.redhat.com (post-office.corp.redhat.com [172.16.52.227]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id k1DKEE109782; Mon, 13 Feb 2006 15:14:14 -0500 Received: from localhost.localdomain (sebastian-int.corp.redhat.com [172.16.52.221]) by post-office.corp.redhat.com (8.11.6/8.11.6) with ESMTP id k1DKEDt25793; Mon, 13 Feb 2006 15:14:13 -0500 Subject: Re: Global constants From: Mark McLoughlin To: Martin Hunt Cc: "Frank Ch. Eigler" , systemtap@sourceware.org In-Reply-To: <1139859707.3942.11.camel@monkey2> References: <1139852331.11054.17.camel@localhost.localdomain> <1139859707.3942.11.camel@monkey2> Content-Type: text/plain Date: Mon, 13 Feb 2006 20:14:00 -0000 Message-Id: <1139861652.11054.40.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.4.0 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org X-SW-Source: 2006-q1/txt/msg00495.txt.bz2 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.