[root@localhost /]# cat /proc/version Linux version 2.6.18-8.el5 (brewbuilder@ls20-bc2-14.build.redhat.com) (gcc version 4.1.1 20070105 (Red Hat 4.1.1-52)) #1 SMP Fri Jan 26 14:15:21 EST 2007
[root@localhost /]# rpm -qf /usr/include/linux/unistd.h kernel-headers-2.6.18-8.el5
[root@localhost /]# cat /usr/include/linux/unistd.h #ifndef _LINUX_UNISTD_H_ #define _LINUX_UNISTD_H_
/* * Include machine specific syscallX macros */ #include <asm/unistd.h>
#endif /* _LINUX_UNISTD_H_ */
J.J.
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Alfred von Campe Sent: Tuesday, April 03, 2007 8:22 PM To: CentOS mailing list Subject: Re: [CentOS] Problem with gettid() on CentOS 5/gcc 4.1.1
What packages do you need installed?
On a CentOS 4.4 system I get the following:
# rpm -qf /usr/include/linux/unistd.h glibc-kernheaders-2.4-9.1.98.EL
and
# grep -RE "#define[[:space:]]+_syscall" /usr/include /usr/include/linux/unistd.h:#define _syscall0(type,name) \ /usr/include/linux/unistd.h:#define _syscall1(type,name,type1,arg1) \ /usr/include/linux/unistd.h:#define _syscall2 (type,name,type1,arg1,type2,arg2) \ /usr/include/linux/unistd.h:#define _syscall3 (type,name,type1,arg1,type2,arg2,type3,arg3) \ /usr/include/linux/unistd.h:#define _syscall4 (type,name,type1,arg1,type2,arg2,type3,arg3,type4,arg4) \ /usr/include/linux/unistd.h:#define _syscall5 (type,name,type1,arg1,type2,arg2,type3,arg3,type4,arg4, \ /usr/include/linux/unistd.h:#define _syscall6 (type,name,type1,arg1,type2,arg2,type3,arg3,type4,arg4, \
So the macros are being defined as expected, but not on my CentOS 5 beta system (then again, it is just a beta, but this file shouldn't change very often).
Alfred
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
!DSPAM:500,4612fe0a163821804284693!
-- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.25/744 - Release Date: 4/3/2007 5:32 AM