moreutils: an 'errno' utility

Adam Conrad adconrad at ubuntu.com
Thu Aug 12 13:58:55 BST 2010


On 10-08-12 01:01 PM, Dustin Kirkland wrote:
> On Thu, Aug 12, 2010 at 7:40 AM, Loïc Minier <loic.minier at ubuntu.com> wrote:
>>  /me . o O ( cpp -dM -include asm/errno.h /dev/null | grep foo )
> 
> Unfortunately, that:
>  * Includes other non-error-related #defined constants like
> __LDBL_DENORM_MIN__ 3.64519953188247460253e-4951L.
>  * And omits the useful /* comments */ that explain what the heck
> something like ESTRPIPE means.

You could, however, avoid gcc forking cpp in your script, by just
calling cpp directly in the discovery stage (s/gcc -E/cpp -E/), which
will give you exactly the same results.

... Adam




More information about the ubuntu-devel mailing list