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

Re: undefined reference to `gettid'



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 04/28/08 10:30, 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 ?

gccX.Y-doc, maybe?

- --
Ron Johnson, Jr.
Jefferson LA  USA

We want... a Shrubbery!!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIFe9dS9HxQb37XmcRApHyAKDG5070wu72vZBoFb5DJ7FtlxFvRgCfVb40
bsr+2ikog+pc8hK8VjUl5VY=
=b1CE
-----END PGP SIGNATURE-----


Reply to: