Messages in this thread | | | Subject | Re: [ANNOUNCE] linux-libc-headers 2.6.7.0 | From | Krzysztof Halasa <> | Date | Thu, 24 Jun 2004 18:43:56 +0200 |
| |
Jeff Garzik <jgarzik@pobox.com> writes:
> HPA suggested include/abi and I don't think anyone objected. > > But that's most likely a 2.7 project :(
I think we should start with (and it doesn't have to wait for 2.7):
/usr/include/abi -> linux/include/abi /usr/include/linux -> abi (obsolete, to be removed with 2.8) Appropriate $ARCH + generic dirs (names?).
in the kernel: mkdir linux/include/abi (and appropriate $ARCH + generic dirs - names?) for f in all-user-space-header-names; do copy << EOF >> linux/include/abi/$f #ifndef __ABI_HEADER_H #define __ABI_HEADER_H
#ifdef __KERNEL__ #include <linux/header.h> #else #include <linux-internal/header.h> #endif
#endif
I above scheme should give us a) source compatibility with both kernel and userland files, b) smooth transition without a single 50 MB patch, c) allows each maintainer to move/clean "her/his" headers independently.
After a header file is "cleaned" it would look like: #ifndef __ABI_HEADER_H #define __ABI_HEADER_H #include <abi/required_headers.h>
... actual ABI definitions #endif
------- #ifndef __LINUX_HEADER_H #define __LINUX_HEADER_H #include <abi/required_headers.h> #include <linux/required_headers.h>
... kernel-only stuff #endif -- Krzysztof Halasa, B*FH - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |