From ltp-list Mon Oct 20 15:07:26 2008 From: Daniel Gollub Date: Mon, 20 Oct 2008 15:07:26 +0000 To: ltp-list Subject: Re: [LTP] linux/types.h vs sys/types.h? Message-Id: <200810201707.27660.dgollub () suse ! de> X-MARC-Message: https://marc.info/?l=ltp-list&m=122451532922603 On Monday 20 October 2008 03:26:41 Garrett Cooper wrote: > Hi guys, > While I've been trying to integrate the changes I've made in with > other folks' changes, I've run into a bit of a roadblock -- it appears > that compat_gid.h requires the definition for __kernel_old_gid_t to > exist, which was previously hacked to some asm/ include (which isn't > suggested). The definition exists inside asm/posix_types_*.h, which is > called up indirectly from linux/types.h (verified on Fedora 9, Gentoo, > and RHEL5 nahant update 2). Can someone verify whether or not this is > the case on other distros, e.g. Ubuntu, Slackware, etc? [...] SLES9: s390:~ # grep -r __kernel_old_gid_t /usr/include/* /usr/include/asm/posix_types.h:typedef unsigned short __kernel_old_gid_t; /usr/include/asm/posix_types.h:typedef __kernel_gid_t __kernel_old_gid_t; /usr/include/linux/types.h:typedef __kernel_old_gid_t old_gid_t; s390:~ # rpm -qf /usr/include/linux/types.h /usr/include/asm/posix_types.h glibc-devel-2.3.3-98.94 SLES10: i386:~ # grep -r __kernel_old_gid_t /usr/include/* /usr/include/asm/posix_types.h:typedef unsigned short __kernel_old_gid_t; /usr/include/linux/types.h:typedef __kernel_old_gid_t old_gid_t; i386:~ # rpm -qf /usr/include/asm/posix_types.h /usr/include/linux/types.h glibc-devel-2.4-31.54 glibc-devel-2.4-31.54 openSUSE 11.0: ppc64:~ # grep -r __kernel_old_gid_t /usr/include/* 2> /dev/null /usr/include/asm/posix_types.h:typedef unsigned int __kernel_old_gid_t; /usr/include/asm-arm/posix_types.h:typedef unsigned short __kernel_old_gid_t; /usr/include/asm-ia64/posix_types.h:typedef __kernel_gid_t __kernel_old_gid_t; /usr/include/asm-parisc/posix_types.h:typedef __kernel_gid_t __kernel_old_gid_t; /usr/include/asm-powerpc/posix_types.h:typedef unsigned int __kernel_old_gid_t; /usr/include/asm-s390/posix_types.h:typedef unsigned short __kernel_old_gid_t; /usr/include/asm-s390/posix_types.h:typedef __kernel_gid_t __kernel_old_gid_t; /usr/include/asm-x86/posix_types_32.h:typedef unsigned short __kernel_old_gid_t; /usr/include/asm-x86/posix_types_64.h:typedef unsigned short __kernel_old_gid_t; ppc64:~ # rpm -qf /usr/include/asm-x86/posix_types_32.h /usr/include/asm/posix_types.h linux-kernel-headers-2.6.25-8.1 linux-kernel-headers-2.6.25-8.1 openSUSE Factory: x86_64:~> grep -r __kernel_old_gid_t /usr/include/* /usr/include/asm/posix_types_64.h:typedef unsigned short __kernel_old_gid_t; /usr/include/asm/posix_types_32.h:typedef unsigned short __kernel_old_gid_t; /usr/include/asm-arm/posix_types.h:typedef unsigned short __kernel_old_gid_t; /usr/include/asm-ia64/posix_types.h:typedef __kernel_gid_t __kernel_old_gid_t; /usr/include/asm-parisc/posix_types.h:typedef __kernel_gid_t __kernel_old_gid_t; /usr/include/asm-powerpc/posix_types.h:typedef unsigned int __kernel_old_gid_t; /usr/include/asm-s390/posix_types.h:typedef unsigned short __kernel_old_gid_t; /usr/include/asm-s390/posix_types.h:typedef __kernel_gid_t __kernel_old_gid_t; /usr/include/asm-x86/posix_types_64.h:typedef unsigned short __kernel_old_gid_t; /usr/include/asm-x86/posix_types_32.h:typedef unsigned short __kernel_old_gid_t; x86_64:~> rpm -qf /usr/include/asm-x86/posix_types_64.h /usr/include/asm/posix_types_64.h linux-kernel-headers-2.6.27-9 linux-kernel-headers-2.6.27-9 Hope this helps. best regards, Daniel ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list