2008/4/28 Mathieu Malaterre <[EMAIL PROTECTED]>: > On Mon, Apr 28, 2008 at 5:24 PM, Eduardo M KALINOWSKI <[EMAIL PROTECTED]> > 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 ?
[EMAIL PROTECTED]:/$ dpkg -S /usr/share/man/man2/gettid.2.gz manpages-dev: /usr/share/man/man2/gettid.2.gz [EMAIL PROTECTED]:/$ dpkg -l manpages-dev Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Name Version Description +++-===================-===================-====================================================== ii manpages-dev 2.39-1 Manual pages about using GNU/Linux for development Where does your gettid manpage come from? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]