Yuri wrote:
> Hi,
> 
> I am porting some code to FreeBSD and need to know what todoinstead of Linux 
> gettid?

There isn't an equivalent in FreeBSD. gettid(2) is Linux-specific.
From the man page, if the thread is not part of a thread group created
by passing the flag CLONE_THREAD to clone(2) [yet another Linux-specific
system call] gettid(2) is equivalent to getpid(2).

However, if the application being ported uses clone(2), you'll first
want to decide for a threading library available on FreeBSD.

> 
> Thanks,
> Yuri


-- 
Pietro Cerutti

PGP Public Key:
http://gahr.ch/pgp

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to