Re: Problem with gettid() on CentOS 5/gcc 4.1.1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Tue, Apr 03, 2007 at 11:34:31PM -0400, Alfred von Campe wrote:
> Looks like the _syscall[0-6] macros no longer exist in RHEL 5/CentOS  
> 5.  So, what does that mean if you want to use something like gettid 
> () that requires it (or something equivalent)?

_syscall* is deprecated, syscall(2) is the real thing now.

> The following man  
> pages reference _syscall[0-6] on a CentOS 4.4 system (I don't have  
> access to a CentOS 5 beta system from home, but I'll be checking it  
> tomorrow):

My man gettid:
       _syscall0(pid_t, gettid)
               /* Using syscall(2) may be preferable; see intro(2) */

So they do reference syscall(2).

-- 
lfr
0/0

Attachment: pgpqFsqsMkSXG.pgp
Description: PGP signature

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux