Re: [RFC] Splitting out kernel<=>userspace ABI headers

From: H. Peter Anvin
Date: Mon Sep 05 2005 - 11:36:34 EST


Followup to: <B9E70F6F-CC0A-4053-AB34-A90836431358@xxxxxxx>
By author: Kyle Moffett <mrmacman_g4@xxxxxxx>
In newsgroup: linux.dev.kernel
>
> Didn't you mean "#define stat __kabi_stat64"? Also, I can see that
> would pose other issues as well say my app does "struct stat stat;"
> Any error messages would refer to a variable "__kabi_stat64" instead
> of the expected "stat":
>

No, I didn't. That's *exactly* why I didn't mean that.

#define __kabi_stat64 stat
#include <linux/abi/stat.h>

That being said, I would personally like to see it possible to typedef
struct, union and enum tags.

-hpa
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/