carta

gettid(2) on Linux

The text d688a4420228, as Debian 7 (Wheezy) shipped it.

get thread identification

gettid(2) on Linux now