Skip to contentSkip to conversation

gettid(2)

DISCUSSION Sam Varshavchik 2 participants 2 messages Mar 21, 2008 – Mar 22, 2008 1 message not in the archive Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

gettid() is not defined in my copy of sys/types.h, and it does not appear to be a glibc wrapper for it.

The only way to access this syscall, it seems:

#include <sys/types.h>
#include <sys/syscalls.h>

syscall(SYS_gettid);

#2 lore raw
In reply to a message not in the archive
Quoted 9 lines · Sam Varshavchik

gettid() is not defined in my copy of sys/types.h, and it does not appear to be a glibc wrapper for it.

The only way to access this syscall, it seems:

#include <sys/types.h>
#include <sys/syscalls.h>

syscall(SYS_gettid);

Sam,

Raed the NOTES section:

Glibc does not provide a wrapper for this system call; call it using syscall(2).

Cheers,

Michael

Signature · 9 lines
Michael Kerrisk
Maintainer of the Linux man-pages project
http://www.kernel.org/doc/man-pages/
Want to report a man-pages bug?  Look here:
http://www.kernel.org/doc/man-pages/reporting_bugs.html
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html