[CentOS] Problem with gettid() on CentOS 5/gcc 4.1.1

Wed Apr 4 07:49:45 UTC 2007
Luciano Miguel Ferreira Rocha <strange at nsk.no-ip.org>

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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.centos.org/pipermail/centos/attachments/20070404/5be3adda/attachment-0005.sig>