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

Re: undefined reference to `gettid'



Mathieu Malaterre wrote:
> On Mon, Apr 28, 2008 at 5:24 PM, Eduardo M KALINOWSKI <ekalin@gmail.com> wrote:
>   
>> Mathieu Malaterre wrote:
>>  > Should I simply assumed that gettid should not be used and instead
>>  > replaced it with pthread_self as this should be the default on all
>>  > linux/debian system ?
>>  >
>>
>>  >From man gettid(2):
>>
>>  NOTES
>>        Glibc does not provide a wrapper for this system call;  call  it
>>  using
>>        syscall(2).
>>
>>        The  thread  ID  returned by this call is not the same thing as a
>>  POSIX
>>        thread ID (i.e., the opaque value returned by pthread_self(3)).
>>
>>
>>  However, concerning if you *should* call it via syscall, I cannot help.
>>
>>     
>
> WTF ? I am running an up to date debian stable system, where are those
> new man pages from ?
>   
$ dpkg -l | grep manp
ii  manpages                                    
2.79-1                             Manual pages about using a GNU/Linux
system
ii  manpages-dev                                
2.79-1                             Manual pages about using GNU/Linux
for development

Version in etch appears to be 2.39, so that explains the changes. I
suppose etch's libc is also somewhat newer.


-- 
BOFH excuse #367:

Webmasters kidnapped by evil cult.

Eduardo M KALINOWSKI
ekalin@gmail.com
http://move.to/hpkb


Reply to: